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

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

Issue 1769593002: Add 4 VP9 profiles to the media::VideoCodecProfile enum. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hevc-codec-7
Patch Set: Better TODOs Created 4 years, 9 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 <fcntl.h> 5 #include <fcntl.h>
6 #include <linux/videodev2.h> 6 #include <linux/videodev2.h>
7 #include <poll.h> 7 #include <poll.h>
8 #include <string.h> 8 #include <string.h>
9 #include <sys/eventfd.h> 9 #include <sys/eventfd.h>
10 #include <sys/ioctl.h> 10 #include <sys/ioctl.h>
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 switch (fmtdesc.pixelformat) { 304 switch (fmtdesc.pixelformat) {
305 case V4L2_PIX_FMT_H264: 305 case V4L2_PIX_FMT_H264:
306 profile.profile = media::H264PROFILE_MAIN; 306 profile.profile = media::H264PROFILE_MAIN;
307 profiles.push_back(profile); 307 profiles.push_back(profile);
308 break; 308 break;
309 case V4L2_PIX_FMT_VP8: 309 case V4L2_PIX_FMT_VP8:
310 profile.profile = media::VP8PROFILE_ANY; 310 profile.profile = media::VP8PROFILE_ANY;
311 profiles.push_back(profile); 311 profiles.push_back(profile);
312 break; 312 break;
313 case V4L2_PIX_FMT_VP9: 313 case V4L2_PIX_FMT_VP9:
314 profile.profile = media::VP9PROFILE_ANY; 314 profile.profile = media::VP9PROFILE_PROFILE0;
315 profiles.push_back(profile);
316 profile.profile = media::VP9PROFILE_PROFILE1;
317 profiles.push_back(profile);
318 profile.profile = media::VP9PROFILE_PROFILE2;
319 profiles.push_back(profile);
320 profile.profile = media::VP9PROFILE_PROFILE3;
315 profiles.push_back(profile); 321 profiles.push_back(profile);
316 break; 322 break;
317 } 323 }
318 } 324 }
319 325
320 return profiles; 326 return profiles;
321 } 327 }
322 328
323 void V4L2VideoEncodeAccelerator::FrameProcessed( 329 void V4L2VideoEncodeAccelerator::FrameProcessed(
324 bool force_keyframe, 330 bool force_keyframe,
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 reqbufs.count = 0; 1180 reqbufs.count = 0;
1175 reqbufs.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; 1181 reqbufs.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
1176 reqbufs.memory = V4L2_MEMORY_MMAP; 1182 reqbufs.memory = V4L2_MEMORY_MMAP;
1177 IOCTL_OR_LOG_ERROR(VIDIOC_REQBUFS, &reqbufs); 1183 IOCTL_OR_LOG_ERROR(VIDIOC_REQBUFS, &reqbufs);
1178 1184
1179 output_buffer_map_.clear(); 1185 output_buffer_map_.clear();
1180 free_output_buffers_.clear(); 1186 free_output_buffers_.clear();
1181 } 1187 }
1182 1188
1183 } // namespace content 1189 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698