Advertisement
Ucurrent

CDegrain_cuda.h

Jan 17th, 2023 (edited)
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.01 KB | Source Code | 0 0
  1. //CDegrain.h CUDA ATTEMPT
  2. #ifndef CDEGRAIN_H
  3. #define CDEGRAIN_H
  4.  
  5. #include "avs_types.h"
  6. #include "avisynth.h"
  7.  
  8. class CDegrain : public GenericVideoFilter
  9. {
  10.     int radius;
  11.     int nt;
  12.     int thr;
  13.     int blksize;
  14.     PClip dClip;
  15.     int bit_depth;
  16.     void CDegrain_Y(PVideoFrame& src, PVideoFrame (&den)[15], PVideoFrame& dst, int nt, int thr, int radius, int blksize);
  17.     void CDegrain_YUV420(PVideoFrame& src, PVideoFrame (&den)[15], PVideoFrame& dst, int nt, int thr, int radius, int blksize);
  18.     void CDegrain_YUV422(PVideoFrame& src, PVideoFrame (&den)[15], PVideoFrame& dst, int nt, int thr, int radius, int blksize);
  19.     void CDegrain_YUV444(PVideoFrame& src, PVideoFrame (&den)[15], PVideoFrame& dst, int nt, int thr, int radius, int blksize);
  20. public:
  21.     CDegrain(PClip _child, int _radius, int _nt, int _thr, int _blksize, PClip _dClip, int _bit_depth, IScriptEnvironment* env);
  22.     PVideoFrame __stdcall GetFrame(int n, IScriptEnvironment* env);
  23. };
  24.  
  25. #endif
Tags: CUDA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement