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

Side by Side Diff: media/gpu/ipc/common/media_messages.h

Issue 2345123002: Attach color space information to hardware decoded NV12 video frames. (Closed)
Patch Set: compile fix Created 4 years, 2 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 // 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/unguessable_token.h" 10 #include "base/unguessable_token.h"
11 #include "gpu/config/gpu_info.h" 11 #include "gpu/config/gpu_info.h"
12 #include "gpu/ipc/common/gpu_param_traits_macros.h" 12 #include "gpu/ipc/common/gpu_param_traits_macros.h"
13 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
14 #include "ipc/param_traits_macros.h" 14 #include "ipc/param_traits_macros.h"
15 #include "media/gpu/ipc/common/media_param_traits.h" 15 #include "media/gpu/ipc/common/media_param_traits.h"
16 #include "media/video/jpeg_decode_accelerator.h" 16 #include "media/video/jpeg_decode_accelerator.h"
17 #include "media/video/video_decode_accelerator.h" 17 #include "media/video/video_decode_accelerator.h"
18 #include "media/video/video_encode_accelerator.h" 18 #include "media/video/video_encode_accelerator.h"
19 #include "ui/gfx/ipc/color/gfx_param_traits.h"
19 #include "ui/gfx/ipc/gfx_param_traits.h" 20 #include "ui/gfx/ipc/gfx_param_traits.h"
20 21
21 #define IPC_MESSAGE_START MediaMsgStart 22 #define IPC_MESSAGE_START MediaMsgStart
22 23
23 IPC_STRUCT_BEGIN(AcceleratedJpegDecoderMsg_Decode_Params) 24 IPC_STRUCT_BEGIN(AcceleratedJpegDecoderMsg_Decode_Params)
24 IPC_STRUCT_MEMBER(media::BitstreamBuffer, input_buffer) 25 IPC_STRUCT_MEMBER(media::BitstreamBuffer, input_buffer)
25 IPC_STRUCT_MEMBER(gfx::Size, coded_size) 26 IPC_STRUCT_MEMBER(gfx::Size, coded_size)
26 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, output_video_frame_handle) 27 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, output_video_frame_handle)
27 IPC_STRUCT_MEMBER(uint32_t, output_buffer_size) 28 IPC_STRUCT_MEMBER(uint32_t, output_buffer_size)
28 IPC_STRUCT_END() 29 IPC_STRUCT_END()
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 media::VideoPixelFormat, /* Picture buffer format */ 113 media::VideoPixelFormat, /* Picture buffer format */
113 uint32_t, /* Number of textures per frame */ 114 uint32_t, /* Number of textures per frame */
114 gfx::Size, /* Requested size of buffer */ 115 gfx::Size, /* Requested size of buffer */
115 uint32_t) /* Texture target */ 116 uint32_t) /* Texture target */
116 117
117 // Decoder reports that a picture is ready and buffer does not need to be passed 118 // Decoder reports that a picture is ready and buffer does not need to be passed
118 // back to the decoder. 119 // back to the decoder.
119 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer, 120 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_DismissPictureBuffer,
120 int32_t) /* Picture buffer ID */ 121 int32_t) /* Picture buffer ID */
121 122
123 typedef std::pair<bool, bool> BoolPair;
124
122 // Decoder reports that a picture is ready. 125 // Decoder reports that a picture is ready.
123 IPC_MESSAGE_ROUTED5(AcceleratedVideoDecoderHostMsg_PictureReady, 126 IPC_MESSAGE_ROUTED5(AcceleratedVideoDecoderHostMsg_PictureReady,
124 int32_t, /* Picture buffer ID */ 127 int32_t, /* Picture buffer ID */
125 int32_t, /* Bitstream buffer ID */ 128 int32_t, /* Bitstream buffer ID */
126 gfx::Rect, /* Visible rectangle */ 129 gfx::Rect, /* Visible rectangle */
127 bool, /* Buffer is HW overlay capable */ 130 gfx::ColorSpace, /* color space */
128 bool) /* VDA updated picture size */ 131 BoolPair) /* Buffer is HW overlay capable */
132 /* VDA updated picture size */
129 133
130 // Confirm decoder has been flushed. 134 // Confirm decoder has been flushed.
131 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) 135 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone)
132 136
133 // Confirm decoder has been reset. 137 // Confirm decoder has been reset.
134 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) 138 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone)
135 139
136 // Video decoder has encountered an error. 140 // Video decoder has encountered an error.
137 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, 141 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification,
138 uint32_t /* Error ID */) 142 uint32_t /* Error ID */)
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) 229 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy)
226 230
227 //------------------------------------------------------------------------------ 231 //------------------------------------------------------------------------------
228 // Accelerated JPEG Decoder Host Messages 232 // Accelerated JPEG Decoder Host Messages
229 // These messages are sent from the GPU process to Browser process. 233 // These messages are sent from the GPU process to Browser process.
230 // 234 //
231 // Report decode status. 235 // Report decode status.
232 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, 236 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck,
233 int32_t, /* bitstream_buffer_id */ 237 int32_t, /* bitstream_buffer_id */
234 media::JpegDecodeAccelerator::Error /* error */) 238 media::JpegDecodeAccelerator::Error /* error */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698