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

Side by Side Diff: media/base/ipc/media_param_traits_macros.h

Issue 2421633003: media: Use native audio enum types in media mojo interfaces (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | media/mojo/common/media_type_converters.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_ 5 #ifndef MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_
6 #define MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_ 6 #define MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_
7 7
8 #include "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
9 #include "media/base/audio_codecs.h"
9 #include "media/base/audio_parameters.h" 10 #include "media/base/audio_parameters.h"
10 #include "media/base/buffering_state.h" 11 #include "media/base/buffering_state.h"
12 #include "media/base/channel_layout.h"
11 #include "media/base/decode_status.h" 13 #include "media/base/decode_status.h"
14 #include "media/base/sample_format.h"
12 #include "media/base/subsample_entry.h" 15 #include "media/base/subsample_entry.h"
13 #include "media/base/video_capture_types.h" 16 #include "media/base/video_capture_types.h"
14 #include "media/base/video_types.h" 17 #include "media/base/video_types.h"
15 18
19 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioCodec, media::AudioCodec::kAudioCodecMax)
20
16 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioLatency::LatencyType, 21 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioLatency::LatencyType,
17 media::AudioLatency::LATENCY_COUNT) 22 media::AudioLatency::LATENCY_COUNT)
18 23
19 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioParameters::Format, 24 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioParameters::Format,
20 media::AudioParameters::AUDIO_FORMAT_LAST) 25 media::AudioParameters::AUDIO_FORMAT_LAST)
21 26
22 IPC_ENUM_TRAITS_MAX_VALUE(media::BufferingState, 27 IPC_ENUM_TRAITS_MAX_VALUE(media::BufferingState,
23 media::BufferingState::BUFFERING_STATE_MAX) 28 media::BufferingState::BUFFERING_STATE_MAX)
24 29
30 IPC_ENUM_TRAITS_MAX_VALUE(media::ChannelLayout, media::CHANNEL_LAYOUT_MAX)
31
25 IPC_ENUM_TRAITS_MAX_VALUE(media::DecodeStatus, 32 IPC_ENUM_TRAITS_MAX_VALUE(media::DecodeStatus,
26 media::DecodeStatus::DECODE_STATUS_MAX) 33 media::DecodeStatus::DECODE_STATUS_MAX)
27 34
28 IPC_ENUM_TRAITS_MAX_VALUE(media::ChannelLayout, media::CHANNEL_LAYOUT_MAX) 35 IPC_ENUM_TRAITS_MAX_VALUE(media::SampleFormat, media::kSampleFormatMax)
29 36
30 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoPixelFormat, media::PIXEL_FORMAT_MAX) 37 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoPixelFormat, media::PIXEL_FORMAT_MAX)
31 38
32 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoPixelStorage, media::PIXEL_STORAGE_MAX) 39 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoPixelStorage, media::PIXEL_STORAGE_MAX)
33 40
34 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry) 41 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry)
35 IPC_STRUCT_TRAITS_MEMBER(clear_bytes) 42 IPC_STRUCT_TRAITS_MEMBER(clear_bytes)
36 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes) 43 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes)
37 IPC_STRUCT_TRAITS_END() 44 IPC_STRUCT_TRAITS_END()
38 45
39 #endif // MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_ 46 #endif // MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_
OLDNEW
« no previous file with comments | « no previous file | media/mojo/common/media_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698