libschroedinger.c File Reference

function definitions common to libschroedinger decoder and encoder More...

#include "libdirac_libschro.h"
#include "libschroedinger.h"

Go to the source code of this file.

Functions

SchroVideoFormatEnum ff_get_schro_video_format_preset (AVCodecContext *avccontext)
 Returns the video format preset matching the input video dimensions and time base.
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.
static void FreeSchroFrame (SchroFrame *frame, void *priv)
SchroFrame * ff_create_schro_frame (AVCodecContext *avccontext, SchroFrameFormat schro_frame_fmt)
 Create a Schro frame based on the dimensions and frame format passed.

Variables

static const SchroVideoFormatEnum ff_schro_video_formats []
 Schroedinger video preset table.

Detailed Description

function definitions common to libschroedinger decoder and encoder

Definition in file libschroedinger.c.

Function Documentation

SchroFrame* ff_create_schro_frame ( AVCodecContext avccontext,
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 92 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 64 of file libschroedinger.c.

Referenced by libschroedinger_encode_init(), and libschroedinger_handle_first_access_unit().

SchroVideoFormatEnum ff_get_schro_video_format_preset ( AVCodecContext avccontext)

Returns the video format preset matching the input video dimensions and time base.

Definition at line 53 of file libschroedinger.c.

Referenced by libschroedinger_encode_init().

static void FreeSchroFrame ( SchroFrame *  frame,
void priv 
)
static

Definition at line 81 of file libschroedinger.c.

Referenced by ff_create_schro_frame().

Variable Documentation

const SchroVideoFormatEnum ff_schro_video_formats[]
static
Initial value:
{
SCHRO_VIDEO_FORMAT_CUSTOM ,
SCHRO_VIDEO_FORMAT_QSIF ,
SCHRO_VIDEO_FORMAT_QCIF ,
SCHRO_VIDEO_FORMAT_SIF ,
SCHRO_VIDEO_FORMAT_CIF ,
SCHRO_VIDEO_FORMAT_4SIF ,
SCHRO_VIDEO_FORMAT_4CIF ,
SCHRO_VIDEO_FORMAT_SD480I_60 ,
SCHRO_VIDEO_FORMAT_SD576I_50 ,
SCHRO_VIDEO_FORMAT_HD720P_60 ,
SCHRO_VIDEO_FORMAT_HD720P_50 ,
SCHRO_VIDEO_FORMAT_HD1080I_60 ,
SCHRO_VIDEO_FORMAT_HD1080I_50 ,
SCHRO_VIDEO_FORMAT_HD1080P_60 ,
SCHRO_VIDEO_FORMAT_HD1080P_50 ,
SCHRO_VIDEO_FORMAT_DC2K_24 ,
SCHRO_VIDEO_FORMAT_DC4K_24 ,
}

Schroedinger video preset table.

Ensure that this tables matches up correctly with the ff_dirac_schro_video_format_info table in libdirac_libschro.c.

Definition at line 33 of file libschroedinger.c.

Referenced by ff_get_schro_video_format_preset().