vf_hqdn3d.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * This file is part of Libav.
  3. *
  4. * Libav is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * Libav is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along
  15. * with Libav; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  17. */
  18. #ifndef AVFILTER_VF_HQDN3D_H
  19. #define AVFILTER_VF_HQDN3D_H
  20. #include <stddef.h>
  21. #include <stdint.h>
  22. #include "libavutil/opt.h"
  23. typedef struct HQDN3DContext {
  24. const AVClass *class;
  25. int16_t *coefs[4];
  26. uint16_t *line;
  27. uint16_t *frame_prev[3];
  28. double strength[4];
  29. int hsub, vsub;
  30. int depth;
  31. void (*denoise_row[17])(uint8_t *src, uint8_t *dst, uint16_t *line_ant, uint16_t *frame_ant, ptrdiff_t w, int16_t *spatial, int16_t *temporal);
  32. } HQDN3DContext;
  33. #define LUMA_SPATIAL 0
  34. #define LUMA_TMP 1
  35. #define CHROMA_SPATIAL 2
  36. #define CHROMA_TMP 3
  37. void ff_hqdn3d_init_x86(HQDN3DContext *hqdn3d);
  38. #endif /* AVFILTER_VF_HQDN3D_H */