chromium/media/base/fake_demuxer_stream.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "media/base/fake_demuxer_stream.h"

#include <stdint.h>

#include <memory>
#include <vector>

#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/memory/raw_ptr.h"
#include "base/notreached.h"
#include "base/task/bind_post_task.h"
#include "base/task/single_thread_task_runner.h"
#include "media/base/decoder_buffer.h"
#include "media/base/decrypt_config.h"
#include "media/base/media_util.h"
#include "media/base/test_helpers.h"
#include "media/base/timestamp_constants.h"
#include "media/base/video_frame.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"

namespace media {

const int kStartTimestampMs =;
const int kDurationMs =;
const int kDefaultStartWidth =;
const int kDefaultStartHeight =;
const int kDefaultWidthDelta =;
const int kDefaultHeightDelta =;
const uint8_t kKeyId[] =;
const uint8_t kIv[] =;

FakeDemuxerStream::FakeDemuxerStream(int num_configs,
                                     int num_buffers_in_one_config,
                                     bool is_encrypted)
    :{}

FakeDemuxerStream::FakeDemuxerStream(int num_configs,
                                     int num_buffers_in_one_config,
                                     bool is_encrypted,
                                     gfx::Size start_coded_size,
                                     gfx::Vector2dF coded_size_delta)
    :{}

FakeDemuxerStream::~FakeDemuxerStream() = default;

void FakeDemuxerStream::Initialize() {}

// Only return one buffer at a time so we ignore the count.
void FakeDemuxerStream::Read(uint32_t /*count*/, ReadCB read_cb) {}

AudioDecoderConfig FakeDemuxerStream::audio_decoder_config() {}

VideoDecoderConfig FakeDemuxerStream::video_decoder_config() {}

// TODO(xhwang): Support audio if needed.
DemuxerStream::Type FakeDemuxerStream::type() const {}

bool FakeDemuxerStream::SupportsConfigChanges() {}

void FakeDemuxerStream::HoldNextRead() {}

void FakeDemuxerStream::HoldNextConfigChangeRead() {}

void FakeDemuxerStream::SatisfyRead() {}

void FakeDemuxerStream::SatisfyReadAndHoldNext() {}

void FakeDemuxerStream::Reset() {}

void FakeDemuxerStream::Error() {}

void FakeDemuxerStream::SeekToStart() {}

void FakeDemuxerStream::SeekToEndOfStream() {}

void FakeDemuxerStream::UpdateVideoDecoderConfig() {}

void FakeDemuxerStream::DoRead() {}

FakeMediaResource::FakeMediaResource(int num_video_configs,
                                     int num_video_buffers_in_one_config,
                                     bool is_video_encrypted)
    :{}

FakeMediaResource::~FakeMediaResource() = default;

std::vector<DemuxerStream*> FakeMediaResource::GetAllStreams() {}

}  // namespace media