FFmpeg
Loading...
Searching...
No Matches
v210enc.c File Reference
#include "avcodec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "encode.h"
#include "internal.h"
#include "v210enc.h"
#include "v210enc_init.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)
 
#define TYPE   uint16_t
 
#define DEPTH   10
 
#define BYTES_PER_PIXEL   2
 
#define RENAME(a)
 

Functions

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

Variables

const FFCodec ff_v210_encoder
 

Macro Definition Documentation

◆ TYPE [1/2]

#define TYPE   uint8_t

Definition at line 32 of file v210enc.c.

◆ DEPTH [1/2]

#define DEPTH   8

Definition at line 33 of file v210enc.c.

Referenced by analyze_plane(), and v210_enc_TMPL().

◆ BYTES_PER_PIXEL [1/2]

#define BYTES_PER_PIXEL   1

Definition at line 34 of file v210enc.c.

Referenced by inter_pred(), and v210_enc_TMPL().

◆ RENAME [1/2]

#define RENAME ( a)
Value:
a ## _ ## 8
#define _
int a

Definition at line 35 of file v210enc.c.

◆ TYPE [2/2]

#define TYPE   uint16_t

Definition at line 32 of file v210enc.c.

◆ DEPTH [2/2]

#define DEPTH   10

Definition at line 33 of file v210enc.c.

◆ BYTES_PER_PIXEL [2/2]

#define BYTES_PER_PIXEL   2

Definition at line 34 of file v210enc.c.

◆ RENAME [2/2]

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

Definition at line 35 of file v210enc.c.

Function Documentation

◆ encode_init()

static av_cold int encode_init ( AVCodecContext * avctx)
static

Definition at line 52 of file v210enc.c.

◆ encode_frame()

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

Definition at line 69 of file v210enc.c.

Variable Documentation

◆ ff_v210_encoder

const FFCodec ff_v210_encoder
Initial value:
= {
.p.name = "v210",
CODEC_LONG_NAME("Uncompressed 4:2:2 10-bit"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(V210EncContext),
}
static av_cold int encode_init(AVCodecContext *avctx)
Definition asvenc.c:373
#define CODEC_PIXFMTS(...)
#define FF_CODEC_ENCODE_CB(func)
#define CODEC_LONG_NAME(str)
int(* init)(AVBSFContext *ctx)
Definition dts2pts.c:608
static int encode_frame(OutputFile *of, OutputStream *ost, AVFrame *frame, AVPacket *pkt)
Definition ffmpeg_enc.c:694
#define AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE
This encoder can reorder user opaque values from input AVFrames and return them with corresponding ou...
Definition codec.h:147
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition codec.h:49
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition codec.h:98
@ AV_CODEC_ID_V210
Definition codec_id.h:177
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200
#define AV_PIX_FMT_YUV422P10
Definition pixfmt.h:546
@ AV_PIX_FMT_YUV422P
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
Definition pixfmt.h:77

Definition at line 110 of file v210enc.c.