annotate intrax8.h @ 5887:83ac4620c6ed libavcodec

intrax8 decoder patch by "someone"
author michael
date Fri, 09 Nov 2007 21:37:48 +0000
parents
children d0bfc0b00d6c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5887
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
1 /*
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
2 * This file is part of FFmpeg.
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
3 *
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
4 * FFmpeg is free software; you can redistribute it and/or
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
5 * modify it under the terms of the GNU Lesser General Public
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
6 * License as published by the Free Software Foundation; either
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
7 * version 2.1 of the License, or (at your option) any later version.
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
8 *
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
9 * FFmpeg is distributed in the hope that it will be useful,
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
12 * Lesser General Public License for more details.
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
13 *
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
14 * You should have received a copy of the GNU Lesser General Public
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
15 * License along with FFmpeg; if not, write to the Free Software
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
17 */
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
18
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
19 typedef struct{
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
20 VLC * j_ac_vlc[4];//they point to the static j_mb_vlc
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
21 VLC * j_orient_vlc;
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
22 VLC * j_dc_vlc[3];
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
23
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
24 int use_quant_matrix;
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
25 //set by ff_intrax8_common_init
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
26 uint8_t * prediction_table;//2*(mb_w*2)
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
27 ScanTable scantable[3];
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
28 //set by the caller codec
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
29 MpegEncContext * s;
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
30 int quant;
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
31 int dquant;
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
32 int qsum;
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
33 //calculated per frame
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
34 int quant_dc_chroma;
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
35 int divide_quant_dc_luma;
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
36 int divide_quant_dc_chroma;
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
37 //changed per block
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
38 int edges;
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
39 int flat_dc;
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
40 int predicted_dc;
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
41 int raw_orient;
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
42 int chroma_orient;
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
43 int orient;
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
44 int est_run;
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
45 //#ifdef DEBUG
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
46 int mode_index[10];//debug only
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
47 //#endif
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
48 } IntraX8Context;
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
49
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
50 void ff_intrax8_common_init(IntraX8Context * w, MpegEncContext * const s);
83ac4620c6ed intrax8 decoder patch by "someone"
michael
parents:
diff changeset
51 int ff_intrax8_decode_picture(IntraX8Context * w, int quant, int halfpq);