11#ifndef AOM_AV1_ENCODER_SVC_LAYERCONTEXT_H_
12#define AOM_AV1_ENCODER_SVC_LAYERCONTEXT_H_
14#include "av1/encoder/aq_cyclicrefresh.h"
16#include "av1/encoder/ratectrl.h"
31 int64_t layer_target_bitrate;
32 int scaling_factor_num;
33 int scaling_factor_den;
34 int64_t target_bandwidth;
35 int64_t spatial_layer_target_bandwidth;
40 int frames_from_key_frame;
95 int temporal_layer_id;
96 int number_spatial_layers;
97 int number_temporal_layers;
98 int set_ref_frame_config;
99 int non_reference_frame;
100 int use_flexible_mode;
102 int ref_frame_comp[3];
111 int ref_idx[INTER_REFS_PER_FRAME];
112 int refresh[REF_FRAMES];
113 double base_framerate;
114 unsigned int current_superframe;
115 unsigned int buffer_time_index[REF_FRAMES];
116 unsigned char buffer_spatial_layer[REF_FRAMES];
117 int skip_mvsearch_last;
118 int skip_mvsearch_gf;
119 int spatial_layer_fb[REF_FRAMES];
120 int temporal_layer_fb[REF_FRAMES];
121 int num_encoded_top_layer;
122 int first_layer_denoise;
173 const int64_t target_bandwidth);
276 const int num,
const int den,
int *width_out,
279void av1_set_svc_fixed_mode(
struct AV1_COMP *
const cpi);
281void av1_svc_check_reset_layer_rc_flag(
struct AV1_COMP *
const cpi);
Declares top-level encoder structures and functions.
int av1_svc_primary_ref_frame(const struct AV1_COMP *const cpi)
Get primary reference frame for current layer.
void av1_update_temporal_layer_framerate(struct AV1_COMP *const cpi)
Prior to encoding the frame, update framerate-related quantities for the current temporal layer.
Definition svc_layercontext.c:150
void av1_svc_reset_temporal_layers(struct AV1_COMP *const cpi, int is_key)
Reset on key frame: reset counters, references and buffer updates.
Definition svc_layercontext.c:309
void av1_restore_layer_context(struct AV1_COMP *const cpi)
Prior to encoding the frame, set the layer context, for the current layer to be encoded,...
Definition svc_layercontext.c:174
void av1_save_layer_context(struct AV1_COMP *const cpi)
Save the layer context after encoding the frame.
Definition svc_layercontext.c:221
void av1_init_layer_context(struct AV1_COMP *const cpi)
Initialize layer context data from init_config().
Definition svc_layercontext.c:23
void av1_free_svc_cyclic_refresh(struct AV1_COMP *const cpi)
Free the memory used for cyclic refresh in layer context.
Definition svc_layercontext.c:297
void av1_one_pass_cbr_svc_start_layer(struct AV1_COMP *const cpi)
Before encoding, set resolutions and allocate compressor data.
Definition svc_layercontext.c:336
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)
Get resolution for current layer.
Definition svc_layercontext.c:322
void av1_update_layer_context_change_config(struct AV1_COMP *const cpi, const int64_t target_bandwidth)
Update the layer context from a change_config() call.
Definition svc_layercontext.c:95
#define AOM_MAX_LAYERS
Definition aomcx.h:1480
#define AOM_MAX_SS_LAYERS
Definition aomcx.h:1481
The stucture of quantities related to each spatial and temporal layer.
Definition svc_layercontext.h:26
int actual_num_seg1_blocks
Definition svc_layercontext.h:59
int sb_index
Definition svc_layercontext.h:46
int counter_encode_maxq_scene_change
Definition svc_layercontext.h:68
uint8_t speed
Definition svc_layercontext.h:73
int actual_num_seg2_blocks
Definition svc_layercontext.h:64
int max_mv_magnitude
Definition svc_layercontext.h:85
uint8_t * last_coded_q_map
Definition svc_layercontext.h:54
int is_key_frame
Definition svc_layercontext.h:81
unsigned char group_index
Definition svc_layercontext.h:77
int8_t * map
Definition svc_layercontext.h:50
Primary Rate Control parameters and status.
Definition ratectrl.h:237
Rate Control parameters and status.
Definition ratectrl.h:118
The stucture of SVC.
Definition svc_layercontext.h:92
LAYER_CONTEXT layer_context[32]
Definition svc_layercontext.h:128
int force_zero_mode_spatial_ref
Definition svc_layercontext.h:144
int reference[INTER_REFS_PER_FRAME]
Definition svc_layercontext.h:109
InterpFilter downsample_filter_type[4]
Definition svc_layercontext.h:133
int downsample_filter_phase[4]
Definition svc_layercontext.h:139