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

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

Issue 2408063009: media: Use native DecodeStatus in media mojo interfaces (Closed)
Patch Set: comments addressed 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 | « media/base/decode_status.h ('k') | media/mojo/clients/mojo_audio_decoder.h » ('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_parameters.h" 9 #include "media/base/audio_parameters.h"
10 #include "media/base/buffering_state.h" 10 #include "media/base/buffering_state.h"
11 #include "media/base/decode_status.h"
11 #include "media/base/subsample_entry.h" 12 #include "media/base/subsample_entry.h"
12 #include "media/base/video_capture_types.h" 13 #include "media/base/video_capture_types.h"
13 #include "media/base/video_types.h" 14 #include "media/base/video_types.h"
14 15
15 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioLatency::LatencyType, 16 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioLatency::LatencyType,
16 media::AudioLatency::LATENCY_COUNT) 17 media::AudioLatency::LATENCY_COUNT)
17 18
18 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioParameters::Format, 19 IPC_ENUM_TRAITS_MAX_VALUE(media::AudioParameters::Format,
19 media::AudioParameters::AUDIO_FORMAT_LAST) 20 media::AudioParameters::AUDIO_FORMAT_LAST)
20 21
21 IPC_ENUM_TRAITS_MAX_VALUE(media::BufferingState, 22 IPC_ENUM_TRAITS_MAX_VALUE(media::BufferingState,
22 media::BufferingState::BUFFERING_STATE_MAX) 23 media::BufferingState::BUFFERING_STATE_MAX)
23 24
25 IPC_ENUM_TRAITS_MAX_VALUE(media::DecodeStatus,
26 media::DecodeStatus::DECODE_STATUS_MAX)
27
24 IPC_ENUM_TRAITS_MAX_VALUE(media::ChannelLayout, media::CHANNEL_LAYOUT_MAX) 28 IPC_ENUM_TRAITS_MAX_VALUE(media::ChannelLayout, media::CHANNEL_LAYOUT_MAX)
25 29
26 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoPixelFormat, media::PIXEL_FORMAT_MAX) 30 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoPixelFormat, media::PIXEL_FORMAT_MAX)
27 31
28 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoPixelStorage, media::PIXEL_STORAGE_MAX) 32 IPC_ENUM_TRAITS_MAX_VALUE(media::VideoPixelStorage, media::PIXEL_STORAGE_MAX)
29 33
30 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry) 34 IPC_STRUCT_TRAITS_BEGIN(media::SubsampleEntry)
31 IPC_STRUCT_TRAITS_MEMBER(clear_bytes) 35 IPC_STRUCT_TRAITS_MEMBER(clear_bytes)
32 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes) 36 IPC_STRUCT_TRAITS_MEMBER(cypher_bytes)
33 IPC_STRUCT_TRAITS_END() 37 IPC_STRUCT_TRAITS_END()
34 38
35 #endif // MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_ 39 #endif // MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_MACROS_H_
OLDNEW
« no previous file with comments | « media/base/decode_status.h ('k') | media/mojo/clients/mojo_audio_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698