typedefstruct refmvs_candidate {
refmvs_mvpair mv;
int weight;
} refmvs_candidate;
// initialize temporal MVs; this can be done in any configuration, e.g. one // tile/sbrow at a time, where col_{start,end}8 are the tile boundaries; or // it can just be for the whole frame's sbrow, where col_{start,end}8 are the // frame boundaries. row_{start,end}8 are the superblock row boundaries. #define decl_load_tmvs_fn(name) \ void (name)(const refmvs_frame *rf, int tile_row_idx, \
int col_start8, int col_end8, int row_start8, int row_end8) typedef decl_load_tmvs_fn(*load_tmvs_fn);
#define decl_save_tmvs_fn(name) \ void (name)(refmvs_temporal_block *rp, const ptrdiff_t stride, \
refmvs_block *const *const rr, const uint8_t *const ref_sign, \
int col_end8, int row_end8, int col_start8, int row_start8) typedef decl_save_tmvs_fn(*save_tmvs_fn);
#define decl_splat_mv_fn(name) \ void (name)(refmvs_block **rr, const refmvs_block *rmv, int bx4, int bw4, int bh4) typedef decl_splat_mv_fn(*splat_mv_fn);
// call once per frame
int dav1d_refmvs_init_frame(refmvs_frame *rf, const Dav1dSequenceHeader *seq_hdr, const Dav1dFrameHeader *frm_hdr, const uint8_t ref_poc[7],
refmvs_temporal_block *rp, const uint8_t ref_ref_poc[7][7], /*const*/ refmvs_temporal_block *const rp_ref[7],
int n_tile_threads, int n_frame_threads);
// cache the current tile/sbrow (or frame/sbrow)'s projectable motion vectors // into buffers for use in future frame's temporal MV prediction static inline void dav1d_refmvs_save_tmvs(const Dav1dRefmvsDSPContext *const dsp, const refmvs_tile *const rt, const int col_start8, int col_end8, const int row_start8, int row_end8)
{ const refmvs_frame *const rf = rt->rf;
// initialize tile boundaries and refmvs_block pointers for one tile/sbrow void dav1d_refmvs_tile_sbrow_init(refmvs_tile *rt, const refmvs_frame *rf,
int tile_col_start4, int tile_col_end4,
int tile_row_start4, int tile_row_end4,
int sby, int tile_row_idx, int pass);
// call for each block void dav1d_refmvs_find(const refmvs_tile *rt,
refmvs_candidate mvstack[8], int *cnt,
int *ctx, const refmvs_refpair ref, enum BlockSize bs,
enum EdgeFlags edge_flags, int by4, int bx4);
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.