comparison imgconvert.c @ 9061:d041d818f35c libavcodec

Add VA API pixel formats. Patch by Gwenole Beauchesne.
author benoit
date Fri, 27 Feb 2009 08:12:41 +0000
parents 90c99bda19f5
children 87f496299f09
comparison
equal deleted inserted replaced
9060:f49b1c1d2c16 9061:d041d818f35c
416 .nb_channels = 4, .is_alpha = 1, 416 .nb_channels = 4, .is_alpha = 1,
417 .color_type = FF_COLOR_RGB, 417 .color_type = FF_COLOR_RGB,
418 .pixel_type = FF_PIXEL_PACKED, 418 .pixel_type = FF_PIXEL_PACKED,
419 .depth = 8, 419 .depth = 8,
420 .x_chroma_shift = 0, .y_chroma_shift = 0, 420 .x_chroma_shift = 0, .y_chroma_shift = 0,
421 },
422
423 /* VA API formats */
424 [PIX_FMT_VAAPI_MOCO] = {
425 .name = "vaapi_moco",
426 .is_hwaccel = 1,
427 },
428 [PIX_FMT_VAAPI_IDCT] = {
429 .name = "vaapi_idct",
430 .is_hwaccel = 1,
431 },
432 [PIX_FMT_VAAPI_VLD] = {
433 .name = "vaapi_vld",
434 .is_hwaccel = 1,
421 }, 435 },
422 }; 436 };
423 437
424 void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift) 438 void avcodec_get_chroma_sub_sample(int pix_fmt, int *h_shift, int *v_shift)
425 { 439 {