2007-11-09 21:37:48 +00:00
|
|
|
/*
|
2011-03-18 17:35:10 +00:00
|
|
|
* This file is part of Libav.
|
2007-11-09 21:37:48 +00:00
|
|
|
*
|
2011-03-18 17:35:10 +00:00
|
|
|
* Libav is free software; you can redistribute it and/or
|
2007-11-09 21:37:48 +00:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
2011-03-18 17:35:10 +00:00
|
|
|
* Libav is distributed in the hope that it will be useful,
|
2007-11-09 21:37:48 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
2011-03-18 17:35:10 +00:00
|
|
|
* License along with Libav; if not, write to the Free Software
|
2007-11-09 21:37:48 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
2008-08-31 07:39:47 +00:00
|
|
|
#ifndef AVCODEC_INTRAX8_H
|
|
|
|
#define AVCODEC_INTRAX8_H
|
2007-11-09 23:12:31 +00:00
|
|
|
|
2009-04-13 16:20:26 +00:00
|
|
|
#include "get_bits.h"
|
2007-11-24 10:08:02 +00:00
|
|
|
#include "mpegvideo.h"
|
|
|
|
|
2007-11-09 21:37:48 +00:00
|
|
|
typedef struct{
|
|
|
|
VLC * j_ac_vlc[4];//they point to the static j_mb_vlc
|
|
|
|
VLC * j_orient_vlc;
|
|
|
|
VLC * j_dc_vlc[3];
|
|
|
|
|
|
|
|
int use_quant_matrix;
|
|
|
|
//set by ff_intrax8_common_init
|
|
|
|
uint8_t * prediction_table;//2*(mb_w*2)
|
|
|
|
ScanTable scantable[3];
|
|
|
|
//set by the caller codec
|
|
|
|
MpegEncContext * s;
|
|
|
|
int quant;
|
|
|
|
int dquant;
|
|
|
|
int qsum;
|
|
|
|
//calculated per frame
|
|
|
|
int quant_dc_chroma;
|
|
|
|
int divide_quant_dc_luma;
|
|
|
|
int divide_quant_dc_chroma;
|
|
|
|
//changed per block
|
|
|
|
int edges;
|
|
|
|
int flat_dc;
|
|
|
|
int predicted_dc;
|
|
|
|
int raw_orient;
|
|
|
|
int chroma_orient;
|
|
|
|
int orient;
|
|
|
|
int est_run;
|
|
|
|
} IntraX8Context;
|
|
|
|
|
|
|
|
void ff_intrax8_common_init(IntraX8Context * w, MpegEncContext * const s);
|
2008-01-25 07:37:46 +00:00
|
|
|
void ff_intrax8_common_end(IntraX8Context * w);
|
2007-11-09 21:37:48 +00:00
|
|
|
int ff_intrax8_decode_picture(IntraX8Context * w, int quant, int halfpq);
|
2007-11-09 23:12:31 +00:00
|
|
|
|
2008-08-31 07:39:47 +00:00
|
|
|
#endif /* AVCODEC_INTRAX8_H */
|