You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
3.6KB

  1. /*
  2. * This file is part of FFmpeg.
  3. *
  4. * FFmpeg 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. * FFmpeg 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 FFmpeg; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  17. */
  18. #ifndef AVFILTER_YADIF_H
  19. #define AVFILTER_YADIF_H
  20. #include "avfilter.h"
  21. enum YADIFMode {
  22. YADIF_MODE_SEND_FRAME = 0, ///< send 1 frame for each frame
  23. YADIF_MODE_SEND_FIELD = 1, ///< send 1 frame for each field
  24. YADIF_MODE_SEND_FRAME_NOSPATIAL = 2, ///< send 1 frame for each frame but skips spatial interlacing check
  25. YADIF_MODE_SEND_FIELD_NOSPATIAL = 3, ///< send 1 frame for each field but skips spatial interlacing check
  26. };
  27. enum YADIFParity {
  28. YADIF_PARITY_TFF = 0, ///< top field first
  29. YADIF_PARITY_BFF = 1, ///< bottom field first
  30. YADIF_PARITY_AUTO = -1, ///< auto detection
  31. };
  32. enum YADIFDeint {
  33. YADIF_DEINT_ALL = 0, ///< deinterlace all frames
  34. YADIF_DEINT_INTERLACED = 1, ///< only deinterlace frames marked as interlaced
  35. };
  36. void ff_yadif_filter_line_mmxext(void *dst, void *prev, void *cur,
  37. void *next, int w, int prefs,
  38. int mrefs, int parity, int mode);
  39. void ff_yadif_filter_line_sse2(void *dst, void *prev, void *cur,
  40. void *next, int w, int prefs,
  41. int mrefs, int parity, int mode);
  42. void ff_yadif_filter_line_ssse3(void *dst, void *prev, void *cur,
  43. void *next, int w, int prefs,
  44. int mrefs, int parity, int mode);
  45. void ff_yadif_filter_line_16bit_mmxext(void *dst, void *prev, void *cur,
  46. void *next, int w, int prefs,
  47. int mrefs, int parity, int mode);
  48. void ff_yadif_filter_line_16bit_sse2(void *dst, void *prev, void *cur,
  49. void *next, int w, int prefs,
  50. int mrefs, int parity, int mode);
  51. void ff_yadif_filter_line_16bit_ssse3(void *dst, void *prev, void *cur,
  52. void *next, int w, int prefs,
  53. int mrefs, int parity, int mode);
  54. void ff_yadif_filter_line_16bit_sse4(void *dst, void *prev, void *cur,
  55. void *next, int w, int prefs,
  56. int mrefs, int parity, int mode);
  57. void ff_yadif_filter_line_10bit_mmxext(void *dst, void *prev, void *cur,
  58. void *next, int w, int prefs,
  59. int mrefs, int parity, int mode);
  60. void ff_yadif_filter_line_10bit_sse2(void *dst, void *prev, void *cur,
  61. void *next, int w, int prefs,
  62. int mrefs, int parity, int mode);
  63. void ff_yadif_filter_line_10bit_ssse3(void *dst, void *prev, void *cur,
  64. void *next, int w, int prefs,
  65. int mrefs, int parity, int mode);
  66. #endif /* AVFILTER_YADIF_H */