190
190
#if CONFIG_PGM_DECODER
191
191
AVCodec ff_pgm_decoder = {
193
.type = AVMEDIA_TYPE_VIDEO,
195
.priv_data_size = sizeof(PNMContext),
198
.decode = pnm_decode_frame,
199
.capabilities = CODEC_CAP_DR1,
201
200
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_GRAY8, PIX_FMT_GRAY16BE, PIX_FMT_NONE},
203
201
.long_name = NULL_IF_CONFIG_SMALL("PGM (Portable GrayMap) image"),
207
205
#if CONFIG_PGMYUV_DECODER
208
206
AVCodec ff_pgmyuv_decoder = {
208
.type = AVMEDIA_TYPE_VIDEO,
209
.id = CODEC_ID_PGMYUV,
210
.priv_data_size = sizeof(PNMContext),
213
.decode = pnm_decode_frame,
214
.capabilities = CODEC_CAP_DR1,
218
215
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
220
216
.long_name = NULL_IF_CONFIG_SMALL("PGMYUV (Portable GrayMap YUV) image"),
224
220
#if CONFIG_PPM_DECODER
225
221
AVCodec ff_ppm_decoder = {
223
.type = AVMEDIA_TYPE_VIDEO,
225
.priv_data_size = sizeof(PNMContext),
228
.decode = pnm_decode_frame,
229
.capabilities = CODEC_CAP_DR1,
235
230
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB48BE, PIX_FMT_NONE},
237
231
.long_name = NULL_IF_CONFIG_SMALL("PPM (Portable PixelMap) image"),
241
235
#if CONFIG_PBM_DECODER
242
236
AVCodec ff_pbm_decoder = {
238
.type = AVMEDIA_TYPE_VIDEO,
240
.priv_data_size = sizeof(PNMContext),
243
.decode = pnm_decode_frame,
244
.capabilities = CODEC_CAP_DR1,
252
245
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_MONOWHITE, PIX_FMT_NONE},
254
246
.long_name = NULL_IF_CONFIG_SMALL("PBM (Portable BitMap) image"),
258
250
#if CONFIG_PAM_DECODER
259
251
AVCodec ff_pam_decoder = {
253
.type = AVMEDIA_TYPE_VIDEO,
255
.priv_data_size = sizeof(PNMContext),
258
.decode = pnm_decode_frame,
259
.capabilities = CODEC_CAP_DR1,
269
260
.pix_fmts = (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGB32, PIX_FMT_GRAY8, PIX_FMT_MONOWHITE, PIX_FMT_NONE},
271
261
.long_name = NULL_IF_CONFIG_SMALL("PAM (Portable AnyMap) image"),