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

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

Issue 1490613005: media config: expand is_encrypted to a struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more tweak in chromecast/common Created 5 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
OLDNEW
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 // Singly or Multiply-included shared traits file depending on circumstances. 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 6 // This allows the use of IPC serialization macros in more than one IPC message
7 // file. 7 // file.
8 #ifndef CHROMECAST_COMMON_MEDIA_CMA_PARAM_TRAITS_MACROS_H_ 8 #ifndef CHROMECAST_COMMON_MEDIA_CMA_PARAM_TRAITS_MACROS_H_
9 #define CHROMECAST_COMMON_MEDIA_CMA_PARAM_TRAITS_MACROS_H_ 9 #define CHROMECAST_COMMON_MEDIA_CMA_PARAM_TRAITS_MACROS_H_
10 10
(...skipping 26 matching lines...) Expand all
37 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::SampleFormat, 37 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::SampleFormat,
38 media::SampleFormat::kUnknownSampleFormat, 38 media::SampleFormat::kUnknownSampleFormat,
39 media::SampleFormat::kSampleFormatMax) 39 media::SampleFormat::kSampleFormatMax)
40 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::PipelineStatus, 40 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::PipelineStatus,
41 media::PIPELINE_OK, 41 media::PIPELINE_OK,
42 media::PIPELINE_STATUS_MAX) 42 media::PIPELINE_STATUS_MAX)
43 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::VideoCodec, 43 IPC_ENUM_TRAITS_MIN_MAX_VALUE(media::VideoCodec,
44 media::VideoCodec::kUnknownVideoCodec, 44 media::VideoCodec::kUnknownVideoCodec,
45 media::VideoCodec::kVideoCodecMax) 45 media::VideoCodec::kVideoCodecMax)
46 IPC_ENUM_TRAITS_MAX_VALUE(media::ColorSpace, media::COLOR_SPACE_MAX) 46 IPC_ENUM_TRAITS_MAX_VALUE(media::ColorSpace, media::COLOR_SPACE_MAX)
47 IPC_ENUM_TRAITS_MAX_VALUE(media::EncryptionScheme::CipherMode,
48 media::EncryptionScheme::kCipherModeMax);
47 49
48 IPC_STRUCT_TRAITS_BEGIN(media::PipelineStatistics) 50 IPC_STRUCT_TRAITS_BEGIN(media::PipelineStatistics)
49 IPC_STRUCT_TRAITS_MEMBER(audio_bytes_decoded) 51 IPC_STRUCT_TRAITS_MEMBER(audio_bytes_decoded)
50 IPC_STRUCT_TRAITS_MEMBER(video_bytes_decoded) 52 IPC_STRUCT_TRAITS_MEMBER(video_bytes_decoded)
51 IPC_STRUCT_TRAITS_MEMBER(video_frames_decoded) 53 IPC_STRUCT_TRAITS_MEMBER(video_frames_decoded)
52 IPC_STRUCT_TRAITS_MEMBER(video_frames_dropped) 54 IPC_STRUCT_TRAITS_MEMBER(video_frames_dropped)
53 IPC_STRUCT_TRAITS_END() 55 IPC_STRUCT_TRAITS_END()
54 56
55 #endif // CHROMECAST_COMMON_MEDIA_CMA_PARAM_TRAITS_MACROS_H_ 57 #endif // CHROMECAST_COMMON_MEDIA_CMA_PARAM_TRAITS_MACROS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698