📄 global_temp.h
字号:
/* Copyright (C) 1996, MPEG Software Simulation Group. All Rights Reserved. */
/*
* Disclaimer of Warranty
*
* These software programs are available to the user without any license fee or
* royalty on an "as is" basis. The MPEG Software Simulation Group disclaims
* any and all warranties, whether express, implied, or statuary, including any
* implied warranties or merchantability or of fitness for a particular
* purpose. In no event shall the copyright-holder be liable for any
* incidental, punitive, or consequential damages of any kind whatsoever
* arising from the use of these programs.
*
* This disclaimer of warranty extends to the user of these programs and user's
* customers, employees, agents, transferees, successors, and assigns.
*
* The MPEG Software Simulation Group does not represent or warrant that the
* programs furnished hereunder are free of infringement of any third-party
* patents.
*
* Commercial implementations of MPEG-1 and MPEG-2 video, including shareware,
* are subject to royalty fees to patent holders. Many of these patents are
* general enough such that they are unavoidable regardless of implementation
* design.
*
*/
#include <windows.h>
#define STORE_RGB24 1
#define STORE_YUY2 2
#define BUFFER_SIZE 2048
#define I_TYPE 1
#define P_TYPE 2
#define B_TYPE 3
/* decoder operation control flags */
int Fault_Flag;
int Store_Flag; // Store RGB24 or YUY2
int SystemStream_Flag;
unsigned char *u422, *v422, *u444, *v444, *rgb24, *yuy2, *lum;
#define ERROR_FLUSH 200
//BOOL gIsPictureDecoding;
BOOL gIsEOS; // Indicating no more data will be received
/* gethdr.c */
int Get_Hdr(void);
void next_start_code(void);
void sequence_header(void);
int slice_header(void);
/* getpic.c */
int Decode_Picture(void);
int picture_coding_type;
unsigned int Frame_Number;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -