FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
avdct.c File Reference
#include "avcodec.h"
#include "idctdsp.h"
#include "fdctdsp.h"
#include "pixblockdsp.h"
#include "avdct.h"

Go to the source code of this file.

Macros

#define OFFSET(x)   offsetof(AVDCT,x)
 
#define DEFAULT   0
 
#define V   AV_OPT_FLAG_VIDEO_PARAM
 
#define A   AV_OPT_FLAG_AUDIO_PARAM
 
#define E   AV_OPT_FLAG_ENCODING_PARAM
 
#define D   AV_OPT_FLAG_DECODING_PARAM
 
#define COPY(src, name)   memcpy(&dsp->name, &src.name, sizeof(dsp->name))
 

Functions

const AVClassavcodec_dct_get_class (void)
 
AVDCTavcodec_dct_alloc (void)
 Allocates a AVDCT context. More...
 
int avcodec_dct_init (AVDCT *dsp)
 

Variables

static const AVOption avdct_options []
 
static const AVClass avdct_class
 

Macro Definition Documentation

#define OFFSET (   x)    offsetof(AVDCT,x)

Definition at line 27 of file avdct.c.

#define DEFAULT   0

Definition at line 28 of file avdct.c.

Referenced by nvenc_map_preset(), and show_stream().

#define V   AV_OPT_FLAG_VIDEO_PARAM
#define A   AV_OPT_FLAG_AUDIO_PARAM

Definition at line 31 of file avdct.c.

Definition at line 33 of file avdct.c.

#define COPY (   src,
  name 
)    memcpy(&dsp->name, &src.name, sizeof(dsp->name))

Referenced by avcodec_dct_init().

Function Documentation

const AVClass* avcodec_dct_get_class ( void  )

Definition at line 70 of file avdct.c.

Referenced by child_class_next().

AVDCT* avcodec_dct_alloc ( void  )

Allocates a AVDCT context.

This needs to be initialized with avcodec_dct_init() after optionally configuring it with AVOptions.

To free it use av_free()

Definition at line 75 of file avdct.c.

Referenced by init_dict().

int avcodec_dct_init ( AVDCT dsp)

Definition at line 88 of file avdct.c.

Referenced by config_input().

Variable Documentation

const AVOption avdct_options[]
static
Initial value:
= {
{"dct", "DCT algorithm", OFFSET(dct_algo), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, 0, INT_MAX, V|E, "dct"},
{"auto", "autoselect a good one", 0, AV_OPT_TYPE_CONST, {.i64 = FF_DCT_AUTO }, INT_MIN, INT_MAX, V|E, "dct"},
{"fastint", "fast integer (experimental / for debugging)", 0, AV_OPT_TYPE_CONST, {.i64 = FF_DCT_FASTINT }, INT_MIN, INT_MAX, V|E, "dct"},
{"int", "accurate integer", 0, AV_OPT_TYPE_CONST, {.i64 = FF_DCT_INT }, INT_MIN, INT_MAX, V|E, "dct"},
{"mmx", "experimental / for debugging", 0, AV_OPT_TYPE_CONST, {.i64 = FF_DCT_MMX }, INT_MIN, INT_MAX, V|E, "dct"},
{"altivec", "experimental / for debugging", 0, AV_OPT_TYPE_CONST, {.i64 = FF_DCT_ALTIVEC }, INT_MIN, INT_MAX, V|E, "dct"},
{"faan", "floating point AAN DCT (experimental / for debugging)", 0, AV_OPT_TYPE_CONST, {.i64 = FF_DCT_FAAN }, INT_MIN, INT_MAX, V|E, "dct"},
{"idct", "select IDCT implementation", OFFSET(idct_algo), AV_OPT_TYPE_INT, {.i64 = DEFAULT }, 0, INT_MAX, V|E|D, "idct"},
{"auto", "autoselect a good one", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_AUTO }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"int", "experimental / for debugging", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_INT }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"simple", "experimental / for debugging", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_SIMPLE }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"simplemmx", "experimental / for debugging", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_SIMPLEMMX }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"arm", "experimental / for debugging", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_ARM }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"altivec", "experimental / for debugging", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_ALTIVEC }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"simplearm", "experimental / for debugging", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_SIMPLEARM }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"simplearmv5te", "experimental / for debugging", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_SIMPLEARMV5TE }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"simplearmv6", "experimental / for debugging", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_SIMPLEARMV6 }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"simpleneon", "experimental / for debugging", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_SIMPLENEON }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"xvid", "experimental / for debugging", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_XVID }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"xvidmmx", "experimental / for debugging", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_XVID }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"faani", "floating point AAN IDCT (experimental / for debugging)", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_FAAN }, INT_MIN, INT_MAX, V|D|E, "idct"},
{"simpleauto", "experimental / for debugging", 0, AV_OPT_TYPE_CONST, {.i64 = FF_IDCT_SIMPLEAUTO }, INT_MIN, INT_MAX, V|E|D, "idct"},
{"bits_per_sample", "", OFFSET(bits_per_sample), AV_OPT_TYPE_INT, {.i64 = 8 }, 0, 14, 0,},
{NULL},
}
#define FF_IDCT_SIMPLEARMV5TE
Definition: avcodec.h:2722
#define NULL
Definition: coverity.c:32
#define FF_DCT_INT
Definition: avcodec.h:2703
#define FF_IDCT_SIMPLE
Definition: avcodec.h:2716
#define FF_IDCT_ALTIVEC
Definition: avcodec.h:2719
#define FF_DCT_FAAN
Definition: avcodec.h:2706
#define DEFAULT
Definition: avdct.c:28
#define D
Definition: avdct.c:33
#define FF_IDCT_INT
Definition: avcodec.h:2715
#define FF_IDCT_ARM
Definition: avcodec.h:2718
#define FF_IDCT_AUTO
Definition: avcodec.h:2714
#define FF_IDCT_SIMPLEARM
Definition: avcodec.h:2720
#define FF_IDCT_SIMPLEAUTO
Definition: avcodec.h:2727
#define FF_DCT_MMX
Definition: avcodec.h:2704
#define FF_IDCT_XVID
Definition: avcodec.h:2721
#define E
Definition: avdct.c:32
#define FF_DCT_ALTIVEC
Definition: avcodec.h:2705
#define FF_IDCT_SIMPLEARMV6
Definition: avcodec.h:2723
#define FF_IDCT_SIMPLENEON
Definition: avcodec.h:2725
#define OFFSET(x)
Definition: avdct.c:27
#define FF_IDCT_FAAN
Definition: avcodec.h:2724
#define FF_IDCT_SIMPLEMMX
Definition: avcodec.h:2717
#define FF_DCT_FASTINT
Definition: avcodec.h:2702
#define FF_DCT_AUTO
Definition: avcodec.h:2701
#define V
Definition: avdct.c:30

Definition at line 35 of file avdct.c.

const AVClass avdct_class
static
Initial value:
= {
.class_name = "AVDCT",
.option = avdct_options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
static const AVOption avdct_options[]
Definition: avdct.c:35

Definition at line 64 of file avdct.c.

Referenced by avcodec_dct_alloc(), and avcodec_dct_get_class().