⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cgraph.h

📁 从FFMPEG转换而来的H264解码程序,VC下编译..
💻 H
字号:
#ifndef _CGRAPHPAGE_H_
#define _CGRAPHPAGE_H_

#include "TconfPageEnc.h"

class TgraphPage :public TconfPageEnc
{
private:
 static const int IDC_TMR_GRAPH=101;
 struct Tframe
  {
   void set(WPARAM wParam,LPARAM lParam)
    {
     size=(unsigned int)wParam;
     quant=(unsigned int)(lParam>>20);
     frametype=(unsigned int)(lParam&((1<<20)-1));
    }
   unsigned int frametype;
   unsigned int size;
   unsigned int quant;
  } *frames;
 void clearFrames(void);
 struct
  {
   BITMAPINFOHEADER bmiHeader;
   RGBQUAD bmiColors[256];
  } graphBmp;
 unsigned char *graphBits;
 HWND hg;
 int gx,gy,stride;
 void drawCompleteGraph(void);
 void putPixel(int x,int y,unsigned char c);
 void lineY(int x,int y1,int y2,unsigned char c),lineX(int x1,int x2,int y,unsigned char c);
 int shift;
 void shiftLeft(void);
 void shiftGraph(Tframe &frame);
 unsigned int oldframescount;clock_t t1;
 unsigned int oldmaxframesize;
 void debug2dlg(void),graph2dlg(void);
 void onDebugoutputfile(void);
protected:
 virtual INT_PTR msgProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
public:
 TgraphPage(TffdshowPageEnc *Iparent);
 virtual void init(void);
 virtual void cfg2dlg(void);
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -