15 #ifndef AOM_AV1_ENCODER_ENCODE_STRATEGY_H_
16 #define AOM_AV1_ENCODER_ENCODE_STRATEGY_H_
27 #include "av1/encoder/firstpass.h"
56 uint8_t *
const dest,
unsigned int *frame_flags,
57 int64_t *
const time_stamp, int64_t *
const time_end,
58 const aom_rational64_t *
const timestamp_ratio,
59 int *
const pop_lookahead,
int flush);
65 void av1_configure_buffer_updates(
AV1_COMP *
const cpi,
67 const FRAME_UPDATE_TYPE type,
68 const REFBUF_STATE refbuf_state,
69 int force_refresh_all);
71 int av1_get_refresh_frame_flags(
73 FRAME_UPDATE_TYPE frame_update_type,
int gf_index,
int cur_disp_order,
74 RefFrameMapPair ref_frame_map_pairs[REF_FRAMES]);
76 int av1_get_refresh_ref_frame_map(
int refresh_frame_flags);
88 void av1_get_ref_frames(RefFrameMapPair ref_frame_map_pairs[REF_FRAMES],
90 #
if CONFIG_FRAME_PARALLEL_ENCODE_2
92 int is_parallel_encode,
94 int remapped_ref_idx[REF_FRAMES]);
96 int is_forced_keyframe_pending(
struct lookahead_ctx *lookahead,
97 const int up_to_index,
98 const COMPRESSOR_STAGE compressor_stage);
100 static AOM_INLINE
int is_frame_droppable(
101 const SVC *
const svc,
105 if (svc->set_ref_frame_config)
106 return svc->non_reference_frame;
117 static AOM_INLINE
int get_current_frame_ref_type(
const AV1_COMP *
const cpi) {
128 case MAX_ARF_LAYERS + 1:
return 4;
133 #if CONFIG_FRAME_PARALLEL_ENCODE
134 #if CONFIG_FRAME_PARALLEL_ENCODE_2
135 int av1_calc_refresh_idx_for_intnl_arf(
136 AV1_COMP *cpi, RefFrameMapPair ref_frame_map_pairs[REF_FRAMES],
Describes the encoder algorithm interface to applications.
Declares top-level encoder structures and functions.
int av1_encode_strategy(AV1_COMP *const cpi, size_t *const size, uint8_t *const dest, unsigned int *frame_flags, int64_t *const time_stamp, int64_t *const time_end, const aom_rational64_t *const timestamp_ratio, int *const pop_lookahead, int flush)
Implement high-level encode strategy.
Definition: encode_strategy.c:1166
Top level encoder structure.
Definition: encoder.h:2664
unsigned char gf_frame_index
Definition: encoder.h:2912
AV1_PRIMARY * ppi
Definition: encoder.h:2668
GF_GROUP gf_group
Definition: encoder.h:2495
contains per-frame encoding parameters decided upon by av1_encode_strategy() and passed down to av1_e...
Definition: encoder.h:3356
Frame refresh flags set by the external interface.
Definition: encoder.h:2129
bool golden_frame
Definition: encoder.h:2131
bool bwd_ref_frame
Definition: encoder.h:2132
bool update_pending
Definition: encoder.h:2138
bool last_frame
Definition: encoder.h:2130
bool alt_ref_frame
Definition: encoder.h:2134
bool alt2_ref_frame
Definition: encoder.h:2133
Refresh frame flags for different type of frames.
Definition: encoder.h:2025
The stucture of SVC.
Definition: svc_layercontext.h:87