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.
5 #ifndef CHROMECAST_MEDIA_CMA_TEST_FRAME_SEGMENTER_FOR_TEST_H_
6 #define CHROMECAST_MEDIA_CMA_TEST_FRAME_SEGMENTER_FOR_TEST_H_
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"
19 namespace chromecast
{
21 class DecoderBufferBase
;
23 typedef std::list
<scoped_refptr
<DecoderBufferBase
> > BufferList
;
25 // Implement some basic frame segmenters good enough for unit tests.
26 BufferList
Mp3SegmenterForTest(const uint8
* data
, size_t data_size
);
27 BufferList
H264SegmenterForTest(const uint8
* data
, size_t data_size
);
33 ::media::AudioDecoderConfig audio_config
;
34 ::media::VideoDecoderConfig video_config
;
38 DemuxResult
FFmpegDemuxForTest(const base::FilePath
& filepath
,
42 } // namespace chromecast
44 #endif // CHROMECAST_MEDIA_CMA_TEST_FRAME_SEGMENTER_FOR_TEST_H_