29#define OFFSET(x) offsetof(AVDCT,x)
32#define V AV_OPT_FLAG_VIDEO_PARAM
33#define A AV_OPT_FLAG_AUDIO_PARAM
34#define E AV_OPT_FLAG_ENCODING_PARAM
35#define D AV_OPT_FLAG_DECODING_PARAM
44{
"faan",
"floating point AAN DCT (experimental / for debugging)", 0,
AV_OPT_TYPE_CONST, {.i64 =
FF_DCT_FAAN }, INT_MIN, INT_MAX,
V|
E, .unit =
"dct"},
67 .class_name =
"AVDCT",
101#define COPY(src, name) memcpy(&dsp->name, &src.name, sizeof(dsp->name))
108 COPY(idsp, idct_permutation);
120#if CONFIG_PIXBLOCKDSP
124 COPY(pdsp, get_pixels);
125 COPY(pdsp, get_pixels_unaligned);
Libavcodec external API header.
#define FF_IDCT_SIMPLEMMX
#define FF_IDCT_SIMPLEARM
#define FF_IDCT_SIMPLEARMV6
#define FF_IDCT_SIMPLEARMV5TE
#define FF_IDCT_SIMPLEAUTO
#define FF_IDCT_SIMPLENEON
static const AVOption avdct_options[]
av_cold AVDCT * avcodec_dct_alloc(void)
Allocates a AVDCT context.
av_cold const AVClass * avcodec_dct_get_class(void)
av_cold int avcodec_dct_init(AVDCT *dsp)
static const AVClass avdct_class
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
@ AV_OPT_TYPE_INT
Underlying C type is int.
AVCodecContext * avcodec_alloc_context3(const AVCodec *codec)
Allocate an AVCodecContext and set its fields to default values.
void avcodec_free_context(AVCodecContext **avctx)
Free the codec context and everything associated with it and write NULL to the provided pointer.
#define LIBAVUTIL_VERSION_INT
void av_opt_set_defaults(void *s)
Set the values of all AVOption fields to their default values.
static void idct(int16_t block[64])
av_cold void ff_fdctdsp_init(FDCTDSPContext *c, AVCodecContext *avctx)
av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx)
av_cold void ff_pixblockdsp_init(PixblockDSPContext *c, int bits_per_raw_sample)
Macro definitions for various function/variable attributes.
Memory handling functions.
Describe the class of an AVClass context structure.
main external API structure.
int dct_algo
DCT algorithm, see FF_DCT_* below.
int bits_per_raw_sample
Bits per sample/pixel of internal libavcodec pixel/sample format.
int idct_algo
IDCT algorithm, see FF_IDCT_* below.
int idct_algo
IDCT algorithm.
int dct_algo
DCT algorithm.