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 AVCODEC_INTRAX8_H 00020 #define AVCODEC_INTRAX8_H 00021 00022 #include "get_bits.h" 00023 #include "mpegvideo.h" 00024 00025 typedef struct{ 00026 VLC * j_ac_vlc[4];//they point to the static j_mb_vlc 00027 VLC * j_orient_vlc; 00028 VLC * j_dc_vlc[3]; 00029 00030 int use_quant_matrix; 00031 //set by ff_intrax8_common_init 00032 uint8_t * prediction_table;//2*(mb_w*2) 00033 ScanTable scantable[3]; 00034 //set by the caller codec 00035 MpegEncContext * s; 00036 int quant; 00037 int dquant; 00038 int qsum; 00039 //calculated per frame 00040 int quant_dc_chroma; 00041 int divide_quant_dc_luma; 00042 int divide_quant_dc_chroma; 00043 //changed per block 00044 int edges; 00045 int flat_dc; 00046 int predicted_dc; 00047 int raw_orient; 00048 int chroma_orient; 00049 int orient; 00050 int est_run; 00051 } IntraX8Context; 00052 00053 void ff_intrax8_common_init(IntraX8Context * w, MpegEncContext * const s); 00054 void ff_intrax8_common_end(IntraX8Context * w); 00055 int ff_intrax8_decode_picture(IntraX8Context * w, int quant, int halfpq); 00056 00057 #endif /* AVCODEC_INTRAX8_H */