FFmpeg
|
simpleidct in C. More...
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "mathops.h"
#include "simple_idct.h"
#include "simple_idct_template.c"
Go to the source code of this file.
Macros | |
#define | BIT_DEPTH 8 |
#define | BIT_DEPTH 10 |
#define | EXTRA_SHIFT 2 |
#define | BIT_DEPTH 12 |
#define | CN_SHIFT 12 |
#define | C_FIX(x) ((int)((x) * (1 << CN_SHIFT) + 0.5)) |
#define | C1 C_FIX(0.6532814824) |
#define | C2 C_FIX(0.2705980501) |
#define | C_SHIFT (4+1+12) |
#define | BF(k) |
#define | CN_SHIFT 12 |
#define | C_FIX(x) ((int)((x) * M_SQRT2 * (1 << CN_SHIFT) + 0.5)) |
#define | C1 C_FIX(0.6532814824) |
#define | C2 C_FIX(0.2705980501) |
#define | C3 C_FIX(0.5) |
#define | C_SHIFT (4+1+12) |
#define | RN_SHIFT 15 |
#define | R_FIX(x) ((int)((x) * M_SQRT2 * (1 << RN_SHIFT) + 0.5)) |
#define | R1 R_FIX(0.6532814824) |
#define | R2 R_FIX(0.2705980501) |
#define | R3 R_FIX(0.5) |
#define | R_SHIFT 11 |
Functions | |
static void | idct4col_put (uint8_t *dest, int line_size, const int16_t *col) |
void | ff_simple_idct248_put (uint8_t *dest, int line_size, int16_t *block) |
static void | idct4col_add (uint8_t *dest, int line_size, const int16_t *col) |
static void | idct4row (int16_t *row) |
void | ff_simple_idct84_add (uint8_t *dest, int line_size, int16_t *block) |
void | ff_simple_idct48_add (uint8_t *dest, int line_size, int16_t *block) |
void | ff_simple_idct44_add (uint8_t *dest, int line_size, int16_t *block) |
void | ff_prores_idct (int16_t *block, const int16_t *qmat) |
Special version of ff_simple_idct_10() which does dequantization and scales by a factor of 2 more between the two IDCTs to account for larger scale of input coefficients. More... | |
simpleidct in C.
Definition in file simple_idct.c.
#define BIT_DEPTH 8 |
Definition at line 46 of file simple_idct.c.
#define BIT_DEPTH 10 |
Definition at line 46 of file simple_idct.c.
#define EXTRA_SHIFT 2 |
Definition at line 40 of file simple_idct.c.
#define BIT_DEPTH 12 |
Definition at line 46 of file simple_idct.c.
#define CN_SHIFT 12 |
Definition at line 134 of file simple_idct.c.
Referenced by idct4col_put().
#define C_FIX | ( | x | ) | ((int)((x) * (1 << CN_SHIFT) + 0.5)) |
Definition at line 135 of file simple_idct.c.
#define C1 C_FIX(0.6532814824) |
Definition at line 136 of file simple_idct.c.
Referenced by idct4col_add(), and idct4col_put().
#define C2 C_FIX(0.2705980501) |
Definition at line 137 of file simple_idct.c.
Referenced by idct4col_add(), and idct4col_put().
#define C_SHIFT (4+1+12) |
Definition at line 139 of file simple_idct.c.
Referenced by idct4col_add(), and idct4col_put().
#define BF | ( | k | ) |
Definition at line 82 of file simple_idct.c.
Referenced by ff_simple_idct248_put().
#define CN_SHIFT 12 |
Definition at line 134 of file simple_idct.c.
Definition at line 135 of file simple_idct.c.
#define C1 C_FIX(0.6532814824) |
Definition at line 136 of file simple_idct.c.
#define C2 C_FIX(0.2705980501) |
Definition at line 137 of file simple_idct.c.
#define C3 C_FIX(0.5) |
Definition at line 138 of file simple_idct.c.
Referenced by idct4col_add().
#define C_SHIFT (4+1+12) |
Definition at line 139 of file simple_idct.c.
#define RN_SHIFT 15 |
Definition at line 161 of file simple_idct.c.
Definition at line 162 of file simple_idct.c.
#define R1 R_FIX(0.6532814824) |
Definition at line 163 of file simple_idct.c.
Referenced by idct4row().
#define R2 R_FIX(0.2705980501) |
Definition at line 164 of file simple_idct.c.
Referenced by idct4row(), and wv_unpack_stereo().
#define R3 R_FIX(0.5) |
Definition at line 165 of file simple_idct.c.
Referenced by idct4row().
#define R_SHIFT 11 |
Definition at line 166 of file simple_idct.c.
Referenced by idct4row().
Definition at line 61 of file simple_idct.c.
Referenced by ff_simple_idct248_put().
Definition at line 97 of file simple_idct.c.
Referenced by dvvideo_decode_init(), and main().
Definition at line 140 of file simple_idct.c.
Referenced by ff_simple_idct44_add(), and ff_simple_idct84_add().
|
inlinestatic |
Definition at line 167 of file simple_idct.c.
Referenced by ff_simple_idct44_add(), and ff_simple_idct48_add().
Definition at line 185 of file simple_idct.c.
Referenced by ff_vc1_decode_sequence_header(), and wmv2_add_block().
Definition at line 200 of file simple_idct.c.
Referenced by ff_vc1_decode_sequence_header(), and wmv2_add_block().
Definition at line 215 of file simple_idct.c.
Referenced by ff_vc1_decode_sequence_header().
void ff_prores_idct | ( | int16_t * | block, |
const int16_t * | qmat | ||
) |
Special version of ff_simple_idct_10() which does dequantization and scales by a factor of 2 more between the two IDCTs to account for larger scale of input coefficients.
Definition at line 230 of file simple_idct.c.
Referenced by ff_prores_idct_wrap(), and prores_idct_put_c().