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

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

?? erc_do_i.c

?? TML的參考源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/*
***********************************************************************
* COPYRIGHT AND WARRANTY INFORMATION
*
* Copyright 2001, International Telecommunications Union, Geneva
*
* DISCLAIMER OF WARRANTY
*
* These software programs are available to the user without any
* license fee or royalty on an "as is" basis. The ITU disclaims
* any and all warranties, whether express, implied, or
* statutory, including any implied warranties of merchantability
* or of fitness for a particular purpose.  In no event shall the
* contributor or the ITU be liable for any incidental, punitive, or
* consequential damages of any kind whatsoever arising from the
* use of these programs.
*
* This disclaimer of warranty extends to the user of these programs
* and user's customers, employees, agents, transferees, successors,
* and assigns.
*
* The ITU does not represent or warrant that the programs furnished
* hereunder are free of infringement of any third-party patents.
* Commercial implementations of ITU-T Recommendations, including
* shareware, may be subject to royalty fees to patent holders.
* Information regarding the ITU-T patent policy is available from
* the ITU Web site at http://www.itu.int.
*
* THIS IS NOT A GRANT OF PATENT RIGHTS - SEE THE ITU-T PATENT POLICY.
************************************************************************
*/

/*!
 *************************************************************************************
 * \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                   <wangy@cs.tut.fi>
 *
 *************************************************************************************
 */

#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          

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
琪琪久久久久日韩精品| 亚洲最大色网站| 欧美性感一区二区三区| 国模冰冰炮一区二区| 一区二区三区日韩| 91麻豆精品国产无毒不卡在线观看 | 欧美一级片在线观看| 精品夜夜嗨av一区二区三区| 亚洲乱码国产乱码精品精的特点 | 久久精品人人做人人综合 | 中文字幕一区二区三区不卡 | 五月天亚洲精品| 国产精品毛片高清在线完整版| 欧美一区二区三区免费观看视频| www.欧美.com| 国内不卡的二区三区中文字幕| 日韩精品一区第一页| 亚洲免费看黄网站| 国产精品欧美一区二区三区| 26uuu精品一区二区三区四区在线| 欧美群妇大交群中文字幕| 99久久婷婷国产| 国产成人aaa| 精品一区免费av| 免费成人av在线| 亚洲一区在线播放| 亚洲特黄一级片| 亚洲欧洲性图库| 国产精品美女一区二区| 日本一区二区三区免费乱视频| 日韩欧美一级精品久久| 欧美一区二区三区在线电影| 欧美精品国产精品| 欧美日韩中文字幕一区| 欧美伊人久久久久久久久影院| 色综合久久久久久久久久久| 99精品视频一区二区三区| 香蕉av福利精品导航| 久久综合狠狠综合久久综合88| 日韩亚洲电影在线| 日韩欧美在线不卡| 精品国产伦一区二区三区观看体验 | 91亚洲精华国产精华精华液| 成人性生交大片免费看中文| 国产宾馆实践打屁股91| 成人精品在线视频观看| 白白色 亚洲乱淫| 色偷偷88欧美精品久久久| 一本到不卡免费一区二区| 色欧美乱欧美15图片| 91久久一区二区| 欧美肥妇free| 精品国精品国产尤物美女| 国产三级精品视频| 中文字幕亚洲不卡| 一级中文字幕一区二区| 亚洲成人av资源| 青青草原综合久久大伊人精品| 久久99精品国产.久久久久| 国产精品白丝av| av动漫一区二区| 欧美性猛交xxxx乱大交退制版 | 国产精品进线69影院| 亚洲蜜臀av乱码久久精品| 亚洲一区自拍偷拍| 久久精品久久久精品美女| 国产成人亚洲综合a∨猫咪| 不卡视频在线观看| 欧美视频第二页| 精品日韩av一区二区| 国产精品视频九色porn| 一区二区三区在线观看网站| 五月婷婷久久综合| 黑人巨大精品欧美黑白配亚洲| 99久久国产综合精品麻豆| 欧美日韩一二区| 国产亚洲综合性久久久影院| 一区二区三区四区五区视频在线观看 | 成人综合婷婷国产精品久久蜜臀| 91蜜桃在线观看| 欧美一卡二卡三卡| 国产精品欧美一级免费| 午夜精品视频在线观看| 高清不卡在线观看| 日本一区二区综合亚洲| 亚洲国产欧美在线人成| 国产久卡久卡久卡久卡视频精品| jlzzjlzz欧美大全| 日韩一区二区三区视频在线观看 | 三级一区在线视频先锋 | 夜色激情一区二区| 久久精品免费观看| 在线观看视频一区| 欧美激情综合在线| 午夜不卡在线视频| 成人午夜av影视| 欧美一级艳片视频免费观看| 最新日韩在线视频| 精品亚洲成a人在线观看| 欧美在线你懂得| 国产视频在线观看一区二区三区| 日韩精品电影在线| 在线观看网站黄不卡| 国产精品久久久久aaaa樱花 | 国产免费成人在线视频| 免费av成人在线| 欧美自拍偷拍一区| 国产精品高潮呻吟| 国产一区二区三区免费| 91精品国产乱码久久蜜臀| 亚洲精品国产一区二区精华液| 粉嫩av一区二区三区| 久久综合久久综合久久综合| 亚洲图片有声小说| 91麻豆免费观看| 亚洲国产经典视频| 国产成人免费9x9x人网站视频| 日韩限制级电影在线观看| 亚洲一区二区三区中文字幕在线| 成人av在线播放网址| 久久精品日韩一区二区三区| 蓝色福利精品导航| 欧美色电影在线| 一区av在线播放| 在线影院国内精品| 亚洲精品国产品国语在线app| 岛国精品在线播放| 国产亚洲精品福利| 国产91精品久久久久久久网曝门| 久久久青草青青国产亚洲免观| 美日韩一区二区| 欧美成人vps| 国产一区二区伦理| 亚洲综合清纯丝袜自拍| 一本久道久久综合中文字幕 | 亚洲综合色丁香婷婷六月图片| 91农村精品一区二区在线| 国产精品乱人伦中文| 成人激情电影免费在线观看| 国产精品麻豆久久久| 成人一级黄色片| 国产精品不卡一区二区三区| 91首页免费视频| 亚洲色图视频网| 在线国产电影不卡| 天天操天天干天天综合网| 91精品黄色片免费大全| 久99久精品视频免费观看| 精品国产三级电影在线观看| 国产一区 二区| 中文字幕乱码日本亚洲一区二区| 97久久人人超碰| 一区二区在线观看视频| 在线不卡一区二区| 蜜桃久久久久久| 国产蜜臀av在线一区二区三区| 91麻豆蜜桃一区二区三区| 亚洲国产欧美日韩另类综合| 91麻豆精品国产91久久久久久| 亚洲大片免费看| 精品国产青草久久久久福利| 不卡av在线网| 亚洲第一搞黄网站| 久久亚洲精品小早川怜子| 97久久精品人人爽人人爽蜜臀| 亚洲一区二区三区激情| 亚洲影院免费观看| 亚洲伦理在线精品| 欧美日韩不卡在线| 精品一区二区三区的国产在线播放| 久久久久综合网| 91欧美一区二区| 男男视频亚洲欧美| 国产色产综合产在线视频| 一本久久a久久免费精品不卡| 男女性色大片免费观看一区二区| 久久久午夜精品| 欧美无砖专区一中文字| 国产美女精品一区二区三区| 亚洲乱码国产乱码精品精98午夜 | 国产欧美精品一区二区三区四区| 99国产精品久久| 老司机一区二区| 一区二区三区中文在线观看| 日韩免费高清电影| av欧美精品.com| 免费成人在线观看视频| 亚洲色图.com| 久久奇米777| 欧美高清视频一二三区| 成人激情综合网站| 美女网站视频久久| 亚洲男同1069视频| 久久久久久久免费视频了| 欧美色欧美亚洲另类二区| 波波电影院一区二区三区| 久久国产精品一区二区| 亚洲一区中文在线| 亚洲欧美在线视频| 国产亚洲综合在线|