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

Side by Side Diff: gpu/ipc/common/gpu_info_struct_traits.cc

Issue 2640113004: Introduce Dolby Vision video codec and Demuxer support (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "gpu/ipc/common/gpu_info_struct_traits.h" 5 #include "gpu/ipc/common/gpu_info_struct_traits.h"
6 6
7 #include "ipc/ipc_message_utils.h" 7 #include "ipc/ipc_message_utils.h"
8 #include "mojo/common/common_custom_types_struct_traits.h" 8 #include "mojo/common/common_custom_types_struct_traits.h"
9 9
10 namespace mojo { 10 namespace mojo {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 case gpu::VideoCodecProfile::VP9PROFILE_PROFILE2: 99 case gpu::VideoCodecProfile::VP9PROFILE_PROFILE2:
100 return gpu::mojom::VideoCodecProfile::VP9PROFILE_PROFILE2; 100 return gpu::mojom::VideoCodecProfile::VP9PROFILE_PROFILE2;
101 case gpu::VideoCodecProfile::VP9PROFILE_PROFILE3: 101 case gpu::VideoCodecProfile::VP9PROFILE_PROFILE3:
102 return gpu::mojom::VideoCodecProfile::VP9PROFILE_PROFILE3; 102 return gpu::mojom::VideoCodecProfile::VP9PROFILE_PROFILE3;
103 case gpu::VideoCodecProfile::HEVCPROFILE_MAIN: 103 case gpu::VideoCodecProfile::HEVCPROFILE_MAIN:
104 return gpu::mojom::VideoCodecProfile::HEVCPROFILE_MAIN; 104 return gpu::mojom::VideoCodecProfile::HEVCPROFILE_MAIN;
105 case gpu::VideoCodecProfile::HEVCPROFILE_MAIN10: 105 case gpu::VideoCodecProfile::HEVCPROFILE_MAIN10:
106 return gpu::mojom::VideoCodecProfile::HEVCPROFILE_MAIN10; 106 return gpu::mojom::VideoCodecProfile::HEVCPROFILE_MAIN10;
107 case gpu::VideoCodecProfile::HEVCPROFILE_MAIN_STILL_PICTURE: 107 case gpu::VideoCodecProfile::HEVCPROFILE_MAIN_STILL_PICTURE:
108 return gpu::mojom::VideoCodecProfile::HEVCPROFILE_MAIN_STILL_PICTURE; 108 return gpu::mojom::VideoCodecProfile::HEVCPROFILE_MAIN_STILL_PICTURE;
109 case gpu::VideoCodecProfile::DOLBYVISION_PROFILE0:
110 case gpu::VideoCodecProfile::DOLBYVISION_PROFILE4:
111 case gpu::VideoCodecProfile::DOLBYVISION_PROFILE5:
112 case gpu::VideoCodecProfile::DOLBYVISION_PROFILE7:
wolenetz 2017/01/24 21:52:24 To be clear, why NOTREACHED() here versus HEVC? Is
erickung1 2017/02/03 18:18:31 Done.
113 NOTREACHED();
109 } 114 }
110 NOTREACHED() << "Invalid VideoCodecProfile:" << video_codec_profile; 115 NOTREACHED() << "Invalid VideoCodecProfile:" << video_codec_profile;
111 return gpu::mojom::VideoCodecProfile::VIDEO_CODEC_PROFILE_UNKNOWN; 116 return gpu::mojom::VideoCodecProfile::VIDEO_CODEC_PROFILE_UNKNOWN;
112 } 117 }
113 118
114 // static 119 // static
115 bool EnumTraits<gpu::mojom::VideoCodecProfile, gpu::VideoCodecProfile>:: 120 bool EnumTraits<gpu::mojom::VideoCodecProfile, gpu::VideoCodecProfile>::
116 FromMojom(gpu::mojom::VideoCodecProfile input, 121 FromMojom(gpu::mojom::VideoCodecProfile input,
117 gpu::VideoCodecProfile* out) { 122 gpu::VideoCodecProfile* out) {
118 switch (input) { 123 switch (input) {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 data.ReadDxDiagnosticsInfoState(&out->dx_diagnostics_info_state) && 266 data.ReadDxDiagnosticsInfoState(&out->dx_diagnostics_info_state) &&
262 data.ReadDxDiagnostics(&out->dx_diagnostics) && 267 data.ReadDxDiagnostics(&out->dx_diagnostics) &&
263 #endif 268 #endif
264 data.ReadVideoDecodeAcceleratorCapabilities( 269 data.ReadVideoDecodeAcceleratorCapabilities(
265 &out->video_decode_accelerator_capabilities) && 270 &out->video_decode_accelerator_capabilities) &&
266 data.ReadVideoEncodeAcceleratorSupportedProfiles( 271 data.ReadVideoEncodeAcceleratorSupportedProfiles(
267 &out->video_encode_accelerator_supported_profiles); 272 &out->video_encode_accelerator_supported_profiles);
268 } 273 }
269 274
270 } // namespace mojo 275 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698