vqmcalc.h

来自「This program is an implementation of a p」· C头文件 代码 · 共 44 行

H
44
字号
extern "C" {    typedef void (fdctFunc)(short * const block);  typedef fdctFunc* fdctFuncPtr;	    extern "C" fdctFuncPtr fdct;  fdctFunc fdct_mmx;}static const short mpegmatrix[]={8,16,19,22,26,27,29,34,16,16,22,21,27,29,34,37,19,22,26,27,29,31,34,38,22,22,26,27,29,34,37,40,22,26,27,29,32,35,40,48,26,27,29,32,35,40,48,58,26,27,29,34,38,46,56,69,27,29,35,38,46,56,69,83};class VqmCalc : public GenericVideoFilter {       float VqmFrame;  float imagm;  float imagM;  short* blockA;  short* blockB;  float* blockA2;  float* blockB2;  boolean notdone;  fdctFuncPtr fdct;  int width;  int widthUV;  int height;  int heightUV;    public:  VqmCalc(PClip _child1, PClip _child2, const char *fname, IScriptEnvironment* env);  ~VqmCalc();  PVideoFrame __stdcall GetFrame(int n, IScriptEnvironment* env);  void FillBlocks(const BYTE* ref,short* outref,int pitchref,const BYTE* alt,short * outlat,int pitchalt);  void LocalContrasts(float* block, float* block2);   void ApplySCSFMatrix(float* block, float* block2);  void DiffBlocks(float* a, float*  b);  float MeanBlock(float*  block);  float MaxBlock(float*  block);  void ConvertTo(short* block, float* block2, short* block3, float* block4);  PClip child2;  FILE* log;};

⌨️ 快捷键说明

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