Lines Matching defs:video

75     void MBMotionSearch(VideoEncData *video, UChar *cur, UChar *best_cand[],
78 Int fullsearch(VideoEncData *video, Vol *currVol, UChar *ref, UChar *cur,
80 Int fullsearchBlk(VideoEncData *video, Vol *currVol, UChar *cent, UChar *cur,
83 VideoEncData *video, Int type_pred);
91 void PrepareCurMB(VideoEncData *video, UChar *cur);
105 void HTFMPrepareCurMB(VideoEncData *video, HTFM_Stat *htfm_stat, UChar *cur);
136 void MotionEstimation(VideoEncData *video)
138 UChar use_4mv = video->encParams->MV8x8_Enabled;
139 Vol *currVol = video->vol[video->currLayer];
140 Vop *currVop = video->currVop;
141 VideoEncFrameIO *currFrame = video->input;
147 UChar *mode_mb, *Mode = video->headerInfo.Mode;
148 MOT *mot_mb, **mot = video->mot;
149 UChar *intraArray = video->intraArray;
150 Int FS_en = video->encParams->FullSearch_Enabled;
151 void (*ComputeMBSum)(UChar *, Int, MOT *) = video->functionPointer->ComputeMBSum;
152 void (*ChooseMode)(UChar*, UChar*, Int, Int) = video->functionPointer->ChooseMode;
184 if (video->currVop->predictionType == I_VOP)
193 video->mbnum = mbnum;
205 video->sumMAD = (float)totalSAD / (float)NumPixelMB;
213 if (video->prevBaseVop->padded == 0 && !video->encParams->H263_Enabled)
215 PaddingEdge(video->prevBaseVop);
216 video->prevBaseVop->padded = 1;
222 //if(video->encParams->RC_Type == CBR_1 || video->encParams->RC_Type == CBR_2)
223 if (video->currLayer == 0 && video->encParams->Refresh)
225 RasterIntraUpdate(intraArray, Mode, totalMB, video->encParams->Refresh);
228 video->sad_extra_info = NULL;
232 InitHTFM(video, &htfm_stat, newvar, &collect);
236 if ((video->encParams->SceneChange_Det == 1) /*&& video->currLayer==0 */
237 && ((video->encParams->LayerFrameRate[0] < 5.0) || (video->numVopsInGOP > MIN_GOP)))
270 video->mbnum = mbnum;
280 HTFMPrepareCurMB(video, &htfm_stat, cur);
282 PrepareCurMB(video, cur);
290 MBMotionSearch(video, cur, best_cand, i << 4, j << 4, type_pred,
340 if (video->encParams->HalfPel_Enabled)
346 FindHalfPelMB(video, cur, mot_mb, best_cand[0],
360 sad8 = FindHalfPelBlk(video, cur, mot_mb, sad16,
469 currVop->quantizer = video->encParams->InitQuantIvop[video->currLayer];
481 video->mbnum = mbnum;
493 video->sumMAD = (float)totalSAD / (float)NumPixelMB;
495 /* video->numVopsInGOP=0; 3/13/01 move it to vop.c*/
505 video->sumMAD = (float)totalSAD / (float)NumPixelMB; /* avg SAD */
524 UpdateHTFM(video, newvar, exp_lamda, &htfm_stat);
534 void InitHTFM(VideoEncData *video, HTFM_Stat *htfm_stat, double *newvar, Int *collect)
537 Int lx = video->currVop->width; // padding
540 Int rx = video->currVop->pitch;
547 if (((Int)video->numVopsInGOP) % 30 == 1)
559 // video->functionPointer->SAD_MB_PADDING = &SAD_MB_PADDING_HTFM_Collect;
560 video->functionPointer->SAD_Macroblock = &SAD_MB_HTFM_Collect;
561 video->functionPointer->SAD_MB_HalfPel[0] = NULL;
562 video->functionPointer->SAD_MB_HalfPel[1] = &SAD_MB_HP_HTFM_Collectxh;
563 video->functionPointer->SAD_MB_HalfPel[2] = &SAD_MB_HP_HTFM_Collectyh;
564 video->functionPointer->SAD_MB_HalfPel[3] = &SAD_MB_HP_HTFM_Collectxhyh;
565 video->sad_extra_info = (void*)(htfm_stat);
571 // video->functionPointer->SAD_MB_PADDING = &SAD_MB_PADDING_HTFM;
572 video->functionPointer->SAD_Macroblock = &SAD_MB_HTFM;
573 video->functionPointer->SAD_MB_HalfPel[0] = NULL;
574 video->functionPointer->SAD_MB_HalfPel[1] = &SAD_MB_HP_HTFMxh;
575 video->functionPointer->SAD_MB_HalfPel[2] = &SAD_MB_HP_HTFMyh;
576 video->functionPointer->SAD_MB_HalfPel[3] = &SAD_MB_HP_HTFMxhyh;
577 video->sad_extra_info = (void*)(video->nrmlz_th);
578 offset = video->nrmlz_th + 16;
579 offset2 = video->nrmlz_th + 32;
619 void UpdateHTFM(VideoEncData *video, double *newvar, double *exp_lamda, HTFM_Stat *htfm_stat)
646 CalcThreshold(HTFM_Pf, exp_lamda, video->nrmlz_th);
674 void HTFMPrepareCurMB(VideoEncData *video, HTFM_Stat *htfm_stat, UChar *cur)
676 void* tmp = (void*)(video->currYMB);
682 Int width = video->currVop->width;
684 if (((Int)video->numVopsInGOP) % 30 == 1)
690 offset = video->nrmlz_th + 16;
739 void PrepareCurMB(VideoEncData *video, UChar *cur)
741 void* tmp = (void*)(video->currYMB);
744 Int width = video->currVop->width;
770 void MBMotionSearch(VideoEncData *video, UChar *cur, UChar *best_cand[],
773 Vol *currVol = video->vol[video->currLayer];
775 void *extra_info = video->sad_extra_info;
776 Int mbnum = video->mbnum;
777 Int width = video->currVop->width; /* 6/12/01, must be multiple of 16 */
778 Int height = video->currVop->height;
779 MOT **mot = video->mot;
780 UChar use_4mv = video->encParams->MV8x8_Enabled;
781 UChar h263_mode = video->encParams->H263_Enabled;
782 Int(*SAD_Macroblock)(UChar*, UChar*, Int, void*) = video->functionPointer->SAD_Macroblock;
783 Int(*SAD_Block)(UChar*, UChar*, Int, Int, void*) = video->functionPointer->SAD_Block;
784 VideoEncParams *encParams = video->encParams;
787 Int lx = video->currVop->pitch; /* padding */
801 ref = video->forwardRefVop->yChan; /* origin of actual frame */
803 cur = video->currYMB; /* use smaller memory space for current MB */
847 dmin = fullsearch(video, currVol, ref, cur, &imin, &jmin, ilow, ihigh, jlow, jhigh);
861 if (video->forwardRefVop->predictionType == I_VOP && j0 == 0 && i0 <= 64 && type_pred != 1)
864 dmin = fullsearch(video, currVol, ref, cur, &imin, &jmin, ilow, ihigh, jlow, jhigh);
871 CandidateSelection(mvx, mvy, &num_can, i0 >> 4, j0 >> 4, video, type_pred);
1070 SAD_Block = video->functionPointer->SAD_Block;
1074 dmin = fullsearchBlk(video, currVol, ncand, cur8, &imin, &jmin, ilow, ihigh, jlow, jhigh, range);
1179 Int fullsearch(VideoEncData *video, Vol *currVol, UChar *prev, UChar *cur,
1182 Int range = video->encParams->SearchRange;
1188 Int(*SAD_Macroblock)(UChar*, UChar*, Int, void*) = video->functionPointer->SAD_Macroblock;
1189 void *extra_info = video->sad_extra_info;
1190 // UChar h263_mode = video->encParams->H263_Enabled;
1191 Int lx = video->currVop->pitch; /* with padding */
1266 Int fullsearchBlk(VideoEncData *video, Vol *currVol, UChar *cent, UChar *cur,
1272 Int lx = video->currVop->pitch; /* with padding */
1273 Int(*SAD_Block)(UChar*, UChar*, Int, Int, void*) = video->functionPointer->SAD_Block;
1274 void *extra_info = video->sad_extra_info;
1353 VideoEncData *video, Int type_pred)
1355 MOT **mot = video->mot;
1357 Int mbnum = video->mbnum;
1358 Vol *currVol = video->vol[video->currLayer];
1365 if (video->forwardRefVop->predictionType == P_VOP)