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

media/gpu/vaapiIP: Enable to do cropping and cropping+scaling

Bug: 1034415
Test: IPTest on atlas
Change-Id: Ibc72b6b949501cd7147e5b45d49e4d31782b8210
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1975382Reviewed-by: default avatarRicky Liang <jcliang@chromium.org>
Commit-Queue: Hirokazu Honda <hiroh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#726277}
parent bcd6a141
......@@ -181,8 +181,9 @@ void VaapiImageProcessor::Process(scoped_refptr<VideoFrame> input_frame,
return;
}
// VA-API performs pixel format conversion and scaling without any filters.
if (vaapi_wrapper_->BlitSurface(std::move(src_va_surface),
std::move(dst_va_surface))) {
if (vaapi_wrapper_->BlitSurface(
std::move(src_va_surface), std::move(dst_va_surface),
input_frame->visible_rect(), output_frame->visible_rect())) {
// Failed to execute BlitSurface(). Since VaapiWrapper has invoked
// ReportToUMA(), calling error_cb_ here is not needed.
return;
......
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