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 /** 22 * @file 23 * Microsoft Screen 2 (aka Windows Media Video V9 Screen) decoder DSP routines 24 */ 25 26 #ifndef AVCODEC_MSS2DSP_H 27 #define AVCODEC_MSS2DSP_H 28 29 #include <stddef.h> 30 #include <stdint.h> 31 32 typedef struct MSS2DSPContext { 33 void (*mss2_blit_wmv9)(uint8_t *dst, ptrdiff_t dst_stride, 34 const uint8_t *srcy, ptrdiff_t srcy_stride, 35 const uint8_t *srcu, const uint8_t *srcv, 36 ptrdiff_t srcuv_stride, int w, int h); 37 void (*mss2_blit_wmv9_masked)(uint8_t *dst, ptrdiff_t dst_stride, 38 int maskcolor, const uint8_t *mask, 39 ptrdiff_t mask_stride, 40 const uint8_t *srcy, ptrdiff_t srcy_stride, 41 const uint8_t *srcu, const uint8_t *srcv, 42 ptrdiff_t srcuv_stride, int w, int h); 43 void (*mss2_gray_fill_masked)(uint8_t *dst, ptrdiff_t dst_stride, 44 int maskcolor, const uint8_t *mask, 45 ptrdiff_t mask_stride, int w, int h); 46 void (*upsample_plane)(uint8_t *plane, ptrdiff_t plane_stride, 47 int w, int h); 48 } MSS2DSPContext; 49 50 void ff_mss2dsp_init(MSS2DSPContext *dsp); 51 52 #endif /* AVCODEC_MSS2DSP_H */ 53