vf_hqdn3d.h 1.5 KB

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