You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/codec: Reorder elements to make AVCodec smaller
Reordering max_lowres is an ABI break. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -214,12 +214,12 @@ typedef struct AVCodec {
|
|||||||
* see AV_CODEC_CAP_*
|
* see AV_CODEC_CAP_*
|
||||||
*/
|
*/
|
||||||
int capabilities;
|
int capabilities;
|
||||||
|
uint8_t max_lowres; ///< maximum value for lowres supported by the decoder
|
||||||
const AVRational *supported_framerates; ///< array of supported framerates, or NULL if any, array is terminated by {0,0}
|
const AVRational *supported_framerates; ///< array of supported framerates, or NULL if any, array is terminated by {0,0}
|
||||||
const enum AVPixelFormat *pix_fmts; ///< array of supported pixel formats, or NULL if unknown, array is terminated by -1
|
const enum AVPixelFormat *pix_fmts; ///< array of supported pixel formats, or NULL if unknown, array is terminated by -1
|
||||||
const int *supported_samplerates; ///< array of supported audio samplerates, or NULL if unknown, array is terminated by 0
|
const int *supported_samplerates; ///< array of supported audio samplerates, or NULL if unknown, array is terminated by 0
|
||||||
const enum AVSampleFormat *sample_fmts; ///< array of supported sample formats, or NULL if unknown, array is terminated by -1
|
const enum AVSampleFormat *sample_fmts; ///< array of supported sample formats, or NULL if unknown, array is terminated by -1
|
||||||
const uint64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0
|
const uint64_t *channel_layouts; ///< array of support channel layouts, or NULL if unknown. array is terminated by 0
|
||||||
uint8_t max_lowres; ///< maximum value for lowres supported by the decoder
|
|
||||||
const AVClass *priv_class; ///< AVClass for the private context
|
const AVClass *priv_class; ///< AVClass for the private context
|
||||||
const AVProfile *profiles; ///< array of recognized profiles, or NULL if unknown, array is terminated by {FF_PROFILE_UNKNOWN}
|
const AVProfile *profiles; ///< array of recognized profiles, or NULL if unknown, array is terminated by {FF_PROFILE_UNKNOWN}
|
||||||
|
|
||||||
@@ -242,6 +242,12 @@ typedef struct AVCodec {
|
|||||||
* New public fields should be added right above.
|
* New public fields should be added right above.
|
||||||
*****************************************************************
|
*****************************************************************
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
* Internal codec capabilities.
|
||||||
|
* See FF_CODEC_CAP_* in internal.h
|
||||||
|
*/
|
||||||
|
int caps_internal;
|
||||||
|
|
||||||
int priv_data_size;
|
int priv_data_size;
|
||||||
/**
|
/**
|
||||||
* @name Frame-level threading support functions
|
* @name Frame-level threading support functions
|
||||||
@@ -323,11 +329,6 @@ typedef struct AVCodec {
|
|||||||
* Will be called when seeking
|
* Will be called when seeking
|
||||||
*/
|
*/
|
||||||
void (*flush)(struct AVCodecContext *);
|
void (*flush)(struct AVCodecContext *);
|
||||||
/**
|
|
||||||
* Internal codec capabilities.
|
|
||||||
* See FF_CODEC_CAP_* in internal.h
|
|
||||||
*/
|
|
||||||
int caps_internal;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Decoding only, a comma-separated list of bitstream filters to apply to
|
* Decoding only, a comma-separated list of bitstream filters to apply to
|
||||||
|
Reference in New Issue
Block a user