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.

51 lines
2.0KB

  1. /*
  2. * Microsoft Screen 2 (aka Windows Media Video V9 Screen) decoder
  3. *
  4. * This file is part of Libav.
  5. *
  6. * Libav 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. * Libav 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 Libav; 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 <stdint.h>
  27. typedef struct MSS2DSPContext {
  28. void (*mss2_blit_wmv9)(uint8_t *dst, int dst_stride,
  29. const uint8_t *srcy, int srcy_stride,
  30. const uint8_t *srcu, const uint8_t *srcv,
  31. int srcuv_stride, int w, int h);
  32. void (*mss2_blit_wmv9_masked)(uint8_t *dst, int dst_stride,
  33. int maskcolor, const uint8_t *mask,
  34. int mask_stride,
  35. const uint8_t *srcy, int srcy_stride,
  36. const uint8_t *srcu, const uint8_t *srcv,
  37. int srcuv_stride, int w, int h);
  38. void (*mss2_gray_fill_masked)(uint8_t *dst, int dst_stride,
  39. int maskcolor, const uint8_t *mask,
  40. int mask_stride, int w, int h);
  41. void (*upsample_plane)(uint8_t *plane, int plane_stride, int w, int h);
  42. } MSS2DSPContext;
  43. void ff_mss2dsp_init(MSS2DSPContext *dsp);
  44. #endif /* AVCODEC_MSS2DSP_H */