FFmpeg
Macros | Functions | Variables
v210enc.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "v210enc.h"
#include "v210_template.c"

Go to the source code of this file.

Macros

#define TYPE   uint8_t
 
#define DEPTH   8
 
#define BYTES_PER_PIXEL   1
 
#define RENAME(a)   a ## _ ## 8
 
#define TYPE   uint16_t
 
#define DEPTH   10
 
#define BYTES_PER_PIXEL   2
 
#define RENAME(a)   a ## _ ## 10
 

Functions

static void v210_planar_pack_8_c (const uint8_t *y, const uint8_t *u, const uint8_t *v, uint8_t *dst, ptrdiff_t width)
 
static void v210_planar_pack_10_c (const uint16_t *y, const uint16_t *u, const uint16_t *v, uint8_t *dst, ptrdiff_t width)
 
av_cold void ff_v210enc_init (V210EncContext *s)
 
static av_cold int encode_init (AVCodecContext *avctx)
 
static int encode_frame (AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic, int *got_packet)
 

Variables

AVCodec ff_v210_encoder
 

Macro Definition Documentation

#define TYPE   uint8_t

Definition at line 39 of file v210enc.c.

#define DEPTH   8

Definition at line 40 of file v210enc.c.

Referenced by v210_enc_TMPL().

#define BYTES_PER_PIXEL   1

Definition at line 41 of file v210enc.c.

Referenced by inter_pred(), and v210_enc_TMPL().

#define RENAME (   a)    a ## _ ## 8

Definition at line 42 of file v210enc.c.

#define TYPE   uint16_t

Definition at line 39 of file v210enc.c.

#define DEPTH   10

Definition at line 40 of file v210enc.c.

#define BYTES_PER_PIXEL   2

Definition at line 41 of file v210enc.c.

#define RENAME (   a)    a ## _ ## 10

Definition at line 42 of file v210enc.c.

Function Documentation

static void v210_planar_pack_8_c ( const uint8_t y,
const uint8_t u,
const uint8_t v,
uint8_t dst,
ptrdiff_t  width 
)
static

Definition at line 49 of file v210enc.c.

Referenced by ff_v210enc_init().

static void v210_planar_pack_10_c ( const uint16_t *  y,
const uint16_t *  u,
const uint16_t *  v,
uint8_t dst,
ptrdiff_t  width 
)
static

Definition at line 69 of file v210enc.c.

Referenced by ff_v210enc_init().

av_cold void ff_v210enc_init ( V210EncContext s)

Definition at line 84 of file v210enc.c.

Referenced by checkasm_check_v210enc(), and encode_init().

static av_cold int encode_init ( AVCodecContext avctx)
static

Definition at line 95 of file v210enc.c.

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

Definition at line 118 of file v210enc.c.

Variable Documentation

AVCodec ff_v210_encoder
Initial value:
= {
.name = "v210",
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"),
.priv_data_size = sizeof(V210EncContext),
.encode2 = encode_frame,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition: pixfmt.h:70
static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic, int *got_packet)
Definition: v210enc.c:118
static av_cold int encode_init(AVCodecContext *avctx)
Definition: v210enc.c:95
static enum AVPixelFormat pix_fmts[]
Definition: libkvazaar.c:275
#define AV_PIX_FMT_YUV422P10
Definition: pixfmt.h:388
AVPixelFormat
Pixel format.
Definition: pixfmt.h:64

Definition at line 160 of file v210enc.c.