FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
v210enc.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "internal.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, AVPacket *pkt, const AVFrame *pic, int *got_packet)
 
static av_cold int encode_close (AVCodecContext *avctx)
 

Variables

AVCodec ff_v210_encoder
 

Macro Definition Documentation

#define CLIP (   v)    av_clip(v, 4, 1019)
#define WRITE_PIXELS (   a,
  b,
  c 
)
Value:
do { \
val = CLIP(*a++); \
val |= (CLIP(*b++) << 10) | \
(CLIP(*c++) << 20); \
bytestream2_put_le32u(&p, val); \
} while (0)

Referenced by encode_frame().

Function Documentation

static av_cold int encode_init ( AVCodecContext avctx)
static

Definition at line 28 of file v210enc.c.

static int encode_frame ( AVCodecContext avctx,
AVPacket pkt,
const AVFrame pic,
int *  got_packet 
)
static

Definition at line 48 of file v210enc.c.

static av_cold int encode_close ( AVCodecContext avctx)
static

Definition at line 110 of file v210enc.c.

Variable Documentation

AVCodec ff_v210_encoder
Initial value:
= {
.name = "v210",
.init = encode_init,
.encode2 = encode_frame,
.close = encode_close,
.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV422P10, AV_PIX_FMT_NONE },
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"),
}

Definition at line 117 of file v210enc.c.