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

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

?? mom_access.c

?? MPEG4的壓縮和解壓縮代碼
?? C
字號:

/**************************************************************************
 *                                                                        *
 * This code is developed by Adam Li.  This software is an                *
 * implementation of a part of one or more MPEG-4 Video tools as          *
 * specified in ISO/IEC 14496-2 standard.  Those intending to use this    *
 * software module in hardware or software products are advised that its  *
 * use may infringe existing patents or copyrights, and any such use      *
 * would be at such party's own risk.  The original developer of this     *
 * software module and his/her company, and subsequent editors and their  *
 * companies (including Project Mayo), will have no liability for use of  *
 * this software or modifications or derivatives thereof.                 *
 *                                                                        *
 * Project Mayo gives users of the Codec a license to this software       *
 * module or modifications thereof for use in hardware or software        *
 * products claiming conformance to the MPEG-4 Video Standard as          *
 * described in the Open DivX license.                                    *
 *                                                                        *
 * The complete Open DivX license can be found at                         *
 * http://www.projectmayo.com/opendivx/license.php .                      *
 *                                                                        *
 **************************************************************************/

/**************************************************************************
 *
 *  mom_access.c
 *
 *  Copyright (C) 2001  Project Mayo
 *
 *  Adam Li
 *
 *  DivX Advance Research Center <darc@projectmayo.com>
 *
 **************************************************************************/

/* This file contains memory access for the Image, Vop and VolConfig data */
/* structures.                                                            */
/* Some codes of this project come from MoMuSys MPEG-4 implementation.    */
/* Please see seperate acknowledgement file for a list of contributors.   */

#include "mom_access.h"

/***********************************************************CommentBegin******
 *
 * -- GetImage{xxx} -- Access components of intermediate formats
 *
 *	Char *GetImageData(Image *image)
 *      UInt GetImageSize(Image *image)
 *      UInt GetImageSizeX(Image *image)
 *      UInt GetImageSizeY(Image *image)
 *      Int GetImageVersion(Image *image)
 *      ImageType GetImageType(Image *image)
 *
 * Purpose :
 *	These are common functions to access specific components
 *      of the common data structures which are used for the
 *      intermediate formats.
 *
 ***********************************************************CommentEnd********/

Char *
GetImageData(Image *image)
{
	switch(GetImageType(image))
	{
		case SHORT_TYPE:
			return((Char *)image->data->s);
			break;
		case FLOAT_TYPE:
			return((Char *)image->data->f);
			break;
		case UCHAR_TYPE:
			return((Char *)image->data->u);
			break;
		default:
			printf("Image type >>%d<< not supported\n",image->type);
			return(NULL);
	}
}


UInt
GetImageSize(Image *image)
{
	return(image->x * image->y);
}


UInt
GetImageSizeX(Image *image)
{
	return(image->x);
}


UInt
GetImageSizeY(Image *image)
{
	return(image->y);
}


Int
GetImageVersion(Image *image)
{
	return(image->version);
}


ImageType
GetImageType(Image *image)
{
	return(image->type);
}



/***********************************************************CommentBegin******
 *
 * -- GetVop{xxx} -- Functions to access components of the Vop structure
 *
 * Purpose :
 *	These are common functions to access specific components
 *      of the Vop data structure.
 *
 ***********************************************************CommentEnd********/


Int GetVopNot8Bit(Vop *vop)
{
	return (vop->bits_per_pixel != 8);
}


Int GetVopQuantPrecision(Vop *vop)
{
	return (vop->quant_precision);
}


Int GetVopBitsPerPixel(Vop *vop)
{
	return (vop->bits_per_pixel);
}


Int GetVopMidGrey(Vop *vop)
{
	return (1 << (vop->bits_per_pixel - 1));
}


Int GetVopBrightWhite(Vop *vop)
{
	return ((1 << vop->bits_per_pixel) - 1);
}


Int GetVopTimeIncrementResolution(Vop *vop)
{
	return (vop->time_increment_resolution);
}


Int
GetVopModTimeBase(Vop *vop)
{
	return(vop->mod_time_base);
}


Int
GetVopTimeInc(Vop *vop)
{
	return((int)vop->time_inc);
}


Int
GetVopPredictionType(Vop *vop)
{
	return(vop->prediction_type);
}


Int GetVopIntraDCVlcThr(Vop *vop)
{
	return (vop->intra_dc_vlc_thr);
}


Int
GetVopRoundingType(Vop *vop)
{
	return(vop->rounding_type);
}


Int
GetVopWidth(Vop *vop)
{
	return(vop->width);
}


Int
GetVopHeight(Vop *vop)
{
	return(vop->height);
}


Int
GetVopHorSpatRef(Vop *vop)
{
	return(vop->hor_spat_ref);
}


Int
GetVopVerSpatRef(Vop *vop)
{
	return(vop->ver_spat_ref);
}


Int
GetVopQuantizer(Vop *vop)
{
	return(vop->quantizer);
}


Int
GetVopIntraQuantizer(Vop *vop)
{
	return(vop->intra_quantizer);
}


Int
GetVopIntraACDCPredDisable(Vop *vop)
{
	return(vop->intra_acdc_pred_disable);
}


Int
GetVopFCodeFor(Vop *vop)
{
	return(vop->fcode_for);
}


Int
GetVopSearchRangeFor(Vop *vop)
{
	return(vop->sr_for);
}


Image *
GetVopY(Vop *vop)
{
	return(vop->y_chan);
}


Image *
GetVopU(Vop *vop)
{
	return(vop->u_chan);
}


Image *
GetVopV(Vop *vop)
{
	return(vop->v_chan);
}


/***********************************************************CommentBegin******
 *
 * -- PutVop{xxx} -- Functions to write to components of the Vop structure
 *
 *	These are common functions to write to specific components
 *      of the Vop structure.
 *
 ***********************************************************CommentEnd********/


Void PutVopQuantPrecision(Int quant_precision,Vop *vop)
{
	vop->quant_precision = quant_precision;
}


Void PutVopBitsPerPixel(Int bits_per_pixel,Vop *vop)
{
	vop->bits_per_pixel = bits_per_pixel;
}


Void PutVopTimeIncrementResolution(Int time_incre_res, Vop *vop)
{
	vop->time_increment_resolution=time_incre_res;
}


Void
PutVopModTimeBase(Int mod_time_base, Vop *vop)
{
	vop->mod_time_base = mod_time_base;
}


Void
PutVopTimeInc(Int time_inc, Vop *vop)
{
	vop->time_inc = (float)time_inc;
}


Void
PutVopPredictionType(Int prediction_type, Vop *vop)
{
	vop->prediction_type = prediction_type;
}


Void PutVopIntraDCVlcThr(Int intra_dc_vlc_thr,Vop *vop)
{
	vop->intra_dc_vlc_thr=intra_dc_vlc_thr;
}


Void
PutVopRoundingType(Int rounding_type, Vop *vop)
{
	vop->rounding_type = rounding_type;
}


Void
PutVopWidth(Int width, Vop *vop)
{
	vop->width = width;
}


Void
PutVopHeight(Int height, Vop *vop)
{
	vop->height = height;
}


Void
PutVopHorSpatRef(Int hor_spat_ref, Vop *vop)
{
	vop->hor_spat_ref = hor_spat_ref;
}


Void
PutVopVerSpatRef(Int ver_spat_ref, Vop *vop)
{
	vop->ver_spat_ref = ver_spat_ref;
}


Void
PutVopQuantizer(Int quantizer, Vop *vop)
{
	vop->quantizer = quantizer;
}


Void
PutVopIntraACDCPredDisable(Int intra_acdc_pred_disable, Vop *vop)
{
	vop->intra_acdc_pred_disable = intra_acdc_pred_disable;
}


Void
PutVopFCodeFor(Int fcode_for, Vop *vop)
{
	vop->fcode_for = fcode_for;
}


Void
PutVopSearchRangeFor(Int sr_for, Vop *vop)
{
	vop->sr_for = sr_for;
}


Void
PutVopY(Image *y_chan, Vop *vop)
{
	FreeImage(vop->y_chan);
	vop->y_chan = y_chan;
}


Void
PutVopU(Image *u_chan, Vop *vop)
{
	FreeImage(vop->u_chan);
	vop->u_chan = u_chan;
}


Void
PutVopV(Image *v_chan, Vop *vop)
{
	FreeImage(vop->v_chan);
	vop->v_chan = v_chan;
}


Void
PutVopIntraQuantizer(Int Q,Vop *vop)
{
	vop->intra_quantizer = Q;
}


/***********************************************************CommentBegin******
 *
 * -- PutVolConfigXXXX -- Access functions for VolConfig
 *
 * Purpose :
 *      To set particular fields in a VolConfig strcuture
 *
 ***********************************************************CommentEnd********/


Void
PutVolConfigFrameRate(Float fr, VolConfig *cfg)
{
	cfg->frame_rate = fr;
}


Void
PutVolConfigM(Int M, VolConfig *cfg)
{
	cfg->M = M;
}


Void
PutVolConfigStartFrame(Int frame, VolConfig *cfg)
{
	cfg->start_frame = frame;
}


Void
PutVolConfigEndFrame(Int frame, VolConfig *cfg)
{
	cfg->end_frame = frame;
}


Void
PutVolConfigBitrate(Int bit_rate,VolConfig *cfg)
{
	cfg->bit_rate = bit_rate;
}


Void
PutVolConfigIntraPeriod(Int ir,VolConfig *cfg)
{
	cfg->intra_period = ir;
}


Void
PutVolConfigQuantizer(Int Q,VolConfig *cfg)
{
	cfg->quantizer = Q;
}


Void
PutVolConfigIntraQuantizer(Int Q,VolConfig *cfg)
{
	cfg->intra_quantizer = Q;
}


Void
PutVolConfigFrameSkip(Int frame_skip,VolConfig *cfg)
{
	cfg->frame_skip = frame_skip;
}


Void
PutVolConfigModTimeBase(Int time,VolConfig *cfg)
{
	cfg->modulo_time_base[0] = cfg->modulo_time_base[1];
	cfg->modulo_time_base[1] = time;
}


/***********************************************************CommentBegin******
 *
 * -- GetVolConfigXXXX -- Access functions for VolConfig
 *
 * Purpose :
 *      To obtain the value of particular fields in a VolConfig structure
 *
 ***********************************************************CommentEnd********/


Float
GetVolConfigFrameRate(VolConfig *cfg)
{
	return(cfg->frame_rate);
}


Int
GetVolConfigM(VolConfig *cfg)
{
	return(cfg->M);
}


Int
GetVolConfigStartFrame(VolConfig *cfg)
{
	return(cfg->start_frame);
}


Int
GetVolConfigEndFrame(VolConfig *cfg)
{
	return(cfg->end_frame);
}


Int
GetVolConfigBitrate(VolConfig *cfg)
{
	return(cfg->bit_rate);
}


Int
GetVolConfigIntraPeriod(VolConfig *cfg)
{
	return(cfg->intra_period);
}


Int
GetVolConfigQuantizer(VolConfig *cfg)
{
	return(cfg->quantizer);
}


Int
GetVolConfigIntraQuantizer(VolConfig *cfg)
{
	return(cfg->intra_quantizer);
}


Int
GetVolConfigFrameSkip(VolConfig *cfg)
{
	return(cfg->frame_skip);
}


Int
GetVolConfigModTimeBase(VolConfig *cfg,Int i)
{
	return(cfg->modulo_time_base[i]);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产乱人伦偷精品视频免下载 | 91精品黄色片免费大全| 2023国产精华国产精品| 亚洲国产成人va在线观看天堂| 美腿丝袜亚洲综合| 欧美视频三区在线播放| 国产欧美日韩另类一区| 日本系列欧美系列| 欧美少妇xxx| 国产精品久久久久久久久果冻传媒| 日韩高清在线一区| 在线精品视频一区二区| 日本一区二区电影| 国产酒店精品激情| 欧美大片在线观看一区| 天堂成人免费av电影一区| av毛片久久久久**hd| 国产日韩欧美综合一区| 麻豆91小视频| 欧美刺激午夜性久久久久久久| 亚洲一区二区三区小说| 在线观看一区二区视频| 一区二区三区在线视频播放| 成人av网站在线| 国产亚洲精品资源在线26u| 美女视频第一区二区三区免费观看网站| 欧美性受xxxx| 亚洲高清一区二区三区| 欧美色视频一区| 亚洲成人自拍偷拍| 在线电影一区二区三区| 亚洲sss视频在线视频| 欧美日韩国产在线播放网站| 亚洲成人综合在线| 在线不卡中文字幕播放| 天堂蜜桃一区二区三区 | 亚欧色一区w666天堂| 91视频国产观看| 一区二区三区四区中文字幕| 色综合欧美在线视频区| 亚洲一区二区不卡免费| 欧美日韩精品一二三区| 日产精品久久久久久久性色 | 日本韩国一区二区三区视频| 亚洲婷婷在线视频| 欧美裸体一区二区三区| 美腿丝袜亚洲色图| 国产精品区一区二区三| 色婷婷精品大视频在线蜜桃视频| 亚洲一区二区av电影| 日韩亚洲欧美在线| 国产成人免费视频网站高清观看视频| 国产女人aaa级久久久级| 色悠悠久久综合| 美腿丝袜在线亚洲一区| 国产精品欧美一区二区三区| 欧洲av在线精品| 琪琪久久久久日韩精品| 国产精品免费视频网站| 欧美三级资源在线| 国产精品一区二区三区网站| 亚洲欧洲99久久| 在线电影欧美成精品| 国产成人一级电影| 五月激情综合色| 欧美极品另类videosde| 欧美日韩激情一区二区| 丁香六月久久综合狠狠色| 亚洲国产日韩一级| 久久精品在这里| 欧美亚一区二区| 高清不卡一区二区| 爽好久久久欧美精品| 国产精品网站导航| 91精品国产91久久久久久一区二区 | 亚洲高清免费在线| 久久久久国产精品免费免费搜索| 欧美性猛片aaaaaaa做受| 国产美女av一区二区三区| 亚洲一区二区高清| 国产精品久久久久久久久免费相片| 51精品久久久久久久蜜臀| 国产·精品毛片| 国产成人综合在线播放| 依依成人综合视频| 中文天堂在线一区| 欧美一区二区三区视频在线| 色综合中文字幕国产 | 91麻豆国产福利在线观看| 美女在线观看视频一区二区| 夜夜揉揉日日人人青青一国产精品 | 日韩欧美三级在线| 欧美亚洲一区二区三区四区| 成人a免费在线看| 国产专区欧美精品| 日韩电影免费在线| 亚洲国产日日夜夜| 亚洲在线成人精品| 一区二区三区在线视频免费观看| 欧美激情资源网| 国产欧美日韩亚州综合| 久久久久久久久99精品| 亚洲精品一区二区三区影院| 欧美人与z0zoxxxx视频| 在线欧美日韩精品| 91视频国产资源| 91美女在线视频| 99久久国产综合精品女不卡 | 久久99久久99| 捆绑紧缚一区二区三区视频| 日韩在线观看一区二区| 一区二区三区精品| 夜夜亚洲天天久久| 亚洲午夜成aⅴ人片| 夜夜嗨av一区二区三区中文字幕| 亚洲色大成网站www久久九九| 国产精品久久影院| 亚洲色图.com| 婷婷中文字幕一区三区| 亚洲成人综合网站| 青青国产91久久久久久| 久久国产精品露脸对白| 国产伦理精品不卡| 成人天堂资源www在线| 99国产精品国产精品毛片| 99国产精品99久久久久久| 日本久久一区二区| 91麻豆精品国产91| 久久久亚洲精品石原莉奈| 国产欧美精品一区二区色综合朱莉| 国产精品午夜春色av| 亚洲一线二线三线久久久| 亚洲电影一级黄| 蜜臀av一区二区在线免费观看| 激情欧美一区二区三区在线观看| 国产一区二区三区不卡在线观看| proumb性欧美在线观看| 欧美性色黄大片手机版| 精品日韩一区二区| 国产精品色哟哟| 日韩电影在线一区二区| 国内精品久久久久影院色| 成人高清在线视频| 欧美男女性生活在线直播观看| 日韩一级片在线播放| 国产精品成人免费在线| 香蕉成人啪国产精品视频综合网 | 亚洲成人在线观看视频| 激情图片小说一区| 成人黄色综合网站| 91精品国产91久久久久久一区二区 | 日本一区二区三区四区| 一区二区三区资源| 久久国产成人午夜av影院| 99久久免费精品高清特色大片| 欧美精品丝袜久久久中文字幕| 国产亚洲综合色| 亚洲二区视频在线| 成人理论电影网| 日韩午夜av电影| 一区二区三区四区av| 国产成人自拍网| 欧美一区二区成人| 亚洲卡通欧美制服中文| 国产原创一区二区三区| 欧美日韩精品三区| 亚洲欧美偷拍卡通变态| 国产一区在线视频| 欧美日韩一区久久| 综合分类小说区另类春色亚洲小说欧美| 毛片av中文字幕一区二区| 色一情一乱一乱一91av| 国产日产欧产精品推荐色| 奇米色一区二区| 欧美性一区二区| 亚洲精品乱码久久久久久日本蜜臀| 狠狠网亚洲精品| 91精品国产综合久久久久久| 亚洲免费av观看| av在线不卡观看免费观看| 久久久久久久久久久久久夜| 蜜臀av一区二区| 91精选在线观看| 亚洲一区二区3| 欧美伊人精品成人久久综合97| 久久久久9999亚洲精品| 久久99精品国产麻豆婷婷| 在线播放欧美女士性生活| 亚洲一区日韩精品中文字幕| 99在线精品免费| 中文成人综合网| 成人白浆超碰人人人人| 久久久精品日韩欧美| 国产在线一区观看| 亚洲精品一区二区三区蜜桃下载| 久久97超碰国产精品超碰| 日韩精品一区二区三区中文不卡 | 日韩免费高清av| 麻豆一区二区三区| 日韩免费电影网站|