libavcodec/v210dec.c File Reference
#include "avcodec.h"
#include "libavutil/bswap.h"

Go to the source code of this file.

Defines

#define READ_PIXELS(a, b, c)

Functions

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

AVCodec ff_v210_decoder

Define Documentation

#define READ_PIXELS (   a,
  b,
 
)
Value:
do {                             \
        val  = av_le2ne32(*src++);   \
        *a++ =  val & 0x3FF;         \
        *b++ = (val >> 10) & 0x3FF;  \
        *c++ = (val >> 20) & 0x3FF;  \
    } while (0)

Referenced by decode_frame().


Function Documentation

static av_cold int decode_close ( AVCodecContext avctx) [static]

Definition at line 113 of file v210dec.c.

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

Definition at line 41 of file v210dec.c.

static av_cold int decode_init ( AVCodecContext avctx) [static]

Definition at line 27 of file v210dec.c.


Variable Documentation

Initial value:
 {
    .name           = "v210",
    .type           = AVMEDIA_TYPE_VIDEO,
    .id             = CODEC_ID_V210,
    .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"),
}

Definition at line 123 of file v210dec.c.