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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? motest.c

?? This document aims to provide instructions on how to configure the H.264/AVC encoder and decoder usi
?? C
?? 第 1 頁 / 共 4 頁
字號:
/*COPYRIGHT, LICENSE AND WARRANTY INFORMATIONThis software module has been originally developed by Nokia Corporation. Provided that a person, entity or a company willing to use the Software (hereinafter Licensee) comply with all the terms and conditions of this Statement and subject to the limitations set forth in this Statement Nokia grants to such Licensee a non-exclusive, sub-licensable, worldwide, limited license under copyrights owned by Nokia to use the Software for the sole purpose of creating, manufacturing, selling, marketing, or  distributing (including the right to make modifications to the Software) a fully compliant decoder implementation (hereinafter "Decoder") of ITU-T Recommendation H.264 / ISO/IEC International Standard 14496-10 and an encoder implementation producing output that is decodable with the Decoder.Nokia retains the ownership of copyrights to the Software. There is no patent nor other intellectual property right of Nokia licensed under this Statement (except the copyright license above). Licensee hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if patent licenses  are required, it is their responsibility to acquire the license before utilizing the Software.The license by Nokia is subject to that the Licensee grants to Nokia the non-exclusive, worldwide, royalty-free, perpetual and irrevocable covenant that the Licensee(s) shall not bring a suit before any court or administrative agency or otherwise assert a claim for infringement under the Licensee intellectual property rights that, but for a license, would be infringed by the Software against     (a)  Nokia or Nokia's Affiliate; or     (b)  other recipient of a license and covenant not to sue with respect         to the Software from Nokia; or    (c)  contractor, customer or distributor of a party listed above in a         or b,  which suit or claim is related to the Software or use thereof.The Licensee(s) further agrees to grant a reciprocal license to Nokia (as granted by Nokia to the Licensee(s) on the modifications made by Licensee(s) to the Software. THE SOFTWARE IS PROVIDED "AS IS" AND THE ORIGINAL DEVELOPER DISCLAIMS ANY AND ALL WARRANTIES WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. THOSE INTENDING TO USE THE SOFTWARE ARE EXPRESSLY ADVISED THAT ITS USE MAY INFRINGE EXISTING PATENTS AND BE SUBJECT TO ROYALTY PAYMENTS TO PATENT OWNERS. ANYONE USING THE SOFTWARE ON THE BASIS OF THIS LICENSE AGREES TO OBTAIN THE NECESSARY PERMISSIONS FROM ANY AND ALL APPLICABLE PATENT OWNERS FOR SUCH USE.IN NO EVENT SHALL THE ORIGINAL DEVELOPER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.This copyright, license and warranty information notice must be retained in all copies and derivative works of the Software or substantial portions thereof.*/#include <limits.h>#include <string.h>#include "globals.h"#include "debug.h"#include "vlcutility.h"#include "transform.h"#include "motcomp.h"#include "meutility.h"#include "macroblock.h"#include "stream.h"#define CENTER_PRED_MV              0#define CENTER_LARGER_BLOCK_MV      1#define SAD_NOT_AVAILABLE     0#define SAD_AVAILABLE         1#define MAX_SUB_MB_RECT_SIZE  576/* * * mesMultiStepSearch: * * Parameters: *      blk                 Buffer pointers and parameters related to the block *      pMeProf             Parameters for controlling ME *      bestVec             Best vector so far, will be updated at return *      bestSad             Minimum SAD so far, will be updated at return *      neighborSads        SAD of neighboring positions * * Function: *      Perform integer motion vector. Support sparse search. N-step search *      is the special case.  * * Returns: *      Return values are in bestVec and bestSad. * */static int mesMultiStepSearch(mbPart_s    *mbPart,                               meProfile_s *pMeProf,                               motVec_s    *bestVec,                              int         *bestSad,                              int         *neighborSads){  int startX, stopX, startY, stopY;  int subsamplingStep, offset, returnStat;  LC3_s *plc3= & (pMeProf->lc3);  subsamplingStep = pMeProf->subsampling;  // sparse search based on the step size, subsamplingStep must be 2's power  // subsamplingStep was in quater pixel precision, we shift by 1/2 step  offset = (subsamplingStep >> 3) * 4;  startX = pMeProf->p0[0];  startY = pMeProf->p0[1];  stopX  = pMeProf->p1[0];  stopY  = pMeProf->p1[1];  startX += offset;  stopX  -= offset;  startY += offset;  stopY  -= offset;   if ( (plc3->low_complex_prof3) && (plc3->spec_search_pos)    ) {    //   : do_16x8 must be 1 for 16x16 mode, and might become 0 when    // handling 16x8 or 8x16 mode    if (plc3->do_16x8)      matchBlockLong_MultiStep(mbPart, startX, stopX, startY, stopY, subsamplingStep, bestVec, bestSad);  }  else    matchBlockLong(mbPart, startX, stopX, startY, stopY, subsamplingStep, bestVec, bestSad, plc3->low_complex_prof3);  // refinement step-wise search to get the finer step size  returnStat = SAD_NOT_AVAILABLE;  if (mbPart->profile == PROF_CODING_SPEED)  {    // we do one step refinement and record the SADs at neighboring positions    if (subsamplingStep > 4)    {      neighborSads[0] = *bestSad;      // neighborSads[0] has been used above      if (matchBlockLocal4(mbPart, 4, bestVec, bestSad, neighborSads + 1))        // the best location has changed        returnStat = SAD_AVAILABLE;    }  }  else  {    while (subsamplingStep > 4)    {      // perform refinement search      subsamplingStep >>= 1;          // should always be 4 now      matchBlockDiamond(mbPart, subsamplingStep, bestVec, bestSad, 0);    }    returnStat = SAD_NOT_AVAILABLE;  }  return returnStat;}/* * * mesGradientSearch: * * Parameters: *      blk                 Buffer pointers and parameters related to the block *      pMeProf             Parameters for controlling ME *      bestVec             Best vector so far, will be updated at return *      bestSad             Minimum SAD so far, will be updated at return * * Function: *      Perform gradient search for integer motion vector. This is used as *      the refinement search stage if the best motion vector is located *      at the boundary of the search window. * * Returns: *      Return values are in bestVec and bestSad. * */void mesGradientSearch(mbPart_s    *mbPart,                        meProfile_s *pMeProf,                        motVec_s    *bestVec,                       int         *bestSad){  int i, loopCount;  int p0[2], p1[2];  p0[0] = pMeProf->p0[0];  p1[0] = pMeProf->p1[0];  p0[1] = pMeProf->p0[1];  p1[1] = pMeProf->p1[1];  loopCount = 0;  while ((bestVec->x == p0[0]) || (bestVec->x == p1[0]) ||    (bestVec->y == p0[1]) || (bestVec->y == p1[1]))  {    int searchDir[2], vec[2], tmp;    motVec_s prevBestVec;    vec[0] = bestVec->x;    vec[1] = bestVec->y;    for (i = 0; i < 2; i ++)    {      searchDir[i] = 0;      if (vec[i] == p1[i])      // upper boundary        searchDir[i] = 1;      else if (vec[i] == p0[i])    // lower boundary        searchDir[i] = -1;    }    if ((searchDir[0] != 0) && (searchDir[1] != 0))    {      // this is the corner      p0[0] = bestVec->x - searchDir[0] * 4;      p1[0] = bestVec->x + searchDir[0] * 12;      p0[1] = bestVec->y - searchDir[1] * 4;      p1[1] = bestVec->y + searchDir[1] * 12;    }    else    {      // this is at least 1 pixel away from the corner      if (searchDir[0] != 0)      {        p0[0] = bestVec->x + searchDir[0] * 4;        p1[0] = bestVec->x + searchDir[0] * 20;        p0[1] = bestVec->y - 8;          p1[1] = bestVec->y + 8;       }      else      {        p0[0] = bestVec->x - 8;          p1[0] = bestVec->x + 8;          p0[1] = bestVec->y + searchDir[1] * 4;        p1[1] = bestVec->y + searchDir[1] * 20;      }    }    for (i = 0; i < 2; i ++)    {      if (p0[i] > p1[i])      {        tmp   = p0[i];        p0[i] = p1[i];         p1[i] = tmp;      }      if (p0[i] < pMeProf->vecLmt0[i])        p0[i] = pMeProf->vecLmt0[i];      if (p1[i] >  pMeProf->vecLmt1[i])        p1[i] = pMeProf->vecLmt1[i];    }    prevBestVec = *bestVec;    matchBlockLong(mbPart, p0[0], p1[0], p0[1], p1[1], 4, bestVec, bestSad, pMeProf->lc3.low_complex_prof3);    // bestVec could be a new value    loopCount ++;    if (((prevBestVec.x == bestVec->x) && (prevBestVec.y == bestVec->y)) ||      (loopCount == 3))      break;  }}static int mySad2(mbPart_s *mbPart, int vecX, int vecY){  int currSad;  int lambda;  /* Take into account number fo bits spent for motion vector */  lambda = mbPart->lambdaCoarse;  currSad = lambda * (mbPart->vlcMvBitsX[vecX] + mbPart->vlcMvBitsY[vecY]);  if (mbPart->mode == MOT_16x16)  {    if ((vecY | vecX) == 0)      currSad -= lambda * ZERO_VEC_SAD;  }  /* Accumulate sad until no pels left or sad is worse than best so far */  currSad = findSAD2(mbPart->orig, mbPart->ref, mbPart->refWidth,     mbPart->width, mbPart->height, vecX, vecY, currSad, INT_MAX);  return currSad;}#define NO_HALF_PRED        -128#define NOT_REAL_SAD        -4096// estimate the half pixel location from 5 SADsstatic int mesPredictHalfPixel(mbPart_s *mbPart,                                int *neighborSads,                               int *halfPixelSads,                               motVec_s *bestVec,                               int *bestSad,                               int *direction){  int i, idx, centerSad, x, y;  int range[2], whoIsLarger[2], larger[2], center[2];//  int confidence[2], max[2];  // estimate at x direction  for (i = 0; i < 9; i ++)    halfPixelSads[i] = NOT_REAL_SAD;  halfPixelSads[4] = *bestSad;  center[0] = bestVec->x;  center[1] = bestVec->y;  centerSad = *bestSad;  // characterize the data and perform 1-D estimation  for (i = 0; i < 2; i ++)  {    direction[i] = NO_HALF_PRED;    if (neighborSads[1 + i] >= neighborSads[3 + i])    {      larger[i] = neighborSads[1 + i];      whoIsLarger[i] = 1;    }    else    {      larger[i] = neighborSads[3 + i];      whoIsLarger[i] = -1;    }    // neighborSads[0] is at center    range[i] = larger[i] - neighborSads[0];    if (i == 0)    // x direction    {      x = whoIsLarger[0];      y = 0;      idx = 3 + 1 + x;      x *= 2;    }    else          // y direction    {      x = 0;      y = whoIsLarger[1];      idx = (1 + y) * 3 + 1;      y *= 2;    }    halfPixelSads[idx] = mySad2(mbPart, center[0] + x, center[1] + y);    direction[i] = 0;    if (halfPixelSads[idx] < *bestSad)    {      *bestSad = halfPixelSads[idx];      bestVec->x = (int16) (center[0] + x);      bestVec->y = (int16) (center[1] + y);      direction[i] = whoIsLarger[i];    }  }  // let's find out how confident we are  if ((direction[1] != NO_HALF_PRED) && (direction[1] != NO_HALF_PRED))  {    if ((direction[0] != 0) && (direction[1] != 0))    {      // predict a diagonal half-pixel point, very un-reliable      int candidate;      int x0, y0;      // diagonal search,       x0 = direction[0];      y0 = direction[1];      idx = (1 + y0) * 3 + 1 + x0;      x0 *= 2;      y0 *= 2;      halfPixelSads[idx] = mySad2(mbPart, center[0] + x0, center[1] + y0);      candidate = 0;      if (halfPixelSads[idx] < *bestSad)      {        *bestSad = halfPixelSads[idx];        bestVec->x = (int16) (center[0] + x0);        bestVec->y = (int16) (center[1] + y0);        candidate = 1;      }    }  }  return (direction[0] != NO_HALF_PRED) && (direction[1] != NO_HALF_PRED);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人精品综合在线观看| 亚洲自拍偷拍九九九| 精品综合免费视频观看| 日韩欧美国产系列| 久久精品国产精品青草| 国产亚洲视频系列| 99re这里都是精品| 亚洲福中文字幕伊人影院| 欧美一区二区在线免费播放| 韩国三级在线一区| 国产精品你懂的在线| 日本电影欧美片| 免费成人在线观看视频| 国产日韩欧美亚洲| 在线观看日韩精品| 精久久久久久久久久久| 亚洲欧洲性图库| 欧美视频中文一区二区三区在线观看| 欧美aaaaaa午夜精品| 国产精品视频免费看| 欧美视频在线一区二区三区 | www久久久久| 不卡一区二区中文字幕| 亚洲高清不卡在线| 久久一留热品黄| 色综合激情五月| 久草中文综合在线| 一区二区三区91| 2021中文字幕一区亚洲| 色天天综合久久久久综合片| 狠狠色伊人亚洲综合成人| 最好看的中文字幕久久| 日韩一区二区三区视频| 99久久99久久精品免费看蜜桃| 午夜电影久久久| 国产精品美女一区二区三区 | 国产剧情一区二区三区| 一区二区三区欧美视频| 久久先锋资源网| 欧美日韩一级视频| 成人激情图片网| 美腿丝袜亚洲色图| 一区二区三区中文字幕| 国产日产精品一区| 69堂亚洲精品首页| 色综合婷婷久久| 国产福利一区二区三区视频| 天堂一区二区在线免费观看| 亚洲欧美色一区| 国产精品丝袜久久久久久app| 日韩精品一区二区在线观看| 欧美综合视频在线观看| jizzjizzjizz欧美| 国产a区久久久| 精品亚洲欧美一区| 青青国产91久久久久久 | 日韩精品一二区| 一区二区三区中文字幕精品精品| 亚洲国产精品黑人久久久 | 国产精品灌醉下药二区| 精品国产露脸精彩对白| 91精品久久久久久久91蜜桃| 91福利在线观看| 色婷婷久久久亚洲一区二区三区| 成人av高清在线| 高清成人免费视频| 国产成人av影院| 国产精品中文字幕日韩精品| 韩国理伦片一区二区三区在线播放| 亚洲福中文字幕伊人影院| 一区二区不卡在线播放 | 日韩激情视频在线观看| 性做久久久久久久免费看| 亚洲伊人伊色伊影伊综合网| 亚洲女爱视频在线| 一区二区三区色| 亚洲国产精品视频| 日本一区中文字幕| 久久精品免费看| 精品一区二区三区不卡| 激情成人午夜视频| 国产成人免费视频网站| 成人免费福利片| 91麻豆国产香蕉久久精品| 欧美在线视频日韩| 337p亚洲精品色噜噜噜| 日韩视频不卡中文| 久久一留热品黄| 日韩久久一区二区| 亚洲国产综合色| 亚洲chinese男男1069| 日本少妇一区二区| 国内精品伊人久久久久av一坑| 国产精品一级片| 成人高清视频在线| 在线观看91视频| 91精品国产综合久久精品图片| 日韩欧美电影一二三| 久久久久久综合| 亚洲日本在线天堂| 日日摸夜夜添夜夜添亚洲女人| 精品一区二区三区免费播放| 成a人片亚洲日本久久| 欧美精选午夜久久久乱码6080| 欧美不卡激情三级在线观看| 中文字幕欧美激情一区| 亚洲一区二区三区美女| 久久99精品国产麻豆婷婷| 丁香另类激情小说| 欧美日韩一卡二卡三卡| 久久久久国色av免费看影院| 亚洲免费色视频| 欧美aaa在线| 一本在线高清不卡dvd| 欧美一卡二卡三卡| 国产精品理论在线观看| 欧美96一区二区免费视频| 成人自拍视频在线| 欧美精品视频www在线观看| 久久精品人人做人人综合| 亚洲一本大道在线| 国产精品1区2区3区在线观看| 色8久久人人97超碰香蕉987| www日韩大片| 亚洲电影激情视频网站| 成人一区二区在线观看| 在线播放91灌醉迷j高跟美女 | 一区二区三区在线观看欧美| 蜜臀91精品一区二区三区| 色综合久久九月婷婷色综合| 欧美sm美女调教| 亚洲国产一区二区视频| 国产很黄免费观看久久| 91麻豆精品国产91久久久久久| 国产精品色一区二区三区| 久久精品久久精品| 欧美日韩高清一区二区不卡| 国产精品久久久久久户外露出| 精品一区二区三区在线观看| 欧美电影影音先锋| 国产一区高清在线| 欧美日韩精品二区第二页| 亚洲免费观看视频| av一区二区三区| 中文字幕av一区二区三区高| 久久精品国产澳门| 日韩一级完整毛片| 亚洲成人免费影院| 99久久精品国产导航| 国产婷婷色一区二区三区四区| 六月婷婷色综合| 日韩欧美一区二区免费| 五月婷婷久久综合| 精品视频在线免费看| 亚洲人精品一区| 97精品久久久久中文字幕| 国产肉丝袜一区二区| 国产精品123| 国产欧美一区二区三区沐欲| 国产精品 日产精品 欧美精品| 精品对白一区国产伦| 麻豆久久久久久| 日韩欧美国产午夜精品| 蜜桃一区二区三区在线| 日韩精品一区二区三区在线播放| 日本aⅴ精品一区二区三区| 91精品国产乱| 麻豆91在线播放免费| 欧美成人午夜电影| 国产乱人伦精品一区二区在线观看| 久久综合九色综合欧美98 | 最新欧美精品一区二区三区| av激情亚洲男人天堂| 国产精品久久久久久亚洲毛片| 成人午夜在线播放| 亚洲天堂免费看| 色综合久久久久综合体| 亚洲成人av电影| 日韩一卡二卡三卡四卡| 国产自产2019最新不卡| 中文天堂在线一区| 色综合一区二区| 日韩和欧美一区二区三区| 日韩免费视频一区二区| 国产a精品视频| 亚洲免费av高清| 91精品欧美综合在线观看最新| 免费成人在线视频观看| 久久久精品免费网站| 91亚洲国产成人精品一区二区三| 亚洲午夜视频在线观看| 欧美一区二区三区在线看| 国产一区二区三区四区五区入口| 国产精品少妇自拍| 欧美性一区二区| 精品一区二区三区免费观看| 亚洲乱码日产精品bd| 制服丝袜激情欧洲亚洲| 国产成人午夜精品影院观看视频| 亚洲色图第一区|