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

Side by Side Diff: media/base/android/demuxer_stream_player_params.h

Issue 239743005: Updates WebMediaPlayerAndroid and MediaSourceDelegate to respect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: const Created 6 years, 8 months 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 (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 #include <vector> 8 #include <vector>
9 9
10 #include "media/base/audio_decoder_config.h" 10 #include "media/base/audio_decoder_config.h"
(...skipping 13 matching lines...) Expand all
24 int audio_channels; 24 int audio_channels;
25 int audio_sampling_rate; 25 int audio_sampling_rate;
26 bool is_audio_encrypted; 26 bool is_audio_encrypted;
27 std::vector<uint8> audio_extra_data; 27 std::vector<uint8> audio_extra_data;
28 28
29 VideoCodec video_codec; 29 VideoCodec video_codec;
30 gfx::Size video_size; 30 gfx::Size video_size;
31 bool is_video_encrypted; 31 bool is_video_encrypted;
32 std::vector<uint8> video_extra_data; 32 std::vector<uint8> video_extra_data;
33 33
34 int duration_ms; 34 base::TimeDelta duration;
35 }; 35 };
36 36
37 struct MEDIA_EXPORT AccessUnit { 37 struct MEDIA_EXPORT AccessUnit {
38 AccessUnit(); 38 AccessUnit();
39 ~AccessUnit(); 39 ~AccessUnit();
40 40
41 DemuxerStream::Status status; 41 DemuxerStream::Status status;
42 bool end_of_stream; 42 bool end_of_stream;
43 // TODO(ycheo): Use the shared memory to transfer the block data. 43 // TODO(ycheo): Use the shared memory to transfer the block data.
44 std::vector<uint8> data; 44 std::vector<uint8> data;
45 base::TimeDelta timestamp; 45 base::TimeDelta timestamp;
46 std::vector<char> key_id; 46 std::vector<char> key_id;
47 std::vector<char> iv; 47 std::vector<char> iv;
48 std::vector<media::SubsampleEntry> subsamples; 48 std::vector<media::SubsampleEntry> subsamples;
49 }; 49 };
50 50
51 struct MEDIA_EXPORT DemuxerData { 51 struct MEDIA_EXPORT DemuxerData {
52 DemuxerData(); 52 DemuxerData();
53 ~DemuxerData(); 53 ~DemuxerData();
54 54
55 DemuxerStream::Type type; 55 DemuxerStream::Type type;
56 std::vector<AccessUnit> access_units; 56 std::vector<AccessUnit> access_units;
57 }; 57 };
58 58
59 }; // namespace media 59 }; // namespace media
60 60
61 #endif // MEDIA_BASE_ANDROID_DEMUXER_STREAM_PLAYER_PARAMS_H_ 61 #endif // MEDIA_BASE_ANDROID_DEMUXER_STREAM_PLAYER_PARAMS_H_
OLDNEW
« no previous file with comments | « content/renderer/media/android/webmediaplayer_android.cc ('k') | media/base/android/demuxer_stream_player_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698