{ VA_FOURCC('N','V','1','2'), VA_LSB_FIRST, 12, } },
{ I965_SURFACETYPE_YUV,
{ VA_FOURCC('Y','U','Y','2'), VA_LSB_FIRST, 16, } },
+ { I965_SURFACETYPE_YUV,
+ { VA_FOURCC('U','Y','V','Y'), VA_LSB_FIRST, 16, } },
};
/* List of supported subpicture formats */
image->data_size = size + 2 * size2;
break;
case VA_FOURCC('Y','U','Y','2'):
+ case VA_FOURCC('U','Y','V','Y'):
image->num_planes = 1;
image->pitches[0] = width * 2;
image->offsets[0] = 0;
const int V = (fourcc == VA_FOURCC('Y', 'V', '1', '2') ||
fourcc == VA_FOURCC('I', 'M', 'C', '1')) ? 1 : 2;
int interleaved_uv = fourcc == VA_FOURCC('N', 'V', '1', '2');
- int packed_yuv = (fourcc == VA_FOURCC('Y', 'U', 'Y', '2'));
+ int packed_yuv = (fourcc == VA_FOURCC('Y', 'U', 'Y', '2') || fourcc == VA_FOURCC('U', 'Y', 'V', 'Y'));
if (surface->type == I965_SURFACE_TYPE_SURFACE) {
obj_surface = SURFACE(surface->id);
format0 = SURFACE_FORMAT_YCRCB_NORMAL;
break;
+ case VA_FOURCC('U', 'Y', 'V', 'Y'):
+ format0 = SURFACE_FORMAT_YCRCB_SWAPY;
+ break;
+
default:
break;
}
pp_static_parameter->grf2.di_destination_packed_y_component_offset = 0;
pp_static_parameter->grf2.di_destination_packed_u_component_offset = 1;
pp_static_parameter->grf2.di_destination_packed_v_component_offset = 3;
+ } else if (fourcc == VA_FOURCC('U', 'Y', 'V', 'Y')) {
+ pp_static_parameter->grf2.di_destination_packed_y_component_offset = 1;
+ pp_static_parameter->grf2.di_destination_packed_u_component_offset = 0;
+ pp_static_parameter->grf2.di_destination_packed_v_component_offset = 2;
}
}
dst_rect,
PP_PL3_LOAD_SAVE_PL3,
NULL);
- } else if (fourcc == VA_FOURCC('Y', 'U', 'Y', '2')) {
+ } else if (fourcc == VA_FOURCC('Y', 'U', 'Y', '2') ||
+ fourcc == VA_FOURCC('U', 'Y', 'V', 'Y')) {
vaStatus = i965_post_processing_internal(ctx, i965->pp_context,
src_surface,
src_rect,
dst_rect,
PP_NV12_LOAD_SAVE_PL3,
NULL);
- } else if (fourcc == VA_FOURCC('Y', 'U', 'Y', '2')) {
+ } else if (fourcc == VA_FOURCC('Y', 'U', 'Y', '2') ||
+ fourcc == VA_FOURCC('U', 'Y', 'V', 'Y')) {
vaStatus = i965_post_processing_internal(ctx, i965->pp_context,
src_surface,
src_rect,
dst_rect);
break;
case VA_FOURCC('Y', 'U', 'Y', '2'):
+ case VA_FOURCC('U', 'Y', 'V', 'Y'):
status = i965_image_pl1_processing(ctx,
src_surface,
src_rect,