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

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

Issue 1128383003: Implementation of MediaCodecPlayer stage 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: AccessUnitQueue::GetInfo() returns result by value Created 5 years, 6 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 #include "media/base/android/demuxer_stream_player_params.h" 5 #include "media/base/android/demuxer_stream_player_params.h"
6 6
7 namespace media { 7 namespace media {
8 8
9 DemuxerConfigs::DemuxerConfigs() 9 DemuxerConfigs::DemuxerConfigs()
10 : audio_codec(kUnknownAudioCodec), 10 : audio_codec(kUnknownAudioCodec),
11 audio_channels(0), 11 audio_channels(0),
12 audio_sampling_rate(0), 12 audio_sampling_rate(0),
13 is_audio_encrypted(false), 13 is_audio_encrypted(false),
14 audio_codec_delay_ns(-1), 14 audio_codec_delay_ns(-1),
15 audio_seek_preroll_ns(-1), 15 audio_seek_preroll_ns(-1),
16 video_codec(kUnknownVideoCodec), 16 video_codec(kUnknownVideoCodec),
17 is_video_encrypted(false) {} 17 is_video_encrypted(false) {}
18 18
19 DemuxerConfigs::~DemuxerConfigs() {} 19 DemuxerConfigs::~DemuxerConfigs() {}
20 20
21 AccessUnit::AccessUnit() : is_end_of_stream(false), is_key_frame(false) {} 21 AccessUnit::AccessUnit() : is_end_of_stream(false), is_key_frame(false) {}
22 22
23 AccessUnit::~AccessUnit() {} 23 AccessUnit::~AccessUnit() {}
24 24
25 DemuxerData::DemuxerData() : type(DemuxerStream::UNKNOWN) {} 25 DemuxerData::DemuxerData() : type(DemuxerStream::UNKNOWN) {}
26 26
27 DemuxerData::~DemuxerData() {} 27 DemuxerData::~DemuxerData() {}
28 28
29 } // namespace media 29 } // namespace media
30
31 std::ostream& operator<<(std::ostream& os, const media::AccessUnit& au) {
32 os << "status:" << au.status
33 << (au.is_end_of_stream ? " EOS" : "")
34 << (au.is_key_frame ? " KEY_FRAME" : "")
35 << " pts:" << au.timestamp
36 << " size:" << au.data.size();
37 return os;
38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698