chromium/third_party/libgav1/src/src/symbol_decoder_context.cc

// 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.

#include "src/symbol_decoder_context.h"

#include <cassert>
#include <cstring>
#include <type_traits>

namespace libgav1 {
namespace {

// Import all the constants in the anonymous namespace.
#include "src/symbol_decoder_context_cdfs.inc"

uint8_t GetQuantizerContext(int base_quantizer_index) {}

// Reset*Counters() are helper functions to reset the CDF arrays where the
// counters are not in the last element of the innermost dimension.

void ResetPartitionCounters(SymbolDecoderContext* const context) {}

void ResetPaletteColorIndexCounters(SymbolDecoderContext* const context) {}

void ResetTxTypeCounters(SymbolDecoderContext* const context) {}

void ResetTxDepthCounters(SymbolDecoderContext* const context) {}

void ResetUVModeCounters(SymbolDecoderContext* const context) {}

}  // namespace

#define CDF_COPY

void SymbolDecoderContext::Initialize(int base_quantizer_index) {}

void SymbolDecoderContext::ResetIntraFrameYModeCdf() {}

#undef CDF_COPY

// These macros set the last element in the inner-most dimension of the array to
// zero.
#define RESET_COUNTER_1D

#define RESET_COUNTER_2D

#define RESET_COUNTER_3D

#define RESET_COUNTER_4D

void SymbolDecoderContext::ResetCounters() {}

#undef RESET_COUNTER_1D
#undef RESET_COUNTER_2D
#undef RESET_COUNTER_3D
#undef RESET_COUNTER_4D

int SymbolDecoderContext::PartitionCdfSize(int block_size_log2) {}

}  // namespace libgav1