Commit ad8574b6 authored by Hirokazu Honda's avatar Hirokazu Honda Committed by Commit Bot

media/gpu/vaapi: Use VPP VaapiWrapper for mapping in VaapiDmabufVideoFrameMapper

Bug: 984693
Test: video_decode_accelerator_tests
Change-Id: Idee4e53a555168433e7e138ba2fafd1cff649cbd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2409726
Auto-Submit: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: default avatarMiguel Casas <mcasas@chromium.org>
Commit-Queue: Hirokazu Honda <hiroh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#807825}
parent f074dd5b
...@@ -156,16 +156,12 @@ std::unique_ptr<VideoFrameMapper> VaapiDmaBufVideoFrameMapper::Create( ...@@ -156,16 +156,12 @@ std::unique_ptr<VideoFrameMapper> VaapiDmaBufVideoFrameMapper::Create(
return video_frame_mapper; return video_frame_mapper;
} }
// While kDecode and H264PROFILE_MAIN are set here, the mode and profile are
// not required for VaapiWrapper to perform pixel format conversion.
// TODO(crbug.com/898423): Create a VaapiWrapper only for pixel format
// conversion. Either mode or profile isn't required to create the VaapiWrapper.
VaapiDmaBufVideoFrameMapper::VaapiDmaBufVideoFrameMapper( VaapiDmaBufVideoFrameMapper::VaapiDmaBufVideoFrameMapper(
VideoPixelFormat format) VideoPixelFormat format)
: VideoFrameMapper(format), : VideoFrameMapper(format),
vaapi_wrapper_(VaapiWrapper::CreateForVideoCodec(VaapiWrapper::kDecode, vaapi_wrapper_(VaapiWrapper::Create(VaapiWrapper::kVideoProcess,
H264PROFILE_MAIN, VAProfileNone,
base::DoNothing())) {} base::DoNothing())) {}
VaapiDmaBufVideoFrameMapper::~VaapiDmaBufVideoFrameMapper() {} VaapiDmaBufVideoFrameMapper::~VaapiDmaBufVideoFrameMapper() {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment