Commit fe4bf374 authored by Stefano Sabatini's avatar Stefano Sabatini
Browse files

Make AVCodec long_names definition conditional depending on CONFIG_SMALL.

Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent d18811bb
......@@ -836,6 +836,6 @@ AVCodec fourxm_decoder = {
decode_end,
decode_frame,
/*CODEC_CAP_DR1,*/
.long_name = "4X Movie",
.long_name = NULL_IF_CONFIG_SMALL("4X Movie"),
};
......@@ -230,5 +230,5 @@ AVCodec eightbps_decoder = {
decode_end,
decode_frame,
CODEC_CAP_DR1,
.long_name = "QuickTime 8BPS video",
.long_name = NULL_IF_CONFIG_SMALL("QuickTime 8BPS video"),
};
......@@ -96,7 +96,7 @@ AVCodec eightsvx_fib_decoder = {
.priv_data_size = sizeof (EightSvxContext),
.init = eightsvx_decode_init,
.decode = eightsvx_decode_frame,
.long_name = "8SVX fibonacci",
.long_name = NULL_IF_CONFIG_SMALL("8SVX fibonacci"),
};
AVCodec eightsvx_exp_decoder = {
......@@ -106,5 +106,5 @@ AVCodec eightsvx_exp_decoder = {
.priv_data_size = sizeof (EightSvxContext),
.init = eightsvx_decode_init,
.decode = eightsvx_decode_frame,
.long_name = "8SVX exponential",
.long_name = NULL_IF_CONFIG_SMALL("8SVX exponential"),
};
......@@ -171,5 +171,5 @@ AVCodec aasc_decoder = {
aasc_decode_end,
aasc_decode_frame,
CODEC_CAP_DR1,
.long_name = "Autodesk RLE",
.long_name = NULL_IF_CONFIG_SMALL("Autodesk RLE"),
};
......@@ -1198,5 +1198,5 @@ AVCodec ac3_decoder = {
.init = ac3_decode_init,
.close = ac3_decode_end,
.decode = ac3_decode_frame,
.long_name = "ATSC A/52 / AC-3",
.long_name = NULL_IF_CONFIG_SMALL("ATSC A/52 / AC-3"),
};
......@@ -1364,5 +1364,5 @@ AVCodec ac3_encoder = {
AC3_encode_frame,
AC3_encode_close,
NULL,
.long_name = "ATSC A/52 / AC-3",
.long_name = NULL_IF_CONFIG_SMALL("ATSC A/52 / AC-3"),
};
......@@ -1610,7 +1610,7 @@ AVCodec name ## _encoder = { \
adpcm_encode_frame, \
adpcm_encode_close, \
NULL, \
.long_name = long_name_, \
.long_name = NULL_IF_CONFIG_SMALL(long_name_), \
};
#else
#define ADPCM_ENCODER(id,name,long_name_)
......@@ -1627,7 +1627,7 @@ AVCodec name ## _decoder = { \
NULL, \
NULL, \
adpcm_decode_frame, \
.long_name = long_name_, \
.long_name = NULL_IF_CONFIG_SMALL(long_name_), \
};
#else
#define ADPCM_DECODER(id,name,long_name_)
......
......@@ -165,6 +165,6 @@ AVCodec adpcm_adx_decoder = {
NULL,
NULL,
adx_decode_frame,
.long_name = "SEGA CRI ADX",
.long_name = NULL_IF_CONFIG_SMALL("SEGA CRI ADX"),
};
......@@ -190,5 +190,5 @@ AVCodec adpcm_adx_encoder = {
adx_encode_frame,
adx_encode_close,
NULL,
.long_name = "SEGA CRI ADX",
.long_name = NULL_IF_CONFIG_SMALL("SEGA CRI ADX"),
};
......@@ -620,5 +620,5 @@ AVCodec alac_decoder = {
NULL,
alac_decode_close,
alac_decode_frame,
.long_name = "ALAC (Apple Lossless Audio Codec)",
.long_name = NULL_IF_CONFIG_SMALL("ALAC (Apple Lossless Audio Codec)"),
};
......@@ -917,5 +917,5 @@ AVCodec ape_decoder = {
NULL,
ape_decode_close,
ape_decode_frame,
.long_name = "Monkey's Audio",
.long_name = NULL_IF_CONFIG_SMALL("Monkey's Audio"),
};
......@@ -615,7 +615,7 @@ AVCodec asv1_decoder = {
decode_end,
decode_frame,
CODEC_CAP_DR1,
.long_name= "ASUS V1",
.long_name= NULL_IF_CONFIG_SMALL("ASUS V1"),
};
AVCodec asv2_decoder = {
......@@ -628,7 +628,7 @@ AVCodec asv2_decoder = {
decode_end,
decode_frame,
CODEC_CAP_DR1,
.long_name= "ASUS V2",
.long_name= NULL_IF_CONFIG_SMALL("ASUS V2"),
};
#ifdef CONFIG_ENCODERS
......@@ -642,7 +642,7 @@ AVCodec asv1_encoder = {
encode_frame,
//encode_end,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= "ASUS V1",
.long_name= NULL_IF_CONFIG_SMALL("ASUS V1"),
};
AVCodec asv2_encoder = {
......@@ -654,7 +654,7 @@ AVCodec asv2_encoder = {
encode_frame,
//encode_end,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
.long_name= "ASUS V2",
.long_name= NULL_IF_CONFIG_SMALL("ASUS V2"),
};
#endif //CONFIG_ENCODERS
......@@ -1071,5 +1071,5 @@ AVCodec atrac3_decoder =
.init = atrac3_decode_init,
.close = atrac3_decode_close,
.decode = atrac3_decode_frame,
.long_name = "Atrac 3 (Adaptive TRansform Acoustic Coding 3)",
.long_name = NULL_IF_CONFIG_SMALL("Atrac 3 (Adaptive TRansform Acoustic Coding 3)"),
};
......@@ -2245,7 +2245,11 @@ typedef struct AVCodec {
void (*flush)(AVCodecContext *);
const AVRational *supported_framerates; ///< array of supported framerates, or NULL if any, array is terminated by {0,0}
const enum PixelFormat *pix_fmts; ///< array of supported pixel formats, or NULL if unknown, array is terminated by -1
const char *long_name; ///< descriptive name for the codec, meant to be more human readable than \p name
/**
* Descriptive name for the codec, meant to be more human readable than \p name.
* You \e should use the NULL_IF_CONFIG_SMALL() macro to define it.
*/
const char *long_name;
const int *supported_samplerates; ///< array of supported audio samplerates, or NULL if unknown, array is terminated by 0
} AVCodec;
......
......@@ -158,5 +158,5 @@ AVCodec avs_decoder = {
NULL,
avs_decode_frame,
CODEC_CAP_DR1,
.long_name = "AVS (Audio Video Standard) video",
.long_name = NULL_IF_CONFIG_SMALL("AVS (Audio Video Standard) video"),
};
......@@ -136,5 +136,5 @@ AVCodec bethsoftvid_decoder = {
.init = bethsoftvid_decode_init,
.close = bethsoftvid_decode_end,
.decode = bethsoftvid_decode_frame,
.long_name = "Bethesda VID video",
.long_name = NULL_IF_CONFIG_SMALL("Bethesda VID video"),
};
......@@ -178,5 +178,5 @@ AVCodec bfi_decoder = {
.init = bfi_decode_init,
.close = bfi_decode_close,
.decode = bfi_decode_frame,
.long_name = "Brute Force & Ignorance",
.long_name = NULL_IF_CONFIG_SMALL("Brute Force & Ignorance"),
};
......@@ -258,5 +258,5 @@ AVCodec bmp_decoder = {
NULL,
bmp_decode_end,
bmp_decode_frame,
.long_name = "BMP image",
.long_name = NULL_IF_CONFIG_SMALL("BMP image"),
};
......@@ -95,5 +95,5 @@ AVCodec bmp_encoder = {
bmp_encode_frame,
NULL, //encode_end,
.pix_fmts= (enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
.long_name = "BMP image",
.long_name = NULL_IF_CONFIG_SMALL("BMP image"),
};
......@@ -250,5 +250,5 @@ AVCodec c93_decoder = {
decode_end,
decode_frame,
CODEC_CAP_DR1,
.long_name = "Interplay C93",
.long_name = NULL_IF_CONFIG_SMALL("Interplay C93"),
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment