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(
67 const FRAME_UPDATE_TYPE type,
const REFBUF_STATE refbuf_state,
68 int force_refresh_all);
70 int av1_get_refresh_frame_flags(
const AV1_COMP *
const cpi,
72 FRAME_UPDATE_TYPE frame_update_type,
74 #
if CONFIG_FRAME_PARALLEL_ENCODE
76 RefFrameMapPair ref_frame_map_pairs[REF_FRAMES],
78 const RefBufferStack *
const ref_buffer_stack);
80 int av1_get_refresh_ref_frame_map(
int refresh_frame_flags);
82 void av1_update_ref_frame_map(
const AV1_COMP *cpi,
83 FRAME_UPDATE_TYPE frame_update_type,
84 REFBUF_STATE refbuf_state,
int ref_map_index,
85 RefBufferStack *ref_buffer_stack);
99 void av1_get_ref_frames(
const RefBufferStack *ref_buffer_stack,
100 #
if CONFIG_FRAME_PARALLEL_ENCODE
101 RefFrameMapPair ref_frame_map_pairs[REF_FRAMES],
103 #
if CONFIG_FRAME_PARALLEL_ENCODE_2
105 int is_parallel_encode,
108 int remapped_ref_idx[REF_FRAMES]);
110 int is_forced_keyframe_pending(
struct lookahead_ctx *lookahead,
111 const int up_to_index,
112 const COMPRESSOR_STAGE compressor_stage);
114 static AOM_INLINE
int is_frame_droppable(
115 const SVC *
const svc,
119 if (svc->set_ref_frame_config)
120 return svc->non_reference_frame;
131 static AOM_INLINE
int get_current_frame_ref_type(
const AV1_COMP *
const cpi) {
142 case MAX_ARF_LAYERS + 1:
return 4;
147 #if CONFIG_FRAME_PARALLEL_ENCODE
148 #if CONFIG_FRAME_PARALLEL_ENCODE_2
149 int av1_calc_refresh_idx_for_intnl_arf(
150 AV1_COMP *cpi, RefFrameMapPair ref_frame_map_pairs[REF_FRAMES],
152 #endif // CONFIG_FRAME_PARALLEL_ENCODE_2
153 #endif // CONFIG_FRAME_PARALLEL_ENCODE
159 #endif // AOM_AV1_ENCODER_ENCODE_STRATEGY_H_
Describes the encoder algorithm interface to applications.
Frame refresh flags set by the external interface.
Definition: encoder.h:2036
bool update_pending
Definition: encoder.h:2045
bool alt_ref_frame
Definition: encoder.h:2041
bool golden_frame
Definition: encoder.h:2038
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:1447
GF_GROUP gf_group
Definition: encoder.h:2384
contains per-frame encoding parameters decided upon by av1_encode_strategy() and passed down to av1_e...
Definition: encoder.h:3200
bool last_frame
Definition: encoder.h:2037
AV1_PRIMARY * ppi
Definition: encoder.h:2561
bool bwd_ref_frame
Definition: encoder.h:2039
Top level encoder structure.
Definition: encoder.h:2557
Declares top-level encoder structures and functions.
bool alt2_ref_frame
Definition: encoder.h:2040
unsigned char gf_frame_index
Definition: encoder.h:2789
The stucture of SVC.
Definition: svc_layercontext.h:92
Refresh frame flags for different type of frames.
Definition: encoder.h:1932