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

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

?? global.h

?? TML的參考源代碼
?? H
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
  int           delta_quant;          //!< for rate control
  int           intraOrInter;
  struct macroblock   *mb_available[3][3]; /*!< pointer to neighboring MBs in a 3x3 window of current MB, which is located at [1][1]
                                                NULL pointer identifies neighboring MBs which are unavailable */

  // some storage of macroblock syntax elements for global access
  int           mb_type;
  int           mb_imode;
  int           ref_frame;
  int           predframe_no;
  int           mvd[2][BLOCK_MULTIPLE][BLOCK_MULTIPLE][2];      //!< indices correspond to [forw,backw][block_y][block_x][x,y]
  int           intra_pred_modes[BLOCK_MULTIPLE*BLOCK_MULTIPLE];
  int           cbp, cbp_blk ;
} Macroblock;

//! Bitstream
typedef struct
{
  // CABAC Decoding
  int           read_len;           //!< actual position in the codebuffer, CABAC only
  int           code_len;           //!< overall codebuffer length, CABAC only
  // UVLC Decoding
  int           frame_bitoffset;    //!< actual position in the codebuffer, bit-oriented, UVLC only
  int           bitstream_length;   //!< over codebuffer lnegth, byte oriented, UVLC only
  // ErrorConcealment
  byte          *streamBuffer;      //!< actual codebuffer for read bytes
  int           ei_flag;            //!< error indication, 0: no error, else unspecified error
} Bitstream;

//! DataPartition
typedef struct datapartition
{

  Bitstream           *bitstream;
  DecodingEnvironment de_cabac;

  int     (*readSyntaxElement)(SyntaxElement *, struct img_par *, struct inp_par *, struct datapartition *);
          /*!< virtual function;
               actual method depends on chosen data partition and
               entropy coding method  */
} DataPartition;

//! Slice
typedef struct
{
  int                 ei_flag;       //!< 0 if the partArr[0] contains valid information
  int                 picture_id;    //!< MUST be set by NAL even in case ei_flag == 1
  int                 qp;
  int                 picture_type;  //!< picture type
  int                 start_mb_nr;   //!< MUST be set by NAL even in case of ei_flag == 1
  int                 max_part_nr;
  int                 dp_mode;       //!< data partioning mode
  int                 eos_flag;      //!< end of sequence flag
  int                 next_header;
  int                 next_eiflag;
  int                 last_mb_nr;    //!< only valid when entropy coding == CABAC
  DataPartition       *partArr;      //!< array of partitions
  MotionInfoContexts  *mot_ctx;      //!< pointer to struct of context models for use in CABAC
  TextureInfoContexts *tex_ctx;      //!< pointer to struct of context models for use in CABAC
  RMPNIbuffer_t        *rmpni_buffer; //!< stores the slice temporary buffer remapping commands
  int     (*readSlice)(struct img_par *, struct inp_par *);

} Slice;
//****************************** ~DM ***********************************

// image parameters
typedef struct img_par
{
  int number;                                 //<! frame number
  int pn;                                     //<! short term picture number
  int current_mb_nr;
  int max_mb_nr;
  int current_slice_nr;
  int *intra_mb;                              //<! 1 = intra mb, 0 = not intra mb
  int tr;                                     //<! temporal reference, 8 bit, wrapps at 255
  int tr_old;                                     //<! old temporal reference, for detection of a new frame, added by WYK
  int refPicID;                         //<! temporal reference for reference frames (non-B frames), 4 bit, wrapps at 15, added by WYK
  int refPicID_old;                  //<! to detect how many reference frames are lost, added by WYK
  int qp;                                     //<! quant for the current frame
  int qpsp;                                   //<! quant for SP-picture predicted frame
  int type;                                   //<! image type INTER/INTRA
  int width;
  int height;
  int width_cr;                               //<! width chroma
  int height_cr;                              //<! height chroma
  int mb_y;
  int mb_x;
  int block_y;
  int pix_y;
  int pix_x;
  int pix_c_y;
  int block_x;
  int pix_c_x;
  int mb_mode;
  int imod;                                   //<! MB mode
  int ***mv;                                  //<! [92][72][3]
  int mpr[16][16];                            //<! predicted block

  int m7[4][4];                               //<! final 4x4 block
  int cof[4][6][4][4];                        //<! correction coefficients from predicted
  int cofu[4];
  int **ipredmode;                            //<! prediction type [90][74]
  int quad[256];
  int UseConstrainedIntraPred;

  int cod_counter;                            //<! Current count of number of skipped macroblocks in a row

  int ***dfMV;                                //<! [92][72][3];
  int ***dbMV;                                //<! [92][72][3];
  int **fw_refFrArr;                          //<! [72][88];
  int **bw_refFrArr;                          //<! [72][88];
  int ref_frame;

  // B pictures
  int ***fw_mv;                                //<! [92][72][3];
  int ***bw_mv;                                //<! [92][72][3];
  int fw_multframe_no;
  int fw_blc_size_h;
  int fw_blc_size_v;
  int bw_multframe_no;
  int bw_blc_size_h;
  int bw_blc_size_v;
  Slice       *currentSlice;                   //<! pointer to current Slice data struct
  Macroblock          *mb_data;                //<! array containing all MBs of a whole frame
  int subblock_x;
  int subblock_y;

  int mv_res;
  int buf_cycle;

  MMCObuffer_t *mmco_buffer;                    //<! stores the memory management control operations
} ImageParameters;

// signal to noice ratio parameters
struct snr_par
{
  float snr_y;                                 //<! current Y SNR
  float snr_u;                                 //<! current U SNR
  float snr_v;                                 //<! current V SNR
  float snr_y1;                                //<! SNR Y(dB) first frame
  float snr_u1;                                //<! SNR U(dB) first frame
  float snr_v1;                                //<! SNR V(dB) first frame
  float snr_ya;                                //<! Average SNR Y(dB) remaining frames
  float snr_ua;                                //<! Average SNR U(dB) remaining frames
  float snr_va;                                //<! Average SNR V(dB) remaining frames
};

int tot_time;

// input parameters from configuration file
struct inp_par
{
  char infile[100];                       //<! Telenor H.26L input
  char outfile[100];                      //<! Decoded YUV 4:2:0 output
  char reffile[100];                      //<! Optional YUV 4:2:0 reference file for SNR measurement
  int  postfilter;                        //<! postfilter (0=OFF,1=ON)
  int symbol_mode;                        //<! Specifies the mode the symbols are mapped on bits
  int UseConstrainedIntraPred;            //<! 0: Inter MB pixels are allowed for intra prediction 1: Not allowed
  int of_mode;                            //<! Specifies the mode of the output file
  int partition_mode;                     //<! Specifies the mode of data partitioning
  int buf_cycle;                          //<! Frame buffer size
#ifdef _LEAKYBUCKET_
  unsigned long R_decoder;                //<! Decoder Rate in HRD Model
  unsigned long B_decoder;                //<! Decoder Buffer size in HRD model
  unsigned long F_decoder;                //<! Decoder Inital buffer fullness in HRD model
  char LeakyBucketParamFile[100];     //<! LeakyBucketParamFile 
#endif
};


// files
FILE *p_out;                    //<! pointer to output YUV file
FILE *p_ref;                    //<! pointer to input original reference YUV file file
FILE *p_log;                    //<! SNR file
FILE *p_datpart;                //<! file to write bitlength and id of all partitions

#if TRACE
FILE *p_trace;
#endif

// prototypes
void init_conf(struct inp_par *inp, char *config_filename);
void report(struct inp_par *inp, struct img_par *img, struct snr_par *snr);
void find_snr(struct snr_par *snr,struct img_par *img, FILE *p_ref, int postfilter);
void init(struct img_par *img);

void malloc_slice(struct inp_par *inp, struct img_par *img);
void free_slice(struct inp_par *inp, struct img_par *img);

int  decode_one_frame(struct img_par *img,struct inp_par *inp, struct snr_par *snr);
void init_frame(struct img_par *img, struct inp_par *inp);
void exit_frame(struct img_par *img, struct inp_par *inp);
void DeblockMb(struct img_par *img ) ;

void write_frame(struct img_par *img,int,FILE *p_out);
void write_prev_Pframe(struct img_par *img,FILE *p_out);// B pictures
void copy_Pframe(struct img_par *img,int);// B pictures


int  read_new_slice(struct img_par *img, struct inp_par *inp);
void decode_one_slice(struct img_par *img,struct inp_par *inp);

void start_macroblock(struct img_par *img,struct inp_par *inp);
void init_macroblock_Bframe(struct img_par *img);// B pictures
int  read_one_macroblock(struct img_par *img,struct inp_par *inp);
int  read_one_macroblock_Bframe(struct img_par *img,struct inp_par *inp);// B pictures
int  decode_one_macroblock(struct img_par *img,struct inp_par *inp);
int  decode_one_macroblock_Bframe(struct img_par *img);// B pictures
void decode_one_CopyMB(struct img_par *img,struct inp_par *inp);
int  exit_macroblock(struct img_par *img,struct inp_par *inp);

void readMotionInfoFromNAL_Bframe(struct img_par *img,struct inp_par *inp);// B pictures
void readMotionInfoFromNAL_Pframe(struct img_par *img,struct inp_par *inp);
void readCBPandCoeffsFromNAL(struct img_par *img,struct inp_par *inp);

void copyblock_sp(struct img_par *img,int block_x,int block_y);
void itrans_sp_chroma(struct img_par *img,int ll);
void itrans(struct img_par *img,int ioff,int joff,int i0,int j0);
void itrans_sp(struct img_par *img,int ioff,int joff,int i0,int j0);
int  intrapred(struct img_par *img,int ioff,int joff,int i4,int j4);
void itrans_2(struct img_par *img);
int  intrapred_luma_2(struct img_par *img,int predmode);
int  sign(int a , int b);

// UVLC mapping
void linfo(int len, int info, int *value1, int *dummy);
void linfo_mvd(int len,int info, int *signed_mvd, int *dummy);
void linfo_cbp_intra(int len,int info,int *cbp, int *dummy);
void linfo_cbp_inter(int len,int info,int *cbp, int *dummy);
void linfo_dquant(int len,  int info, int *signed_dquant, int *dummy);
void linfo_levrun_inter(int len,int info,int *level,int *irun);
void linfo_levrun_intra(int len,int info,int *level,int *irun);
void linfo_levrun_c2x2(int len,int info,int *level,int *irun);

int  readSyntaxElement_UVLC(SyntaxElement *sym, struct img_par *img, struct inp_par *inp, struct datapartition *dp);
int  readSliceUVLC(struct img_par *img, struct inp_par *inp);


// Direct interpolation
void get_block(int ref_frame,int x_pos, int y_pos, struct img_par *img, int block[BLOCK_SIZE][BLOCK_SIZE]);
void get_quarterpel_block(int ref_frame,int x_pos, int y_pos, struct img_par *img, int block[BLOCK_SIZE][BLOCK_SIZE]);
void get_eighthpel_block(int ref_frame,int x_pos, int y_pos, struct img_par *img, int block[BLOCK_SIZE][BLOCK_SIZE]);

int  GetVLCSymbol (byte buffer[],int totbitoffset,int *info, int bytecount);

// int   inter_intra(struct img_par *img);

// SLICE function pointers
int  (*nal_startcode_follows) ();

// NAL functions TML/CABAC bitstream
int  uvlc_startcode_follows();
int  cabac_startcode_follows();
int  GetOnePartitionIntoSourceBitBuffer(int PartitionSize, byte *Buf);
void free_Partition(Bitstream *currStream);

// ErrorConcealment
void reset_ec_flags();

// CABAC
void arideco_start_decoding(DecodingEnvironmentPtr dep, unsigned char *code_buffer, int firstbyte, int *code_len );
int  arideco_bits_read(DecodingEnvironmentPtr dep);
void arideco_done_decoding(DecodingEnvironmentPtr dep);
void biari_init_context( BiContextTypePtr ctx, int ini_count_0, int ini_count_1, int max_cum_freq );
void biari_copy_context( BiContextTypePtr ctx_orig, BiContextTypePtr ctx_dest );
void biari_print_context( BiContextTypePtr ctx );
void rescale_cum_freq(BiContextTypePtr bi_ct);
unsigned int biari_decode_symbol(DecodingEnvironmentPtr dep, BiContextTypePtr bi_ct );
MotionInfoContexts* create_contexts_MotionInfo(void);
TextureInfoContexts* create_contexts_TextureInfo(void);
void init_contexts_MotionInfo(struct img_par *img, MotionInfoContexts *enco_ctx, int ini_flag);
void init_contexts_TextureInfo(struct img_par *img, TextureInfoContexts *enco_ctx, int ini_flag);
void delete_contexts_MotionInfo(MotionInfoContexts *enco_ctx);
void delete_contexts_TextureInfo(TextureInfoContexts *enco_ctx);


void readMB_typeInfoFromBuffer_CABAC(SyntaxElement *se, struct inp_par *inp, struct img_par *img, DecodingEnvironmentPtr dep_dp);
void readIntraPredModeFromBuffer_CABAC(SyntaxElement *se, struct inp_par *inp,struct img_par *img, DecodingEnvironmentPtr dep_dp);
void readRefFrameFromBuffer_CABAC(SyntaxElement *se, struct inp_par *inp, struct img_par *img, DecodingEnvironmentPtr dep_dp);
void readMVDFromBuffer_CABAC(SyntaxElement *se, struct inp_par *inp, struct img_par *img, DecodingEnvironmentPtr dep_dp);
void readCBPFromBuffer_CABAC(SyntaxElement *se, struct inp_par *inp, struct img_par *img, DecodingEnvironmentPtr dep_dp);
void readRunLevelFromBuffer_CABAC(SyntaxElement *se, struct inp_par *inp, struct img_par *img,  DecodingEnvironmentPtr dep_dp);

void readMVD2Buffer_CABAC(SyntaxElement *se,  struct inp_par *inp, struct img_par *img, DecodingEnvironmentPtr dep_dp);
void readBiMVD2Buffer_CABAC(SyntaxElement *se,struct inp_par *inp,struct img_par *img,DecodingEnvironmentPtr dep_dp);
void readBiDirBlkSize2Buffer_CABAC(SyntaxElement *se,struct inp_par *inp,struct img_par *img,DecodingEnvironmentPtr dep_dp);

int  readSliceCABAC(struct img_par *img, struct inp_par *inp);
int  readSyntaxElement_CABAC(SyntaxElement *se, struct img_par *img, struct inp_par *inp, DataPartition *this_dataPart);
void readDquantFromBuffer_CABAC(SyntaxElement *se,struct inp_par *inp,struct img_par *img,DecodingEnvironmentPtr dep_dp);

void error(char *text, int code);
void start_slice(struct img_par *img, struct inp_par *inp);
int  terminate_slice(struct img_par *img, struct inp_par *inp, struct stat_par  *stat);

// dynamic mem allocation
int  init_global_buffers(struct inp_par *inp, struct img_par *img);
void free_global_buffers(struct inp_par *inp, struct img_par *img);

#endif

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区丝袜| 中文字幕乱码日本亚洲一区二区| 99久久99久久综合| 国内偷窥港台综合视频在线播放| 亚洲国产视频直播| 亚洲精品大片www| 国产拍揄自揄精品视频麻豆| 欧美精品一区男女天堂| 日韩欧美自拍偷拍| 欧美一级xxx| 日韩精品一区二区三区在线观看 | 麻豆国产欧美日韩综合精品二区 | 久久99精品久久只有精品| 樱桃国产成人精品视频| 日韩理论片一区二区| 国产色综合久久| 国产日韩欧美激情| 日韩女优毛片在线| 精品少妇一区二区| 国产日韩欧美精品综合| 久久网站最新地址| 国产视频一区二区在线观看| 久久久国产午夜精品| 久久久综合激的五月天| 精品视频1区2区| 欧美日韩国产片| 欧美精品亚洲二区| 日韩欧美国产一二三区| 欧美一区二区三区四区五区 | 久久新电视剧免费观看| 26uuu亚洲综合色欧美 | 蜜乳av一区二区三区| 亚洲成人综合网站| 日韩av一级电影| 国内精品久久久久影院薰衣草 | 高清国产一区二区三区| 国产成人亚洲精品狼色在线| 激情丁香综合五月| 成人深夜在线观看| 亚洲一区中文在线| 国产精品久久久久天堂| 亚洲免费av高清| 亚洲福利一二三区| 久久精品国产网站| 成人毛片视频在线观看| 在线免费观看一区| 欧美高清激情brazzers| 欧美精品一区二区三| 精品盗摄一区二区三区| 国产精品情趣视频| 一区二区三区欧美在线观看| 美女在线观看视频一区二区| 国产精品影视网| 国产精品一区二区久久不卡| 一本色道**综合亚洲精品蜜桃冫| 欧美另类久久久品| 久久九九久精品国产免费直播| 1000部国产精品成人观看| 亚洲h在线观看| 麻豆精品国产91久久久久久| 成人黄色网址在线观看| 欧美午夜免费电影| 26uuu欧美日本| 亚洲综合色婷婷| 中文字幕 久热精品 视频在线| 一本一道久久a久久精品综合蜜臀| 色综合久久88色综合天天6| 91麻豆精品国产综合久久久久久| 久久久久9999亚洲精品| 亚洲天堂成人网| 激情综合色播激情啊| 色综合亚洲欧洲| 欧美mv日韩mv亚洲| 国产精品久久久久毛片软件| 视频在线观看91| 99re这里只有精品视频首页| 91精品国产一区二区三区蜜臀| 亚洲色图制服诱惑 | 91国产成人在线| 久久久综合精品| 日本一不卡视频| 色噜噜狠狠一区二区三区果冻| 欧美一级二级三级蜜桃| 亚洲欧美日韩中文字幕一区二区三区 | 99久久精品一区二区| 欧美电影免费观看高清完整版在 | 精品视频在线免费看| 欧美亚洲日本国产| 国产91丝袜在线播放0| 欧美日韩亚洲不卡| 亚洲国产精品传媒在线观看| 毛片一区二区三区| 99久久精品久久久久久清纯| 精品乱人伦小说| 亚洲另类一区二区| 成人免费福利片| 2021中文字幕一区亚洲| 男女男精品网站| 91理论电影在线观看| 国产精品不卡在线| 国产成人在线网站| 久久五月婷婷丁香社区| 香蕉av福利精品导航| 99精品欧美一区二区三区小说| 国产精品久久久久影院| 97久久超碰精品国产| 亚洲精品自拍动漫在线| 欧美亚洲国产bt| 亚洲二区在线视频| 欧美精三区欧美精三区| 日本欧美一区二区在线观看| 日韩三级视频在线观看| 国产在线一区观看| 国产欧美精品一区二区色综合朱莉| 国产乱子伦视频一区二区三区| 国产调教视频一区| av亚洲精华国产精华| 一区二区高清在线| 欧美天堂一区二区三区| 日韩在线观看一区二区| 日韩精品一区二区在线| 国产69精品一区二区亚洲孕妇| 欧美国产精品一区二区三区| 69精品人人人人| 一级做a爱片久久| 欧美日韩久久久一区| 日韩二区三区在线观看| 日韩午夜小视频| 国产精品亚洲一区二区三区妖精| 中文字幕av一区 二区| 91啦中文在线观看| 日韩电影在线观看一区| 久久综合久久鬼色| 99国产麻豆精品| 国产在线观看免费一区| 久久精品在线观看| 91九色最新地址| 美女视频一区二区三区| 国产精品久久久久一区二区三区| 欧洲生活片亚洲生活在线观看| 免费视频一区二区| 国产精品无遮挡| 欧美另类久久久品| 成人在线视频一区| 亚洲成人精品影院| 国产日产欧美一区二区视频| 欧美亚洲一区二区三区四区| 国产综合久久久久久鬼色| 亚洲免费观看视频| 欧美一级高清大全免费观看| 99国产精品久| 精品在线播放免费| 亚洲美女视频在线| 精品国产123| 欧美色视频在线观看| 国产寡妇亲子伦一区二区| 亚洲高清视频在线| 久久女同性恋中文字幕| 亚洲男人天堂av| 欧美一级xxx| eeuss鲁片一区二区三区在线看| 亚洲综合视频网| 久久综合成人精品亚洲另类欧美| 91美女福利视频| 国产经典欧美精品| 免费人成精品欧美精品| 国产精品国产三级国产专播品爱网| 欧美精品久久久久久久多人混战| 成人ar影院免费观看视频| 麻豆极品一区二区三区| 亚洲综合久久av| 国产精品日日摸夜夜摸av| 日韩三级电影网址| 欧美日韩午夜精品| 一本大道久久a久久精二百| 国产一区二区福利视频| 日韩精品一二区| 亚洲综合一区二区精品导航| 国产精品欧美精品| 久久一夜天堂av一区二区三区| 欧美日韩高清一区| 在线精品视频一区二区| 成人午夜视频网站| 国产一区二区三区四| 日本中文字幕不卡| 午夜精品一区二区三区免费视频 | 中文字幕日韩精品一区| 91精品中文字幕一区二区三区| 国产成人免费视频网站高清观看视频| 亚洲成人动漫一区| 国产精品久久久久久亚洲伦| 久久久久久99久久久精品网站| 欧美一级欧美三级| 欧美日韩国产一级| 欧美色涩在线第一页| 在线观看日韩av先锋影音电影院| 成人亚洲一区二区一| 国产美女精品一区二区三区| 国内外成人在线| 激情综合网av|