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

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

?? global.h

?? 此code含H.264解碼需要的 lib和 src
?? H
?? 第 1 頁 / 共 2 頁
字號:
  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                 *reordering_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                 *reordering_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 ***********************************

typedef struct new_stream_info_s
{
	int width;
	int height;
	int dpb_size;
}new_stream_info_t;

// image parameters
typedef struct img_par
{
  int number;                                 //!< frame number
  unsigned int current_mb_nr; // bitstream order
  unsigned int num_dec_mb;
  int current_slice_nr;
  int *intra_block;
  int tr;                                     //!< temporal reference, 8 bit, wrapps at 255
  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_spatial_mv_pred_flag;            //!< 1 for Spatial Direct, 0 for Temporal
  int type;                                   //!< image type INTER/INTRA
  int width;
  int height;
  int width_cr;                               //!< width chroma
  int width_cr_m1;                               //!< width chroma
  int height_cr;                              //!< height chroma
  int mb_x;
  int mb_y;
  int block_x;
  int block_y;
  int block_y_aff;
  int pix_x;
  int pix_y;
  int pix_c_x;
  int pix_c_y;

  int allrefzero;
  imgpel mpr[3][16][16];                      //!< predicted block
  int mvscale[6][MAX_REFERENCE_PICTURES];
  int m7[16][16];                             //!< final 4x4 block. Extended to 16x16 for ABT
  int cof[4][12][4][4];                       //!< correction coefficients from predicted
  int cofu[16];
  byte **ipredmode;                            //!< prediction type [90][74]
  int ***nz_coeff;
  int **siblock;
  int cod_counter;                            //!< Current count of number of skipped macroblocks in a row

//  int newframe;

  int structure;                               //!< Identify picture structure type
  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;

  // for signalling to the neighbour logic that this is a deblocker call
  int DeblockCall;

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

  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;

  int redundant_pic_cnt;

  int explicit_B_prediction;

  unsigned int pre_frame_num;           //!< store the frame_num in the last decoded slice. For detecting gap in frame_num.

  // 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 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[3];

  // ////////////////////////
  // for POC mode 0:
    signed int PrevPicOrderCntMsb;
  unsigned int PrevPicOrderCntLsb;
    signed int PicOrderCntMsb;

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

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

  int idr_pic_id;

  int MaxFrameNum;

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

  int no_output_of_prior_pics_flag;
  int long_term_reference_flag;
  int adaptive_ref_pic_buffering_flag;

  int last_has_mmco_5;
  int last_pic_bottom_field;

  int model_number;

  // Fidelity Range Extensions Stuff
  int pic_unit_bitsize_on_disk;
  int bitdepth_luma;
  int bitdepth_chroma;
  int bitdepth_scale[2];
  int bitdepth_luma_qp_scale;
  int bitdepth_chroma_qp_scale;
  unsigned int dc_pred_value_luma;            //!< luma value for DC prediction (depends on luma pel bit depth)
  unsigned int dc_pred_value_chroma;          //!< chroma value for DC prediction (depends on chroma pel bit depth)
  int max_imgpel_value;                       //!< max value that one luma picture element (pixel) can take (depends on pic_unit_bitdepth)
  int max_imgpel_value_uv;                    //!< max value that one chroma picture element (pixel) can take (depends on pic_unit_bitdepth)
  int Transform8x8Mode;
  int profile_idc;
  int yuv_format;
  int lossless_qpprime_flag;
  int num_blk8x8_uv;
  int num_uv_blocks;
  int num_cdc_coeff;
  int mb_cr_size_x;
  int mb_cr_size_y;
  int mb_cr_size_x_blk;
  int mb_cr_size_y_blk;
  int mb_size[3][2];                         //!< component macroblock dimensions
  int mb_size_blk[3][2];                     //!< component macroblock dimensions 
  int mb_size_shift[3][2];

//  int idr_psnr_number;
//  int psnr_number;

  time_t ltime_start;               // for time measurement
  time_t ltime_end;                 // for time measurement

#if defined(WIN32) || defined(UNDER_CE)
//  struct _timeb tstruct_start;
//  struct _timeb tstruct_end;
#else
  struct timeb tstruct_start;
  struct timeb tstruct_end;
#endif

  // picture error concealment
  int last_ref_pic_poc;
  int ref_poc_gap;
  int poc_gap;
  int conceal_mode;
  int earlier_missing_poc;
  unsigned int frame_to_conceal;
  int IDR_concealment_flag;
  int conceal_slice_type;

  // random access point decoding
  int recovery_point;
  int recovery_point_found;
  int recovery_frame_cnt;
  int recovery_frame_num;
  int recovery_poc;

  FILE *fpinfo;
  FILE *fdump;
  
  new_stream_info_t new_info;

} ImageParameters;

extern ImageParameters *img;
//extern struct snr_par  *snr;

// signal to noise ratio parameters
//struct snr_par
//{
//  int   frame_ctr;
//  float snr[3];                                //!< current SNR (component)
//  float snr1[3];                               //!< SNR (dB) first frame (component)
//  float snra[3];                               //!< Average component SNR (dB) remaining frames
//  float sse[3];                                //!< component SSE 
//  float msse[3];                                //!< Average component SSE 
//};


//time_t tot_time;

// input parameters from configuration file
struct inp_par
{
  char infile[100];                       //!< H.264 inputfile
//  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 ref_offset;
//  int poc_scale;
//  int write_uv;
//  int silent;

#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 Initial buffer fullness in HRD model
  char LeakyBucketParamFile[100];         //!< LeakyBucketParamFile
#endif

  // picture error concealment
  int conceal_mode;
  int ref_poc_gap;
  int poc_gap;

};

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;

typedef struct old_slice_par
{
   unsigned field_pic_flag;
   unsigned bottom_field_flag;
   unsigned frame_num;
   int nal_ref_idc;
   unsigned pic_oder_cnt_lsb;
   int delta_pic_oder_cnt_bottom;
   int delta_pic_order_cnt[2];
   int idr_flag;
   int idr_pic_id;
   int pps_id;
} OldSliceParams;

extern OldSliceParams old_slice;

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

//FILE *p_log;                    //!< SNR file

#if TRACE
FILE *p_trace;
#endif

// Redundant slices
unsigned int previous_frame_num; //!< frame number of previous slice
int ref_flag[17];                //!< 0: i-th previous frame is incorrect
                                 //!< non-zero: i-th previous frame is correct
int Is_primary_correct;          //!< if primary frame is correct, 0: incorrect
int Is_redundant_correct;        //!< if redundant frame is correct, 0:incorrect
int redundant_slice_ref_idx;     //!< reference index of redundant slice
//void Error_tracking(void);

// 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_picture(struct img_par *img, struct inp_par *inp);
void exit_picture();

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

void start_macroblock(struct img_par *img,int CurrentMBInScanOrder);
void 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);
Boolean  exit_macroblock(struct img_par *img,struct inp_par *inp, int eos_bit);
void decode_ipcm_mb(struct img_par *img);


void readMotionInfoFromNAL (struct img_par *img,struct inp_par *inp);
void readCBPandCoeffsFromNAL(struct img_par *img,struct inp_par *inp);
void readIPCMcoeffsFromNAL(struct img_par *img, struct inp_par *inp, struct datapartition *dP);
void SetMotionVectorPredictor (struct img_par  *img, short pmv[2], char ref_frame, byte list, 
                               char ***refPic, short ****tmp_mv, 
                               int block_x, int block_y, int blockshape_x, int blockshape_y);

void readLumaCoeff8x8_CABAC (struct img_par *img,struct inp_par *inp, int b8);
void itrans8x8(struct img_par *img, int ioff, int joff);

void copyblock_sp(struct img_par *img,int block_x,int block_y);
int  intrapred_luma_16x16(struct img_par *img,int predmode);
void intrapred_chroma(struct img_par *img, int uv);

// SLICE function pointers
int  (*nal_startcode_follows) (struct img_par*, int );

// NAL functions TML/CABAC bitstream
//int  uvlc_startcode_follows(struct img_par *img, int dummy);
int  cabac_startcode_follows(struct img_par *img, int eos_bit);
void free_Partition(Bitstream *currStream);

// ErrorConcealment
void reset_ec_flags();

void error(char *text, int code);
int  is_new_picture();
void init_old_slice();

// dynamic mem allocation
int  init_global_buffers();
void free_global_buffers();

//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 decode_slice(struct img_par *img,struct inp_par *inp, int current_header);

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

void init_decoding_engine_IPCM(struct img_par *img);
void readIPCMBytes_CABAC(SyntaxElement *sym, struct datapartition *dP);

unsigned CeilLog2( unsigned uiVal);
unsigned CeilLog2_sf( unsigned uiVal);

// For Q-matrix
void AssignQuantParam(pic_parameter_set_rbsp_t* pps, seq_parameter_set_rbsp_t* sps);
void CalculateQuantParam(void);
void CalculateQuant8Param(void);

#define error( str , time ) ;

#endif























?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色婷婷av一区二区三区软件| 精品成人私密视频| 日韩欧美视频在线| 国产精品乱码妇女bbbb| av激情综合网| 91精品福利在线一区二区三区| 欧美午夜片在线看| 精品电影一区二区| 亚洲综合色视频| 成人av午夜影院| 欧美成人精精品一区二区频| 亚洲一区二区三区小说| 成人免费视频播放| 久久综合狠狠综合久久综合88 | 国产一区二区三区免费在线观看| 91蝌蚪porny| 欧美国产精品一区| 久草精品在线观看| 欧美高清视频一二三区 | 亚洲专区一二三| 欧美高清视频不卡网| 欧美激情一区不卡| 国产在线乱码一区二区三区| 欧美日韩午夜精品| 亚洲国产欧美在线| 欧美伊人久久大香线蕉综合69| 国产精品福利av| 北条麻妃一区二区三区| 国产欧美精品区一区二区三区| 麻豆一区二区三| 日韩欧美一区二区三区在线| 日韩经典一区二区| 91精品免费在线| 日本成人在线网站| 日韩亚洲欧美在线| 久久精品国产第一区二区三区| 91精品婷婷国产综合久久竹菊| 日本在线观看不卡视频| 欧美丰满高潮xxxx喷水动漫| 天堂成人国产精品一区| 欧美一区二区三区免费视频| 免费高清在线视频一区·| 欧美另类变人与禽xxxxx| 男女男精品视频网| 精品久久久久一区| 成人一区二区三区视频在线观看| 国产精品美日韩| 91免费观看视频在线| 亚洲福利视频一区二区| 欧美一区二区三区爱爱| 国产自产2019最新不卡| 国产精品午夜春色av| 91视频在线观看| 性做久久久久久免费观看欧美| 91精品国产手机| 国产成人精品亚洲777人妖| 国产女主播视频一区二区| 91在线精品一区二区三区| 调教+趴+乳夹+国产+精品| 精品少妇一区二区| 成人免费av在线| 性做久久久久久久免费看| 日韩精品资源二区在线| 国产激情91久久精品导航| 亚洲免费观看在线观看| 欧美一级二级在线观看| av亚洲精华国产精华精华 | 97精品电影院| 五月婷婷另类国产| 国产亲近乱来精品视频| 91丝袜国产在线播放| 老司机一区二区| 最新国产成人在线观看| 日韩亚洲欧美高清| 91浏览器入口在线观看| 久久成人羞羞网站| 亚洲黄色免费网站| 欧美精品一区二区三区蜜桃视频| 91丨九色丨黑人外教| 九一九一国产精品| 亚洲第四色夜色| 国产精品久久夜| 日韩欧美国产一区二区三区| 色综合久久久网| 国产精品一区二区在线观看不卡| 亚洲成人中文在线| 国产精品久久久久久亚洲伦 | 精品久久久久久最新网址| 色综合网色综合| 国产精品亚洲第一| 免费看欧美女人艹b| 艳妇臀荡乳欲伦亚洲一区| 国产视频不卡一区| 日韩精品最新网址| 欧美日本在线观看| 日本韩国欧美一区二区三区| 国产成人亚洲综合a∨婷婷| 日本在线不卡一区| 亚洲一区中文在线| 亚洲视频狠狠干| 国产精品美女久久久久久久久久久| 日韩一级在线观看| 欧美一区二区三区免费视频| 在线观看视频一区| 在线看一区二区| 99精品久久只有精品| 波多野结衣91| av亚洲精华国产精华精华| 成人精品鲁一区一区二区| 国产精品66部| 国产精品正在播放| 国产一区二区三区不卡在线观看| 久热成人在线视频| 久久99国内精品| 韩国女主播一区| 国产成人精品www牛牛影视| 国产乱码精品1区2区3区| 国产专区综合网| 成人午夜电影久久影院| jiyouzz国产精品久久| av成人免费在线| 91欧美激情一区二区三区成人| 99视频在线观看一区三区| 不卡的av中国片| 91片在线免费观看| 91黄视频在线| 欧美剧情片在线观看| 8v天堂国产在线一区二区| 欧美精品第一页| 欧美一区二区网站| 精品对白一区国产伦| 国产欧美日韩在线观看| 亚洲欧美自拍偷拍色图| 洋洋成人永久网站入口| 亚洲成人精品一区二区| 捆绑调教美女网站视频一区| 精品一区二区影视| 不卡的av电影| 精品视频在线看| 91麻豆精品国产91| 国产日韩欧美制服另类| 亚洲情趣在线观看| 日本不卡123| 丁香天五香天堂综合| 91行情网站电视在线观看高清版| 欧美视频一区在线| 精品国产91九色蝌蚪| 中文字幕不卡的av| 亚洲成年人网站在线观看| 精品一区精品二区高清| 91亚洲精品久久久蜜桃网站| 欧美二区在线观看| 中文字幕国产一区| 天天综合色天天综合| 粉嫩13p一区二区三区| 精品视频全国免费看| 国产视频在线观看一区二区三区| 亚洲一区免费观看| 国产精品99久久久久久久vr | 日韩一区在线播放| 日韩激情av在线| 91在线视频官网| 欧美大尺度电影在线| 亚洲激情五月婷婷| 国产精品一色哟哟哟| 7777精品伊人久久久大香线蕉 | 3d成人动漫网站| 中文字幕在线观看不卡视频| 日本怡春院一区二区| 91丨九色丨黑人外教| 久久亚洲一区二区三区明星换脸 | 在线观看视频一区| 国产性天天综合网| 婷婷国产在线综合| 91社区在线播放| 国产精品亲子伦对白| 久久国产视频网| 欧美日韩美女一区二区| 亚洲女同ⅹxx女同tv| 高清av一区二区| 26uuu国产电影一区二区| 亚洲成人综合视频| 91免费观看视频在线| 国产精品人人做人人爽人人添| 麻豆国产91在线播放| 欧美日本乱大交xxxxx| 亚洲乱码中文字幕| 波多野结衣91| 欧美国产视频在线| 国产精品一区二区91| 2023国产精品自拍| 久久er99热精品一区二区| 91麻豆精品91久久久久久清纯| 亚洲国产一区二区在线播放| 日本二三区不卡| 一区二区三区日韩在线观看| 91在线高清观看| 一区二区在线电影| 欧美亚洲图片小说| 亚洲国产美女搞黄色|