OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_ANDROID_DEMUXER_STREAM_PLAYER_PARAMS_H_ | 5 #ifndef MEDIA_BASE_ANDROID_DEMUXER_STREAM_PLAYER_PARAMS_H_ |
6 #define MEDIA_BASE_ANDROID_DEMUXER_STREAM_PLAYER_PARAMS_H_ | 6 #define MEDIA_BASE_ANDROID_DEMUXER_STREAM_PLAYER_PARAMS_H_ |
7 | 7 |
| 8 #if defined(GOOGLE_TV) |
8 #include <string> | 9 #include <string> |
| 10 #endif // defined(GOOGLE_TV) |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "media/base/audio_decoder_config.h" | 13 #include "media/base/audio_decoder_config.h" |
12 #include "media/base/decrypt_config.h" | 14 #include "media/base/decrypt_config.h" |
13 #include "media/base/demuxer_stream.h" | 15 #include "media/base/demuxer_stream.h" |
14 #include "media/base/media_export.h" | 16 #include "media/base/media_export.h" |
15 #include "media/base/video_decoder_config.h" | 17 #include "media/base/video_decoder_config.h" |
16 #include "ui/gfx/size.h" | 18 #include "ui/gfx/size.h" |
17 | 19 |
18 namespace media { | 20 namespace media { |
19 | 21 |
20 struct MEDIA_EXPORT DemuxerConfigs { | 22 struct MEDIA_EXPORT DemuxerConfigs { |
21 DemuxerConfigs(); | 23 DemuxerConfigs(); |
22 ~DemuxerConfigs(); | 24 ~DemuxerConfigs(); |
23 | 25 |
24 AudioCodec audio_codec; | 26 AudioCodec audio_codec; |
25 int audio_channels; | 27 int audio_channels; |
26 int audio_sampling_rate; | 28 int audio_sampling_rate; |
27 bool is_audio_encrypted; | 29 bool is_audio_encrypted; |
28 std::vector<uint8> audio_extra_data; | 30 std::vector<uint8> audio_extra_data; |
29 | 31 |
30 VideoCodec video_codec; | 32 VideoCodec video_codec; |
31 gfx::Size video_size; | 33 gfx::Size video_size; |
32 bool is_video_encrypted; | 34 bool is_video_encrypted; |
33 std::vector<uint8> video_extra_data; | 35 std::vector<uint8> video_extra_data; |
34 | 36 |
35 int duration_ms; | 37 int duration_ms; |
| 38 |
| 39 #if defined(GOOGLE_TV) |
36 std::string key_system; | 40 std::string key_system; |
| 41 #endif // defined(GOOGLE_TV) |
37 }; | 42 }; |
38 | 43 |
39 struct MEDIA_EXPORT AccessUnit { | 44 struct MEDIA_EXPORT AccessUnit { |
40 AccessUnit(); | 45 AccessUnit(); |
41 ~AccessUnit(); | 46 ~AccessUnit(); |
42 | 47 |
43 DemuxerStream::Status status; | 48 DemuxerStream::Status status; |
44 bool end_of_stream; | 49 bool end_of_stream; |
45 // TODO(ycheo): Use the shared memory to transfer the block data. | 50 // TODO(ycheo): Use the shared memory to transfer the block data. |
46 std::vector<uint8> data; | 51 std::vector<uint8> data; |
47 base::TimeDelta timestamp; | 52 base::TimeDelta timestamp; |
48 std::vector<char> key_id; | 53 std::vector<char> key_id; |
49 std::vector<char> iv; | 54 std::vector<char> iv; |
50 std::vector<media::SubsampleEntry> subsamples; | 55 std::vector<media::SubsampleEntry> subsamples; |
51 }; | 56 }; |
52 | 57 |
53 struct MEDIA_EXPORT DemuxerData { | 58 struct MEDIA_EXPORT DemuxerData { |
54 DemuxerData(); | 59 DemuxerData(); |
55 ~DemuxerData(); | 60 ~DemuxerData(); |
56 | 61 |
57 DemuxerStream::Type type; | 62 DemuxerStream::Type type; |
58 std::vector<AccessUnit> access_units; | 63 std::vector<AccessUnit> access_units; |
59 }; | 64 }; |
60 | 65 |
61 }; // namespace media | 66 }; // namespace media |
62 | 67 |
63 #endif // MEDIA_BASE_ANDROID_DEMUXER_STREAM_PLAYER_PARAMS_H_ | 68 #endif // MEDIA_BASE_ANDROID_DEMUXER_STREAM_PLAYER_PARAMS_H_ |
OLD | NEW |