Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2093)

Unified Diff: content/common/gpu/media/vaapi_h264_decoder_unittest.cc

Issue 825843002: Add JPEG decoder for VAAPI JPEG decode acceleration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mjpeg-vaapi-jpeg-parser
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/media/va.sigs ('k') | content/common/gpu/media/vaapi_jpeg_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/vaapi_h264_decoder_unittest.cc
diff --git a/content/common/gpu/media/vaapi_h264_decoder_unittest.cc b/content/common/gpu/media/vaapi_h264_decoder_unittest.cc
index 2bbf422c2abf7dcd8631e61bf7a065111f2a3f1f..4d20c233b2b32e3de189f1ad231299ce06287ba7 100644
--- a/content/common/gpu/media/vaapi_h264_decoder_unittest.cc
+++ b/content/common/gpu/media/vaapi_h264_decoder_unittest.cc
@@ -111,8 +111,8 @@ bool VaapiH264DecoderLoop::Initialize(base::FilePath input_file,
media::VideoCodecProfile profile = media::H264PROFILE_BASELINE;
base::Closure report_error_cb =
base::Bind(&LogOnError, VaapiH264Decoder::VAAPI_ERROR);
- wrapper_ =
- VaapiWrapper::Create(VaapiWrapper::kDecode, profile, report_error_cb);
+ wrapper_ = VaapiWrapper::CreateForVideoCodec(VaapiWrapper::kDecode, profile,
+ report_error_cb);
if (!wrapper_.get()) {
LOG(ERROR) << "Can't create vaapi wrapper";
return false;
@@ -247,14 +247,14 @@ void VaapiH264DecoderLoop::OutputPicture(
VAImage image;
void* mem;
- if (!wrapper_->GetVaImageForTesting(va_surface->id(), &image, &mem)) {
+ if (!wrapper_->GetDerivedVaImage(va_surface->id(), &image, &mem)) {
LOG(ERROR) << "Cannot get VAImage.";
return;
}
if (image.format.fourcc != VA_FOURCC_NV12) {
LOG(ERROR) << "Unexpected image format: " << image.format.fourcc;
- wrapper_->ReturnVaImageForTesting(&image);
+ wrapper_->ReturnVaImage(&image);
return;
}
@@ -269,7 +269,7 @@ void VaapiH264DecoderLoop::OutputPicture(
LOG(ERROR) << "Cannot convert image to I420.";
}
- wrapper_->ReturnVaImageForTesting(&image);
+ wrapper_->ReturnVaImage(&image);
}
void VaapiH264DecoderLoop::RecycleSurface(VASurfaceID va_surface_id) {
« no previous file with comments | « content/common/gpu/media/va.sigs ('k') | content/common/gpu/media/vaapi_jpeg_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698