chromium/third_party/libaom/source/libaom/av1/encoder/svc_layercontext.c

/*
 * Copyright (c) 2019, 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 <assert.h>
#include <math.h>

#include "av1/encoder/encoder.h"
#include "av1/encoder/encoder_alloc.h"

static void swap_ptr(void *a, void *b) {}

void av1_init_layer_context(AV1_COMP *const cpi) {}

bool av1_alloc_layer_context(AV1_COMP *cpi, int num_layers) {}

// Update the layer context from a change_config() call.
void av1_update_layer_context_change_config(AV1_COMP *const cpi,
                                            const int64_t target_bandwidth) {}

/*!\brief Return layer context for current layer.
 *
 * \ingroup rate_control
 * \param[in]       cpi   Top level encoder structure
 *
 * \return LAYER_CONTEXT for current layer.
 */
static LAYER_CONTEXT *get_layer_context(AV1_COMP *const cpi) {}

void av1_update_temporal_layer_framerate(AV1_COMP *const cpi) {}

bool av1_check_ref_is_low_spatial_res_super_frame(AV1_COMP *const cpi,
                                                  int ref_frame) {}

void av1_restore_layer_context(AV1_COMP *const cpi) {}

void av1_svc_update_buffer_slot_refreshed(AV1_COMP *const cpi) {}

void av1_save_layer_context(AV1_COMP *const cpi) {}

int av1_svc_primary_ref_frame(const AV1_COMP *const cpi) {}

void av1_free_svc_cyclic_refresh(AV1_COMP *const cpi) {}

void av1_svc_reset_temporal_layers(AV1_COMP *const cpi, int is_key) {}

void av1_get_layer_resolution(const int width_org, const int height_org,
                              const int num, const int den, int *width_out,
                              int *height_out) {}

void av1_one_pass_cbr_svc_start_layer(AV1_COMP *const cpi) {}

enum {};

// For fixed svc mode: fixed pattern is set based on the number of
// spatial and temporal layers, and the ksvc_fixed_mode.
void av1_set_svc_fixed_mode(AV1_COMP *const cpi) {}

void av1_svc_check_reset_layer_rc_flag(AV1_COMP *const cpi) {}

void av1_svc_set_last_source(AV1_COMP *const cpi, EncodeFrameInput *frame_input,
                             YV12_BUFFER_CONFIG *prev_source) {}

int av1_svc_get_min_ref_dist(const AV1_COMP *cpi) {}

void av1_svc_set_reference_was_previous(AV1_COMP *cpi) {}