Go to the documentation of this file.
28 #define OFFSET(x) offsetof(AVDCT,x)
29 #define DEFAULT 0 //should be NAN but it does not work as it is not a constant in glibc as required by ANSI/ISO C
31 #define V AV_OPT_FLAG_VIDEO_PARAM
32 #define A AV_OPT_FLAG_AUDIO_PARAM
33 #define E AV_OPT_FLAG_ENCODING_PARAM
34 #define D AV_OPT_FLAG_DECODING_PARAM
43 {
"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"},
100 #define COPY(src, name) memcpy(&dsp->name, &src.name, sizeof(dsp->name))
107 COPY(idsp, idct_permutation);
119 #if CONFIG_PIXBLOCKDSP
123 COPY(pdsp, get_pixels);
124 COPY(pdsp, get_pixels_unaligned);
void av_opt_set_defaults(void *s)
Set the values of all AVOption fields to their default values.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
int dct_algo
DCT algorithm.
av_cold void ff_pixblockdsp_init(PixblockDSPContext *c, AVCodecContext *avctx)
static const AVOption avdct_options[]
av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx)
static const AVClass avdct_class
int dct_algo
DCT algorithm, see FF_DCT_* below.
static void idct(int16_t block[64])
#define FF_IDCT_SIMPLEAUTO
AVCodecContext * avcodec_alloc_context3(const AVCodec *codec)
Allocate an AVCodecContext and set its fields to default values.
int bits_per_raw_sample
Bits per sample/pixel of internal libavcodec pixel/sample format.
#define LIBAVUTIL_VERSION_INT
Describe the class of an AVClass context structure.
void avcodec_free_context(AVCodecContext **avctx)
Free the codec context and everything associated with it and write NULL to the provided pointer.
int avcodec_dct_init(AVDCT *dsp)
#define FF_IDCT_SIMPLEARM
AVDCT * avcodec_dct_alloc(void)
Allocates a AVDCT context.
#define FF_IDCT_SIMPLEARMV6
#define FF_IDCT_SIMPLENEON
av_cold void ff_fdctdsp_init(FDCTDSPContext *c, AVCodecContext *avctx)
const AVClass * avcodec_dct_get_class(void)
void * av_mallocz(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
int idct_algo
IDCT algorithm, see FF_IDCT_* below.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
main external API structure.
@ AV_OPT_TYPE_INT
Underlying C type is int.
#define FF_IDCT_SIMPLEARMV5TE
#define FF_IDCT_SIMPLEMMX
int idct_algo
IDCT algorithm.
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.