FFmpeg
|
function definitions common to libschroedinger decoder and encoder More...
Go to the source code of this file.
Functions | |
static unsigned int | get_video_format_idx (AVCodecContext *avctx) |
void | ff_schro_queue_init (FFSchroQueue *queue) |
Initialise the queue. More... | |
void | ff_schro_queue_free (FFSchroQueue *queue, void(*free_func)(void *)) |
Free the queue resources. More... | |
int | ff_schro_queue_push_back (FFSchroQueue *queue, void *p_data) |
Add an element to the end of the queue. More... | |
void * | ff_schro_queue_pop (FFSchroQueue *queue) |
Return the first element in the queue. More... | |
SchroVideoFormatEnum | ff_get_schro_video_format_preset (AVCodecContext *avctx) |
Returns the video format preset matching the input video dimensions and time base. More... | |
int | ff_get_schro_frame_format (SchroChromaFormat schro_pix_fmt, SchroFrameFormat *schro_frame_fmt) |
Sets the Schroedinger frame format corresponding to the Schro chroma format passed. More... | |
static void | free_schro_frame (SchroFrame *frame, void *priv) |
SchroFrame * | ff_create_schro_frame (AVCodecContext *avctx, SchroFrameFormat schro_frame_fmt) |
Create a Schro frame based on the dimensions and frame format passed. More... | |
Variables | |
static const SchroVideoFormatInfo | ff_schro_video_format_info [] |
static const SchroVideoFormatEnum | ff_schro_video_formats [] |
Schroedinger video preset table. More... | |
Detailed Description
function definitions common to libschroedinger decoder and encoder
Definition in file libschroedinger.c.
Function Documentation
SchroFrame* ff_create_schro_frame | ( | AVCodecContext * | avctx, |
SchroFrameFormat | schro_frame_fmt | ||
) |
Create a Schro frame based on the dimensions and frame format passed.
Returns a pointer to a frame on success, NULL on failure.
Definition at line 178 of file libschroedinger.c.
Referenced by libschroedinger_decode_frame(), and libschroedinger_frame_from_data().
int ff_get_schro_frame_format | ( | SchroChromaFormat | schro_chroma_fmt, |
SchroFrameFormat * | schro_frame_fmt | ||
) |
Sets the Schroedinger frame format corresponding to the Schro chroma format passed.
Returns 0 on success, -1 on failure.
Definition at line 150 of file libschroedinger.c.
Referenced by libschroedinger_encode_init(), and libschroedinger_handle_first_access_unit().
SchroVideoFormatEnum ff_get_schro_video_format_preset | ( | AVCodecContext * | avctx | ) |
Returns the video format preset matching the input video dimensions and time base.
Definition at line 139 of file libschroedinger.c.
Referenced by libschroedinger_encode_init().
void ff_schro_queue_free | ( | FFSchroQueue * | queue, |
void(*)(void *) | free_func | ||
) |
Free the queue resources.
free_func is a function supplied by the caller to free any resources allocated by the caller. The data field of the queue element is passed to it.
Definition at line 75 of file libschroedinger.c.
Referenced by libschroedinger_decode_close(), libschroedinger_encode_close(), and libschroedinger_flush().
void ff_schro_queue_init | ( | FFSchroQueue * | queue | ) |
Initialise the queue.
Definition at line 69 of file libschroedinger.c.
Referenced by libschroedinger_decode_init(), libschroedinger_encode_init(), and libschroedinger_flush().
void* ff_schro_queue_pop | ( | FFSchroQueue * | queue | ) |
Return the first element in the queue.
Definition at line 100 of file libschroedinger.c.
Referenced by ff_schro_queue_free(), libschroedinger_decode_frame(), and libschroedinger_encode_frame().
int ff_schro_queue_push_back | ( | FFSchroQueue * | queue, |
void * | p_data | ||
) |
Add an element to the end of the queue.
Definition at line 81 of file libschroedinger.c.
Referenced by libschroedinger_decode_frame(), and libschroedinger_encode_frame().
Definition at line 167 of file libschroedinger.c.
Referenced by ff_create_schro_frame().
|
static |
Definition at line 49 of file libschroedinger.c.
Referenced by ff_get_schro_video_format_preset().
Variable Documentation
|
static |
Definition at line 29 of file libschroedinger.c.
Referenced by get_video_format_idx().
|
static |
Schroedinger video preset table.
Ensure that this tables matches up correctly with the ff_schro_video_format_info table.
Definition at line 119 of file libschroedinger.c.
Referenced by ff_get_schro_video_format_preset().
Generated on Fri Dec 20 2024 06:56:13 for FFmpeg by 1.8.11