31 #define READ_PIXELS(a, b, c)         \ 
   33         val  = av_le2ne32(*src++);   \ 
   35         *b++ = (val >> 10) & 0x3FF;  \ 
   36         *c++ = (val >> 20) & 0x3FF;  \ 
   44     for( i = 0; i < width-5; i += 6 ){
 
   72     int h, w, ret, 
stride, aligned_input;
 
   80         int aligned_width = ((avctx->
width + 47) / 48) * 48;
 
   81         stride = aligned_width * 8 / 3;
 
   85         if ((((avctx->
width + 23) / 24) * 24 * 8) / 3 * avctx->
height == avpkt->
size) {
 
   96     aligned_input = !((uintptr_t)psrc & 0xf) && !(stride & 0xf);
 
  106     y = (uint16_t*)pic->
data[0];
 
  107     u = (uint16_t*)pic->
data[1];
 
  108     v = (uint16_t*)pic->
data[2];
 
  113         const uint32_t *
src = (
const uint32_t*)psrc;
 
  116         w = (avctx->
width / 6) * 6;
 
  124         if (w < avctx->
width - 1) {
 
  129             if (w < avctx->
width - 3) {
 
  130                 *u++ = (val >> 10) & 0x3FF;
 
  131                 *y++ = (val >> 20) & 0x3FF;
 
  135                 *y++ = (val >> 10) & 0x3FF;
 
  157 #define V210DEC_FLAGS AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_VIDEO_PARAM 
  180     .priv_class     = &v210dec_class,
 
const char const char void * val
#define AVERROR_INVALIDDATA
Invalid data found when processing input. 
This structure describes decoded (raw) audio or video data. 
ptrdiff_t const GLvoid * data
#define AV_LOG_WARNING
Something somehow does not look correct. 
#define LIBAVUTIL_VERSION_INT
Memory handling functions. 
static av_cold int init(AVCodecContext *avctx)
static void v210_planar_unpack_c(const uint32_t *src, uint16_t *y, uint16_t *u, uint16_t *v, int width)
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx. 
int bits_per_raw_sample
Bits per sample/pixel of internal libavcodec pixel/sample format. 
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
static av_cold int decode_init(AVCodecContext *avctx)
#define READ_PIXELS(a, b, c)
int interlaced_frame
The content of the picture is interlaced. 
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered. 
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
const char * name
Name of the codec implementation. 
common internal API header 
enum AVPictureType pict_type
Picture type of the frame. 
int width
picture width / height. 
Libavcodec external API header. 
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line. 
main external API structure. 
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame. 
Describe the class of an AVClass context structure. 
void ff_v210_x86_init(V210DecContext *s)
#define AV_PIX_FMT_YUV422P10
static const AVClass v210dec_class
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes. 
static const AVOption v210dec_options[]
common internal api header. 
int top_field_first
If the content is interlaced, is top field displayed first. 
int key_frame
1 -> keyframe, 0-> not 
enum AVFieldOrder field_order
Field order. 
static int decode(AVCodecContext *avctx, AVFrame *frame, int *got_frame, AVPacket *pkt)
This structure stores compressed data. 
void(* unpack_frame)(const uint32_t *src, uint16_t *y, uint16_t *u, uint16_t *v, int width)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.