blob: 5e1b992088e15dec60eaebec2a35b9cf08dd5b3d [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stddef.h>
#include <stdint.h>
#include <list>
#include "base/memory/ref_counted.h"
#include "media/base/audio_decoder_config.h"
#include "media/base/video_decoder_config.h"
namespace base {
class FilePath;
namespace chromecast {
namespace media {
class DecoderBufferBase;
typedef std::list<scoped_refptr<DecoderBufferBase> > BufferList;
// Implement some basic frame segmenters good enough for unit tests.
BufferList Mp3SegmenterForTest(const uint8_t* data, size_t data_size);
BufferList H264SegmenterForTest(const uint8_t* data, size_t data_size);
struct DemuxResult {
DemuxResult(const DemuxResult& other);
::media::AudioDecoderConfig audio_config;
::media::VideoDecoderConfig video_config;
BufferList frames;
DemuxResult FFmpegDemuxForTest(const base::FilePath& filepath,
bool audio);
} // namespace media
} // namespace chromecast