/** *Motionestimationcontext.
*/ typedefstruct MotionEstContext {
AVCodecContext *avctx; int motion_est; ///< ME algorithm int skip; ///< set if ME is skipped for the current MB int co_located_mv[4][2]; ///< mv from last P-frame for direct mode ME int direct_basis_mv[4][2];
uint8_t *scratchpad; /**< data area for the ME algo, so that
* the ME does not need to malloc/free. */
uint8_t *temp; unsigned map_generation; int pre_penalty_factor; int penalty_factor; /**< an estimate of the bits required to *codeagivenmvvalue,e.g.(1,0)takes *morebitsthan(0,0).Wehaveto *estimatewhetheranyreductionin
* residual is worth the extra bits. */ int sub_penalty_factor; int mb_penalty_factor; int flags; int sub_flags; int mb_flags; int pre_pass; ///< = 1 for the pre pass int dia_size; int unrestricted_mv; ///< mv can point outside of the coded picture int xmin; int xmax; int ymin; int ymax; int pred_x; int pred_y; const uint8_t *src[4][4]; const uint8_t *ref[4][4]; int stride; int uvstride; /* temp variables for picture complexity calculation */
int64_t mc_mb_var_sum_temp;
int64_t mb_var_sum_temp; int scene_change_score;
op_pixels_func(*hpel_put)[4];
op_pixels_func(*hpel_avg)[4];
qpel_mc_func(*qpel_put)[16];
qpel_mc_func(*qpel_avg)[16]; const uint8_t (*mv_penalty)[MAX_DMV * 2 + 1]; ///< bit amount needed to encode a MV const uint8_t *current_mv_penalty; int (*sub_motion_search)(MPVEncContext *s, int *mx_ptr, int *my_ptr, int dmin, int src_index, int ref_index, int size, int h);
uint32_t map[ME_MAP_SIZE]; ///< map to avoid duplicate evaluations
uint32_t score_map[ME_MAP_SIZE];///< map to store the scores
} MotionEstContext;
/** *Performsone-timeinitializationoftheMotionEstContext.
*/ int ff_me_init(MotionEstContext *c, struct AVCodecContext *avctx, conststruct MECmpContext *mecc, int mpvenc);
void ff_me_init_pic(MPVEncContext *s);
void ff_estimate_p_frame_motion(MPVEncContext *s, int mb_x, int mb_y); void ff_estimate_b_frame_motion(MPVEncContext *s, int mb_x, int mb_y);
int ff_pre_estimate_p_frame_motion(MPVEncContext *s, int mb_x, int mb_y);
int ff_epzs_motion_search(MPVEncContext *s, int *mx_ptr, int *my_ptr, int P[10][2], int src_index, int ref_index, const int16_t (*last_mv)[2], int ref_mv_scale, int size, int h);
int ff_get_mb_score(MPVEncContext *s, int mx, int my, int src_index, int ref_index, int size, int h, int add_rate);
int ff_get_best_fcode(MPVMainEncContext *m, const int16_t (*mv_table)[2], int type);
void ff_fix_long_p_mvs(MPVEncContext *s, int type); void ff_fix_long_mvs(MPVEncContext *s, uint8_t *field_select_table, int field_select, int16_t (*mv_table)[2], int f_code, int type, int truncate);
#endif/* AVCODEC_MOTION_EST_H */
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-09-27)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.