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

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

?? recon.c

?? mpeg2編解標準源
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* Predict.c, motion compensation routines                                    *//* Copyright (C) 1996, MPEG Software Simulation Group. All Rights Reserved. *//* * Disclaimer of Warranty * * These software programs are available to the user without any license fee or * royalty on an "as is" basis.  The MPEG Software Simulation Group disclaims * any and all warranties, whether express, implied, or statuary, including any * implied warranties or merchantability or of fitness for a particular * purpose.  In no event shall the copyright-holder 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 MPEG Software Simulation Group does not represent or warrant that the * programs furnished hereunder are free of infringement of any third-party * patents. * * Commercial implementations of MPEG-1 and MPEG-2 video, including shareware, * are subject to royalty fees to patent holders.  Many of these patents are * general enough such that they are unavoidable regardless of implementation * design. * */#include <stdio.h>#include "config.h"#include "global.h"/* private prototypes */static void form_prediction _ANSI_ARGS_((unsigned char *src[], int sfield,  unsigned char *dst[], int dfield,  int lx, int lx2, int w, int h, int x, int y, int dx, int dy,  int average_flag));static void form_component_prediction _ANSI_ARGS_((unsigned char *src, unsigned char *dst,  int lx, int lx2, int w, int h, int x, int y, int dx, int dy, int average_flag));void form_predictions(bx,by,macroblock_type,motion_type,PMV,motion_vertical_field_select,dmvector,stwtype)int bx, by;int macroblock_type;int motion_type;int PMV[2][2][2], motion_vertical_field_select[2][2], dmvector[2];int stwtype;{  int currentfield;  unsigned char **predframe;  int DMV[2][2];  int stwtop, stwbot;  stwtop = stwtype%3; /* 0:temporal, 1:(spat+temp)/2, 2:spatial */  stwbot = stwtype/3;  if ((macroblock_type & MACROBLOCK_MOTION_FORWARD)    || (picture_coding_type==P_TYPE))  {    if (picture_structure==FRAME_PICTURE)    {      if ((motion_type==MC_FRAME)         || !(macroblock_type & MACROBLOCK_MOTION_FORWARD))      {        /* frame-based prediction (broken into top and bottom halves             for spatial scalability prediction purposes) */        if (stwtop<2)          form_prediction(forward_reference_frame,0,current_frame,0,            Coded_Picture_Width,Coded_Picture_Width<<1,16,8,bx,by,            PMV[0][0][0],PMV[0][0][1],stwtop);        if (stwbot<2)          form_prediction(forward_reference_frame,1,current_frame,1,            Coded_Picture_Width,Coded_Picture_Width<<1,16,8,bx,by,            PMV[0][0][0],PMV[0][0][1],stwbot);      }      else if (motion_type==MC_FIELD) /* field-based prediction */      {        /* top field prediction */        if (stwtop<2)          form_prediction(forward_reference_frame,motion_vertical_field_select[0][0],            current_frame,0,Coded_Picture_Width<<1,Coded_Picture_Width<<1,16,8,            bx,by>>1,PMV[0][0][0],PMV[0][0][1]>>1,stwtop);        /* bottom field prediction */        if (stwbot<2)          form_prediction(forward_reference_frame,motion_vertical_field_select[1][0],            current_frame,1,Coded_Picture_Width<<1,Coded_Picture_Width<<1,16,8,            bx,by>>1,PMV[1][0][0],PMV[1][0][1]>>1,stwbot);      }      else if (motion_type==MC_DMV) /* dual prime prediction */      {        /* calculate derived motion vectors */        Dual_Prime_Arithmetic(DMV,dmvector,PMV[0][0][0],PMV[0][0][1]>>1);        if (stwtop<2)        {          /* predict top field from top field */          form_prediction(forward_reference_frame,0,current_frame,0,            Coded_Picture_Width<<1,Coded_Picture_Width<<1,16,8,bx,by>>1,            PMV[0][0][0],PMV[0][0][1]>>1,0);          /* predict and add to top field from bottom field */          form_prediction(forward_reference_frame,1,current_frame,0,            Coded_Picture_Width<<1,Coded_Picture_Width<<1,16,8,bx,by>>1,            DMV[0][0],DMV[0][1],1);        }        if (stwbot<2)        {          /* predict bottom field from bottom field */          form_prediction(forward_reference_frame,1,current_frame,1,            Coded_Picture_Width<<1,Coded_Picture_Width<<1,16,8,bx,by>>1,            PMV[0][0][0],PMV[0][0][1]>>1,0);          /* predict and add to bottom field from top field */          form_prediction(forward_reference_frame,0,current_frame,1,            Coded_Picture_Width<<1,Coded_Picture_Width<<1,16,8,bx,by>>1,            DMV[1][0],DMV[1][1],1);        }      }      else        /* invalid motion_type */        printf("invalid motion_type\n");    }    else /* TOP_FIELD or BOTTOM_FIELD */    {      /* field picture */      currentfield = (picture_structure==BOTTOM_FIELD);      /* determine which frame to use for prediction */      if ((picture_coding_type==P_TYPE) && Second_Field         && (currentfield!=motion_vertical_field_select[0][0]))        predframe = backward_reference_frame; /* same frame */      else        predframe = forward_reference_frame; /* previous frame */      if ((motion_type==MC_FIELD)        || !(macroblock_type & MACROBLOCK_MOTION_FORWARD))      {        /* field-based prediction */        if (stwtop<2)          form_prediction(predframe,motion_vertical_field_select[0][0],current_frame,0,            Coded_Picture_Width<<1,Coded_Picture_Width<<1,16,16,bx,by,            PMV[0][0][0],PMV[0][0][1],stwtop);      }      else if (motion_type==MC_16X8)      {        if (stwtop<2)        {          form_prediction(predframe,motion_vertical_field_select[0][0],current_frame,0,            Coded_Picture_Width<<1,Coded_Picture_Width<<1,16,8,bx,by,            PMV[0][0][0],PMV[0][0][1],stwtop);          /* determine which frame to use for lower half prediction */          if ((picture_coding_type==P_TYPE) && Second_Field             && (currentfield!=motion_vertical_field_select[1][0]))            predframe = backward_reference_frame; /* same frame */          else            predframe = forward_reference_frame; /* previous frame */          form_prediction(predframe,motion_vertical_field_select[1][0],current_frame,0,            Coded_Picture_Width<<1,Coded_Picture_Width<<1,16,8,bx,by+8,            PMV[1][0][0],PMV[1][0][1],stwtop);        }      }      else if (motion_type==MC_DMV) /* dual prime prediction */      {        if (Second_Field)          predframe = backward_reference_frame; /* same frame */        else          predframe = forward_reference_frame; /* previous frame */        /* calculate derived motion vectors */        Dual_Prime_Arithmetic(DMV,dmvector,PMV[0][0][0],PMV[0][0][1]);        /* predict from field of same parity */        form_prediction(forward_reference_frame,currentfield,current_frame,0,          Coded_Picture_Width<<1,Coded_Picture_Width<<1,16,16,bx,by,          PMV[0][0][0],PMV[0][0][1],0);        /* predict from field of opposite parity */        form_prediction(predframe,!currentfield,current_frame,0,          Coded_Picture_Width<<1,Coded_Picture_Width<<1,16,16,bx,by,          DMV[0][0],DMV[0][1],1);      }      else        /* invalid motion_type */        printf("invalid motion_type\n");    }    stwtop = stwbot = 1;  }  if (macroblock_type & MACROBLOCK_MOTION_BACKWARD)  {    if (picture_structure==FRAME_PICTURE)    {      if (motion_type==MC_FRAME)      {        /* frame-based prediction */        if (stwtop<2)          form_prediction(backward_reference_frame,0,current_frame,0,            Coded_Picture_Width,Coded_Picture_Width<<1,16,8,bx,by,            PMV[0][1][0],PMV[0][1][1],stwtop);        if (stwbot<2)          form_prediction(backward_reference_frame,1,current_frame,1,            Coded_Picture_Width,Coded_Picture_Width<<1,16,8,bx,by,            PMV[0][1][0],PMV[0][1][1],stwbot);      }      else /* field-based prediction */      {        /* top field prediction */        if (stwtop<2)          form_prediction(backward_reference_frame,motion_vertical_field_select[0][1],            current_frame,0,Coded_Picture_Width<<1,Coded_Picture_Width<<1,16,8,            bx,by>>1,PMV[0][1][0],PMV[0][1][1]>>1,stwtop);        /* bottom field prediction */        if (stwbot<2)          form_prediction(backward_reference_frame,motion_vertical_field_select[1][1],            current_frame,1,Coded_Picture_Width<<1,Coded_Picture_Width<<1,16,8,            bx,by>>1,PMV[1][1][0],PMV[1][1][1]>>1,stwbot);      }    }    else /* TOP_FIELD or BOTTOM_FIELD */    {      /* field picture */      if (motion_type==MC_FIELD)      {        /* field-based prediction */        form_prediction(backward_reference_frame,motion_vertical_field_select[0][1],

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲美女视频在线观看| 久久久不卡影院| 成人app软件下载大全免费| 麻豆成人综合网| 精品在线一区二区三区| 另类小说一区二区三区| 蜜臀av性久久久久蜜臀aⅴ四虎 | 爽好久久久欧美精品| 亚洲欧美日韩国产成人精品影院| 国产精品色呦呦| **性色生活片久久毛片| 一区二区免费在线播放| 亚洲综合一二区| 视频一区二区三区入口| 久久精品国产精品亚洲综合| 国精产品一区一区三区mba视频 | 国产成人av影院| 国产成人精品免费看| 国产成都精品91一区二区三 | 亚洲欧美成aⅴ人在线观看 | 欧美日韩1区2区| 91精品国产91久久久久久一区二区| 欧美日韩一区在线| 日韩欧美一区二区在线视频| 精品欧美一区二区在线观看| 欧美国产一区在线| 亚洲精品综合在线| 婷婷国产在线综合| 国产精品77777竹菊影视小说| av一二三不卡影片| 欧美日韩不卡一区| 久久久一区二区三区| 一区二区三区蜜桃网| 三级不卡在线观看| 国产成人午夜99999| 在线一区二区三区四区五区| 日韩精品一区二区三区三区免费| 国产日本亚洲高清| 亚洲成a天堂v人片| 国产成人免费网站| 在线成人午夜影院| 日本一区二区三级电影在线观看| 亚洲欧美色图小说| 久久99久久99精品免视看婷婷| 色网综合在线观看| 久久精品免视看| 日韩高清不卡一区二区三区| 成人福利视频网站| 精品久久一二三区| 日韩精品免费专区| 91日韩一区二区三区| 久久婷婷色综合| 日韩国产精品久久久| 色综合久久中文字幕综合网| 精品日韩99亚洲| 亚洲第一成年网| 在线观看网站黄不卡| 国产亚洲综合在线| 美脚の诱脚舐め脚责91 | 久久97超碰国产精品超碰| jizzjizzjizz欧美| 国产午夜精品在线观看| 精品综合免费视频观看| 欧美男人的天堂一二区| 亚洲黄色小视频| av电影在线观看完整版一区二区| 久久婷婷久久一区二区三区| 免费成人在线影院| 911精品国产一区二区在线| 一区二区三区91| 色婷婷久久综合| 亚洲色图.com| 91网上在线视频| 中文字幕欧美一| 成人av在线影院| 中文字幕日韩精品一区| 91视频com| 亚洲精品v日韩精品| 91理论电影在线观看| 国产精品久久久久久久久免费丝袜 | caoporn国产一区二区| 国产精品高潮呻吟| 99视频一区二区三区| 亚洲人成精品久久久久| 色综合久久中文综合久久牛| 亚洲精品老司机| 欧美亚日韩国产aⅴ精品中极品| 亚洲色图视频免费播放| 欧美性色欧美a在线播放| 亚洲成a人片综合在线| 日韩免费高清av| 狠狠色综合播放一区二区| 久久精品人人做人人爽人人| 成人开心网精品视频| 亚洲精品免费在线播放| 欧美高清精品3d| 精一区二区三区| 中文字幕一区免费在线观看| 色婷婷av一区二区三区大白胸| 亚洲国产裸拍裸体视频在线观看乱了 | 国产永久精品大片wwwapp| 日本一区二区视频在线| 91激情五月电影| 日本成人在线不卡视频| 久久久久久久免费视频了| 成人性生交大片免费看视频在线| 亚洲欧美日韩国产手机在线| 欧美一区二区三区播放老司机| 国产资源精品在线观看| 亚洲天堂av老司机| 欧美精品一二三四| 国产成人精品亚洲午夜麻豆| 曰韩精品一区二区| 久久免费看少妇高潮| 色综合久久综合中文综合网| 久久精品国产成人一区二区三区| 国产网站一区二区| 欧美亚洲高清一区| 国产精品一二三四区| 亚洲午夜久久久久| 国产性做久久久久久| 51精品国自产在线| 成人精品国产福利| 欧美aaa在线| 亚洲永久精品大片| 亚洲国产精品精华液ab| 欧美高清激情brazzers| 91亚洲精品久久久蜜桃| 精品一区二区三区蜜桃| 亚洲电影一区二区| 国产精品三级视频| 26uuu另类欧美| 在线观看一区不卡| 成人激情午夜影院| 国产美女久久久久| 蜜乳av一区二区| 五月婷婷激情综合| 一区二区三区在线免费| 国产精品家庭影院| 国产亚洲欧美一区在线观看| 欧美一区二区大片| 欧美午夜在线一二页| 色综合中文综合网| 欧美精品一区二| 538在线一区二区精品国产| 色婷婷精品久久二区二区蜜臂av| 国产成人午夜99999| 麻豆国产欧美日韩综合精品二区 | 18成人在线观看| 国产欧美日韩在线视频| 精品久久久久一区| 精品免费视频一区二区| 91精品欧美综合在线观看最新| 欧美色视频一区| 欧美三级电影网| 欧美色区777第一页| 欧美日韩国产高清一区| 欧美日韩高清在线| 制服丝袜亚洲色图| 538prom精品视频线放| 欧美成人精精品一区二区频| 日韩免费电影一区| 久久中文娱乐网| 国产精品天天看| 亚洲乱码国产乱码精品精的特点| 亚洲欧洲精品一区二区精品久久久| 国产欧美精品一区二区色综合朱莉| 中文一区一区三区高中清不卡| 欧美国产欧美综合| 国产精品视频九色porn| 亚洲免费在线电影| 亚洲免费看黄网站| 午夜精品爽啪视频| 亚洲无人区一区| 久久狠狠亚洲综合| 激情深爱一区二区| 亚洲日本在线观看| 亚洲第一av色| 日韩电影网1区2区| 狠狠色综合播放一区二区| 成人综合婷婷国产精品久久免费| 国产精品亚洲一区二区三区妖精| 久久99久久99| 色婷婷av一区| 欧美一区二区在线免费播放| 欧美精品在线视频| 777色狠狠一区二区三区| 国产亚洲va综合人人澡精品| 欧美激情一区二区在线| 1区2区3区精品视频| 久久精品国产成人一区二区三区 | 在线视频欧美精品| 欧美亚洲国产一区二区三区va| 欧美岛国在线观看| 国产亚洲综合性久久久影院| 国产精品不卡在线| 国产一区在线不卡| 99久久99久久久精品齐齐| 欧美在线观看一区| 91精品国产综合久久香蕉的特点 |