chromium/media/cdm/cdm_helpers.cc

// Copyright 2015 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/cdm/cdm_helpers.h"

#include "base/check.h"
#include "ui/gfx/color_space.h"

namespace media {

namespace {

// See ISO 23001-8:2016, section 7. Value 2 means "Unspecified".
constexpr cdm::ColorSpace kUnspecifiedColorSpace =;

gfx::ColorSpace::RangeID ToGfxColorSpaceRange(cdm::ColorRange range) {}

}  // namespace

DecryptedBlockImpl::DecryptedBlockImpl() :{}

DecryptedBlockImpl::~DecryptedBlockImpl() {}

void DecryptedBlockImpl::SetDecryptedBuffer(cdm::Buffer* buffer) {}

cdm::Buffer* DecryptedBlockImpl::DecryptedBuffer() {}

void DecryptedBlockImpl::SetTimestamp(int64_t timestamp) {}

int64_t DecryptedBlockImpl::Timestamp() const {}

VideoFrameImpl::VideoFrameImpl()
    :{}

VideoFrameImpl::~VideoFrameImpl() {}

void VideoFrameImpl::SetFormat(cdm::VideoFormat format) {}

cdm::VideoFormat VideoFrameImpl::Format() const {}

void VideoFrameImpl::SetSize(cdm::Size size) {}

cdm::Size VideoFrameImpl::Size() const {}

void VideoFrameImpl::SetFrameBuffer(cdm::Buffer* frame_buffer) {}

cdm::Buffer* VideoFrameImpl::FrameBuffer() {}

void VideoFrameImpl::SetPlaneOffset(cdm::VideoPlane plane, uint32_t offset) {}

uint32_t VideoFrameImpl::PlaneOffset(cdm::VideoPlane plane) {}

void VideoFrameImpl::SetStride(cdm::VideoPlane plane, uint32_t stride) {}

uint32_t VideoFrameImpl::Stride(cdm::VideoPlane plane) {}

void VideoFrameImpl::SetTimestamp(int64_t timestamp) {}

int64_t VideoFrameImpl::Timestamp() const {}

void VideoFrameImpl::SetColorSpace(cdm::ColorSpace color_space) {}

media::VideoColorSpace VideoFrameImpl::MediaColorSpace() const {}

AudioFramesImpl::AudioFramesImpl()
    :{}

AudioFramesImpl::~AudioFramesImpl() {}

void AudioFramesImpl::SetFrameBuffer(cdm::Buffer* buffer) {}

cdm::Buffer* AudioFramesImpl::FrameBuffer() {}

void AudioFramesImpl::SetFormat(cdm::AudioFormat format) {}

cdm::AudioFormat AudioFramesImpl::Format() const {}

cdm::Buffer* AudioFramesImpl::PassFrameBuffer() {}

}  // namespace media