FFmpeg  4.4.5
Macros | Functions
v210_template.c File Reference
#include "bytestream.h"
#include "internal.h"

Go to the source code of this file.

Macros

#define CLIP(v, depth)   av_clip(v, 1<<(depth-8), ((1<<depth)-(1<<(depth-8))-1))
 
#define WRITE_PIXELS(a, b, c, depth)
 

Functions

static void RENAME() v210_enc (AVCodecContext *avctx, uint8_t *dst, const AVFrame *pic)
 

Macro Definition Documentation

◆ CLIP

#define CLIP (   v,
  depth 
)    av_clip(v, 1<<(depth-8), ((1<<depth)-(1<<(depth-8))-1))

Definition at line 25 of file v210_template.c.

◆ WRITE_PIXELS

#define WRITE_PIXELS (   a,
  b,
  c,
  depth 
)
Value:
do { \
val = CLIP(*a++, depth) << (10-depth); \
val |= (CLIP(*b++, depth) << (20-depth)) | \
(CLIP(*c++, depth) << (30-depth)); \
AV_WL32(dst, val); \
dst += 4; \
} while (0)
static double val(void *priv, double ch)
Definition: aeval.c:76
#define CLIP(v, depth)
Definition: v210_template.c:25
const char * b
Definition: vf_curves.c:118
static double c[64]

Definition at line 26 of file v210_template.c.

Function Documentation

◆ v210_enc()

static void RENAME() v210_enc ( AVCodecContext avctx,
uint8_t dst,
const AVFrame pic 
)
static

Definition at line 35 of file v210_template.c.