147oggplay_set_callback_num_frames(
OggPlay *me,
int stream,
int frames);
150oggplay_set_callback_period(
OggPlay *me,
int stream,
int milliseconds);
153oggplay_set_offset(
OggPlay *me,
int track, ogg_int64_t offset);
234oggplay_get_video_aspect_ratio(
OggPlay *me,
int track,
int* aspect_denom,
int* aspect_num);
237oggplay_convert_video_to_rgb(
OggPlay *me,
int track,
int convert,
int swap_rgb);
240oggplay_get_kate_category(
OggPlay *me,
int track,
const char** category);
243oggplay_get_kate_language(
OggPlay *me,
int track,
const char** language);
246oggplay_set_kate_tiger_rendering(
OggPlay *me,
int track,
int use_tiger,
int swap_rgb,
int default_width,
int default_height);
249oggplay_overlay_kate_track_on_video(
OggPlay *me,
int kate_track,
int video_track);
252oggplay_start_decoding(
OggPlay *me);
324oggplay_prepare_for_close(
OggPlay *me);
337oggplay_get_available(
OggPlay *player);
350oggplay_media_finished_retrieving(
OggPlay * player);
OggPlayErrorCode oggplay_get_video_fps(OggPlay *me, int track, int *fps_denom, int *fps_num)
Get the frame-per-second value the of a given video track.
OggPlayErrorCode oggplay_buffer_release(OggPlay *player, OggPlayCallbackInfo **track_info)
Release the given buffer item.
OggPlay * oggplay_new_with_reader(OggPlayReader *reader)
Create a new OggPlay handle associated with the given reader.
struct OggPlay_ OggPlay
This is returned by oggplay_open_with_reader() or oggplay_new_with_reader().
Definition: oggplay.h:56
OggPlayErrorCode oggplay_get_video_uv_size(OggPlay *me, int track, int *uv_width, int *uv_height)
Get the given video track's UV-plane's width and height.
OggPlay * oggplay_open_with_reader(OggPlayReader *reader)
Create an OggPlay handle associated with the given reader.
OggPlayErrorCode oggplay_get_video_y_size(OggPlay *me, int track, int *y_width, int *y_height)
Get the given video track's Y-plane's width and height.
OggPlayErrorCode oggplay_set_data_callback(OggPlay *me, OggPlayDataCallback callback, void *user)
Sets a user defined OggPlayDataCallback function for the OggPlay handle.
OggPlayErrorCode oggplay_get_audio_channels(OggPlay *me, int track, int *channels)
Get the number of channels of the audio track.
OggPlayErrorCode oggplay_use_buffer(OggPlay *player, int size)
Use the built-in OggPlayBuffer for buffering the decoded frames.
OggPlayErrorCode oggplay_step_decoding(OggPlay *me)
Decode the streams in the Ogg container until we find data that hasn't been presented,...
struct OggPlayCallbackInfo_ OggPlayCallbackInfo
A structure for storing the decoded frames for the various streams in the Ogg container.
Definition: oggplay.h:62
OggPlayErrorCode oggplay_close(OggPlay *player)
Destroys the OggPlay handle along with the associated OggPlayReader and clears out the buffer and shu...
int() OggPlayDataCallback(OggPlay *player, int num_records, OggPlayCallbackInfo **records, void *user)
This is the signature of a callback which you must provide for OggPlay to call whenever there's any u...
Definition: oggplay.h:76
ogg_int64_t oggplay_get_duration(OggPlay *player)
Get the duration of the Ogg content.
OggPlayErrorCode oggplay_initialise(OggPlay *me, int block)
Initialise the OggPlay handle.
OggPlayCallbackInfo ** oggplay_buffer_retrieve_next(OggPlay *player)
Retrive the next element in the buffer.
OggPlayErrorCode oggplay_get_audio_samplerate(OggPlay *me, int track, int *samplerate)
Get the sample rate of the of the audio track.
General constants used by liboggplay.
OggPlayErrorCode
Definitions of error return values.
Definition: oggplay_enums.h:48
Definition: oggplay_reader.h:51