mss2dsp.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Microsoft Screen 2 (aka Windows Media Video V9 Screen) decoder
  3. *
  4. * This file is part of FFmpeg.
  5. *
  6. * FFmpeg is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * FFmpeg is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with FFmpeg; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  19. */
  20. /**
  21. * @file
  22. * Microsoft Screen 2 (aka Windows Media Video V9 Screen) decoder DSP routines
  23. */
  24. #ifndef AVCODEC_MSS2DSP_H
  25. #define AVCODEC_MSS2DSP_H
  26. #include <stddef.h>
  27. #include <stdint.h>
  28. typedef struct MSS2DSPContext {
  29. void (*mss2_blit_wmv9)(uint8_t *dst, ptrdiff_t dst_stride,
  30. const uint8_t *srcy, ptrdiff_t srcy_stride,
  31. const uint8_t *srcu, const uint8_t *srcv,
  32. ptrdiff_t srcuv_stride, int w, int h);
  33. void (*mss2_blit_wmv9_masked)(uint8_t *dst, ptrdiff_t dst_stride,
  34. int maskcolor, const uint8_t *mask,
  35. ptrdiff_t mask_stride,
  36. const uint8_t *srcy, ptrdiff_t srcy_stride,
  37. const uint8_t *srcu, const uint8_t *srcv,
  38. ptrdiff_t srcuv_stride, int w, int h);
  39. void (*mss2_gray_fill_masked)(uint8_t *dst, ptrdiff_t dst_stride,
  40. int maskcolor, const uint8_t *mask,
  41. ptrdiff_t mask_stride, int w, int h);
  42. void (*upsample_plane)(uint8_t *plane, ptrdiff_t plane_stride,
  43. int w, int h);
  44. } MSS2DSPContext;
  45. void ff_mss2dsp_init(MSS2DSPContext *dsp);
  46. #endif /* AVCODEC_MSS2DSP_H */