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

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

?? global.h

?? 可以用H.264編碼解碼器源碼(c語言)
?? H
?? 第 1 頁 / 共 2 頁
字號:

  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                 qp;
  int                 picture_type;  //!< picture type
  PictureStructure    structure;     //!< Identify picture structure 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                 next_header;
//  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
  
  int                 ref_pic_list_reordering_flag_l0;
  int                 *remapping_of_pic_nums_idc_l0;
  int                 *abs_diff_pic_num_minus1_l0;
  int                 *long_term_pic_idx_l0;
  int                 ref_pic_list_reordering_flag_l1;
  int                 *remapping_of_pic_nums_idc_l1;
  int                 *abs_diff_pic_num_minus1_l1;
  int                 *long_term_pic_idx_l1;

  int     (*readSlice)(struct img_par *, struct inp_par *);

  int                 LFDisableIdc;     //!< Disable loop filter on slice
  int                 LFAlphaC0Offset;  //!< Alpha and C0 offset for filtering slice
  int                 LFBetaOffset;     //!< Beta offset for filtering slice

  int                 pic_parameter_set_id;   //!<the ID of the picture parameter set the slice is reffering to

} Slice;

//****************************** ~DM ***********************************

// image parameters
typedef struct img_par
{
  int number;                                 //<! frame number
  unsigned current_mb_nr; // bitstream order
  unsigned num_dec_mb;
  int current_slice_nr;
  int *intra_block;
  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 qp;                                     //<! quant for the current frame
  int qpsp;                                   //<! quant for SP-picture predicted frame
  int sp_switch;                              //<! 1 for switching sp, 0 for normal sp
  int direct_type;                          //<! 1 for Spatial Direct, 0 for Temporal
  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 allrefzero;
  int mpr[16][16];                            //<! predicted block

  int m7[16][16];                             //<! final 4x4 block. Extended to 16x16 for ABT
  int cof[4][6][4][4];                        //<! correction coefficients from predicted
  int cofu[4];
  int **ipredmode;                            //<! prediction type [90][74]
  int quad[256];
  int constrained_intra_pred_flag;            //<! if 1, prediction only from other Intra MBs
  int ***nz_coeff;
  int **siblock;
  int cod_counter;                            //<! Current count of number of skipped macroblocks in a row

  int structure;                               //<! Identify picture structure type
  int structure_old;                           //<! temp fix for multi slice per picture
  int pstruct_next_P;

  // B pictures
  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 is_intra_block;
  int is_v_block;

  // For MB level frame/field coding
  int MbaffFrameFlag;

  int **field_anchor;

  DecRefPicMarking_t *dec_ref_pic_marking_buffer;                    //<! stores the memory management control operations

  int disposable_flag;                          //!< flag for disposable frame, 1:disposable
  int num_ref_idx_l0_active;             //!< number of forward reference
  int num_ref_idx_l1_active;             //!< number of backward reference

  int slice_group_change_cycle;
  // JVT-D101
  int redundant_slice_flag; 
  int redundant_pic_cnt; 

  int explicit_B_prediction;



  // End JVT-D101
  // POC200301: from unsigned int to int
           int toppoc;      //poc for this top field // POC200301
           int bottompoc;   //poc of bottom field of frame
           int framepoc;    //poc of this frame // POC200301
  unsigned int frame_num;   //frame_num for this frame
  unsigned int field_pic_flag;
  unsigned int bottom_field_flag;
  
  //the following should probably go in sequence parameters
  // unsigned int log2_max_frame_num_minus4;
  unsigned int pic_order_cnt_type;
  // for poc mode 0, POC200301
  // unsigned int log2_max_pic_order_cnt_lsb_minus4;  
  // for poc mode 1, POC200301
  unsigned int delta_pic_order_always_zero_flag;
           int offset_for_non_ref_pic;
           int offset_for_top_to_bottom_field;
  unsigned int num_ref_frames_in_pic_order_cnt_cycle;
           int offset_for_ref_frame[MAXnum_ref_frames_in_pic_order_cnt_cycle];

  // POC200301
  //the following is for slice header syntax elements of poc
  // for poc mode 0.
  unsigned int pic_order_cnt_lsb;
           int delta_pic_order_cnt_bottom;
  // for poc mode 1.
           int delta_pic_order_cnt[2];

  // ////////////////////////
  // for POC mode 0:
    signed int PicOrderCntMsb;
  unsigned int PrevPicOrderCntLsb;
    signed int CurrPicOrderCntMsb;
  // for POC mode 1:
  unsigned int AbsFrameNum;
    signed int ExpectedPicOrderCnt, PicOrderCntCycleCnt, FrameNumInPicOrderCntCycle;
  unsigned int PreviousFrameNum, FrameNumOffset;
           int ExpectedDeltaPerPicOrderCntCycle;
           int PreviousPOC, ThisPOC;
           int PreviousFrameNumOffset;
  // /////////////////////////


  //weighted prediction
  unsigned int weighted_pred_flag;
  unsigned int weighted_bipred_idc;
  unsigned int luma_log2_weight_denom;
  unsigned int chroma_log2_weight_denom;
  int ***wp_weight;  // weight in [list][index][component] order
  int ***wp_offset;  // offset in [list][index][component] order
  int ****wbp_weight; //weight in [list][fw_index][bw_index][component] order
  int wp_round_luma;
  int wp_round_chroma;
  unsigned int apply_weights;

  unsigned int pic_order_present_flag;
  
  int idr_flag;
  int nal_reference_idc;                       //!< nal_reference_idc from NAL unit

  int idr_pic_id;

  int MaxFrameNum;

  unsigned PicWidthInMbs;
  unsigned PicHeightInMapUnits;
  unsigned FrameHeightInMbs;
  unsigned PicHeightInMbs;
  unsigned PicSizeInMbs;
  unsigned FrameSizeInMbs;

  int no_output_of_prior_pics_flag;
  int long_term_reference_flag;
  int adaptive_ref_pic_buffering_flag;

  int model_number;

} ImageParameters;

extern ImageParameters *img;
extern struct snr_par  *snr;
// 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 FileFormat;                         //<! File format of the Input file, PAR_OF_ANNEXB or PAR_OF_RTP
  int dpb_size;                          //<! 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

};

extern struct inp_par *input;

typedef struct pix_pos
{
  int available;
  int mb_addr;
  int x;
  int y;
  int pos_x;
  int pos_y;
} PixelPos;

// files
FILE *p_out;                    //<! pointer to output YUV file
//FILE *p_out2;                    //<! pointer to debug output YUV file
FILE *p_ref;                    //<! pointer to input original reference YUV file file
FILE *p_log;                    //<! SNR file

#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 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 DeblockFrame(struct img_par *img, byte **imgY, byte ***imgUV ) ;

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

void start_macroblock(struct img_par *img,struct inp_par *inp, int CurrentMBInScanOrder);
int  read_one_macroblock(struct img_par *img,struct inp_par *inp);
void read_ipred_modes(struct img_par *img,struct inp_par *inp);
int  decode_one_macroblock(struct img_par *img,struct inp_par *inp);
int  exit_macroblock(struct img_par *img,struct inp_par *inp, int eos_bit);

void readMotionInfoFromNAL (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_16x16(struct img_par *img,int predmode);
void intrapred_chroma(struct img_par *img, int uv);
int  sign(int a , int b);

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

// NAL functions TML/CABAC bitstream
int  uvlc_startcode_follows();
int  cabac_startcode_follows();
void free_Partition(Bitstream *currStream);

// ErrorConcealment
void reset_ec_flags();

void error(char *text, int code);

// 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);

void frame_postprocessing(struct img_par *img, struct inp_par *inp);
void field_postprocessing(struct img_par *img, struct inp_par *inp);
int  bottom_field_picture(struct img_par *img,struct inp_par *inp);
void init_top(struct img_par *img, struct inp_par *inp);
void init_bottom(struct img_par *img, struct inp_par *inp);
void decode_frame_slice(struct img_par *img,struct inp_par *inp, int current_header);
void decode_field_slice(struct img_par *img,struct inp_par *inp, int current_header);

#define PAYLOAD_TYPE_IDERP 8
int RBSPtoSODB(byte *streamBuffer, int last_byte_pos);
int EBSPtoRBSP(byte *streamBuffer, int end_bytepos, int begin_bytepos);

// For MB level frame/field coding
void init_super_macroblock(struct img_par *img,struct inp_par *inp);
void exit_super_macroblock(struct img_par *img,struct inp_par *inp);
int  decode_super_macroblock(struct img_par *img,struct inp_par *inp);
void decode_one_Copy_topMB(struct img_par *img,struct inp_par *inp);

void SetOneRefMV(struct img_par* img);
int peekSyntaxElement_UVLC(SyntaxElement *sym, struct img_par *img, struct inp_par *inp, struct datapartition *dP);

void fill_wp_params(struct img_par *img);

void reset_wp_params(struct img_par *img);

void FreePartition (DataPartition *dp, int n);
DataPartition *AllocPartition();

void tracebits2(const char *trace_str, int len, int info);



#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久电影网电视剧免费观看| 亚洲成人免费电影| 精品日韩一区二区| 91精品国产入口| 91.com在线观看| 日韩免费视频一区二区| 欧美大片在线观看| 久久久久久久久久久久电影| 26uuu欧美| 国产精品素人一区二区| 亚洲欧洲精品一区二区三区不卡| 国产欧美va欧美不卡在线| 国产精品网站在线播放| 亚洲激情图片小说视频| 婷婷成人综合网| 久久91精品国产91久久小草| 成人在线视频首页| 91久久精品国产91性色tv| 欧美日韩视频在线第一区| 日韩一区二区三免费高清| 久久久久免费观看| 中文字幕一区不卡| 天天综合日日夜夜精品| 久久精品国产精品亚洲红杏| 国产福利一区二区三区在线视频| 99久久久免费精品国产一区二区 | 亚洲成人免费看| 蜜桃一区二区三区在线观看| 国产一区二区久久| 色噜噜偷拍精品综合在线| 91麻豆精品国产综合久久久久久 | 欧美色视频一区| 久久免费偷拍视频| 亚洲制服丝袜av| 精品一区二区三区影院在线午夜| 99久久er热在这里只有精品66| 欧美日韩aaa| 欧美激情在线看| 日韩电影在线观看电影| 成人精品高清在线| 91精品婷婷国产综合久久性色| 国产欧美一区二区精品性色| 亚洲亚洲人成综合网络| 国产成人av电影| 欧美人体做爰大胆视频| 一色屋精品亚洲香蕉网站| 免费在线观看一区| 欧美亚日韩国产aⅴ精品中极品| 精品国精品国产| 一区二区三区精品| 国产 日韩 欧美大片| 91精品国产综合久久蜜臀| 国产精品久久久久桃色tv| 日韩av一二三| 欧美无乱码久久久免费午夜一区| 国产日韩精品一区二区三区在线| 日本女人一区二区三区| 色婷婷综合视频在线观看| 亚洲一区二三区| 国产999精品久久久久久| 欧美精品久久一区二区三区| 椎名由奈av一区二区三区| 国产综合色在线视频区| 欧美三区在线观看| 亚洲乱码日产精品bd| 成人国产一区二区三区精品| 国产日产亚洲精品系列| 激情综合色综合久久综合| 91精品中文字幕一区二区三区| 艳妇臀荡乳欲伦亚洲一区| 91同城在线观看| 国产精品第五页| 99精品国产99久久久久久白柏| 久久奇米777| 国产美女精品一区二区三区| 精品三级在线看| 国内精品久久久久影院一蜜桃| 日韩一区二区三区视频在线观看| 天堂在线一区二区| 欧美丰满嫩嫩电影| 天天综合网天天综合色| 欧美日韩另类一区| 日本在线不卡视频| 日韩精品一区二区在线观看| 日本sm残虐另类| 精品国产一区二区三区不卡 | 欧美中文字幕一二三区视频| 一区二区三区日韩精品| 91福利区一区二区三区| 亚洲一级二级三级| 7777精品伊人久久久大香线蕉| 午夜精品久久久久久久久久久| 正在播放一区二区| 韩国视频一区二区| 国产精品美女久久久久久| 99久久99久久精品免费观看| 亚洲日本乱码在线观看| 欧美在线一区二区三区| 日本成人中文字幕| 久久久亚洲高清| 色综合久久综合中文综合网| 午夜不卡在线视频| 久久精品视频在线看| 95精品视频在线| 日韩精品成人一区二区在线| 精品播放一区二区| 91色婷婷久久久久合中文| 日本人妖一区二区| 亚洲色图制服诱惑| 精品欧美乱码久久久久久| 97久久人人超碰| 日韩高清在线不卡| 亚洲欧美日韩电影| 欧美成人伊人久久综合网| 99久久婷婷国产综合精品| 免费在线看一区| 一区二区三区四区精品在线视频| 日韩欧美一区二区不卡| 色菇凉天天综合网| 国产精品1区2区3区在线观看| 亚洲愉拍自拍另类高清精品| 久久综合色8888| 欧美日韩另类一区| 9i看片成人免费高清| 久久99国产乱子伦精品免费| 亚洲在线成人精品| 综合久久久久久久| 2019国产精品| 日韩三级伦理片妻子的秘密按摩| www.欧美日韩国产在线| 久久电影国产免费久久电影| 亚洲一区二区三区在线看| 综合精品久久久| 国产午夜亚洲精品理论片色戒 | 激情成人午夜视频| 亚洲一卡二卡三卡四卡| ...中文天堂在线一区| 久久综合色8888| 欧美电视剧免费全集观看| 欧美高清视频一二三区| 日本高清不卡在线观看| 国产风韵犹存在线视精品| 韩国一区二区视频| 激情综合五月婷婷| 国内外精品视频| 狠狠网亚洲精品| 国产美女主播视频一区| 精品一区二区三区久久久| 日本免费在线视频不卡一不卡二| 亚洲国产综合视频在线观看| 亚洲欧美日韩在线| 中文字幕一区二区在线播放| 中文字幕第一页久久| 欧美国产1区2区| 国产精品久久午夜| 亚洲三级电影网站| 亚洲欧美另类久久久精品| 一区二区三区四区视频精品免费| 亚洲精品综合在线| 亚洲一区自拍偷拍| 亚洲3atv精品一区二区三区| 成人中文字幕合集| www.亚洲免费av| 在线观看亚洲专区| 欧美日韩一区二区三区四区 | 中文字幕亚洲在| 亚洲日本在线a| 亚洲成精国产精品女| 视频在线观看一区| 蜜桃精品视频在线| 国产精品一级二级三级| 黄一区二区三区| 91在线云播放| 欧美日韩高清在线播放| 日韩精品一区二区三区在线观看| 欧美精品一区二区在线播放| 国产日产欧产精品推荐色| 亚洲欧美国产高清| 日韩福利视频导航| 国产a区久久久| 欧美做爰猛烈大尺度电影无法无天| 欧美婷婷六月丁香综合色| 日韩欧美三级在线| 最新国产成人在线观看| 日韩不卡一区二区三区| 大美女一区二区三区| 欧美在线观看视频一区二区| 日韩三级电影网址| 亚洲色大成网站www久久九九| 日本午夜一本久久久综合| 国产91丝袜在线播放0| 欧美日韩精品一区视频| 欧美激情中文字幕一区二区| 午夜久久久久久| 不卡一区在线观看| 91精品国产一区二区| 亚洲视频中文字幕| 激情亚洲综合在线| 3d成人动漫网站| 亚洲丝袜精品丝袜在线|