Skip to content

Commit

Permalink
add Y410 image change for CreateImage
Browse files Browse the repository at this point in the history
Fixes #431

Signed-off-by: XinfengZhang <carl.zhang@intel.com>
  • Loading branch information
XinfengZhang committed Apr 16, 2019
1 parent f52b5cf commit ea4287d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion media_driver/linux/common/ddi/media_libva.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3946,7 +3946,10 @@ VAStatus DdiMedia_CreateImage(
gmmParams.Format = GMM_FORMAT_AYUV_TYPE;
gmmParams.BaseHeight = MOS_ALIGN_CEIL(height, 32);
break;

case VA_FOURCC_Y410:
gmmParams.Format = GMM_FORMAT_Y410_TYPE;
gmmParams.BaseHeight = MOS_ALIGN_CEIL(height, 32);
break;
default:
MOS_FreeMemory(vaimg);
return VA_STATUS_ERROR_UNIMPLEMENTED;
Expand Down Expand Up @@ -4063,6 +4066,7 @@ VAStatus DdiMedia_CreateImage(
break;
case VA_FOURCC_Y210:
case VA_FOURCC_AYUV:
case VA_FOURCC_Y410:
vaimg->format.bits_per_pixel = 32;
vaimg->num_planes = 1;
vaimg->pitches[0] = gmmPitch;
Expand Down

0 comments on commit ea4287d

Please sign in to comment.