mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Mark all pix_fmts and supported_framerates compound literals as const.
Makes no difference for gcc but at least icc can put them in .rodata then. Originally committed as revision 19789 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
af8aae3fa3
commit
2ba8301769
@ -645,7 +645,7 @@ AVCodec asv1_encoder = {
|
||||
encode_init,
|
||||
encode_frame,
|
||||
//encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("ASUS V1"),
|
||||
};
|
||||
#endif
|
||||
@ -659,7 +659,7 @@ AVCodec asv2_encoder = {
|
||||
encode_init,
|
||||
encode_frame,
|
||||
//encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("ASUS V2"),
|
||||
};
|
||||
#endif
|
||||
|
@ -139,7 +139,7 @@ AVCodec bmp_encoder = {
|
||||
bmp_encode_init,
|
||||
bmp_encode_frame,
|
||||
NULL, //encode_end,
|
||||
.pix_fmts = (enum PixelFormat[]){
|
||||
.pix_fmts = (const enum PixelFormat[]){
|
||||
PIX_FMT_BGR24,
|
||||
PIX_FMT_RGB555, PIX_FMT_RGB565,
|
||||
PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8,
|
||||
|
@ -804,6 +804,6 @@ AVCodec dnxhd_encoder = {
|
||||
dnxhd_encode_init,
|
||||
dnxhd_encode_picture,
|
||||
dnxhd_encode_end,
|
||||
.pix_fmts = (enum PixelFormat[]){PIX_FMT_YUV422P, PIX_FMT_NONE},
|
||||
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV422P, PIX_FMT_NONE},
|
||||
.long_name = NULL_IF_CONFIG_SMALL("VC3/DNxHD"),
|
||||
};
|
||||
|
@ -1324,7 +1324,7 @@ AVCodec dvvideo_encoder = {
|
||||
sizeof(DVVideoContext),
|
||||
dvvideo_init,
|
||||
dvvideo_encode_frame,
|
||||
.pix_fmts = (enum PixelFormat[]) {PIX_FMT_YUV411P, PIX_FMT_YUV422P, PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts = (const enum PixelFormat[]) {PIX_FMT_YUV411P, PIX_FMT_YUV422P, PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.long_name = NULL_IF_CONFIG_SMALL("DV (Digital Video)"),
|
||||
};
|
||||
#endif // CONFIG_DVVIDEO_ENCODER
|
||||
|
@ -1147,7 +1147,7 @@ AVCodec ffv1_encoder = {
|
||||
encode_init,
|
||||
encode_frame,
|
||||
common_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV444P, PIX_FMT_YUV422P, PIX_FMT_YUV411P, PIX_FMT_YUV410P, PIX_FMT_RGB32, PIX_FMT_YUV420P16, PIX_FMT_YUV422P16, PIX_FMT_YUV444P16, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV444P, PIX_FMT_YUV422P, PIX_FMT_YUV411P, PIX_FMT_YUV410P, PIX_FMT_RGB32, PIX_FMT_YUV420P16, PIX_FMT_YUV422P16, PIX_FMT_YUV444P16, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("FFmpeg video codec #1"),
|
||||
};
|
||||
#endif
|
||||
|
@ -256,6 +256,6 @@ AVCodec flashsv_decoder = {
|
||||
flashsv_decode_end,
|
||||
flashsv_decode_frame,
|
||||
CODEC_CAP_DR1,
|
||||
.pix_fmts = (enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
|
||||
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
|
||||
.long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video v1"),
|
||||
};
|
||||
|
@ -292,7 +292,7 @@ AVCodec flashsv_encoder = {
|
||||
flashsv_encode_init,
|
||||
flashsv_encode_frame,
|
||||
flashsv_encode_end,
|
||||
.pix_fmts = (enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
|
||||
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_NONE},
|
||||
.long_name = NULL_IF_CONFIG_SMALL("Flash Screen Video"),
|
||||
};
|
||||
|
||||
|
@ -174,6 +174,6 @@ AVCodec gif_encoder = {
|
||||
gif_encode_init,
|
||||
gif_encode_frame,
|
||||
NULL, //encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("GIF (Graphics Interchange Format)"),
|
||||
};
|
||||
|
@ -328,7 +328,7 @@ AVCodec h261_encoder = {
|
||||
MPV_encode_init,
|
||||
MPV_encode_picture,
|
||||
MPV_encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("H.261"),
|
||||
};
|
||||
|
||||
|
@ -1487,7 +1487,7 @@ AVCodec huffyuv_encoder = {
|
||||
encode_init,
|
||||
encode_frame,
|
||||
encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV422P, PIX_FMT_RGB32, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV422P, PIX_FMT_RGB32, PIX_FMT_NONE},
|
||||
.long_name = NULL_IF_CONFIG_SMALL("Huffyuv / HuffYUV"),
|
||||
};
|
||||
#endif
|
||||
@ -1501,7 +1501,7 @@ AVCodec ffvhuff_encoder = {
|
||||
encode_init,
|
||||
encode_frame,
|
||||
encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_RGB32, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_RGB32, PIX_FMT_NONE},
|
||||
.long_name = NULL_IF_CONFIG_SMALL("Huffyuv FFmpeg variant"),
|
||||
};
|
||||
#endif
|
||||
|
@ -390,6 +390,6 @@ AVCodec jpegls_encoder = { //FIXME avoid MPV_* lossless JPEG should not need the
|
||||
encode_init_ls,
|
||||
encode_picture_ls,
|
||||
NULL,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_RGB24, PIX_FMT_GRAY8, PIX_FMT_GRAY16, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_RGB24, PIX_FMT_GRAY8, PIX_FMT_GRAY16, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("JPEG-LS"),
|
||||
};
|
||||
|
@ -400,6 +400,6 @@ AVCodec libdirac_encoder = {
|
||||
libdirac_encode_frame,
|
||||
libdirac_encode_close,
|
||||
.capabilities = CODEC_CAP_DELAY,
|
||||
.pix_fmts = (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_NONE},
|
||||
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_NONE},
|
||||
.long_name = NULL_IF_CONFIG_SMALL("libdirac Dirac 2.2"),
|
||||
};
|
||||
|
@ -414,6 +414,6 @@ AVCodec libschroedinger_encoder = {
|
||||
libschroedinger_encode_frame,
|
||||
libschroedinger_encode_close,
|
||||
.capabilities = CODEC_CAP_DELAY,
|
||||
.pix_fmts = (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_NONE},
|
||||
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_NONE},
|
||||
.long_name = NULL_IF_CONFIG_SMALL("libschroedinger Dirac 2.2"),
|
||||
};
|
||||
|
@ -320,6 +320,6 @@ AVCodec libx264_encoder = {
|
||||
.encode = X264_frame,
|
||||
.close = X264_close,
|
||||
.capabilities = CODEC_CAP_DELAY,
|
||||
.pix_fmts = (enum PixelFormat[]) { PIX_FMT_YUV420P, PIX_FMT_NONE },
|
||||
.pix_fmts = (const enum PixelFormat[]) { PIX_FMT_YUV420P, PIX_FMT_NONE },
|
||||
.long_name = NULL_IF_CONFIG_SMALL("libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"),
|
||||
};
|
||||
|
@ -775,6 +775,6 @@ AVCodec libxvid_encoder = {
|
||||
ff_xvid_encode_init,
|
||||
ff_xvid_encode_frame,
|
||||
ff_xvid_encode_close,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("libxvidcore MPEG-4 part 2"),
|
||||
};
|
||||
|
@ -454,6 +454,6 @@ AVCodec mjpeg_encoder = {
|
||||
MPV_encode_init,
|
||||
MPV_encode_picture,
|
||||
MPV_encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUVJ420P, PIX_FMT_YUVJ422P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUVJ420P, PIX_FMT_YUVJ422P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("MJPEG (Motion JPEG)"),
|
||||
};
|
||||
|
@ -934,7 +934,7 @@ AVCodec mpeg1video_encoder = {
|
||||
MPV_encode_picture,
|
||||
MPV_encode_end,
|
||||
.supported_framerates= ff_frame_rate_tab+1,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.capabilities= CODEC_CAP_DELAY,
|
||||
.long_name= NULL_IF_CONFIG_SMALL("MPEG-1 video"),
|
||||
};
|
||||
@ -948,7 +948,7 @@ AVCodec mpeg2video_encoder = {
|
||||
MPV_encode_picture,
|
||||
MPV_encode_end,
|
||||
.supported_framerates= ff_frame_rate_tab+1,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_NONE},
|
||||
.capabilities= CODEC_CAP_DELAY,
|
||||
.long_name= NULL_IF_CONFIG_SMALL("MPEG-2 video"),
|
||||
};
|
||||
|
@ -3730,7 +3730,7 @@ AVCodec h263_encoder = {
|
||||
MPV_encode_init,
|
||||
MPV_encode_picture,
|
||||
MPV_encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("H.263 / H.263-1996"),
|
||||
};
|
||||
|
||||
@ -3742,7 +3742,7 @@ AVCodec h263p_encoder = {
|
||||
MPV_encode_init,
|
||||
MPV_encode_picture,
|
||||
MPV_encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("H.263+ / H.263-1998 / H.263 version 2"),
|
||||
};
|
||||
|
||||
@ -3754,7 +3754,7 @@ AVCodec flv_encoder = {
|
||||
MPV_encode_init,
|
||||
MPV_encode_picture,
|
||||
MPV_encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("Flash Video (FLV)"),
|
||||
};
|
||||
|
||||
@ -3766,7 +3766,7 @@ AVCodec mpeg4_encoder = {
|
||||
MPV_encode_init,
|
||||
MPV_encode_picture,
|
||||
MPV_encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.capabilities= CODEC_CAP_DELAY,
|
||||
.long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2"),
|
||||
};
|
||||
@ -3779,7 +3779,7 @@ AVCodec msmpeg4v1_encoder = {
|
||||
MPV_encode_init,
|
||||
MPV_encode_picture,
|
||||
MPV_encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2 Microsoft variant version 1"),
|
||||
};
|
||||
|
||||
@ -3791,7 +3791,7 @@ AVCodec msmpeg4v2_encoder = {
|
||||
MPV_encode_init,
|
||||
MPV_encode_picture,
|
||||
MPV_encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2 Microsoft variant version 2"),
|
||||
};
|
||||
|
||||
@ -3803,7 +3803,7 @@ AVCodec msmpeg4v3_encoder = {
|
||||
MPV_encode_init,
|
||||
MPV_encode_picture,
|
||||
MPV_encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("MPEG-4 part 2 Microsoft variant version 3"),
|
||||
};
|
||||
|
||||
@ -3815,6 +3815,6 @@ AVCodec wmv1_encoder = {
|
||||
MPV_encode_init,
|
||||
MPV_encode_picture,
|
||||
MPV_encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("Windows Media Video 7"),
|
||||
};
|
||||
|
@ -197,7 +197,7 @@ AVCodec pcx_encoder = {
|
||||
pcx_encode_init,
|
||||
pcx_encode_frame,
|
||||
NULL,
|
||||
.pix_fmts = (enum PixelFormat[]){
|
||||
.pix_fmts = (const enum PixelFormat[]){
|
||||
PIX_FMT_RGB24,
|
||||
PIX_FMT_RGB8, PIX_FMT_BGR8, PIX_FMT_RGB4_BYTE, PIX_FMT_BGR4_BYTE, PIX_FMT_GRAY8, PIX_FMT_PAL8,
|
||||
PIX_FMT_MONOBLACK,
|
||||
|
@ -444,6 +444,6 @@ AVCodec png_encoder = {
|
||||
png_enc_init,
|
||||
encode_frame,
|
||||
NULL, //encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB32, PIX_FMT_PAL8, PIX_FMT_GRAY8, PIX_FMT_MONOBLACK, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB32, PIX_FMT_PAL8, PIX_FMT_GRAY8, PIX_FMT_MONOBLACK, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("PNG image"),
|
||||
};
|
||||
|
@ -374,7 +374,7 @@ AVCodec pgm_decoder = {
|
||||
NULL,
|
||||
pnm_decode_frame,
|
||||
CODEC_CAP_DR1,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_GRAY8, PIX_FMT_GRAY16BE, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_GRAY8, PIX_FMT_GRAY16BE, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("PGM (Portable GrayMap) image"),
|
||||
};
|
||||
#endif
|
||||
@ -387,7 +387,7 @@ AVCodec pgm_encoder = {
|
||||
sizeof(PNMContext),
|
||||
common_init,
|
||||
pnm_encode_frame,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_GRAY8, PIX_FMT_GRAY16BE, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_GRAY8, PIX_FMT_GRAY16BE, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("PGM (Portable GrayMap) image"),
|
||||
};
|
||||
#endif // CONFIG_PGM_ENCODER
|
||||
@ -403,7 +403,7 @@ AVCodec pgmyuv_decoder = {
|
||||
NULL,
|
||||
pnm_decode_frame,
|
||||
CODEC_CAP_DR1,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("PGMYUV (Portable GrayMap YUV) image"),
|
||||
};
|
||||
#endif
|
||||
@ -416,7 +416,7 @@ AVCodec pgmyuv_encoder = {
|
||||
sizeof(PNMContext),
|
||||
common_init,
|
||||
pnm_encode_frame,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("PGMYUV (Portable GrayMap YUV) image"),
|
||||
};
|
||||
#endif // CONFIG_PGMYUV_ENCODER
|
||||
@ -432,7 +432,7 @@ AVCodec ppm_decoder = {
|
||||
NULL,
|
||||
pnm_decode_frame,
|
||||
CODEC_CAP_DR1,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB48BE, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB48BE, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("PPM (Portable PixelMap) image"),
|
||||
};
|
||||
#endif
|
||||
@ -445,7 +445,7 @@ AVCodec ppm_encoder = {
|
||||
sizeof(PNMContext),
|
||||
common_init,
|
||||
pnm_encode_frame,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB48BE, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB48BE, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("PPM (Portable PixelMap) image"),
|
||||
};
|
||||
#endif // CONFIG_PPM_ENCODER
|
||||
@ -461,7 +461,7 @@ AVCodec pbm_decoder = {
|
||||
NULL,
|
||||
pnm_decode_frame,
|
||||
CODEC_CAP_DR1,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_MONOWHITE, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_MONOWHITE, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("PBM (Portable BitMap) image"),
|
||||
};
|
||||
#endif
|
||||
@ -474,7 +474,7 @@ AVCodec pbm_encoder = {
|
||||
sizeof(PNMContext),
|
||||
common_init,
|
||||
pnm_encode_frame,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_MONOWHITE, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_MONOWHITE, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("PBM (Portable BitMap) image"),
|
||||
};
|
||||
#endif // CONFIG_PBM_ENCODER
|
||||
@ -490,7 +490,7 @@ AVCodec pam_decoder = {
|
||||
NULL,
|
||||
pnm_decode_frame,
|
||||
CODEC_CAP_DR1,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB32, PIX_FMT_GRAY8, PIX_FMT_MONOWHITE, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB32, PIX_FMT_GRAY8, PIX_FMT_MONOWHITE, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("PAM (Portable AnyMap) image"),
|
||||
};
|
||||
#endif
|
||||
@ -503,7 +503,7 @@ AVCodec pam_encoder = {
|
||||
sizeof(PNMContext),
|
||||
common_init,
|
||||
pam_encode_frame,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB32, PIX_FMT_GRAY8, PIX_FMT_MONOWHITE, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB32, PIX_FMT_GRAY8, PIX_FMT_MONOWHITE, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("PAM (Portable AnyMap) image"),
|
||||
};
|
||||
#endif // CONFIG_PAM_ENCODER
|
||||
|
@ -328,6 +328,6 @@ AVCodec qtrle_encoder = {
|
||||
qtrle_encode_init,
|
||||
qtrle_encode_frame,
|
||||
qtrle_encode_end,
|
||||
.pix_fmts = (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_ARGB, PIX_FMT_NONE},
|
||||
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_ARGB, PIX_FMT_NONE},
|
||||
.long_name = NULL_IF_CONFIG_SMALL("QuickTime Animation (RLE) video"),
|
||||
};
|
||||
|
@ -1069,7 +1069,7 @@ AVCodec roq_encoder =
|
||||
roq_encode_init,
|
||||
roq_encode_frame,
|
||||
roq_encode_end,
|
||||
.supported_framerates = (AVRational[]){{30,1}, {0,0}},
|
||||
.pix_fmts = (enum PixelFormat[]){PIX_FMT_YUV444P, PIX_FMT_NONE},
|
||||
.supported_framerates = (const AVRational[]){{30,1}, {0,0}},
|
||||
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV444P, PIX_FMT_NONE},
|
||||
.long_name = NULL_IF_CONFIG_SMALL("id RoQ video"),
|
||||
};
|
||||
|
@ -64,6 +64,6 @@ AVCodec rv10_encoder = {
|
||||
MPV_encode_init,
|
||||
MPV_encode_picture,
|
||||
MPV_encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("RealVideo 1.0"),
|
||||
};
|
||||
|
@ -64,6 +64,6 @@ AVCodec rv20_encoder = {
|
||||
MPV_encode_init,
|
||||
MPV_encode_picture,
|
||||
MPV_encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("RealVideo 2.0"),
|
||||
};
|
||||
|
@ -151,7 +151,7 @@ AVCodec sgi_encoder = {
|
||||
encode_init,
|
||||
encode_frame,
|
||||
NULL,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGBA, PIX_FMT_GRAY8, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGBA, PIX_FMT_GRAY8, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("SGI image"),
|
||||
};
|
||||
|
||||
|
@ -828,6 +828,6 @@ AVCodec svq1_decoder = {
|
||||
svq1_decode_frame,
|
||||
CODEC_CAP_DR1,
|
||||
.flush= ff_mpeg_flush,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV410P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV410P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("Sorenson Vector Quantizer 1"),
|
||||
};
|
||||
|
@ -589,6 +589,6 @@ AVCodec svq1_encoder = {
|
||||
svq1_encode_init,
|
||||
svq1_encode_frame,
|
||||
svq1_encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV410P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV410P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("Sorenson Vector Quantizer 1"),
|
||||
};
|
||||
|
@ -1062,5 +1062,5 @@ AVCodec svq3_decoder = {
|
||||
svq3_decode_frame,
|
||||
CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_DELAY,
|
||||
.long_name = NULL_IF_CONFIG_SMALL("Sorenson Vector Quantizer 3"),
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUVJ420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUVJ420P, PIX_FMT_NONE},
|
||||
};
|
||||
|
@ -157,6 +157,6 @@ AVCodec targa_encoder = {
|
||||
.priv_data_size = sizeof(TargaContext),
|
||||
.init = targa_encode_init,
|
||||
.encode = targa_encode_frame,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_RGB555, PIX_FMT_GRAY8, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_BGR24, PIX_FMT_RGB555, PIX_FMT_GRAY8, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("Truevision Targa image"),
|
||||
};
|
||||
|
@ -452,7 +452,7 @@ AVCodec tiff_encoder = {
|
||||
0,
|
||||
NULL,
|
||||
.pix_fmts =
|
||||
(enum PixelFormat[]) {PIX_FMT_RGB24, PIX_FMT_PAL8, PIX_FMT_GRAY8,
|
||||
(const enum PixelFormat[]) {PIX_FMT_RGB24, PIX_FMT_PAL8, PIX_FMT_GRAY8,
|
||||
PIX_FMT_MONOBLACK, PIX_FMT_MONOWHITE,
|
||||
PIX_FMT_YUV420P, PIX_FMT_YUV422P,
|
||||
PIX_FMT_YUV444P, PIX_FMT_YUV410P,
|
||||
|
@ -125,6 +125,6 @@ AVCodec v210_encoder = {
|
||||
encode_init,
|
||||
encode_frame,
|
||||
encode_close,
|
||||
.pix_fmts = (enum PixelFormat[]){PIX_FMT_YUV422P16, PIX_FMT_NONE},
|
||||
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV422P16, PIX_FMT_NONE},
|
||||
.long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"),
|
||||
};
|
||||
|
@ -3363,7 +3363,7 @@ AVCodec wmv3_vdpau_decoder = {
|
||||
CODEC_CAP_DR1 | CODEC_CAP_DELAY | CODEC_CAP_HWACCEL_VDPAU,
|
||||
NULL,
|
||||
.long_name = NULL_IF_CONFIG_SMALL("Windows Media Video 9 VDPAU"),
|
||||
.pix_fmts = (enum PixelFormat[]){PIX_FMT_VDPAU_WMV3, PIX_FMT_NONE}
|
||||
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_VDPAU_WMV3, PIX_FMT_NONE}
|
||||
};
|
||||
#endif
|
||||
|
||||
@ -3380,6 +3380,6 @@ AVCodec vc1_vdpau_decoder = {
|
||||
CODEC_CAP_DR1 | CODEC_CAP_DELAY | CODEC_CAP_HWACCEL_VDPAU,
|
||||
NULL,
|
||||
.long_name = NULL_IF_CONFIG_SMALL("SMPTE VC-1 VDPAU"),
|
||||
.pix_fmts = (enum PixelFormat[]){PIX_FMT_VDPAU_VC1, PIX_FMT_NONE}
|
||||
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_VDPAU_VC1, PIX_FMT_NONE}
|
||||
};
|
||||
#endif
|
||||
|
@ -218,6 +218,6 @@ AVCodec wmv2_encoder = {
|
||||
wmv2_encode_init,
|
||||
MPV_encode_picture,
|
||||
MPV_encode_end,
|
||||
.pix_fmts= (enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
|
||||
.long_name= NULL_IF_CONFIG_SMALL("Windows Media Video 8"),
|
||||
};
|
||||
|
@ -330,6 +330,6 @@ AVCodec zmbv_encoder = {
|
||||
encode_init,
|
||||
encode_frame,
|
||||
encode_end,
|
||||
.pix_fmts = (enum PixelFormat[]){PIX_FMT_PAL8, PIX_FMT_NONE},
|
||||
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_PAL8, PIX_FMT_NONE},
|
||||
.long_name = NULL_IF_CONFIG_SMALL("Zip Motion Blocks Video"),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user