/*Copies the fragments specified by the lists of fragment indices from one frame to another. _dst_frame: The reference frame to copy to. _src_frame: The reference frame to copy from. _ystride: The row stride of the reference frames. _fragis: A pointer to a list of fragment indices. _nfragis: The number of fragment indices to copy. _frag_buf_offs: The offsets of fragments in the reference frames.*/ void oc_frag_copy_list_mmx(unsigned char *_dst_frame, const unsigned char *_src_frame,int _ystride, const ptrdiff_t *_fragis,ptrdiff_t _nfragis,const ptrdiff_t *_frag_buf_offs){ ptrdiff_t fragii; for(fragii=0;fragii<_nfragis;fragii++){ ptrdiff_t frag_buf_off; frag_buf_off=_frag_buf_offs[_fragis[fragii]]; OC_FRAG_COPY_MMX(_dst_frame+frag_buf_off, _src_frame+frag_buf_off,_ystride); } }
/*Copies an 8x8 block of pixels from _src to _dst, assuming _ystride bytes between rows.*/ void oc_frag_copy_mmx(unsigned char *_dst, const unsigned char *_src,int _ystride){ #define SRC edx #define DST eax #define YSTRIDE ecx #define YSTRIDE3 esi OC_FRAG_COPY_MMX(_dst,_src,_ystride); #undef SRC #undef DST #undef YSTRIDE #undef YSTRIDE3 }
/*Copies the fragments specified by the lists of fragment indices from one frame to another. _dst_frame: The reference frame to copy to. _src_frame: The reference frame to copy from. _ystride: The row stride of the reference frames. _fragis: A pointer to a list of fragment indices. _nfragis: The number of fragment indices to copy. _frag_buf_offs: The offsets of fragments in the reference frames.*/ void oc_frag_copy_list_mmx(unsigned char *_dst_frame, const unsigned char *_src_frame,int _ystride, const ptrdiff_t *_fragis,ptrdiff_t _nfragis,const ptrdiff_t *_frag_buf_offs) { ptrdiff_t fragii; for(fragii=0; fragii<_nfragis; fragii++) { ptrdiff_t frag_buf_off; frag_buf_off=_frag_buf_offs[_fragis[fragii]]; #define SRC edx #define DST eax #define YSTRIDE ecx #define YSTRIDE3 edi OC_FRAG_COPY_MMX(_dst_frame+frag_buf_off, _src_frame+frag_buf_off,_ystride); #undef SRC #undef DST #undef YSTRIDE #undef YSTRIDE3 } }
/*Copies an 8x8 block of pixels from _src to _dst, assuming _ystride bytes between rows.*/ void oc_frag_copy_mmx(unsigned char *_dst, const unsigned char *_src,int _ystride){ OC_FRAG_COPY_MMX(_dst,_src,_ystride); }