yadif.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 "libavutil/pixdesc.h"
  21. #include "avfilter.h"
  22. typedef struct {
  23. /**
  24. * 0: send 1 frame for each frame
  25. * 1: send 1 frame for each field
  26. * 2: like 0 but skips spatial interlacing check
  27. * 3: like 1 but skips spatial interlacing check
  28. */
  29. int mode;
  30. /**
  31. * 0: top field first
  32. * 1: bottom field first
  33. * -1: auto-detection
  34. */
  35. int parity;
  36. int frame_pending;
  37. /**
  38. * 0: deinterlace all frames
  39. * 1: only deinterlace frames marked as interlaced
  40. */
  41. int auto_enable;
  42. AVFilterBufferRef *cur;
  43. AVFilterBufferRef *next;
  44. AVFilterBufferRef *prev;
  45. AVFilterBufferRef *out;
  46. void (*filter_line)(uint8_t *dst,
  47. uint8_t *prev, uint8_t *cur, uint8_t *next,
  48. int w, int prefs, int mrefs, int parity, int mode);
  49. const AVPixFmtDescriptor *csp;
  50. int eof;
  51. uint8_t *temp_line;
  52. int temp_line_size;
  53. } YADIFContext;
  54. void ff_yadif_init_x86(YADIFContext *yadif);
  55. #endif /* AVFILTER_YADIF_H */