| OLD | NEW |
| 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_PIPELINE_METADATA_H_ | 5 #ifndef MEDIA_BASE_PIPELINE_METADATA_H_ |
| 6 #define MEDIA_BASE_PIPELINE_METADATA_H_ | 6 #define MEDIA_BASE_PIPELINE_METADATA_H_ |
| 7 | 7 |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "media/base/audio_decoder_config.h" |
| 10 #include "media/base/video_decoder_config.h" |
| 9 #include "media/base/video_rotation.h" | 11 #include "media/base/video_rotation.h" |
| 10 #include "ui/gfx/geometry/size.h" | 12 #include "ui/gfx/geometry/size.h" |
| 11 | 13 |
| 12 namespace media { | 14 namespace media { |
| 13 | 15 |
| 14 // Metadata describing a pipeline once it has been initialized. | 16 // Metadata describing a pipeline once it has been initialized. |
| 15 struct PipelineMetadata { | 17 struct MEDIA_EXPORT PipelineMetadata { |
| 16 PipelineMetadata() | 18 PipelineMetadata(); |
| 17 : has_audio(false), has_video(false), video_rotation(VIDEO_ROTATION_0) {} | 19 ~PipelineMetadata(); |
| 20 |
| 21 // Required by Chromium style: Complex class/struct needs an explicit |
| 22 // out-of-line copy constructor. |
| 23 PipelineMetadata(const PipelineMetadata&); |
| 18 | 24 |
| 19 bool has_audio; | 25 bool has_audio; |
| 20 bool has_video; | 26 bool has_video; |
| 27 AudioDecoderConfig audio_decoder_config; |
| 28 VideoDecoderConfig video_decoder_config; |
| 21 gfx::Size natural_size; | 29 gfx::Size natural_size; |
| 22 VideoRotation video_rotation; | 30 VideoRotation video_rotation; |
| 23 base::Time timeline_offset; | 31 base::Time timeline_offset; |
| 24 }; | 32 }; |
| 25 | 33 |
| 26 } // namespace media | 34 } // namespace media |
| 27 | 35 |
| 28 #endif // MEDIA_BASE_PIPELINE_METADATA_H_ | 36 #endif // MEDIA_BASE_PIPELINE_METADATA_H_ |
| OLD | NEW |