chromium/third_party/libgav1/src/src/gav1/decoder_buffer.h

/*
 * Copyright 2019 The libgav1 Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef LIBGAV1_SRC_GAV1_DECODER_BUFFER_H_
#define LIBGAV1_SRC_GAV1_DECODER_BUFFER_H_

#if defined(__cplusplus)
#include <cstdint>
#else
#include <stdint.h>
#endif  // defined(__cplusplus)

#include "gav1/symbol_visibility.h"

// All the declarations in this file are part of the public ABI.

// The documentation for the enum values in this file can be found in Section
// 6.4.2 of the AV1 spec.

Libgav1ChromaSamplePosition;

Libgav1ImageFormat;

Libgav1ColorPrimary;

Libgav1TransferCharacteristics;

Libgav1MatrixCoefficients;

Libgav1ColorRange;

// Section 6.7.3.
Libgav1ObuMetadataHdrCll;

// Section 6.7.4.
Libgav1ObuMetadataHdrMdcv;

// Section 6.7.2.
Libgav1ObuMetadataItutT35;

Libgav1DecoderBuffer;

#if defined(__cplusplus)
namespace libgav1 {

ChromaSamplePosition;
constexpr ChromaSamplePosition kChromaSamplePositionUnknown =;
constexpr ChromaSamplePosition kChromaSamplePositionVertical =;
constexpr ChromaSamplePosition kChromaSamplePositionColocated =;
constexpr ChromaSamplePosition kChromaSamplePositionReserved =;

ImageFormat;
constexpr ImageFormat kImageFormatYuv420 =;
constexpr ImageFormat kImageFormatYuv422 =;
constexpr ImageFormat kImageFormatYuv444 =;
constexpr ImageFormat kImageFormatMonochrome400 =;

ColorPrimary;
constexpr ColorPrimary kColorPrimaryBt709 =;
constexpr ColorPrimary kColorPrimaryUnspecified =;
constexpr ColorPrimary kColorPrimaryBt470M =;
constexpr ColorPrimary kColorPrimaryBt470Bg =;
constexpr ColorPrimary kColorPrimaryBt601 =;
constexpr ColorPrimary kColorPrimarySmpte240 =;
constexpr ColorPrimary kColorPrimaryGenericFilm =;
constexpr ColorPrimary kColorPrimaryBt2020 =;
constexpr ColorPrimary kColorPrimaryXyz =;
constexpr ColorPrimary kColorPrimarySmpte431 =;
constexpr ColorPrimary kColorPrimarySmpte432 =;
constexpr ColorPrimary kColorPrimaryEbu3213 =;
constexpr ColorPrimary kMaxColorPrimaries =;

TransferCharacteristics;
constexpr TransferCharacteristics kTransferCharacteristicsBt709 =;
constexpr TransferCharacteristics kTransferCharacteristicsUnspecified =;
constexpr TransferCharacteristics kTransferCharacteristicsBt470M =;
constexpr TransferCharacteristics kTransferCharacteristicsBt470Bg =;
constexpr TransferCharacteristics kTransferCharacteristicsBt601 =;
constexpr TransferCharacteristics kTransferCharacteristicsSmpte240 =;
constexpr TransferCharacteristics kTransferCharacteristicsLinear =;
constexpr TransferCharacteristics kTransferCharacteristicsLog100 =;
constexpr TransferCharacteristics kTransferCharacteristicsLog100Sqrt10 =;
constexpr TransferCharacteristics kTransferCharacteristicsIec61966 =;
constexpr TransferCharacteristics kTransferCharacteristicsBt1361 =;
constexpr TransferCharacteristics kTransferCharacteristicsSrgb =;
constexpr TransferCharacteristics kTransferCharacteristicsBt2020TenBit =;
constexpr TransferCharacteristics kTransferCharacteristicsBt2020TwelveBit =;
constexpr TransferCharacteristics kTransferCharacteristicsSmpte2084 =;
constexpr TransferCharacteristics kTransferCharacteristicsSmpte428 =;
constexpr TransferCharacteristics kTransferCharacteristicsHlg =;
constexpr TransferCharacteristics kMaxTransferCharacteristics =;

MatrixCoefficients;
constexpr MatrixCoefficients kMatrixCoefficientsIdentity =;
constexpr MatrixCoefficients kMatrixCoefficientsBt709 =;
constexpr MatrixCoefficients kMatrixCoefficientsUnspecified =;
constexpr MatrixCoefficients kMatrixCoefficientsFcc =;
constexpr MatrixCoefficients kMatrixCoefficientsBt470BG =;
constexpr MatrixCoefficients kMatrixCoefficientsBt601 =;
constexpr MatrixCoefficients kMatrixCoefficientsSmpte240 =;
constexpr MatrixCoefficients kMatrixCoefficientsSmpteYcgco =;
constexpr MatrixCoefficients kMatrixCoefficientsBt2020Ncl =;
constexpr MatrixCoefficients kMatrixCoefficientsBt2020Cl =;
constexpr MatrixCoefficients kMatrixCoefficientsSmpte2085 =;
constexpr MatrixCoefficients kMatrixCoefficientsChromatNcl =;
constexpr MatrixCoefficients kMatrixCoefficientsChromatCl =;
constexpr MatrixCoefficients kMatrixCoefficientsIctcp =;
constexpr MatrixCoefficients kMaxMatrixCoefficients =;

ColorRange;
constexpr ColorRange kColorRangeStudio =;
constexpr ColorRange kColorRangeFull =;

ObuMetadataHdrCll;
ObuMetadataHdrMdcv;
ObuMetadataItutT35;

DecoderBuffer;

}  // namespace libgav1
#endif  // defined(__cplusplus)

#endif  // LIBGAV1_SRC_GAV1_DECODER_BUFFER_H_