OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/common/media/media_param_traits.h" | 5 #include "content/common/media/media_param_traits.h" |
6 | 6 |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "media/audio/audio_parameters.h" | 8 #include "media/audio/audio_parameters.h" |
9 #include "media/base/limits.h" | 9 #include "media/base/limits.h" |
10 #include "media/video/capture/video_capture_types.h" | 10 #include "media/base/video_capture_types.h" |
11 | 11 |
12 using media::AudioParameters; | 12 using media::AudioParameters; |
13 using media::ChannelLayout; | 13 using media::ChannelLayout; |
14 using media::VideoCaptureFormat; | 14 using media::VideoCaptureFormat; |
15 using media::VideoPixelFormat; | 15 using media::VideoPixelFormat; |
16 | 16 |
17 namespace IPC { | 17 namespace IPC { |
18 | 18 |
19 void ParamTraits<AudioParameters>::Write(Message* m, | 19 void ParamTraits<AudioParameters>::Write(Message* m, |
20 const AudioParameters& p) { | 20 const AudioParameters& p) { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 return false; | 81 return false; |
82 return true; | 82 return true; |
83 } | 83 } |
84 | 84 |
85 void ParamTraits<VideoCaptureFormat>::Log(const VideoCaptureFormat& p, | 85 void ParamTraits<VideoCaptureFormat>::Log(const VideoCaptureFormat& p, |
86 std::string* l) { | 86 std::string* l) { |
87 l->append(base::StringPrintf("<VideoCaptureFormat>")); | 87 l->append(base::StringPrintf("<VideoCaptureFormat>")); |
88 } | 88 } |
89 | 89 |
90 } | 90 } |
OLD | NEW |