Home
last modified time | relevance | path

Searched refs:block_y (Results 1 – 7 of 7) sorted by relevance

/external/opencore/codecs_v2/video/avc_h264/common/src/
Dmb_access.cpp189 int block_x, block_y, block_x_1, block_y_1, new_block_x; in GetMotionVectorPredictor() local
242 block_y = mbPartIdx_Y + (((subMbPartIdx + offset_indx) >> 1) & 1); in GetMotionVectorPredictor()
245 block_y_1 = block_y - 1; in GetMotionVectorPredictor()
252 refIdxLXA = currMB->ref_idx_L0[(block_y & 2) + (block_x_1 >> 1)]; in GetMotionVectorPredictor()
253 mv = (int16*)(currMB->mvL0 + (block_y << 2) + block_x_1); in GetMotionVectorPredictor()
262 refIdxLXA = MB_A->ref_idx_L0[(block_y & 2) + 1]; in GetMotionVectorPredictor()
263 mv = (int16*)(MB_A->mvL0 + (block_y << 2) + 3); in GetMotionVectorPredictor()
269 if (block_y) in GetMotionVectorPredictor()
291 avail_c = (C >> ((block_y << 2) + new_block_x)) & 0x1; in GetMotionVectorPredictor()
303 if (block_y == 0 && new_block_x < 3) in GetMotionVectorPredictor()
[all …]
/external/opencore/codecs_v2/video/avc_h264/dec/src/
Dpred_intra.cpp35 int block_x, block_y, offset; in IntraMBPrediction() local
59 block_x = block_y = 0; in IntraMBPrediction()
63 block_y = ((component >> 1) << 1); in IntraMBPrediction()
68 status = Intra_4x4(video, block_x, block_y, comp); in IntraMBPrediction()
76 if (cbp4x4&(1 << ((block_y << 2) + block_x))) in IntraMBPrediction()
81 if (cbp4x4&(1 << ((block_y << 2) + block_x))) in IntraMBPrediction()
89 block_y++; in IntraMBPrediction()
191 for (block_y = 4; block_y > 0; block_y--) in IntraMBPrediction()
304 for (block_y = 2; block_y > 0; block_y--) in IntraMBPrediction()
509 AVCStatus Intra_4x4(AVCCommonObj *video, int block_x, int block_y, uint8 *comp) in Intra_4x4() argument
[all …]
Dslice.cpp619 int component, SubBlock_indx, block_x, block_y; in DecodeIntra4x4Mode() local
628 block_y = ((component >> 1) << 1); in DecodeIntra4x4Mode()
642 intra4x4PredModeA = currMB->i4Mode[(block_y << 2) + block_x - 1 ]; in DecodeIntra4x4Mode()
650 … intra4x4PredModeA = video->mblock[video->mbAddrA].i4Mode[(block_y << 2) + 3]; in DecodeIntra4x4Mode()
663 if (block_y > 0) in DecodeIntra4x4Mode()
665 intra4x4PredModeB = currMB->i4Mode[((block_y-1) << 2) + block_x]; in DecodeIntra4x4Mode()
694 currMB->i4Mode[(block_y<<2)+block_x] = (AVCIntra4x4PredMode)predIntra4x4PredMode; in DecodeIntra4x4Mode()
700 … currMB->i4Mode[(block_y<<2)+block_x] = (AVCIntra4x4PredMode)rem_intra4x4_pred_mode[bindx]; in DecodeIntra4x4Mode()
704 … currMB->i4Mode[(block_y<<2)+block_x] = (AVCIntra4x4PredMode)(rem_intra4x4_pred_mode[bindx] + 1); in DecodeIntra4x4Mode()
708 block_y += (SubBlock_indx & 1) ; in DecodeIntra4x4Mode()
Dpred_inter.cpp50 int block_x, block_y, offset_x, offset_y, offsetP, offset; in InterMBPrediction() local
94 block_y = (mbPartIdx_Y << 1) + (((subMbPartIdx + offset_indx) >> 1) & 1); in InterMBPrediction()
95 mv = (int16*)(currMB->mvL0 + block_x + (block_y << 2)); in InterMBPrediction()
97 offset_y = y_position + (block_y << 2); in InterMBPrediction()
104 offsetP = (block_y * 80) + (block_x << 2); in InterMBPrediction()
109 offsetP = (block_y << 2) * picWidth + (block_x << 2); in InterMBPrediction()
116 offsetP = (block_y * 24) + (block_x << 1); in InterMBPrediction()
124 offsetP = (block_y * picWidth) + (block_x << 1); in InterMBPrediction()
144 for (block_y = 4; block_y > 0; block_y--) in InterMBPrediction()
177 for (block_y = 2; block_y > 0; block_y--) in InterMBPrediction()
/external/opencore/codecs_v2/video/avc_h264/enc/src/
Dintra_est.cpp1857 int indx, block_x, block_y; in MBIntraSearch() local
1915 block_y = blkIdx2blkY[indx]; in MBIntraSearch()
1917 currMB->i4Mode[(block_y<<2)+block_x] = FIXED_I4_MODE; in MBIntraSearch()
1919 if (FIXED_I4_MODE == AVC_I4_Vertical && !(block_y > 0 || video->intraAvailB)) in MBIntraSearch()
1921 currMB->i4Mode[(block_y<<2)+block_x] = AVC_I4_DC; in MBIntraSearch()
1926 currMB->i4Mode[(block_y<<2)+block_x] = AVC_I4_DC; in MBIntraSearch()
1930 (block_y == 0 && !video->intraAvailB)) in MBIntraSearch()
1932 currMB->i4Mode[(block_y<<2)+block_x] = AVC_I4_DC; in MBIntraSearch()
1936 !((block_y && block_x) in MBIntraSearch()
1937 || (block_y && video->intraAvailA) in MBIntraSearch()
[all …]
Dslice.cpp925 int component, SubBlock_indx, block_x, block_y; in EncodeIntra4x4Mode() local
935 block_y = ((component >> 1) << 1); in EncodeIntra4x4Mode()
942 intra4x4PredModeA = currMB->i4Mode[(block_y << 2) + block_x - 1 ]; in EncodeIntra4x4Mode()
950 … intra4x4PredModeA = video->mblock[video->mbAddrA].i4Mode[(block_y << 2) + 3]; in EncodeIntra4x4Mode()
963 if (block_y > 0) in EncodeIntra4x4Mode()
965 intra4x4PredModeB = currMB->i4Mode[((block_y-1) << 2) + block_x]; in EncodeIntra4x4Mode()
994 mode = currMB->i4Mode[(block_y<<2)+block_x]; in EncodeIntra4x4Mode()
1017 block_y += (SubBlock_indx & 1) ; in EncodeIntra4x4Mode()
Dmotion_comp.cpp53 int block_x, block_y, offset_x, offset_y, offsetP, offset; in AVCMBMotionComp() local
90 block_y = (mbPartIdx_Y << 1) + (((subMbPartIdx + offset_indx) >> 1) & 1); in AVCMBMotionComp()
91 mv = (int16*)(currMB->mvL0 + block_x + (block_y << 2)); in AVCMBMotionComp()
93 offset_y = y_position + (block_y << 2); in AVCMBMotionComp()
99 offsetP = (block_y << 2) * picPitch + (block_x << 2); in AVCMBMotionComp()
104 offsetP = (block_y * picWidth) + (block_x << 1); in AVCMBMotionComp()