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

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

Issue 795633005: Add VDA supported profile to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address patch set 13 review comments Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/media/v4l2_video_encode_accelerator.cc
diff --git a/content/common/gpu/media/v4l2_video_encode_accelerator.cc b/content/common/gpu/media/v4l2_video_encode_accelerator.cc
index f491274c2b01e0bf148a85524293a70d0139deb3..c9407a6b9090c06882f7a98e98a2e745d7202057 100644
--- a/content/common/gpu/media/v4l2_video_encode_accelerator.cc
+++ b/content/common/gpu/media/v4l2_video_encode_accelerator.cc
@@ -287,29 +287,7 @@ void V4L2VideoEncodeAccelerator::Destroy() {
std::vector<media::VideoEncodeAccelerator::SupportedProfile>
V4L2VideoEncodeAccelerator::GetSupportedProfiles() {
- std::vector<SupportedProfile> profiles;
- SupportedProfile profile;
- profile.max_resolution.SetSize(1920, 1088);
- profile.max_framerate_numerator = 30;
- profile.max_framerate_denominator = 1;
-
- v4l2_fmtdesc fmtdesc;
- memset(&fmtdesc, 0, sizeof(fmtdesc));
- fmtdesc.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
- for (; device_->Ioctl(VIDIOC_ENUM_FMT, &fmtdesc) == 0; ++fmtdesc.index) {
- switch (fmtdesc.pixelformat) {
- case V4L2_PIX_FMT_H264:
- profile.profile = media::H264PROFILE_MAIN;
- profiles.push_back(profile);
- break;
- case V4L2_PIX_FMT_VP8:
- profile.profile = media::VP8PROFILE_ANY;
- profiles.push_back(profile);
- break;
- }
- }
-
- return profiles;
+ return V4L2Device::GetSupportedEncodeProfiles();
wuchengli 2015/03/18 08:02:37 Since VDA will have their own GetSupportedProfiles
henryhsu 2015/03/18 11:06:09 Done.
}
void V4L2VideoEncodeAccelerator::FrameProcessed(

Powered by Google App Engine
This is Rietveld 408576698