/*! ***************************************************************************************** * \brief * Filter all macroblocks in order of increasing macroblock address. ***************************************************************************************** */ void DeblockPicture(VideoParameters *p_Vid, StorablePicture *p) { unsigned i; if (p->mb_aff_frame_flag) { for (i = 0; i < p->PicSizeInMbs; ++i) { DeblockMb( p_Vid, p, i ) ; } } else { // deblock_normal( p_Vid, p); for (i = 0; i < p->PicSizeInMbs; ++i) { get_db_strength( p_Vid, p, i ) ; } for (i = 0; i < p->PicSizeInMbs; ++i) { perform_db( p_Vid, p, i ) ; } } }
/*! ***************************************************************************************** * \brief * Filter all macroblocks in order of increasing macroblock address. ***************************************************************************************** */ void DeblockPicture(VideoParameters *p_Vid, StorablePicture *p) { unsigned i; for (i = 0; i < p->PicSizeInMbs; ++i) { DeblockMb( p_Vid, p, i ) ; } }
/*! ***************************************************************************************** * \brief * Filter all macroblocks in order of increasing macroblock address. ***************************************************************************************** */ void DeblockFrame(VideoParameters *p_Vid, imgpel **imgY, imgpel ***imgUV) { unsigned int i; init_Deblock(p_Vid); for (i=0; i < p_Vid->PicSizeInMbs; i++) { DeblockMb( p_Vid, imgY, imgUV, i ) ; } }
void DeblockPicturePartially(VideoParameters *p_Vid, StorablePicture *p, int iStart, int iEnd) { int i; for (i = iStart; i < imin(iEnd, (int)p->PicSizeInMbs); ++i) { DeblockMb( p_Vid, p, i ) ; } }
/*! ***************************************************************************************** * \brief * Filter all macroblocks in order of increasing macroblock address. ***************************************************************************************** */ void DeblockFrame(ImageParameters *img, byte **imgY, byte ***imgUV) { unsigned i; int mb_x, mb_y ; for (i=0; i<img->PicSizeInMbs; i++) { get_mb_block_pos(i, &mb_x, &mb_y); DeblockMb( img, imgY, imgUV, mb_y, mb_x ) ; } }
static void DeblockParallel(VideoParameters *p_Vid, imgpel **imgY, imgpel ***imgUV, unsigned int column, int block, int n_last) { int i, j; for (j = 0; j < GROUP_SIZE; j++) { i = block++ * (p_Vid->PicWidthInMbs - 2) + column; DeblockMb( p_Vid, imgY, imgUV, i ) ; if (block == n_last) break; } }
void DeblockFrame(ImageParameters *img, byte **imgY, byte ***imgUV) { int mb_x, mb_y ; img->current_mb_nr = -1; for( mb_y=0 ; mb_y<(img->height>>4) ; mb_y++ ) for( mb_x=0 ; mb_x<(img->width>>4) ; mb_x++ ) { img->current_mb_nr++; if(chroma_format==2) DeblockMb422( img, imgY, imgUV, mb_y, mb_x ) ; else if(chroma_format==1) DeblockMb( img, imgY, imgUV, mb_y, mb_x ) ; } }