chromium/third_party/libaom/source/libaom/test/av1_config_test.cc

/*
 * Copyright (c) 2018, Alliance for Open Media. All rights reserved.
 *
 * This source code is subject to the terms of the BSD 2 Clause License and
 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
 * was not distributed with this source code in the LICENSE file, you can
 * obtain it at www.aomedia.org/license/software. If the Alliance for Open
 * Media Patent License 1.0 was not distributed with this source code in the
 * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
 */
#include <string.h>

#include "common/av1_config.h"
#include "gtest/gtest.h"
#include "test/util.h"

namespace {

//
// Input buffers containing exactly one Sequence Header OBU.
//
// Each buffer is named according to the OBU storage format (Annex-B vs Low
// Overhead Bitstream Format) and the type of Sequence Header OBU ("Full"
// Sequence Header OBUs vs Sequence Header OBUs with the
// reduced_still_image_flag set).
//
const uint8_t kAnnexBFullSequenceHeaderObu[] =;
const uint8_t kAnnexBReducedStillImageSequenceHeaderObu[] =;

const uint8_t kLobfFullSequenceHeaderObu[] =;

const uint8_t kLobfReducedStillImageSequenceHeaderObu[] =;

const uint8_t kAv1cAllZero[] =;

// The size of AV1 config when no configOBUs are present at the end of the
// configuration structure.
const size_t kAv1cNoConfigObusSize =;

bool VerifyAv1c(const uint8_t *const obu_buffer, size_t obu_buffer_length,
                bool is_annexb) {}

TEST(Av1Config, ObuInvalidInputs) {}

TEST(Av1Config, ReadInvalidInputs) {}

TEST(Av1Config, WriteInvalidInputs) {}

TEST(Av1Config, GetAv1ConfigFromLobfObu) {}

TEST(Av1Config, GetAv1ConfigFromAnnexBObu) {}

TEST(Av1Config, ReadWriteConfig) {}

}  // namespace