#include "media/base/stream_parser_buffer.h"
#include <algorithm>
#include "base/check_op.h"
#include "base/compiler_specific.h"
#include "base/containers/span.h"
#include "base/memory/ptr_util.h"
#include "base/numerics/safe_conversions.h"
#include "media/base/media_client.h"
#include "media/base/timestamp_constants.h"
namespace media {
scoped_refptr<StreamParserBuffer> StreamParserBuffer::CreateEOSBuffer() { … }
scoped_refptr<StreamParserBuffer> StreamParserBuffer::CopyFrom(
const uint8_t* data,
int data_size,
bool is_key_frame,
Type type,
TrackId track_id) { … }
scoped_refptr<StreamParserBuffer> StreamParserBuffer::FromExternalMemory(
std::unique_ptr<ExternalMemory> external_memory,
bool is_key_frame,
Type type,
TrackId track_id) { … }
scoped_refptr<StreamParserBuffer> StreamParserBuffer::FromArray(
base::HeapArray<uint8_t> heap_array,
bool is_key_frame,
Type type,
TrackId track_id) { … }
DecodeTimestamp StreamParserBuffer::GetDecodeTimestamp() const { … }
void StreamParserBuffer::SetDecodeTimestamp(DecodeTimestamp timestamp) { … }
StreamParserBuffer::StreamParserBuffer(
std::unique_ptr<ExternalMemory> external_memory,
bool is_key_frame,
Type type,
TrackId track_id)
: … { … }
StreamParserBuffer::StreamParserBuffer(base::HeapArray<uint8_t> heap_array,
bool is_key_frame,
Type type,
TrackId track_id)
: … { … }
StreamParserBuffer::StreamParserBuffer(const uint8_t* data,
int data_size,
bool is_key_frame,
Type type,
TrackId track_id)
: … { … }
StreamParserBuffer::StreamParserBuffer(DecoderBufferType decoder_buffer_type)
: … { … }
StreamParserBuffer::~StreamParserBuffer() = default;
int StreamParserBuffer::GetConfigId() const { … }
void StreamParserBuffer::SetConfigId(int config_id) { … }
const char* StreamParserBuffer::GetTypeName() const { … }
void StreamParserBuffer::SetPrerollBuffer(
scoped_refptr<StreamParserBuffer> preroll_buffer) { … }
void StreamParserBuffer::set_timestamp(base::TimeDelta timestamp) { … }
size_t StreamParserBuffer::GetMemoryUsage() const { … }
}