liboggplay 0.3.0
oggplay_enums.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2003 Commonwealth Scientific and Industrial Research
3 Organisation (CSIRO) Australia
4
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions
7 are met:
8
9 - Redistributions of source code must retain the above copyright
10 notice, this list of conditions and the following disclaimer.
11
12 - Redistributions in binary form must reproduce the above copyright
13 notice, this list of conditions and the following disclaimer in the
14 documentation and/or other materials provided with the distribution.
15
16 - Neither the name of CSIRO Australia nor the names of its
17 contributors may be used to endorse or promote products derived from
18 this software without specific prior written permission.
19
20 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
23 PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ORGANISATION OR
24 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31*/
32
42#ifndef OGGPLAY_ENUMS_HEADER
43#define OGGPLAY_ENUMS_HEADER
44
48typedef enum OggPlayErrorCode {
49 E_OGGPLAY_CONTINUE = 1,
54 E_OGGPLAY_NO_SUCH_CHUNK = -4,
61 E_OGGPLAY_WRONG_TRACK_TYPE = -11,
75 E_OGGPLAY_NOTCHICKENPAYBACK = -777
77
81typedef enum OggPlayDataType {
87 OGGPLAY_CMML = 2000,
88 OGGPLAY_KATE = 3000,
91
95typedef enum OggPlayStreamInfo {
102
103#endif /* OGGPLAY_ENUMS_HEADER */
OggPlayDataType
Definitions of the various record types.
Definition: oggplay_enums.h:81
@ OGGPLAY_SHORTS_AUDIO
audio record in short format
Definition: oggplay_enums.h:85
@ OGGPLAY_KATE
KATE record.
Definition: oggplay_enums.h:88
@ OGGPLAY_INACTIVE
record is inactive
Definition: oggplay_enums.h:82
@ OGGPLAY_RGBA_VIDEO
record is a video in RGB format
Definition: oggplay_enums.h:84
@ OGGPLAY_CMML
CMML record.
Definition: oggplay_enums.h:87
@ OGGPLAY_YUV_VIDEO
record is a YUV format video
Definition: oggplay_enums.h:83
@ OGGPLAY_TYPE_UNKNOWN
content type of the record is unknown
Definition: oggplay_enums.h:89
@ OGGPLAY_FLOATS_AUDIO
audio record in float format
Definition: oggplay_enums.h:86
OggPlayStreamInfo
Definitions of the various states of a stream.
Definition: oggplay_enums.h:95
@ OGGPLAY_STREAM_UNINITIALISED
Stream is not initialised.
Definition: oggplay_enums.h:96
@ OGGPLAY_STREAM_LAST_DATA
Stream received it's last data frame.
Definition: oggplay_enums.h:99
@ OGGPLAY_STREAM_FIRST_DATA
Stream received it's first data frame.
Definition: oggplay_enums.h:97
@ OGGPLAY_STREAM_JUST_SEEKED
We've just seeked in the stream.
Definition: oggplay_enums.h:100
@ OGGPLAY_STREAM_INITIALISED
Stream is initialised.
Definition: oggplay_enums.h:98
OggPlayErrorCode
Definitions of error return values.
Definition: oggplay_enums.h:48
@ E_OGGPLAY_OK
No error.
Definition: oggplay_enums.h:50
@ E_OGGPLAY_TRACK_IS_UNKNOWN
The selected track's content type is UNKNOWN.
Definition: oggplay_enums.h:73
@ E_OGGPLAY_TRACK_IS_SKELETON
Trying to activate a Skeleton track.
Definition: oggplay_enums.h:56
@ E_OGGPLAY_USER_INTERRUPT
User interrupt received.
Definition: oggplay_enums.h:65
@ E_OGGPLAY_UNINITIALISED
The OggPlay handle is not initialised.
Definition: oggplay_enums.h:62
@ E_OGGPLAY_SOCKET_ERROR
Error while creating socket.
Definition: oggplay_enums.h:66
@ E_OGGPLAY_CALLBACK_MODE
OggPlay is used in callback mode.
Definition: oggplay_enums.h:63
@ E_OGGPLAY_TYPE_OVERFLOW
Integer overflow detected.
Definition: oggplay_enums.h:72
@ E_OGGPLAY_OGGZ_UNHAPPY
OGGZ error occured.
Definition: oggplay_enums.h:57
@ E_OGGPLAY_BAD_OGGPLAY
supplied oggplay is not a valid OggPlay
Definition: oggplay_enums.h:51
@ E_OGGPLAY_BAD_READER
OggPlayReader is invalid.
Definition: oggplay_enums.h:52
@ E_OGGPLAY_BAD_INPUT
Error in the input.
Definition: oggplay_enums.h:53
@ E_OGGPLAY_BAD_TRACK
The requested track number does not exists.
Definition: oggplay_enums.h:55
@ E_OGGPLAY_END_OF_FILE
End of file.
Definition: oggplay_enums.h:58
@ E_OGGPLAY_NO_TIGER_SUPPORT
LibTiger is not supported.
Definition: oggplay_enums.h:70
@ E_OGGPLAY_OUT_OF_MEMORY
Out of memory.
Definition: oggplay_enums.h:71
@ E_OGGPLAY_TRACK_IS_OVER
A given track has ended.
Definition: oggplay_enums.h:59
@ E_OGGPLAY_TRACK_UNINITIALISED
Track is not initialised, i.e.
Definition: oggplay_enums.h:74
@ E_OGGPLAY_BAD_CALLBACK_INFO
Invalid OggPlayCallbackInfo.
Definition: oggplay_enums.h:60
@ E_OGGPLAY_TIMEOUT
TCP connection timeouted.
Definition: oggplay_enums.h:67
@ E_OGGPLAY_NO_KATE_SUPPORT
LibKate is not supported.
Definition: oggplay_enums.h:69
@ E_OGGPLAY_BUFFER_MODE
OggPlay is used in buffer mode.
Definition: oggplay_enums.h:64
@ E_OGGPLAY_CANT_SEEK
Could not performed the requested seek.
Definition: oggplay_enums.h:68