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 // IPC messages for the Cast Media Acceleration (CMA) pipeline. | 5 // IPC messages for the Cast Media Acceleration (CMA) pipeline. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
| 8 #include "chromecast/common/media/cma_ipc_common.h" |
8 #include "chromecast/common/media/cma_param_traits.h" | 9 #include "chromecast/common/media/cma_param_traits.h" |
9 #include "chromecast/common/media/cma_param_traits_macros.h" | 10 #include "chromecast/common/media/cma_param_traits_macros.h" |
10 #include "chromecast/media/cma/pipeline/load_type.h" | 11 #include "chromecast/media/cma/pipeline/load_type.h" |
11 #include "content/public/common/common_param_traits.h" | 12 #include "content/public/common/common_param_traits.h" |
12 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
13 #include "media/base/audio_decoder_config.h" | 14 #include "media/base/audio_decoder_config.h" |
14 #include "media/base/buffering_state.h" | 15 #include "media/base/buffering_state.h" |
15 #include "media/base/pipeline_status.h" | 16 #include "media/base/pipeline_status.h" |
16 #include "media/base/video_decoder_config.h" | 17 #include "media/base/video_decoder_config.h" |
17 #include "ui/gfx/ipc/gfx_param_traits.h" | 18 #include "ui/gfx/ipc/gfx_param_traits.h" |
(...skipping 19 matching lines...) Expand all Loading... |
37 IPC_MESSAGE_CONTROL1(CmaHostMsg_Flush, | 38 IPC_MESSAGE_CONTROL1(CmaHostMsg_Flush, |
38 int /* Media pipeline ID */) | 39 int /* Media pipeline ID */) |
39 IPC_MESSAGE_CONTROL1(CmaHostMsg_Stop, | 40 IPC_MESSAGE_CONTROL1(CmaHostMsg_Stop, |
40 int /* Media pipeline ID */) | 41 int /* Media pipeline ID */) |
41 IPC_MESSAGE_CONTROL2(CmaHostMsg_SetPlaybackRate, | 42 IPC_MESSAGE_CONTROL2(CmaHostMsg_SetPlaybackRate, |
42 int /* Media pipeline ID */, | 43 int /* Media pipeline ID */, |
43 float /* Playback rate */) | 44 float /* Playback rate */) |
44 | 45 |
45 IPC_MESSAGE_CONTROL3(CmaHostMsg_CreateAvPipe, | 46 IPC_MESSAGE_CONTROL3(CmaHostMsg_CreateAvPipe, |
46 int /* Media pipeline ID */, | 47 int /* Media pipeline ID */, |
47 int /* Track ID */, | 48 chromecast::media::TrackId /* Track ID */, |
48 size_t /* Fifo size */); | 49 size_t /* Fifo size */); |
49 IPC_MESSAGE_CONTROL3(CmaHostMsg_AudioInitialize, | 50 IPC_MESSAGE_CONTROL3(CmaHostMsg_AudioInitialize, |
50 int /* Media pipeline ID */, | 51 int /* Media pipeline ID */, |
51 int /* Track ID */, | 52 chromecast::media::TrackId /* Track ID */, |
52 media::AudioDecoderConfig /* Audio config */) | 53 media::AudioDecoderConfig /* Audio config */) |
53 IPC_MESSAGE_CONTROL3(CmaHostMsg_VideoInitialize, | 54 IPC_MESSAGE_CONTROL3(CmaHostMsg_VideoInitialize, |
54 int /* Media pipeline ID */, | 55 int /* Media pipeline ID */, |
55 int /* Track ID */, | 56 chromecast::media::TrackId /* Track ID */, |
56 media::VideoDecoderConfig /* Video config */) | 57 media::VideoDecoderConfig /* Video config */) |
57 IPC_MESSAGE_CONTROL3(CmaHostMsg_SetVolume, | 58 IPC_MESSAGE_CONTROL3(CmaHostMsg_SetVolume, |
58 int /* Media pipeline ID */, | 59 int /* Media pipeline ID */, |
59 int /* Track ID */, | 60 chromecast::media::TrackId /* Track ID */, |
60 float /* Volume */) | 61 float /* Volume */) |
61 IPC_MESSAGE_CONTROL2(CmaHostMsg_NotifyPipeWrite, | 62 IPC_MESSAGE_CONTROL2(CmaHostMsg_NotifyPipeWrite, |
62 int /* Media pipeline ID */, | 63 int /* Media pipeline ID */, |
63 int /* Track ID */) | 64 chromecast::media::TrackId /* Track ID */) |
64 | 65 |
65 IPC_MESSAGE_CONTROL5(CmaHostMsg_NotifyExternalSurface, | 66 IPC_MESSAGE_CONTROL5(CmaHostMsg_NotifyExternalSurface, |
66 int /* Surface ID */, | 67 int /* Surface ID */, |
67 gfx::PointF /* Quad video top left */, | 68 gfx::PointF /* Quad video top left */, |
68 gfx::PointF /* Quad video top right */, | 69 gfx::PointF /* Quad video top right */, |
69 gfx::PointF /* Quad video bottim right */, | 70 gfx::PointF /* Quad video bottim right */, |
70 gfx::PointF /* Quad video bottom left */) | 71 gfx::PointF /* Quad video bottom left */) |
71 | 72 |
72 // Messages from the browser to the renderer process. | 73 // Messages from the browser to the renderer process. |
73 | 74 |
74 IPC_MESSAGE_CONTROL2(CmaMsg_MediaStateChanged, | 75 IPC_MESSAGE_CONTROL2(CmaMsg_MediaStateChanged, |
75 int /* Media pipeline ID */, | 76 int /* Media pipeline ID */, |
76 media::PipelineStatus /* Status */) | 77 media::PipelineStatus /* Status */) |
77 IPC_MESSAGE_CONTROL4(CmaMsg_TimeUpdate, | 78 IPC_MESSAGE_CONTROL4(CmaMsg_TimeUpdate, |
78 int /* Media pipeline ID */, | 79 int /* Media pipeline ID */, |
79 base::TimeDelta /* Media time */, | 80 base::TimeDelta /* Media time */, |
80 base::TimeDelta /* Max media time */, | 81 base::TimeDelta /* Max media time */, |
81 base::TimeTicks /* STC */) | 82 base::TimeTicks /* STC */) |
82 IPC_MESSAGE_CONTROL2(CmaMsg_BufferingNotification, | 83 IPC_MESSAGE_CONTROL2(CmaMsg_BufferingNotification, |
83 int /* Media pipeline ID */, | 84 int /* Media pipeline ID */, |
84 media::BufferingState /* Buffering state */) | 85 media::BufferingState /* Buffering state */) |
85 | 86 |
86 IPC_MESSAGE_CONTROL5(CmaMsg_AvPipeCreated, | 87 IPC_MESSAGE_CONTROL5(CmaMsg_AvPipeCreated, |
87 int /* Media pipeline ID */, | 88 int /* Media pipeline ID */, |
88 int /* Track ID */, | 89 chromecast::media::TrackId /* Track ID */, |
89 bool /* Status */, | 90 bool /* Status */, |
90 base::SharedMemoryHandle /* Shared memory */, | 91 base::SharedMemoryHandle /* Shared memory */, |
91 base::FileDescriptor /* socket handle */) | 92 base::FileDescriptor /* socket handle */) |
92 IPC_MESSAGE_CONTROL3(CmaMsg_TrackStateChanged, | 93 IPC_MESSAGE_CONTROL3(CmaMsg_TrackStateChanged, |
93 int /* Media pipeline ID */, | 94 int /* Media pipeline ID */, |
94 int /* Track ID */, | 95 chromecast::media::TrackId /* Track ID */, |
95 media::PipelineStatus /* Status */) | 96 media::PipelineStatus /* Status */) |
96 IPC_MESSAGE_CONTROL2(CmaMsg_NotifyPipeRead, | 97 IPC_MESSAGE_CONTROL2(CmaMsg_NotifyPipeRead, |
97 int /* Media pipeline ID */, | 98 int /* Media pipeline ID */, |
98 int /* Track ID */) | 99 chromecast::media::TrackId /* Track ID */) |
99 | 100 |
100 IPC_MESSAGE_CONTROL2(CmaMsg_Eos, | 101 IPC_MESSAGE_CONTROL2(CmaMsg_Eos, |
101 int /* Media pipeline ID */, | 102 int /* Media pipeline ID */, |
102 int /* Track ID */) | 103 chromecast::media::TrackId /* Track ID */) |
103 IPC_MESSAGE_CONTROL3(CmaMsg_PlaybackError, | 104 IPC_MESSAGE_CONTROL3(CmaMsg_PlaybackError, |
104 int /* Media pipeline ID */, | 105 int /* Media pipeline ID */, |
105 int /* Track ID */, | 106 chromecast::media::TrackId /* Track ID */, |
106 media::PipelineStatus /* status */) | 107 media::PipelineStatus /* status */) |
107 IPC_MESSAGE_CONTROL3(CmaMsg_PlaybackStatistics, | 108 IPC_MESSAGE_CONTROL3(CmaMsg_PlaybackStatistics, |
108 int /* Media pipeline ID */, | 109 int /* Media pipeline ID */, |
109 int /* Track ID */, | 110 chromecast::media::TrackId /* Track ID */, |
110 media::PipelineStatistics /* status */) | 111 media::PipelineStatistics /* status */) |
111 IPC_MESSAGE_CONTROL3(CmaMsg_NaturalSizeChanged, | 112 IPC_MESSAGE_CONTROL3(CmaMsg_NaturalSizeChanged, |
112 int /* Media pipeline ID */, | 113 int /* Media pipeline ID */, |
113 int /* Track ID */, | 114 chromecast::media::TrackId /* Track ID */, |
114 gfx::Size /* Size */) | 115 gfx::Size /* Size */) |
OLD | NEW |