FFmpeg
Macros | Functions
proresdsp.c File Reference
#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/common.h"
#include "idctdsp.h"
#include "proresdsp.h"
#include "simple_idct.h"

Go to the source code of this file.

Macros

#define CLIP_MIN   (1 << 2)
 minimum value for clipping resulting pixels More...
 
#define CLIP_MAX_10   (1 << 10) - CLIP_MIN - 1
 maximum value for clipping resulting pixels More...
 
#define CLIP_MAX_12   (1 << 12) - CLIP_MIN - 1
 maximum value for clipping resulting pixels More...
 
#define CLIP_10(x)   (av_clip((x), CLIP_MIN, CLIP_MAX_10))
 
#define CLIP_12(x)   (av_clip((x), CLIP_MIN, CLIP_MAX_12))
 

Functions

static void put_pixel (uint16_t *dst, ptrdiff_t linesize, const int16_t *in, int bits_per_raw_sample)
 Add bias value, clamp and output pixels of a slice. More...
 
static void put_pixels_10 (uint16_t *dst, ptrdiff_t linesize, const int16_t *in)
 
static void put_pixels_12 (uint16_t *dst, ptrdiff_t linesize, const int16_t *in)
 
static void prores_idct_put_10_c (uint16_t *out, ptrdiff_t linesize, int16_t *block, const int16_t *qmat)
 
static void prores_idct_put_12_c (uint16_t *out, ptrdiff_t linesize, int16_t *block, const int16_t *qmat)
 
av_cold int ff_proresdsp_init (ProresDSPContext *dsp, int bits_per_raw_sample)
 

Macro Definition Documentation

◆ CLIP_MIN

#define CLIP_MIN   (1 << 2)

minimum value for clipping resulting pixels

Definition at line 30 of file proresdsp.c.

◆ CLIP_MAX_10

#define CLIP_MAX_10   (1 << 10) - CLIP_MIN - 1

maximum value for clipping resulting pixels

Definition at line 31 of file proresdsp.c.

◆ CLIP_MAX_12

#define CLIP_MAX_12   (1 << 12) - CLIP_MIN - 1

maximum value for clipping resulting pixels

Definition at line 32 of file proresdsp.c.

◆ CLIP_10

#define CLIP_10 (   x)    (av_clip((x), CLIP_MIN, CLIP_MAX_10))

Definition at line 34 of file proresdsp.c.

◆ CLIP_12

#define CLIP_12 (   x)    (av_clip((x), CLIP_MIN, CLIP_MAX_12))

Definition at line 35 of file proresdsp.c.

Function Documentation

◆ put_pixel()

static void put_pixel ( uint16_t *  dst,
ptrdiff_t  linesize,
const int16_t *  in,
int  bits_per_raw_sample 
)
inlinestatic

Add bias value, clamp and output pixels of a slice.

Definition at line 41 of file proresdsp.c.

Referenced by gen_image(), put_pixels_10(), and put_pixels_12().

◆ put_pixels_10()

static void put_pixels_10 ( uint16_t *  dst,
ptrdiff_t  linesize,
const int16_t *  in 
)
static

Definition at line 57 of file proresdsp.c.

Referenced by prores_idct_put_10_c().

◆ put_pixels_12()

static void put_pixels_12 ( uint16_t *  dst,
ptrdiff_t  linesize,
const int16_t *  in 
)
static

Definition at line 62 of file proresdsp.c.

Referenced by prores_idct_put_12_c().

◆ prores_idct_put_10_c()

static void prores_idct_put_10_c ( uint16_t *  out,
ptrdiff_t  linesize,
int16_t *  block,
const int16_t *  qmat 
)
static

Definition at line 67 of file proresdsp.c.

Referenced by ff_proresdsp_init().

◆ prores_idct_put_12_c()

static void prores_idct_put_12_c ( uint16_t *  out,
ptrdiff_t  linesize,
int16_t *  block,
const int16_t *  qmat 
)
static

Definition at line 73 of file proresdsp.c.

Referenced by ff_proresdsp_init().

◆ ff_proresdsp_init()

av_cold int ff_proresdsp_init ( ProresDSPContext dsp,
int  bits_per_raw_sample 
)

Definition at line 79 of file proresdsp.c.

Referenced by decode_init().