FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
img_format.c File Reference
#include "config.h"
#include "img_format.h"
#include "stdio.h"

Go to the source code of this file.

Functions

const char * ff_vo_format_name (int format)
 
int ff_mp_get_chroma_shift (int format, int *x_shift, int *y_shift)
 Calculates the scale shifts for the chroma planes for planar YUV.
 

Function Documentation

const char* ff_vo_format_name ( int  format)

Definition at line 23 of file img_format.c.

int ff_mp_get_chroma_shift ( int  format,
int *  x_shift,
int *  y_shift 
)

Calculates the scale shifts for the chroma planes for planar YUV.

Returns
bits-per-pixel for format if successful (i.e. format is 3 or 4-planes planar YUV), 0 otherwise

Definition at line 110 of file img_format.c.

Referenced by ff_mp_image_setfmt().