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

Side by Side Diff: content/common/gpu/media/v4l2_video_decode_accelerator.cc

Issue 418193003: Using PROFILE_ANY for vp8 and vp9 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <dlfcn.h> 5 #include <dlfcn.h>
6 #include <errno.h> 6 #include <errno.h>
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <linux/videodev2.h> 8 #include <linux/videodev2.h>
9 #include <poll.h> 9 #include <poll.h>
10 #include <sys/eventfd.h> 10 #include <sys/eventfd.h>
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 switch (profile) { 217 switch (profile) {
218 case media::H264PROFILE_BASELINE: 218 case media::H264PROFILE_BASELINE:
219 DVLOG(2) << "Initialize(): profile H264PROFILE_BASELINE"; 219 DVLOG(2) << "Initialize(): profile H264PROFILE_BASELINE";
220 break; 220 break;
221 case media::H264PROFILE_MAIN: 221 case media::H264PROFILE_MAIN:
222 DVLOG(2) << "Initialize(): profile H264PROFILE_MAIN"; 222 DVLOG(2) << "Initialize(): profile H264PROFILE_MAIN";
223 break; 223 break;
224 case media::H264PROFILE_HIGH: 224 case media::H264PROFILE_HIGH:
225 DVLOG(2) << "Initialize(): profile H264PROFILE_HIGH"; 225 DVLOG(2) << "Initialize(): profile H264PROFILE_HIGH";
226 break; 226 break;
227 case media::VP8PROFILE_MAIN: 227 case media::VP8PROFILE_ANY:
228 DVLOG(2) << "Initialize(): profile VP8PROFILE_MAIN"; 228 DVLOG(2) << "Initialize(): profile VP8PROFILE_ANY";
229 break; 229 break;
230 default: 230 default:
231 DLOG(ERROR) << "Initialize(): unsupported profile=" << profile; 231 DLOG(ERROR) << "Initialize(): unsupported profile=" << profile;
232 return false; 232 return false;
233 }; 233 };
234 video_profile_ = profile; 234 video_profile_ = profile;
235 235
236 if (egl_display_ == EGL_NO_DISPLAY) { 236 if (egl_display_ == EGL_NO_DISPLAY) {
237 DLOG(ERROR) << "Initialize(): could not get EGLDisplay"; 237 DLOG(ERROR) << "Initialize(): could not get EGLDisplay";
238 NOTIFY_ERROR(PLATFORM_FAILURE); 238 NOTIFY_ERROR(PLATFORM_FAILURE);
(...skipping 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after
1932 gfx::Size new_size(base::checked_cast<int>(format.fmt.pix_mp.width), 1932 gfx::Size new_size(base::checked_cast<int>(format.fmt.pix_mp.width),
1933 base::checked_cast<int>(format.fmt.pix_mp.height)); 1933 base::checked_cast<int>(format.fmt.pix_mp.height));
1934 if (frame_buffer_size_ != new_size) { 1934 if (frame_buffer_size_ != new_size) {
1935 DVLOG(3) << "IsResolutionChangeNecessary(): Resolution change detected"; 1935 DVLOG(3) << "IsResolutionChangeNecessary(): Resolution change detected";
1936 return true; 1936 return true;
1937 } 1937 }
1938 return false; 1938 return false;
1939 } 1939 }
1940 1940
1941 } // namespace content 1941 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698