15 #ifndef AOM_AV1_ENCODER_ENCODE_STRATEGY_H_
16 #define AOM_AV1_ENCODER_ENCODE_STRATEGY_H_
27 #include "av1/encoder/firstpass.h"
57 uint8_t *
const dest,
size_t dest_size,
58 unsigned int *frame_flags, int64_t *
const time_stamp,
59 int64_t *
const time_end,
60 const aom_rational64_t *
const timestamp_ratio,
61 int *
const pop_lookahead,
int flush);
67 void av1_configure_buffer_updates(
AV1_COMP *
const cpi,
69 const FRAME_UPDATE_TYPE type,
70 const REFBUF_STATE refbuf_state,
71 int force_refresh_all);
73 int av1_get_refresh_frame_flags(
75 FRAME_UPDATE_TYPE frame_update_type,
int gf_index,
int cur_disp_order,
76 RefFrameMapPair ref_frame_map_pairs[REF_FRAMES]);
78 int av1_get_refresh_ref_frame_map(
int refresh_frame_flags);
90 void av1_get_ref_frames(RefFrameMapPair ref_frame_map_pairs[REF_FRAMES],
91 int cur_frame_disp,
const AV1_COMP *cpi,
int gf_index,
92 int is_parallel_encode,
93 int remapped_ref_idx[REF_FRAMES]);
95 int is_forced_keyframe_pending(
struct lookahead_ctx *lookahead,
96 const int up_to_index,
97 const COMPRESSOR_STAGE compressor_stage);
99 static inline int is_frame_droppable(
100 const RTC_REF *
const rtc_ref,
104 if (rtc_ref->set_ref_frame_config)
105 return rtc_ref->non_reference_frame;
116 static inline int get_current_frame_ref_type(
const AV1_COMP *
const cpi) {
127 case MAX_ARF_LAYERS + 1:
return 4;
132 int av1_calc_refresh_idx_for_intnl_arf(
133 AV1_COMP *cpi, RefFrameMapPair ref_frame_map_pairs[REF_FRAMES],
140 #endif // AOM_AV1_ENCODER_ENCODE_STRATEGY_H_
int av1_encode_strategy(AV1_COMP *const cpi, size_t *const size, uint8_t *const dest, size_t dest_size, 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:1216
Describes the encoder algorithm interface to applications.
Frame refresh flags set by the external interface.
Definition: encoder.h:2268
bool update_pending
Definition: encoder.h:2277
bool alt_ref_frame
Definition: encoder.h:2273
bool golden_frame
Definition: encoder.h:2270
GF_GROUP gf_group
Definition: encoder.h:2698
contains per-frame encoding parameters decided upon by av1_encode_strategy() and passed down to av1_e...
Definition: encoder.h:3694
bool last_frame
Definition: encoder.h:2269
AV1_PRIMARY * ppi
Definition: encoder.h:2882
bool bwd_ref_frame
Definition: encoder.h:2271
Top level encoder structure.
Definition: encoder.h:2878
Declares top-level encoder structures and functions.
Refresh frame flags for different type of frames.
Definition: encoder.h:2164
bool alt2_ref_frame
Definition: encoder.h:2272
unsigned char gf_frame_index
Definition: encoder.h:3136