亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? erc_do_i.c

?? 一個簡單的視頻會議VC++MFC工程文件
?? C
?? 第 1 頁 / 共 2 頁
字號:

/*!
 *************************************************************************************
 * \file 
 *      erc_do_i.c
 *
 * \brief
 *      Intra (I) frame error concealment algorithms for decoder
 *
 *  \author
 *      - Ari Hourunranta                <ari.hourunranta@nokia.com>
 *      - Viktor Varsa                     <viktor.varsa@nokia.com>
 *      - Ye-Kui Wang                   <wyk@ieee.org>
 *
 *************************************************************************************
 */

#include <stdlib.h>
#include "global.h"
#include "erc_do.h"

static void concealBlocks( int lastColumn, int lastRow, int comp, frame *recfr, int32 picSizeX, int *condition );
static void pixMeanInterpolateBlock( byte *src[], byte *block, int blockSize, int frameWidth );

/*!
 ************************************************************************
 * \brief
 *      The main function for Intra frame concealment.
 *      Calls "concealBlocks" for each color component (Y,U,V) seperately
 * \return
 *      0, if the concealment was not successful and simple concealment should be used
 *      1, otherwise (even if none of the blocks were concealed)
 * \param recfr
 *      Reconstructed frame buffer
 * \param picSizeX
 *      Width of the frame in pixels
 * \param picSizeY
 *      Height of the frame in pixels
 * \param errorVar   
 *      Variables for error concealment
 ************************************************************************
 */
int ercConcealIntraFrame( frame *recfr, int32 picSizeX, int32 picSizeY, ercVariables_t *errorVar ) 
{
  int lastColumn = 0, lastRow = 0;
  
  /* if concealment is on */
  if ( errorVar && errorVar->concealment ) 
  {
    /* if there are segments to be concealed */
    if ( errorVar->nOfCorruptedSegments ) 
    { 
      /* Y */
      lastRow = (int) (picSizeY>>3);
      lastColumn = (int) (picSizeX>>3);
      concealBlocks( lastColumn, lastRow, 0, recfr, picSizeX, errorVar->yCondition );
      
      /* U (dimensions halved compared to Y) */
      lastRow = (int) (picSizeY>>4);
      lastColumn = (int) (picSizeX>>4);
      concealBlocks( lastColumn, lastRow, 1, recfr, picSizeX, errorVar->uCondition );
      
      /* V ( dimensions equal to U ) */
      concealBlocks( lastColumn, lastRow, 2, recfr, picSizeX, errorVar->vCondition );
    }
    return 1;
  }
  else
    return 0;
}

/*!
 ************************************************************************
 * \brief
 *      Conceals the MB at position (row, column) using pixels from predBlocks[]
 *      using pixMeanInterpolateBlock()
 * \param currFrame
 *      current frame
 * \param row
 *      y coordinate in blocks
 * \param column
 *      x coordinate in blocks
 * \param predBlocks[]   
 *      list of neighboring source blocks (numbering 0 to 7, 1 means: use the neighbor)
 * \param frameWidth
 *      width of frame in pixels
 * \param mbWidthInBlocks
 *      2 for Y, 1 for U/V components
 ************************************************************************
 */
void ercPixConcealIMB(byte *currFrame, int row, int column, int predBlocks[], int frameWidth, int mbWidthInBlocks) 
{
   byte *src[8]={NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL};
   byte *currBlock = NULL;

   /* collect the reliable neighboring blocks */
   if (predBlocks[0])
      src[0] = currFrame + (row-mbWidthInBlocks)*frameWidth*8 + (column+mbWidthInBlocks)*8;
   if (predBlocks[1])
      src[1] = currFrame + (row-mbWidthInBlocks)*frameWidth*8 + (column-mbWidthInBlocks)*8;
   if (predBlocks[2])
      src[2] = currFrame + (row+mbWidthInBlocks)*frameWidth*8 + (column-mbWidthInBlocks)*8;
   if (predBlocks[3])
      src[3] = currFrame + (row+mbWidthInBlocks)*frameWidth*8 + (column+mbWidthInBlocks)*8;
   if (predBlocks[4])
      src[4] = currFrame + (row-mbWidthInBlocks)*frameWidth*8 + column*8;
   if (predBlocks[5])
      src[5] = currFrame + row*frameWidth*8 + (column-mbWidthInBlocks)*8;
   if (predBlocks[6])
      src[6] = currFrame + (row+mbWidthInBlocks)*frameWidth*8 + column*8;
   if (predBlocks[7])
      src[7] = currFrame + row*frameWidth*8 + (column+mbWidthInBlocks)*8;
   
   currBlock = currFrame + row*frameWidth*8 + column*8;
   pixMeanInterpolateBlock( src, currBlock, mbWidthInBlocks*8, frameWidth );

}

/*!
 ************************************************************************
 * \brief
 *      This function checks the neighbours of a Macroblock for usability in
 *      concealment. First the OK Macroblocks are marked, and if there is not 
 *      enough of them, then the CONCEALED ones as well.
 *      A "1" in the the output array means reliable, a "0" non reliable MB.
 *      The block order in "predBlocks":
 *              1 4 0
 *              5 x 7
 *              2 6 3   
 *      i.e., corners first.
 * \return
 *      Number of useable neighbour Macroblocks for concealment.
 * \param predBlocks[] 
 *      Array for indicating the valid neighbor blocks
 * \param currRow 
 *      Current block row in the frame
 * \param currColumn    
 *      Current block column in the frame
 * \param condition    
 *      The block condition (ok, lost) table
 * \param maxRow      
 *      Number of block rows in the frame
 * \param maxColumn   
 *      Number of block columns in the frame
 * \param step          
 *      Number of blocks belonging to a MB, when counting
 *      in vertical/horizontal direction. (Y:2 U,V:1)
 * \param fNoCornerNeigh 
 *      No corner neighbours are considered
 ************************************************************************
 */
int ercCollect8PredBlocks( int predBlocks[], int currRow, int currColumn, int *condition, 
                          int maxRow, int maxColumn, int step, byte fNoCornerNeigh )
{
  int srcCounter = 0, srcCountMin = (fNoCornerNeigh ? 2 : 4),
    threshold = ERC_BLOCK_CONCEALED;
  
  memset( predBlocks, 0, 8*sizeof(int) );
  
  /* collect the reliable neighboring blocks */
  do 
  {
    srcCounter = 0;
    /* Top */
    if (currRow > 0 && condition[ (currRow-1)*maxColumn + currColumn ] >= threshold ) 
    {                           //ERC_BLOCK_OK (3) or ERC_BLOCK_CONCEALED (2)
      predBlocks[4] = condition[ (currRow-1)*maxColumn + currColumn ];
      srcCounter++;
    }
    /* Bottom */
    if ( currRow < (maxRow-step) && condition[ (currRow+step)*maxColumn + currColumn ] >= threshold ) 
    {
      predBlocks[6] = condition[ (currRow+step)*maxColumn + currColumn ];
      srcCounter++;
    }
    
    if ( currColumn > 0 ) 
    {
      /* Left */
      if ( condition[ currRow*maxColumn + currColumn - 1 ] >= threshold ) 
      {
        predBlocks[5] = condition[ currRow*maxColumn + currColumn - 1 ];
        srcCounter++;
      }
      
      if ( !fNoCornerNeigh ) 
      {
        /* Top-Left */
        if ( currRow > 0 && condition[ (currRow-1)*maxColumn + currColumn - 1 ] >= threshold ) 
        {
          predBlocks[1] = condition[ (currRow-1)*maxColumn + currColumn - 1 ];
          srcCounter++;
        }
        /* Bottom-Left */
        if ( currRow < (maxRow-step) && condition[ (currRow+step)*maxColumn + currColumn - 1 ] >= threshold ) 
        {
          predBlocks[2] = condition[ (currRow+step)*maxColumn + currColumn - 1 ];
          srcCounter++;
        }
      }
    }
    
    if ( currColumn < (maxColumn-step) ) 
    {
      /* Right */
      if ( condition[ currRow*maxColumn+currColumn + step ] >= threshold ) 
      {
        predBlocks[7] = condition[ currRow*maxColumn+currColumn + step ];
        srcCounter++;
      }
      
      if ( !fNoCornerNeigh ) 
      {
        /* Top-Right */
        if ( currRow > 0 && condition[ (currRow-1)*maxColumn + currColumn + step ] >= threshold ) 
        {
          predBlocks[0] = condition[ (currRow-1)*maxColumn + currColumn + step ];
          srcCounter++;
        }
        /* Bottom-Right */
        if ( currRow < (maxRow-step) && condition[ (currRow+step)*maxColumn + currColumn + step ] >= threshold ) 
        {
          predBlocks[3] = condition[ (currRow+step)*maxColumn + currColumn + step ];
          srcCounter++;
        }
      }
    }
    /* prepare for the next round */
    threshold--;
    if (threshold < ERC_BLOCK_CONCEALED)
      break;
  } while ( srcCounter < srcCountMin);
  
  return srcCounter;
}

/*!
 ************************************************************************
 * \brief
 *      collects prediction blocks only from the current column
 * \return
 *      Number of useable neighbour Macroblocks for concealment.
 * \param predBlocks[] 
 *      Array for indicating the valid neighbor blocks
 * \param currRow 
 *      Current block row in the frame
 * \param currColumn    
 *      Current block column in the frame
 * \param condition    
 *      The block condition (ok, lost) table
 * \param maxRow      
 *      Number of block rows in the frame
 * \param maxColumn   
 *      Number of block columns in the frame
 * \param step          
 *      Number of blocks belonging to a MB, when counting
 *      in vertical/horizontal direction. (Y:2 U,V:1)
 ************************************************************************
 */
int ercCollectColumnBlocks( int predBlocks[], int currRow, int currColumn, int *condition, int maxRow, int maxColumn, int step )
{
  int srcCounter = 0, threshold = ERC_BLOCK_CORRUPTED;
  
  memset( predBlocks, 0, 8*sizeof(int) );
  
  /* in this case, row > 0 and row < 17 */
  if ( condition[ (currRow-1)*maxColumn + currColumn ] > threshold ) 
  {
    predBlocks[4] = 1;
    srcCounter++;
  }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91小视频在线观看| 国内精品免费**视频| 久久尤物电影视频在线观看| av在线播放成人| 免费成人小视频| 亚洲主播在线观看| 国产喷白浆一区二区三区| 精品视频在线看| 91精品1区2区| 97久久精品人人做人人爽 | 亚洲国产一区视频| 亚洲欧洲美洲综合色网| 欧美成人高清电影在线| 欧美视频在线一区二区三区| 成人一级片在线观看| 国产真实乱偷精品视频免| 亚洲高清免费在线| 午夜精品久久久久影视| 亚洲自拍偷拍网站| 午夜视频一区在线观看| 亚洲国产中文字幕在线视频综合| 亚洲欧美日韩中文字幕一区二区三区| 久久久亚洲国产美女国产盗摄| 欧美成人精品3d动漫h| 日韩美女主播在线视频一区二区三区 | 美女mm1313爽爽久久久蜜臀| 视频在线观看一区二区三区| 美女视频网站久久| 国产一区欧美一区| 99久久精品免费| 欧洲在线/亚洲| 欧美一级生活片| 国产日韩欧美在线一区| 一区二区三区四区乱视频| 一区二区三区在线免费播放| 亚洲高清免费在线| 国产美女一区二区三区| 97久久精品人人做人人爽| 久久综合色8888| 国产精品免费视频网站| 欧美va日韩va| 欧美卡1卡2卡| 99精品桃花视频在线观看| 日韩精彩视频在线观看| 欧美一区二区视频在线观看| 欧美日韩免费高清一区色橹橹| 欧美人成免费网站| 国产欧美日韩综合精品一区二区| 亚洲欧美另类综合偷拍| 日韩精品一区第一页| 99久久久免费精品国产一区二区| 欧美日本一区二区在线观看| 欧美性做爰猛烈叫床潮| 6080日韩午夜伦伦午夜伦| 国产精品女同一区二区三区| 日韩精品一级二级| 色域天天综合网| 日韩一区二区不卡| 亚洲一区av在线| 99久久久精品免费观看国产蜜| 欧美zozo另类异族| 午夜精品久久久久| 在线中文字幕不卡| ㊣最新国产の精品bt伙计久久| 国产一区二区看久久| 日韩亚洲欧美一区二区三区| 性久久久久久久久| 欧美色综合久久| 亚洲一区二区在线视频| 91女厕偷拍女厕偷拍高清| 国产精品三级av| 国产成人免费在线| 国产精品国产成人国产三级| 国产精品羞羞答答xxdd | 99re这里只有精品视频首页| 欧美国产在线观看| 成人开心网精品视频| 亚洲色图色小说| 在线看国产一区二区| 亚洲一区中文在线| 69久久99精品久久久久婷婷 | 日韩不卡一区二区| 日韩午夜激情电影| 国产一区二区在线免费观看| 国产午夜亚洲精品午夜鲁丝片| 成人黄色一级视频| 亚洲狠狠爱一区二区三区| 欧美日韩三级一区| 国产在线视频精品一区| 中文字幕亚洲不卡| 91精品婷婷国产综合久久| 国产精品资源在线观看| 一区二区三区在线观看欧美| 日韩欧美高清一区| 国产91丝袜在线播放0| 亚洲免费观看视频| 精品日韩成人av| 欧美制服丝袜第一页| 免费看黄色91| 亚洲综合久久久久| 久久综合999| 欧美电影一区二区三区| 国产夫妻精品视频| 中文字幕一区av| 精品播放一区二区| 欧美主播一区二区三区| 粉嫩av一区二区三区| 精品一区二区在线播放| 亚洲v日本v欧美v久久精品| 中文天堂在线一区| 欧美成人video| 欧美日韩亚洲丝袜制服| 欧美日韩综合不卡| 一区二区免费视频| 26uuu国产在线精品一区二区| 欧美三级视频在线| 欧美婷婷六月丁香综合色| 99久久婷婷国产综合精品| 高清国产午夜精品久久久久久| 久久国内精品自在自线400部| 日日摸夜夜添夜夜添精品视频| 中文字幕在线不卡一区| 国产精品视频观看| 中文字幕乱码亚洲精品一区| 欧美经典一区二区| 国产精品免费观看视频| 国产精品久久久久影院| 国产精品午夜在线| 亚洲品质自拍视频| 亚洲电影激情视频网站| 捆绑调教美女网站视频一区| 亚洲五码中文字幕| 国产农村妇女精品| 精品美女在线播放| 波波电影院一区二区三区| 精品综合久久久久久8888| 无码av免费一区二区三区试看| 亚洲色图欧洲色图婷婷| 日韩美女主播在线视频一区二区三区| 日本精品裸体写真集在线观看| 91在线无精精品入口| 91女厕偷拍女厕偷拍高清| 91精品国产高清一区二区三区| 精品理论电影在线观看| 国产精品久久99| 成人欧美一区二区三区小说 | 精品欧美乱码久久久久久| 亚洲国产精品精华液2区45| 亚洲黄一区二区三区| 天天综合日日夜夜精品| 粉嫩aⅴ一区二区三区四区五区| 欧美综合在线视频| 日韩精品一区二区在线| 国产精品久久久久久久岛一牛影视| 亚洲国产成人porn| 91伊人久久大香线蕉| 日韩一区二区免费电影| 综合激情成人伊人| 精品在线免费观看| 欧美日韩国产精品自在自线| 国产亲近乱来精品视频| 日韩不卡一区二区三区 | www.欧美精品一二区| 欧美一区二区三区小说| 亚洲综合无码一区二区| 国产麻豆精品在线观看| 欧美一二区视频| 丝袜亚洲另类欧美综合| 成人黄色国产精品网站大全在线免费观看| 欧美精品九九99久久| 亚洲高清不卡在线| 欧美日韩不卡在线| 洋洋av久久久久久久一区| 成人一区二区三区视频在线观看| 精品久久久影院| 国模大尺度一区二区三区| 日韩欧美一区在线| 蜜桃精品视频在线观看| 久久久亚洲午夜电影| 精品一区二区三区免费毛片爱| 欧美精品在线视频| 视频一区国产视频| 日韩欧美第一区| 国产成人综合网站| 国产亚洲综合色| av网站免费线看精品| 亚洲精品视频在线| 欧美日韩二区三区| 伦理电影国产精品| 国产欧美精品一区二区色综合朱莉| 成人深夜福利app| 亚洲精品免费在线观看| 欧美人伦禁忌dvd放荡欲情| 韩国中文字幕2020精品| 中文字幕佐山爱一区二区免费| 91丨porny丨最新| 麻豆成人久久精品二区三区红| 久久色.com| 欧美久久久久久蜜桃| 国产精品一卡二|