OLD | NEW |
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 // Multiply-included message file, hence no include guard here, but see below | 5 // Multiply-included message file, hence no include guard here, but see below |
6 // for a much smaller-than-usual include guard section. | 6 // for a much smaller-than-usual include guard section. |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "content/common/gpu/media/create_video_encoder_params.h" | 9 #include "content/common/gpu/media/create_video_encoder_params.h" |
10 #include "gpu/config/gpu_info.h" | 10 #include "gpu/config/gpu_info.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 }; | 37 }; |
38 | 38 |
39 } // namespace IPC | 39 } // namespace IPC |
40 | 40 |
41 #endif // CONTENT_COMMON_GPU_MEDIA_MEDIA_MESSAGES_H_ | 41 #endif // CONTENT_COMMON_GPU_MEDIA_MEDIA_MESSAGES_H_ |
42 | 42 |
43 IPC_ENUM_TRAITS_MAX_VALUE(media::JpegDecodeAccelerator::Error, | 43 IPC_ENUM_TRAITS_MAX_VALUE(media::JpegDecodeAccelerator::Error, |
44 media::JpegDecodeAccelerator::LARGEST_ERROR_ENUM) | 44 media::JpegDecodeAccelerator::LARGEST_ERROR_ENUM) |
45 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoEncodeAccelerator::Error, | 45 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoEncodeAccelerator::Error, |
46 media::VideoEncodeAccelerator::kErrorMax) | 46 media::VideoEncodeAccelerator::kErrorMax) |
47 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::VideoCodecProfile, | |
48 media::VIDEO_CODEC_PROFILE_MIN, | |
49 media::VIDEO_CODEC_PROFILE_MAX) | |
50 | |
51 IPC_STRUCT_BEGIN(AcceleratedJpegDecoderMsg_Decode_Params) | 47 IPC_STRUCT_BEGIN(AcceleratedJpegDecoderMsg_Decode_Params) |
52 IPC_STRUCT_MEMBER(media::BitstreamBuffer, input_buffer) | 48 IPC_STRUCT_MEMBER(media::BitstreamBuffer, input_buffer) |
53 IPC_STRUCT_MEMBER(gfx::Size, coded_size) | 49 IPC_STRUCT_MEMBER(gfx::Size, coded_size) |
54 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, output_video_frame_handle) | 50 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, output_video_frame_handle) |
55 IPC_STRUCT_MEMBER(uint32_t, output_buffer_size) | 51 IPC_STRUCT_MEMBER(uint32_t, output_buffer_size) |
56 IPC_STRUCT_END() | 52 IPC_STRUCT_END() |
57 | 53 |
58 IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params) | 54 IPC_STRUCT_BEGIN(AcceleratedVideoEncoderMsg_Encode_Params) |
59 IPC_STRUCT_MEMBER(int32_t, frame_id) | 55 IPC_STRUCT_MEMBER(int32_t, frame_id) |
60 IPC_STRUCT_MEMBER(base::TimeDelta, timestamp) | 56 IPC_STRUCT_MEMBER(base::TimeDelta, timestamp) |
(...skipping 11 matching lines...) Expand all Loading... |
72 IPC_STRUCT_MEMBER(gfx::Size, size) | 68 IPC_STRUCT_MEMBER(gfx::Size, size) |
73 IPC_STRUCT_MEMBER(bool, force_keyframe) | 69 IPC_STRUCT_MEMBER(bool, force_keyframe) |
74 IPC_STRUCT_END() | 70 IPC_STRUCT_END() |
75 | 71 |
76 IPC_STRUCT_TRAITS_BEGIN(media::VideoDecodeAccelerator::Config) | 72 IPC_STRUCT_TRAITS_BEGIN(media::VideoDecodeAccelerator::Config) |
77 IPC_STRUCT_TRAITS_MEMBER(profile) | 73 IPC_STRUCT_TRAITS_MEMBER(profile) |
78 IPC_STRUCT_TRAITS_MEMBER(is_encrypted) | 74 IPC_STRUCT_TRAITS_MEMBER(is_encrypted) |
79 IPC_STRUCT_TRAITS_MEMBER(surface_id) | 75 IPC_STRUCT_TRAITS_MEMBER(surface_id) |
80 IPC_STRUCT_TRAITS_END() | 76 IPC_STRUCT_TRAITS_END() |
81 | 77 |
82 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorSupportedProfile) | |
83 IPC_STRUCT_TRAITS_MEMBER(profile) | |
84 IPC_STRUCT_TRAITS_MEMBER(max_resolution) | |
85 IPC_STRUCT_TRAITS_MEMBER(min_resolution) | |
86 IPC_STRUCT_TRAITS_END() | |
87 | |
88 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoDecodeAcceleratorCapabilities) | |
89 IPC_STRUCT_TRAITS_MEMBER(supported_profiles) | |
90 IPC_STRUCT_TRAITS_MEMBER(flags) | |
91 IPC_STRUCT_TRAITS_END() | |
92 | |
93 IPC_STRUCT_TRAITS_BEGIN(gpu::VideoEncodeAcceleratorSupportedProfile) | |
94 IPC_STRUCT_TRAITS_MEMBER(profile) | |
95 IPC_STRUCT_TRAITS_MEMBER(max_resolution) | |
96 IPC_STRUCT_TRAITS_MEMBER(max_framerate_numerator) | |
97 IPC_STRUCT_TRAITS_MEMBER(max_framerate_denominator) | |
98 IPC_STRUCT_TRAITS_END() | |
99 | |
100 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry) | 78 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry) |
101 IPC_STRUCT_TRAITS_MEMBER(clear_bytes) | 79 IPC_STRUCT_TRAITS_MEMBER(clear_bytes) |
102 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes) | 80 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes) |
103 IPC_STRUCT_TRAITS_END() | 81 IPC_STRUCT_TRAITS_END() |
104 | 82 |
105 IPC_STRUCT_TRAITS_BEGIN(content::CreateVideoEncoderParams) | 83 IPC_STRUCT_TRAITS_BEGIN(content::CreateVideoEncoderParams) |
106 IPC_STRUCT_TRAITS_MEMBER(input_format) | 84 IPC_STRUCT_TRAITS_MEMBER(input_format) |
107 IPC_STRUCT_TRAITS_MEMBER(input_visible_size) | 85 IPC_STRUCT_TRAITS_MEMBER(input_visible_size) |
108 IPC_STRUCT_TRAITS_MEMBER(output_profile) | 86 IPC_STRUCT_TRAITS_MEMBER(output_profile) |
109 IPC_STRUCT_TRAITS_MEMBER(initial_bitrate) | 87 IPC_STRUCT_TRAITS_MEMBER(initial_bitrate) |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 255 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
278 | 256 |
279 //------------------------------------------------------------------------------ | 257 //------------------------------------------------------------------------------ |
280 // Accelerated JPEG Decoder Host Messages | 258 // Accelerated JPEG Decoder Host Messages |
281 // These messages are sent from the GPU process to Browser process. | 259 // These messages are sent from the GPU process to Browser process. |
282 // | 260 // |
283 // Report decode status. | 261 // Report decode status. |
284 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 262 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
285 int32_t, /* bitstream_buffer_id */ | 263 int32_t, /* bitstream_buffer_id */ |
286 media::JpegDecodeAccelerator::Error /* error */) | 264 media::JpegDecodeAccelerator::Error /* error */) |
OLD | NEW |