Home
last modified time | relevance | path

Searched refs:mot (Results 1 – 8 of 8) sorted by relevance

/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dfindhalfpel.cpp65 void FindHalfPelMB(VideoEncData *video, UChar *cur, MOT *mot, UChar *ncand, in FindHalfPelMB() argument
93 imin = xpos + (mot[0].x >> 1); in FindHalfPelMB()
94 jmin = ypos + (mot[0].y >> 1); in FindHalfPelMB()
123 dmin = mot[0].sad; in FindHalfPelMB()
145 …PV_ABS(mot[0].x + xh) + PV_ABS(mot[0].y + yh) < PV_ABS(mot[0].x + xhmin[0]) + PV_ABS(mot[0].y + yh… in FindHalfPelMB()
168 mot[0].sad = dmin; in FindHalfPelMB()
169 mot[0].x += xhmin[0]; in FindHalfPelMB()
170 mot[0].y += yhmin[0]; in FindHalfPelMB()
184 Int FindHalfPelBlk(VideoEncData *video, UChar *cur, MOT *mot, Int sad16, UChar *ncand8[], in FindHalfPelBlk() argument
215 imin = xpos + ((comp & 1) << 3) + (mot[comp+1].x >> 1); in FindHalfPelBlk()
[all …]
Dmotion_est.cpp148 MOT *mot_mb, **mot = video->mot; in MotionEstimation() local
194 mot_mb = mot[mbnum]; in MotionEstimation()
271 mot_mb = mot[mbnum]; in MotionEstimation()
482 mot_mb = mot[mbnum]; in MotionEstimation()
779 MOT **mot = video->mot; in MBMotionSearch() local
851 mot[mbnum][0].sad = dmin; in MBMotionSearch()
852 mot[mbnum][0].x = (imin - i0) << 1; in MBMotionSearch()
853 mot[mbnum][0].y = (jmin - j0) << 1; in MBMotionSearch()
929mot[mbnum][7].sad = dmin = (*SAD_Macroblock)(ncand, cur, (65535 << 16) | lx, extra_info); in MBMotionSearch()
1025 mot[mbnum][0].sad = dmin; in MBMotionSearch()
[all …]
Dvlc_encode.cpp1028 if ((Mode == MODE_INTER) && (video->mot[mbnum][0].x == 0) && (video->mot[mbnum][0].y == 0)) in MBVlcEncodeDataPar_P_VOP()
1030 … else if ((Mode == MODE_INTER4V) && (video->mot[mbnum][1].x == 0) && (video->mot[mbnum][1].y == 0) in MBVlcEncodeDataPar_P_VOP()
1031 && (video->mot[mbnum][2].x == 0) && (video->mot[mbnum][2].y == 0) in MBVlcEncodeDataPar_P_VOP()
1032 && (video->mot[mbnum][3].x == 0) && (video->mot[mbnum][3].y == 0) in MBVlcEncodeDataPar_P_VOP()
1033 && (video->mot[mbnum][4].x == 0) && (video->mot[mbnum][4].y == 0)) in MBVlcEncodeDataPar_P_VOP()
1056 …WriteMVcomponent(video->currVop->fcodeForward, video->mot[mbnum][0].x - pmvx, bs1); /* Write x to … in MBVlcEncodeDataPar_P_VOP()
1057 …WriteMVcomponent(video->currVop->fcodeForward, video->mot[mbnum][0].y - pmvy, bs1); /* Write y… in MBVlcEncodeDataPar_P_VOP()
1064 WriteMVcomponent(video->currVop->fcodeForward, video->mot[mbnum][i].x - pmvx, bs1); in MBVlcEncodeDataPar_P_VOP()
1065 WriteMVcomponent(video->currVop->fcodeForward, video->mot[mbnum][i].y - pmvy, bs1); in MBVlcEncodeDataPar_P_VOP()
1302 if ((Mode == MODE_INTER) && (video->mot[mbnum][0].x == 0) && (video->mot[mbnum][0].y == 0)) in MBVlcEncodeCombined_P_VOP()
[all …]
Dmotion_comp.cpp103 MOT *mot = video->mot[mbnum]; in getMotionCompensatedMB() local
133 dx = mot[0].x; in getMotionCompensatedMB()
134 dy = mot[0].y; in getMotionCompensatedMB()
167 EncPrediction_INTER4V(xpos, ypos, mot, c_prev, c_rec, in getMotionCompensatedMB()
170 xsum = mot[1].x + mot[2].x + mot[3].x + mot[4].x; in getMotionCompensatedMB()
171 ysum = mot[1].y + mot[2].y + mot[3].y + mot[4].y; in getMotionCompensatedMB()
242 MOT *mot, /* i */ in EncPrediction_INTER4V() argument
251 xpred = (Int)((xpos << 1) + mot[1].x); in EncPrediction_INTER4V()
252 ypred = (Int)((ypos << 1) + mot[1].y); in EncPrediction_INTER4V()
259 xpred = (Int)(((xpos + B_SIZE) << 1) + mot[2].x); in EncPrediction_INTER4V()
[all …]
Dmp4enc_lib.h105 void EncPrediction_INTER4V(Int xpred, Int ypred, MOT *mot, UChar *c_prev, UChar *c_rec,
137 void FindHalfPelMB(VideoEncData *video, UChar *cur, MOT *mot, UChar *ncand,
139 Int FindHalfPelBlk(VideoEncData *video, UChar *cur, MOT *mot, Int sad16, UChar *ncand8[],
Dmp4enc_api.cpp671 video->mot = (MOT **)M4VENC_MALLOC(sizeof(MOT *) * nTotalMB); in PVInitVideoEncoder()
672 if (video->mot == NULL) goto CLEAN_UP; in PVInitVideoEncoder()
676 video->mot[idx] = (MOT *)M4VENC_MALLOC(sizeof(MOT) * 8); in PVInitVideoEncoder()
677 if (video->mot[idx] == NULL) in PVInitVideoEncoder()
1156 if (video->mot) in PVCleanUpVideoEncoder()
1164 if (video->mot[idx]) in PVCleanUpVideoEncoder()
1165 M4VENC_FREE(video->mot[idx]); in PVCleanUpVideoEncoder()
1167 M4VENC_FREE(video->mot); in PVCleanUpVideoEncoder()
Dfastcodemb.cpp143 sad = video->mot[mbnum][k+1].sad; in CodeMB_H263()
370 sad = video->mot[mbnum][k+1].sad; in CodeMB_MPEG()
Dmp4lib_int.h351 MOT **mot; /* Motion vectors */ member