FFmpeg
|
#include <math.h>
#include <string.h>
#include "libavutil/error.h"
#include "libavutil/mathematics.h"
#include "libavutil/mem.h"
#include "dct.h"
#include "dct32.h"
Go to the source code of this file.
Macros | |
#define | SIN(s, n, x) (s->costab[(n) - (x)]) |
#define | COS(s, n, x) (s->costab[x]) |
Functions | |
static void | dst_calc_I_c (DCTContext *ctx, FFTSample *data) |
static void | dct_calc_I_c (DCTContext *ctx, FFTSample *data) |
static void | dct_calc_III_c (DCTContext *ctx, FFTSample *data) |
static void | dct_calc_II_c (DCTContext *ctx, FFTSample *data) |
static void | dct32_func (DCTContext *ctx, FFTSample *data) |
av_cold int | ff_dct_init (DCTContext *s, int nbits, enum DCTTransformType inverse) |
Set up DCT. More... | |
av_cold void | ff_dct_end (DCTContext *s) |
(Inverse) Discrete Cosine Transforms. These are also known as the type II and type III DCTs respectively.
Definition in file dct.c.
|
static |
Definition at line 45 of file dct.c.
Referenced by ff_dct_init().
|
static |
Definition at line 75 of file dct.c.
Referenced by ff_dct_init().
|
static |
Definition at line 105 of file dct.c.
Referenced by ff_dct_init().
|
static |
Definition at line 138 of file dct.c.
Referenced by ff_dct_init().
|
static |
Definition at line 174 of file dct.c.
Referenced by ff_dct_init().
av_cold int ff_dct_init | ( | DCTContext * | s, |
int | nbits, | ||
enum DCTTransformType | type | ||
) |
Set up DCT.
nbits | size of the input array: (1 << nbits) for DCT-II, DCT-III and DST-I (1 << nbits) + 1 for DCT-I |
Definition at line 179 of file dct.c.
Referenced by decode_init(), ff_mpadsp_init(), and wmavoice_decode_init().
av_cold void ff_dct_end | ( | DCTContext * | s | ) |
Definition at line 224 of file dct.c.
Referenced by decode_end(), and wmavoice_decode_end().