00001 /* 00002 * Apple ProRes compatible decoder 00003 * 00004 * Copyright (c) 2010-2011 Maxim Poliakovski 00005 * 00006 * This file is part of FFmpeg. 00007 * 00008 * FFmpeg is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public 00010 * License as published by the Free Software Foundation; either 00011 * version 2.1 of the License, or (at your option) any later version. 00012 * 00013 * FFmpeg is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with FFmpeg; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00021 */ 00022 00023 #ifndef AVCODEC_PRORESDSP_H 00024 #define AVCODEC_PRORESDSP_H 00025 00026 #include "dsputil.h" 00027 00028 #define PRORES_BITS_PER_SAMPLE 10 00029 00030 typedef struct { 00031 int idct_permutation_type; 00032 uint8_t idct_permutation[64]; 00033 int dct_permutation_type; 00034 uint8_t dct_permutation[64]; 00035 void (* idct_put) (uint16_t *out, int linesize, DCTELEM *block, const int16_t *qmat); 00036 void (* fdct) (const uint16_t *src, int linesize, DCTELEM *block); 00037 } ProresDSPContext; 00038 00039 void ff_proresdsp_init(ProresDSPContext *dsp, AVCodecContext *avctx); 00040 00041 void ff_proresdsp_x86_init(ProresDSPContext *dsp, AVCodecContext *avctx); 00042 00043 #endif /* AVCODEC_PRORESDSP_H */