?? mem_transfer1.c
字號:
#define MEM_TRANSFER1_GLOBALS#include "../portab.h"#include "mem_transfer1.h"#include "../define.h"voidtransfer_nxm_copy_ben(uint8_t * dst, const uint8_t * src, const int n, const int m){ uint32_t i, j; for (j = 0; j < m; j++) { for (i = 0; i < n; i++) { *(dst ++) = *(src ++); } dst += (8 - n); src += (8 - n); }}voidtransfer8x8_copy_ben(DECODER * const dec, int curoffset, uint8_t * cur, uint8_t * ref, int refx, int refy){ int refoffset; refoffset = ((refx >> 3) + ((int)dec->mb_width * 2) * (refy >> 3)) *SIZE_U; transfer_nxm_copy_ben(cur + curoffset, ref + refoffset + (refy & 7) * 8 + (refx & 7), 8 - (refx & 7), 8 - (refy & 7)); if ((refx & 7) != 0) transfer_nxm_copy_ben(cur + curoffset + (8 - (refx & 7)), ref + refoffset + 64 + (refy & 7) * 8, refx & 7, refy & 7); if ((refy & 7) != 0) { curoffset += (8 - (refx & 7)) * 8; refoffset += (int)dec->mb_width * 2 * SIZE_U; transfer_nxm_copy_ben(cur + curoffset, ref + refoffset + (refx & 7), 8 - (refx & 7), 8 - (refy & 7)); if ((refx & 7) != 0) transfer_nxm_copy_ben(cur + curoffset + (8 - (refx & 7)), ref + refoffset + 64, 8 - (refx & 7), 8 - (refy & 7)); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -