libavcodec/v210dec.c File Reference

#include "avcodec.h"
#include "v210dec.h"
#include "libavutil/bswap.h"

Go to the source code of this file.

Defines

#define READ_PIXELS(a, b, c)
#define V210DEC_FLAGS   AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_VIDEO_PARAM

Functions

static void v210_planar_unpack_c (const uint32_t *src, uint16_t *y, uint16_t *u, uint16_t *v, int width)
static av_cold int decode_init (AVCodecContext *avctx)
static int decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
static av_cold int decode_close (AVCodecContext *avctx)

Variables

static const AVOption v210dec_options []
static const AVClass v210dec_class
AVCodec ff_v210_decoder


Define Documentation

#define READ_PIXELS ( a,
b,
c   ) 

Value:

do {                             \
        val  = av_le2ne32(*src++);   \
        *a++ =  val & 0x3FF;         \
        *b++ = (val >> 10) & 0x3FF;  \
        *c++ = (val >> 20) & 0x3FF;  \
    } while (0)

Definition at line 28 of file v210dec.c.

Referenced by decode_frame(), and v210_planar_unpack_c().

#define V210DEC_FLAGS   AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_VIDEO_PARAM

Definition at line 170 of file v210dec.c.


Function Documentation

static av_cold int decode_close ( AVCodecContext avctx  )  [static]

Definition at line 160 of file v210dec.c.

static int decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
AVPacket avpkt 
) [static]

Definition at line 72 of file v210dec.c.

static av_cold int decode_init ( AVCodecContext avctx  )  [static]

Definition at line 49 of file v210dec.c.

static void v210_planar_unpack_c ( const uint32_t *  src,
uint16_t *  y,
uint16_t *  u,
uint16_t *  v,
int  width 
) [static]

Definition at line 36 of file v210dec.c.

Referenced by decode_init().


Variable Documentation

Initial value:

 {
    .name           = "v210",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_V210,
    .priv_data_size = sizeof(V210DecContext),
    .init           = decode_init,
    .close          = decode_close,
    .decode         = decode_frame,
    .capabilities   = CODEC_CAP_DR1,
    .long_name      = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"),
    .priv_class     = &v210dec_class,
}

Definition at line 184 of file v210dec.c.

const AVClass v210dec_class [static]

Initial value:

Definition at line 177 of file v210dec.c.

const AVOption v210dec_options[] [static]

Initial value:

 {
    {"custom_stride", "Custom V210 stride", 0x42, FF_OPT_TYPE_INT,
     {.dbl = 0}, INT_MIN, INT_MAX, V210DEC_FLAGS},
    {NULL}
}

Definition at line 171 of file v210dec.c.


Generated on Fri Oct 26 02:47:59 2012 for FFmpeg by  doxygen 1.5.8