v210dec.c File Reference
#include "avcodec.h"
#include "internal.h"
#include "v210dec.h"
#include "libavutil/bswap.h"
#include "libavutil/internal.h"
#include "libavutil/mem.h"
Include dependency graph for v210dec.c:

Go to the source code of this file.

Macros

#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 *got_frame, AVPacket *avpkt)
 

Variables

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

Macro Definition Documentation

#define READ_PIXELS (   a,
  b,
  c 
)
Value:
do { \
*a++ = val & 0x3FF; \
*b++ = (val >> 10) & 0x3FF; \
*c++ = (val >> 20) & 0x3FF; \
} while (0)
#define av_le2ne32(x)
Definition: bswap.h:96
#define b
Definition: input.c:42
AVS_Value src
Definition: avisynth_c.h:523
static double c[64]

Definition at line 31 of file v210dec.c.

Referenced by decode_frame(), and v210_planar_unpack_c().

Definition at line 154 of file v210dec.c.

Function Documentation

static int decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame,
AVPacket avpkt 
)
static

Definition at line 71 of file v210dec.c.

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 52 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 39 of file v210dec.c.

Referenced by decode_init().

Variable Documentation

AVCodec ff_v210_decoder
Initial value:
= {
.name = "v210",
.priv_data_size = sizeof(V210DecContext),
.capabilities = CODEC_CAP_DR1,
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"),
.priv_class = &v210dec_class,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: v210dec.c:71
static av_cold int decode_init(AVCodecContext *avctx)
Definition: v210dec.c:52
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static const AVClass v210dec_class
Definition: v210dec.c:161
static int decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
Definition: crystalhd.c:868

Definition at line 168 of file v210dec.c.

const AVClass v210dec_class
static
Initial value:
= {
"V210 Decoder",
}
av_default_item_name
LIBAVUTIL_VERSION_INT
Definition: eval.c:55
static const AVOption v210dec_options[]
Definition: v210dec.c:155

Definition at line 161 of file v210dec.c.

const AVOption v210dec_options[]
static
Initial value:
= {
{"custom_stride", "Custom V210 stride", offsetof(V210DecContext, custom_stride), FF_OPT_TYPE_INT,
{.i64 = 0}, INT_MIN, INT_MAX, V210DEC_FLAGS},
{NULL}
}
#define V210DEC_FLAGS
Definition: v210dec.c:154
NULL
Definition: eval.c:55

Definition at line 155 of file v210dec.c.