Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROMECAST_MEDIA_CMA_TEST_FRAME_SEGMENTER_FOR_TEST_H_ | |
| 6 #define CHROMECAST_MEDIA_CMA_TEST_FRAME_SEGMENTER_FOR_TEST_H_ | |
| 7 | |
| 8 #include <list> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/memory/ref_counted.h" | |
| 12 #include "media/base/audio_decoder_config.h" | |
| 13 #include "media/base/video_decoder_config.h" | |
| 14 | |
| 15 namespace base { | |
| 16 class FilePath; | |
| 17 } | |
| 18 | |
| 19 namespace chromecast { | |
| 20 namespace media { | |
| 21 class DecoderBufferBase; | |
| 22 | |
| 23 // Implement some basic frame segmenters good enough for unit tests. | |
| 24 std::list<scoped_refptr<DecoderBufferBase> > Mp3SegmenterForTest( | |
| 25 const uint8* data, size_t data_size); | |
| 26 | |
| 27 std::list<scoped_refptr<DecoderBufferBase> > H264SegmenterForTest( | |
| 28 const uint8* data, size_t data_size); | |
| 29 | |
| 30 typedef std::list< scoped_refptr<DecoderBufferBase> > BufferList; | |
|
damienv1
2014/10/03 16:48:50
nit1: Can you define it before and also use it for
gunsch
2014/10/03 16:52:53
Done.
| |
| 31 | |
| 32 struct DemuxResult { | |
| 33 DemuxResult(); | |
| 34 ~DemuxResult(); | |
| 35 | |
| 36 ::media::AudioDecoderConfig audio_config; | |
| 37 ::media::VideoDecoderConfig video_config; | |
| 38 BufferList frames; | |
| 39 }; | |
| 40 | |
| 41 DemuxResult FFmpegDemuxForTest(const base::FilePath& filepath, | |
| 42 bool audio); | |
| 43 | |
| 44 } // namespace media | |
| 45 } // namespace chromecast | |
| 46 | |
| 47 #endif // CHROMECAST_MEDIA_CMA_TEST_FRAME_SEGMENTER_FOR_TEST_H_ | |
| OLD | NEW |