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

Side by Side Diff: chromecast/media/cma/test/frame_segmenter_for_test.h

Issue 609383004: Chromecast: adds test frame-segmenter code to support CMA unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cma-decrypt-context
Patch Set: style fixes Created 6 years, 2 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
(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 typedef std::list<scoped_refptr<DecoderBufferBase> > BufferList;
24
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);
28
29 struct DemuxResult {
30 DemuxResult();
31 ~DemuxResult();
32
33 ::media::AudioDecoderConfig audio_config;
34 ::media::VideoDecoderConfig video_config;
35 BufferList frames;
36 };
37
38 DemuxResult FFmpegDemuxForTest(const base::FilePath& filepath,
39 bool audio);
40
41 } // namespace media
42 } // namespace chromecast
43
44 #endif // CHROMECAST_MEDIA_CMA_TEST_FRAME_SEGMENTER_FOR_TEST_H_
OLDNEW
« no previous file with comments | « chromecast/media/cma/test/frame_generator_for_test.cc ('k') | chromecast/media/cma/test/frame_segmenter_for_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698