proresdsp.c File Reference
#include "dct.h"
#include "dsputil.h"
#include "proresdsp.h"
#include "simple_idct.h"
#include "libavutil/common.h"
Include dependency graph for proresdsp.c:

Go to the source code of this file.

Macros

#define BIAS   (1 << (PRORES_BITS_PER_SAMPLE - 1))
 bias value for converting signed pixels into unsigned ones More...
 
#define CLIP_MIN   (1 << (PRORES_BITS_PER_SAMPLE - 8))
 minimum value for clipping resulting pixels More...
 
#define CLIP_MAX   (1 << PRORES_BITS_PER_SAMPLE) - CLIP_MIN - 1
 maximum value for clipping resulting pixels More...
 
#define CLIP_AND_BIAS(x)   (av_clip((x) + BIAS, CLIP_MIN, CLIP_MAX))
 

Functions

void ff_proresdsp_init (ProresDSPContext *dsp, AVCodecContext *avctx)
 

Macro Definition Documentation

#define BIAS   (1 << (PRORES_BITS_PER_SAMPLE - 1))

bias value for converting signed pixels into unsigned ones

Definition at line 29 of file proresdsp.c.

#define CLIP_AND_BIAS (   x)    (av_clip((x) + BIAS, CLIP_MIN, CLIP_MAX))

Definition at line 33 of file proresdsp.c.

#define CLIP_MAX   (1 << PRORES_BITS_PER_SAMPLE) - CLIP_MIN - 1

maximum value for clipping resulting pixels

Definition at line 31 of file proresdsp.c.

#define CLIP_MIN   (1 << (PRORES_BITS_PER_SAMPLE - 8))

minimum value for clipping resulting pixels

Definition at line 30 of file proresdsp.c.

Function Documentation

void ff_proresdsp_init ( ProresDSPContext dsp,
AVCodecContext avctx 
)

Definition at line 74 of file proresdsp.c.

Referenced by decode_init(), and encode_init().