Libav 0.7.1
|
00001 /* 00002 * Chinese AVS video (AVS1-P2, JiZhun profile) decoder. 00003 * Copyright (c) 2006 Stefan Gehrer <stefan.gehrer@gmx.de> 00004 * 00005 * This file is part of Libav. 00006 * 00007 * Libav is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or (at your option) any later version. 00011 * 00012 * Libav is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with Libav; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00020 */ 00021 00022 #ifndef AVCODEC_CAVSDSP_H 00023 #define AVCODEC_CAVSDSP_H 00024 00025 #include <stdint.h> 00026 #include "dsputil.h" 00027 00028 typedef struct CAVSDSPContext { 00029 qpel_mc_func put_cavs_qpel_pixels_tab[2][16]; 00030 qpel_mc_func avg_cavs_qpel_pixels_tab[2][16]; 00031 void (*cavs_filter_lv)(uint8_t *pix, int stride, int alpha, int beta, int tc, int bs1, int bs2); 00032 void (*cavs_filter_lh)(uint8_t *pix, int stride, int alpha, int beta, int tc, int bs1, int bs2); 00033 void (*cavs_filter_cv)(uint8_t *pix, int stride, int alpha, int beta, int tc, int bs1, int bs2); 00034 void (*cavs_filter_ch)(uint8_t *pix, int stride, int alpha, int beta, int tc, int bs1, int bs2); 00035 void (*cavs_idct8_add)(uint8_t *dst, DCTELEM *block, int stride); 00036 } CAVSDSPContext; 00037 00038 void ff_cavsdsp_init(CAVSDSPContext* c, AVCodecContext *avctx); 00039 void ff_cavsdsp_init_mmx(CAVSDSPContext* c, AVCodecContext *avctx); 00040 00041 #endif /* AVCODEC_CAVSDSP_H */