OLD | NEW |
---|---|
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 <algorithm> | 5 #include <algorithm> |
6 | 6 |
7 #include <CoreVideo/CoreVideo.h> | 7 #include <CoreVideo/CoreVideo.h> |
8 #include <OpenGL/CGLIOSurface.h> | 8 #include <OpenGL/CGLIOSurface.h> |
9 #include <OpenGL/gl.h> | 9 #include <OpenGL/gl.h> |
10 | 10 |
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1047 client_->NotifyEndOfBitstreamBuffer(bitstream_id); | 1047 client_->NotifyEndOfBitstreamBuffer(bitstream_id); |
1048 assigned_bitstream_ids_.clear(); | 1048 assigned_bitstream_ids_.clear(); |
1049 state_ = STATE_DESTROYING; | 1049 state_ = STATE_DESTROYING; |
1050 QueueFlush(TASK_DESTROY); | 1050 QueueFlush(TASK_DESTROY); |
1051 } | 1051 } |
1052 | 1052 |
1053 bool VTVideoDecodeAccelerator::CanDecodeOnIOThread() { | 1053 bool VTVideoDecodeAccelerator::CanDecodeOnIOThread() { |
1054 return false; | 1054 return false; |
1055 } | 1055 } |
1056 | 1056 |
1057 // static | |
1058 std::vector<media::VideoDecodeAccelerator::SupportedProfile> | |
1059 VTVideoDecodeAccelerator::GetSupportedProfiles() { | |
1060 std::vector<media::VideoDecodeAccelerator::SupportedProfile> profiles; | |
1061 // Supported media profiles should be synced with Initialize function. | |
wuchengli
2015/03/23 08:28:08
Like I said in android_video_decode_accelerator.cc
henryhsu
2015/03/23 10:06:35
Done.
| |
1062 for (uint32 media_profile = media::H264PROFILE_MIN; | |
1063 media_profile <= media::H264PROFILE_MAX; ++media_profile) { | |
1064 if (media_profile == media::H264PROFILE_HIGH422PROFILE || | |
1065 media_profile == media::H264PROFILE_HIGH444PREDICTIVEPROFILE) { | |
1066 continue; | |
1067 } | |
1068 media::VideoDecodeAccelerator::SupportedProfile profile; | |
1069 profile.profile = media_profile; | |
1070 profile.min_resolution.SetSize(480, 360); | |
1071 profile.max_resolution.SetSize(4096, 2160); | |
1072 profiles.push_back(profile); | |
1073 } | |
1074 return profiles; | |
1075 } | |
1076 | |
1057 } // namespace content | 1077 } // namespace content |
OLD | NEW |