FFmpeg
Loading...
Searching...
No Matches
v210enc_init.h File Reference
#include <stddef.h>
#include <stdint.h>
#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "v210enc.h"

Go to the source code of this file.

Macros

#define CLIP(v, depth)
 
#define WRITE_PIXELS(a, b, c, depth)
 

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_unused static av_cold void ff_v210enc_init (V210EncContext *s)
 

Macro Definition Documentation

◆ CLIP

#define CLIP ( v,
depth )
Value:
av_clip(v, 1<<(depth-8), ((1<<depth)-(1<<(depth-8))-1))
#define av_clip
Definition common.h:100

Definition at line 36 of file v210enc_init.h.

◆ 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)
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
Definition dsp.h:87
static double val(void *priv, double ch)
Definition aeval.c:77
#define CLIP(a)
int a
#define b
Definition input.c:43
static double c[64]

Definition at line 37 of file v210enc_init.h.

Referenced by v210_enc_TMPL(), v210_planar_pack_10_c(), and v210_planar_pack_8_c().

Function Documentation

◆ v210_planar_pack_8_c()

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 46 of file v210enc_init.h.

Referenced by ff_v210enc_init().

◆ v210_planar_pack_10_c()

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 65 of file v210enc_init.h.

Referenced by ff_v210enc_init().

◆ ff_v210enc_init()

av_unused static av_cold void ff_v210enc_init ( V210EncContext * s)
static

Definition at line 79 of file v210enc_init.h.

Referenced by checkasm_check_v210enc(), and encode_init().