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

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

?? ratecontrol.h

?? 用MPEG-4對YUV視頻文件編碼壓縮成divx視頻文件
?? H
字號:
#ifndef _RATECONTROL_H_
#define _RATECONTROL_H_

/*#include "../encoder.h" */
#include "../portab.h"
/*#include "stdio.h"*/
#include "rc_data.h"
#define MAX_SLIDING_WINDOW 20

/*
typedef struct
{
	int64_t size;
	int32_t count;
}
QuantInfo;
*/

typedef struct
{
	int32_t rtn_quant;
	int64_t frames;
	int64_t total_size;
	double framerate;
	int32_t target_rate;
	int16_t max_quant;
	int16_t min_quant;
	int64_t last_change;
	int64_t quant_sum;
	double quant_error[32];
	double avg_framesize;
	double target_framesize;
	double sequence_quality;
	int32_t averaging_period;
	int32_t reaction_delay_factor;
	int32_t buffer;
}
RateControl;


/*
	Rs: 	bit rate for the sequence (or segment).  e.g., 24000 bits/sec */
/*	Rf: 	bits used for the first frame. e.g., 10000 bits */
/*	Rc:	bits used for the current frame. It is the bit count obtained after encoding.
	Rp:	bits  to be removed from the buffer per picture.
	Ts: 	number of seconds for the sequence  (or segment).  e.g., 10 sec */
/*	Ec:	mean absolute difference for the current frame after motion compensation.
		If the macroblock is intra coded, the original spatial pixel values are summed.
	Qc:	quantisation level used for the current frame. 
	Nr:	number of P frames remaining for encoding.
	Ns:	distance between encoded frames.  e.g., 4 for 7.5 fps */
/*	Rr:	number of bits remaining for encoding this sequence (or segment).
	T:	target bit to be used for the current frame.
	S:	number of bits used for encoding the previous frame.
	Hc:	header and motion vector bits used in the current frame. It includes all the 	information except to the residual information.
	Hp:	header and motion vector bits used in the previous frame. It includes all the 	information except to the residual information.
	Ql:	quantisation level used in the previous frame
	Bs;	buffer size e.g., R/2
	B;	current buffer level e.g., R/4 - start from the middle of the buffer*/
typedef struct
   {

	BOOL IsFirst;/*是否為I,P,B的第一幀      */
	int Rc; /*:	bits used for the current frame. It is the bit count obtained after encoding. */
	int Ec; /*:	mean absolute difference for the current frame after motion compensation.
			If the macroblock is intra coded, the original spatial pixel values are summed.*/
	int Ep;/* 前一幀的平均絕對差,whq */
	int S;  /*:	number of bits used for encoding the previous frame.       */
	int Hc; /*:	header and motion vector bits used in the current frame. It includes all the 	information except to the residual information. */
	int Hp; /*:	header and motion vector bits used in the previous frame. It includes all the 	information except to the residual information.  */
	int Ql; /*:	quantisation level used in the previous frame    */
	int QpArray[MAX_SLIDING_WINDOW];/*數組中存放以前的量化值,用滑動窗口控制值的個數*/
	int Qc; /*:	quantisation level used for the current frame.  */
	double X1;  /*二階模型的一次項系數*/
	double X2;  /*二階模型的二次項系數*/
	double X11; /*一階模型的系數*/
	double RpArray[MAX_SLIDING_WINDOW];/*過去幀的復雜度度量	   */
}RCQ2_DATA;

typedef struct{
	int Rp; /*:	bits  to be removed from the buffer per picture. */
	int Ts; /*: 	number of seconds for the sequence  (or segment).  e.g., 10 sec */
	int Bs; /*;	buffer size e.g., R/2 */
	int B;  /*;	current buffer level e.g., R/4 - start from the middle of the buffer */
	int Nr; /*:	number of frames remaining for encoding.   */
	int N_Total;/* total number of coded frame in a gop */	
	int Ns; /*:	distance between encoded frames.  e.g., 4 for 7.5 fps */
	int Rr; /*:	number of bits remaining for encoding this sequence (or segment). */
	int T;  /*:	target bit to be used for the current frame.                       */
	int Rs; /*: 	bit rate for the sequence (or segment).  e.g., 24000 bits/sec */
	int Rf; /*: 	bits used for the first frame.  e.g., 10000 bits */
	int max_key_interval;/*最大關鍵幀間隔  */
	double array_x[MAX_SLIDING_WINDOW][2];
	double  array_y[MAX_SLIDING_WINDOW];
	double  rc_error[MAX_SLIDING_WINDOW];
	RCQ2_DATA data[2];
	RCQ2_SAVE_QUEUE rc_queue[2];
}RCQ2;

/* new rate control */
int Get_Initial_Quant(RCQ2* rc,int frametype);/*得到初始量化值    */
int RC_GetQ(FILE *pfile,RCQ2* rc,int frametype,int mad);/*得到量化值   */
void RCInitialization(RCQ2* rc,int bitrate,int framerate,int sequence_time);/*初始化位率控制 */
void Target_Bit_Calculation(RCQ2* rc,int frametype);/*目標位率計算        */
void Quantisation_Calculation(FILE *pfile,RCQ2* rc,int frametype);/*計算量化值   */
void UpdateRDModel (RCQ2* rc,int frametype);/*更新二階率失真模型         */                                          
void After_encoding_current( FILE *pfile,RCQ2* rc,int frametype,int length,int head_vector,int mad);/*編碼一幀后調用   */
void Estimator(RCQ2* rc,int frametype,int * w); /*int Qp, uint32_t Rp,int w,uint32_t b  再估計用于去掉壞點    */
void RemoveOutlier(RCQ2* rc,int frametype,double X1,double X2,int Qp[],double Rp[],double Ec,int * w);/*去掉壞點  */
BOOL IsSkipFrame(RCQ2* rc); /*判斷是否丟幀,new add  */



/* old rate control */
void RateControlInit(RateControl * rate_control,
					 uint32_t target_rate,
					 uint32_t reaction_delay_factor,
					 uint32_t averaging_period,
					 uint32_t buffer,
					 int framerate,
					 int max_quant,
					 int min_quant);

int RateControlGetQ(RateControl * rate_control,
					int keyframe);

void RateControlUpdate(RateControl * rate_control,
					   uint32_t quant,
					   int frame_size,
					   int keyframe);

static int get_initial_quant(int bpp);

#endif /* _RATECONTROL_H_ */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品18久久久久久久网站| 日韩精品欧美精品| 成人三级在线视频| 欧美国产精品中文字幕| www.日韩大片| 亚洲精品视频在线观看网站| 欧美中文字幕一区二区三区亚洲| 亚洲国产欧美在线人成| 日韩午夜在线播放| 成人91在线观看| 亚洲国产精品一区二区久久| 日韩欧美国产一区二区在线播放 | 亚洲精品中文在线影院| 欧美日韩综合色| 狠狠v欧美v日韩v亚洲ⅴ| 中文字幕乱码亚洲精品一区| 欧洲在线/亚洲| 精品亚洲国内自在自线福利| 国产精品污网站| 91精品国产欧美一区二区18| 国产成人夜色高潮福利影视| 亚洲午夜一二三区视频| 久久亚洲春色中文字幕久久久| 成人免费观看男女羞羞视频| 亚洲成人自拍一区| 国产欧美精品一区二区色综合| 欧美性大战久久久久久久蜜臀 | 欧美性色黄大片| 国产一本一道久久香蕉| 一区二区三区四区在线| 精品国产乱码久久久久久图片 | 国产精品99精品久久免费| 亚洲免费在线播放| 精品久久久久久无| 欧美在线视频全部完| 国产不卡一区视频| 蜜桃免费网站一区二区三区| 亚洲视频一区二区在线| 国产亚洲精品福利| 欧美一区二区视频免费观看| 日本黄色一区二区| 成人激情动漫在线观看| 狂野欧美性猛交blacked| 亚洲最新视频在线观看| 国产精品网站在线| 亚洲精品一区在线观看| 337p亚洲精品色噜噜狠狠| 99久久精品国产网站| 国产福利一区在线| 美女脱光内衣内裤视频久久网站| 亚洲你懂的在线视频| 国产精品久久久久久久久果冻传媒| 欧美成人午夜电影| 欧美一区二区精美| 欧美精品久久99久久在免费线 | 欧美亚洲精品一区| 91在线视频播放地址| 不卡大黄网站免费看| 激情六月婷婷综合| 久久国产精品露脸对白| 午夜精品视频一区| 午夜影院久久久| 亚洲国产日韩在线一区模特 | 日韩精品一级中文字幕精品视频免费观看 | 韩国在线一区二区| 日日摸夜夜添夜夜添国产精品 | 91美女片黄在线| 成人精品视频网站| 成人精品亚洲人成在线| 成人午夜电影网站| 成人在线综合网| 成人午夜激情视频| av一区二区三区黑人| 972aa.com艺术欧美| 北岛玲一区二区三区四区 | 一本一道久久a久久精品综合蜜臀| 成人永久免费视频| 丁香五精品蜜臀久久久久99网站 | 日韩电影免费在线观看网站| 亚洲一卡二卡三卡四卡无卡久久 | 国产亚洲欧洲一区高清在线观看| 精品精品国产高清a毛片牛牛| 欧美成人性战久久| 国产亚洲欧美中文| 中文字幕中文字幕在线一区| 亚洲欧美一区二区三区极速播放 | 亚洲欧洲三级电影| 亚洲三级免费电影| 亚洲综合久久av| 日本vs亚洲vs韩国一区三区 | 91在线观看免费视频| 色88888久久久久久影院野外| 91传媒视频在线播放| 欧美三日本三级三级在线播放| 欧美人妇做爰xxxⅹ性高电影 | 国产三级三级三级精品8ⅰ区| 中文字幕av一区二区三区高| 亚洲视频网在线直播| 性欧美大战久久久久久久久| 裸体一区二区三区| 高清视频一区二区| 在线精品视频一区二区三四| 日韩一区二区高清| 国产精品久久久久久久裸模| 亚洲一区视频在线| 精品制服美女久久| 色婷婷精品久久二区二区蜜臂av| 欧美肥胖老妇做爰| 中文一区在线播放| 午夜日韩在线电影| 国产成人亚洲综合a∨婷婷图片| 色婷婷av一区| 亚洲精品一区二区在线观看| 亚洲精品自拍动漫在线| 久久精品国产**网站演员| caoporen国产精品视频| 在线91免费看| 一区二区中文字幕在线| 久久99久久久久| 色婷婷综合久久久久中文| 精品福利一区二区三区免费视频| 自拍偷自拍亚洲精品播放| 毛片av一区二区| 在线影院国内精品| 久久精品一区八戒影视| 日韩精品一区第一页| 91蜜桃网址入口| 国产亚洲欧美中文| 美国毛片一区二区三区| 欧美色男人天堂| 国产精品护士白丝一区av| 麻豆久久久久久久| 欧美三级欧美一级| 欧美国产亚洲另类动漫| 久久91精品久久久久久秒播| 欧美视频在线播放| 亚洲色图清纯唯美| 成人深夜在线观看| 久久美女高清视频| 久久精品99国产精品日本| 欧美日韩精品一区二区三区| 成人免费一区二区三区视频| 国产精品系列在线播放| 精品国产青草久久久久福利| 亚洲va天堂va国产va久| 欧洲精品一区二区| 亚洲精品国产无天堂网2021| 成人激情综合网站| 国产香蕉久久精品综合网| 免费看黄色91| 欧美精品日韩综合在线| 亚洲妇熟xx妇色黄| 日本乱人伦一区| 一区二区三区毛片| 色狠狠色噜噜噜综合网| 亚洲图片你懂的| 99久免费精品视频在线观看| 国产人久久人人人人爽| 国产九九视频一区二区三区| 精品福利在线导航| 国产乱人伦精品一区二区在线观看| 91精品国产美女浴室洗澡无遮挡| 五月婷婷久久丁香| 91精品国产91热久久久做人人| 午夜欧美一区二区三区在线播放| 欧美日精品一区视频| 爽爽淫人综合网网站| 在线综合亚洲欧美在线视频| 日韩电影免费一区| 精品久久久久久综合日本欧美| 久久精品99国产精品| 精品国产凹凸成av人网站| 国产一区二区三区久久久| 国产日韩成人精品| 99国产精品久久久久| 玉米视频成人免费看| 欧美日韩电影在线| 裸体健美xxxx欧美裸体表演| 久久日韩粉嫩一区二区三区| 国产高清在线精品| 亚洲人成伊人成综合网小说| 欧美日韩中文字幕精品| 免费xxxx性欧美18vr| 久久综合久久综合久久| 成av人片一区二区| 亚洲综合清纯丝袜自拍| 日韩一级高清毛片| 成人网男人的天堂| 亚洲与欧洲av电影| 欧美一级精品在线| 丰满少妇在线播放bd日韩电影| 中文字幕中文字幕中文字幕亚洲无线 | 亚洲精品免费电影| 欧美精品在线一区二区三区| 老司机午夜精品| 亚洲欧美色图小说| 欧美一区二区美女| av不卡在线播放| 日本不卡视频在线| 日韩美女精品在线|