Skip to content

Commit

Permalink
Fix DeriveImage with UYVY fourcc
Browse files Browse the repository at this point in the history
This makes the gst pipeline below works:

gst-launch-1.0 videotestsrc num-buffers=1 ! msdkvpp ! \
video/x-raw\(memory:DMABuf\),format=UYVY ! filesink location=a.yuv

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
  • Loading branch information
xhaihao authored and Sherry-Lin committed Feb 18, 2019
1 parent 2947bd6 commit 2dedd5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions media_driver/linux/common/ddi/media_libva.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4202,6 +4202,7 @@ VAStatus DdiMedia_DeriveImage (
vaimg->pitches[0] = mediaSurface->iPitch;
break;
case Media_Format_YUY2:
case Media_Format_UYVY:
vaimg->format.bits_per_pixel = 16;
vaimg->data_size = mediaSurface->iPitch * mediaSurface->iHeight;
vaimg->num_planes = 1;
Expand Down

0 comments on commit 2dedd5f

Please sign in to comment.