| OLD | NEW |
| 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 #include "chromecast/media/cma/ipc_streamer/video_decoder_config_marshaller.h" | 5 #include "chromecast/media/cma/ipc_streamer/video_decoder_config_marshaller.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chromecast/media/cma/ipc/media_message.h" | 9 #include "chromecast/media/cma/ipc/media_message.h" |
| 10 #include "media/base/video_decoder_config.h" | 10 #include "media/base/video_decoder_config.h" |
| 11 #include "ui/gfx/geometry/rect.h" | 11 #include "ui/gfx/geometry/rect.h" |
| 12 #include "ui/gfx/size.h" | 12 #include "ui/gfx/geometry/size.h" |
| 13 | 13 |
| 14 namespace chromecast { | 14 namespace chromecast { |
| 15 namespace media { | 15 namespace media { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 const size_t kMaxExtraDataSize = 16 * 1024; | 18 const size_t kMaxExtraDataSize = 16 * 1024; |
| 19 | 19 |
| 20 class SizeMarshaller { | 20 class SizeMarshaller { |
| 21 public: | 21 public: |
| 22 static void Write(const gfx::Size& size, MediaMessage* msg) { | 22 static void Write(const gfx::Size& size, MediaMessage* msg) { |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 return ::media::VideoDecoderConfig( | 105 return ::media::VideoDecoderConfig( |
| 106 codec, profile, format, | 106 codec, profile, format, |
| 107 coded_size, visible_rect, natural_size, | 107 coded_size, visible_rect, natural_size, |
| 108 extra_data.get(), extra_data_size, | 108 extra_data.get(), extra_data_size, |
| 109 is_encrypted); | 109 is_encrypted); |
| 110 } | 110 } |
| 111 | 111 |
| 112 } // namespace media | 112 } // namespace media |
| 113 } // namespace chromecast | 113 } // namespace chromecast |
| OLD | NEW |