v210enc.c File Reference
#include "avcodec.h"
#include "bytestream.h"

Go to the source code of this file.

Macros

#define CLIP(v)   av_clip(v, 4, 1019)
 
#define WRITE_PIXELS(a, b, c)
 

Functions

static av_cold int encode_init (AVCodecContext *avctx)
 
static int encode_frame (AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)
 
static av_cold int encode_close (AVCodecContext *avctx)
 

Variables

AVCodec ff_v210_encoder
 

Macro Definition Documentation

#define CLIP (   v)    av_clip(v, 4, 1019)

Referenced by encode_frame().

#define WRITE_PIXELS (   a,
  b,
 
)
Value:
do { \
val = CLIP(*a++); \
val |= (CLIP(*b++) << 10) | \
(CLIP(*c++) << 20); \
bytestream_put_le32(&p, val); \
} while (0)
#define b
Definition: swscale.c:1335
#define CLIP(v)

Referenced by encode_frame().

Function Documentation

static av_cold int encode_close ( AVCodecContext avctx)
static

Definition at line 113 of file v210enc.c.

static int encode_frame ( AVCodecContext avctx,
unsigned char *  buf,
int  buf_size,
void data 
)
static

Definition at line 51 of file v210enc.c.

static av_cold int encode_init ( AVCodecContext avctx)
static

Definition at line 27 of file v210enc.c.

Variable Documentation

AVCodec ff_v210_encoder
Initial value:
= {
.name = "v210",
.init = encode_init,
.encode = encode_frame,
.close = encode_close,
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV422P10, PIX_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"),
}
static av_cold int encode_init(AVCodecContext *avctx)
Definition: v210enc.c:27
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:191
static av_cold int encode_close(AVCodecContext *avctx)
Definition: v210enc.c:113
#define PIX_FMT_YUV422P10
Definition: pixfmt.h:188
PixelFormat
Pixel format.
Definition: pixfmt.h:62
static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)
Definition: v210enc.c:51

Definition at line 120 of file v210enc.c.