00001 /* 00002 * This file is part of FFmpeg. 00003 * 00004 * FFmpeg is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 00008 * 00009 * FFmpeg is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with FFmpeg; if not, write to the Free Software 00016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00017 */ 00018 00019 #ifndef FFMPEG_INTRAX8_H 00020 #define FFMPEG_INTRAX8_H 00021 00022 typedef struct{ 00023 VLC * j_ac_vlc[4];//they point to the static j_mb_vlc 00024 VLC * j_orient_vlc; 00025 VLC * j_dc_vlc[3]; 00026 00027 int use_quant_matrix; 00028 //set by ff_intrax8_common_init 00029 uint8_t * prediction_table;//2*(mb_w*2) 00030 ScanTable scantable[3]; 00031 //set by the caller codec 00032 MpegEncContext * s; 00033 int quant; 00034 int dquant; 00035 int qsum; 00036 //calculated per frame 00037 int quant_dc_chroma; 00038 int divide_quant_dc_luma; 00039 int divide_quant_dc_chroma; 00040 //changed per block 00041 int edges; 00042 int flat_dc; 00043 int predicted_dc; 00044 int raw_orient; 00045 int chroma_orient; 00046 int orient; 00047 int est_run; 00048 } IntraX8Context; 00049 00050 void ff_intrax8_common_init(IntraX8Context * w, MpegEncContext * const s); 00051 int ff_intrax8_decode_picture(IntraX8Context * w, int quant, int halfpq); 00052 00053 #endif /* FFMPEG_INTRAX8_H */
1.5.5