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

Side by Side Diff: chromecast/common/media/cma_param_traits_macros.h

Issue 797793004: Chromecast: IPC messages for browser-based media pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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
« no previous file with comments | « chromecast/common/media/cma_param_traits.cc ('k') | ipc/ipc_message_start.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // Singly or Multiply-included shared traits file depending on circumstances.
6 // This allows the use of IPC serialization macros in more than one IPC message
7 // file.
8 #ifndef CHROMECAST_COMMON_MEDIA_CMA_PARAM_TRAITS_MACROS_H_
9 #define CHROMECAST_COMMON_MEDIA_CMA_PARAM_TRAITS_MACROS_H_
10
11 #include "chromecast/media/cma/pipeline/load_type.h"
12 #include "ipc/ipc_message_macros.h"
13 #include "ipc/param_traits_macros.h"
14 #include "media/base/audio_decoder_config.h"
15 #include "media/base/buffering_state.h"
16 #include "media/base/channel_layout.h"
17 #include "media/base/pipeline_status.h"
18 #include "media/base/sample_format.h"
19 #include "media/base/video_decoder_config.h"
20 #include "media/base/video_frame.h"
21
22 IPC_ENUM_TRAITS_MIN_MAX_VALUE(chromecast::media::LoadType,
23 chromecast::media::kLoadTypeURL,
24 chromecast::media::kLoadTypeMediaStream)
25
26 // TODO (gunsch): move media enum IPC code to a common location in media.
27 // See crbug.com/442594 for details.
28 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::AudioCodec,
29 media::AudioCodec::kUnknownAudioCodec,
30 media::AudioCodec::kAudioCodecMax)
31 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::BufferingState,
32 media::BUFFERING_HAVE_NOTHING,
33 media::BUFFERING_HAVE_ENOUGH)
34 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::SampleFormat,
35 media::SampleFormat::kUnknownSampleFormat,
36 media::SampleFormat::kSampleFormatMax)
37 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::ChannelLayout,
38 media::ChannelLayout::CHANNEL_LAYOUT_NONE,
39 media::ChannelLayout::CHANNEL_LAYOUT_MAX)
40 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::PipelineStatus,
41 media::PIPELINE_OK,
42 media::PIPELINE_STATUS_MAX)
43 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::VideoCodec,
44 media::VideoCodec::kUnknownVideoCodec,
45 media::VideoCodec::kVideoCodecMax)
46 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::VideoCodecProfile,
47 media::VIDEO_CODEC_PROFILE_MIN,
48 media::VIDEO_CODEC_PROFILE_MAX)
49 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoFrame::Format,
50 media::VideoFrame::FORMAT_MAX)
51
52 IPC_STRUCT_TRAITS_BEGIN(media::PipelineStatistics)
53 IPC_STRUCT_TRAITS_MEMBER(audio_bytes_decoded)
54 IPC_STRUCT_TRAITS_MEMBER(video_bytes_decoded)
55 IPC_STRUCT_TRAITS_MEMBER(video_frames_decoded)
56 IPC_STRUCT_TRAITS_MEMBER(video_frames_dropped)
57 IPC_STRUCT_TRAITS_END()
58
59 #endif // CHROMECAST_COMMON_MEDIA_CMA_PARAM_TRAITS_MACROS_H_
OLDNEW
« no previous file with comments | « chromecast/common/media/cma_param_traits.cc ('k') | ipc/ipc_message_start.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698