Mercurial > libavcodec.hg
comparison imgconvert.c @ 10582:2c581477f8d6 libavcodec
Remove unused PixFmtInfo.is_hwaccel field.
author | stefano |
---|---|
date | Sat, 28 Nov 2009 00:53:15 +0000 |
parents | dacdec913c5b |
children | 96d1d05cfd37 |
comparison
equal
deleted
inserted
replaced
10581:2980d9efc542 | 10582:2c581477f8d6 |
---|---|
56 const char *name; | 56 const char *name; |
57 uint8_t nb_channels; /**< number of channels (including alpha) */ | 57 uint8_t nb_channels; /**< number of channels (including alpha) */ |
58 uint8_t color_type; /**< color type (see FF_COLOR_xxx constants) */ | 58 uint8_t color_type; /**< color type (see FF_COLOR_xxx constants) */ |
59 uint8_t pixel_type; /**< pixel storage type (see FF_PIXEL_xxx constants) */ | 59 uint8_t pixel_type; /**< pixel storage type (see FF_PIXEL_xxx constants) */ |
60 uint8_t is_alpha : 1; /**< true if alpha can be specified */ | 60 uint8_t is_alpha : 1; /**< true if alpha can be specified */ |
61 uint8_t is_hwaccel : 1; /**< true if this is an HW accelerated format */ | |
62 uint8_t depth; /**< bit depth of the color components */ | 61 uint8_t depth; /**< bit depth of the color components */ |
63 } PixFmtInfo; | 62 } PixFmtInfo; |
64 | 63 |
65 /* this table gives more information about formats */ | 64 /* this table gives more information about formats */ |
66 static const PixFmtInfo pix_fmt_info[PIX_FMT_NB] = { | 65 static const PixFmtInfo pix_fmt_info[PIX_FMT_NB] = { |
314 .pixel_type = FF_PIXEL_PALETTE, | 313 .pixel_type = FF_PIXEL_PALETTE, |
315 .depth = 8, | 314 .depth = 8, |
316 }, | 315 }, |
317 [PIX_FMT_XVMC_MPEG2_MC] = { | 316 [PIX_FMT_XVMC_MPEG2_MC] = { |
318 .name = "xvmcmc", | 317 .name = "xvmcmc", |
319 .is_hwaccel = 1, | |
320 }, | 318 }, |
321 [PIX_FMT_XVMC_MPEG2_IDCT] = { | 319 [PIX_FMT_XVMC_MPEG2_IDCT] = { |
322 .name = "xvmcidct", | 320 .name = "xvmcidct", |
323 .is_hwaccel = 1, | |
324 }, | 321 }, |
325 [PIX_FMT_VDPAU_MPEG1] = { | 322 [PIX_FMT_VDPAU_MPEG1] = { |
326 .name = "vdpau_mpeg1", | 323 .name = "vdpau_mpeg1", |
327 .is_hwaccel = 1, | |
328 }, | 324 }, |
329 [PIX_FMT_VDPAU_MPEG2] = { | 325 [PIX_FMT_VDPAU_MPEG2] = { |
330 .name = "vdpau_mpeg2", | 326 .name = "vdpau_mpeg2", |
331 .is_hwaccel = 1, | |
332 }, | 327 }, |
333 [PIX_FMT_VDPAU_H264] = { | 328 [PIX_FMT_VDPAU_H264] = { |
334 .name = "vdpau_h264", | 329 .name = "vdpau_h264", |
335 .is_hwaccel = 1, | |
336 }, | 330 }, |
337 [PIX_FMT_VDPAU_WMV3] = { | 331 [PIX_FMT_VDPAU_WMV3] = { |
338 .name = "vdpau_wmv3", | 332 .name = "vdpau_wmv3", |
339 .is_hwaccel = 1, | |
340 }, | 333 }, |
341 [PIX_FMT_VDPAU_VC1] = { | 334 [PIX_FMT_VDPAU_VC1] = { |
342 .name = "vdpau_vc1", | 335 .name = "vdpau_vc1", |
343 .is_hwaccel = 1, | |
344 }, | 336 }, |
345 [PIX_FMT_VDPAU_MPEG4] = { | 337 [PIX_FMT_VDPAU_MPEG4] = { |
346 .name = "vdpau_mpeg4", | 338 .name = "vdpau_mpeg4", |
347 .is_hwaccel = 1, | |
348 }, | 339 }, |
349 [PIX_FMT_UYYVYY411] = { | 340 [PIX_FMT_UYYVYY411] = { |
350 .name = "uyyvyy411", | 341 .name = "uyyvyy411", |
351 .nb_channels = 1, | 342 .nb_channels = 1, |
352 .color_type = FF_COLOR_YUV, | 343 .color_type = FF_COLOR_YUV, |
461 }, | 452 }, |
462 | 453 |
463 /* VA API formats */ | 454 /* VA API formats */ |
464 [PIX_FMT_VAAPI_MOCO] = { | 455 [PIX_FMT_VAAPI_MOCO] = { |
465 .name = "vaapi_moco", | 456 .name = "vaapi_moco", |
466 .is_hwaccel = 1, | |
467 }, | 457 }, |
468 [PIX_FMT_VAAPI_IDCT] = { | 458 [PIX_FMT_VAAPI_IDCT] = { |
469 .name = "vaapi_idct", | 459 .name = "vaapi_idct", |
470 .is_hwaccel = 1, | |
471 }, | 460 }, |
472 [PIX_FMT_VAAPI_VLD] = { | 461 [PIX_FMT_VAAPI_VLD] = { |
473 .name = "vaapi_vld", | 462 .name = "vaapi_vld", |
474 .is_hwaccel = 1, | |
475 }, | 463 }, |
476 }; | 464 }; |
477 | 465 |
478 void avcodec_get_chroma_sub_sample(enum PixelFormat pix_fmt, int *h_shift, int *v_shift) | 466 void avcodec_get_chroma_sub_sample(enum PixelFormat pix_fmt, int *h_shift, int *v_shift) |
479 { | 467 { |