2006-07-01 22:52:56 +00:00
|
|
|
/*
|
|
|
|
* Chinese AVS video (AVS1-P2, JiZhun profile) decoder.
|
|
|
|
* Copyright (c) 2006 Stefan Gehrer <stefan.gehrer@gmx.de>
|
|
|
|
*
|
2011-03-18 17:35:10 +00:00
|
|
|
* This file is part of Libav.
|
2006-10-07 15:30:46 +00:00
|
|
|
*
|
2011-03-18 17:35:10 +00:00
|
|
|
* Libav is free software; you can redistribute it and/or
|
2006-07-01 22:52:56 +00:00
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
2006-10-07 15:30:46 +00:00
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2006-07-01 22:52:56 +00:00
|
|
|
*
|
2011-03-18 17:35:10 +00:00
|
|
|
* Libav is distributed in the hope that it will be useful,
|
2006-07-01 22:52:56 +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-07-05 10:40:25 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2006-07-01 22:52:56 +00:00
|
|
|
*/
|
|
|
|
|
2008-08-31 07:39:47 +00:00
|
|
|
#ifndef AVCODEC_CAVSDATA_H
|
|
|
|
#define AVCODEC_CAVSDATA_H
|
2007-06-17 00:01:30 +00:00
|
|
|
|
2007-05-08 23:58:35 +00:00
|
|
|
#include "cavs.h"
|
2006-07-01 22:52:56 +00:00
|
|
|
|
2007-07-08 07:13:25 +00:00
|
|
|
const uint8_t ff_cavs_partition_flags[30] = {
|
2006-07-14 18:56:17 +00:00
|
|
|
0, //I_8X8
|
|
|
|
0, //P_SKIP
|
|
|
|
0, //P_16X16
|
|
|
|
SPLITH, //P_16X8
|
|
|
|
SPLITV, //P_8X16
|
|
|
|
SPLITH|SPLITV, //P_8X8
|
|
|
|
SPLITH|SPLITV, //B_SKIP
|
|
|
|
SPLITH|SPLITV, //B_DIRECT
|
|
|
|
0, //B_FWD_16X16
|
|
|
|
0, //B_BWD_16X16
|
|
|
|
0, //B_SYM_16X16
|
|
|
|
FWD0|FWD1 |SPLITH,
|
|
|
|
FWD0|FWD1 |SPLITV,
|
|
|
|
BWD0|BWD1 |SPLITH,
|
|
|
|
BWD0|BWD1 |SPLITV,
|
|
|
|
FWD0|BWD1 |SPLITH,
|
|
|
|
FWD0|BWD1 |SPLITV,
|
|
|
|
BWD0|FWD1 |SPLITH,
|
|
|
|
BWD0|FWD1 |SPLITV,
|
|
|
|
FWD0|FWD1 |SYM1|SPLITH,
|
|
|
|
FWD0|FWD1 |SYM1 |SPLITV,
|
|
|
|
BWD0|FWD1 |SYM1|SPLITH,
|
|
|
|
BWD0|FWD1 |SYM1 |SPLITV,
|
|
|
|
FWD0|FWD1|SYM0 |SPLITH,
|
|
|
|
FWD0|FWD1|SYM0 |SPLITV,
|
|
|
|
FWD0|BWD1|SYM0 |SPLITH,
|
|
|
|
FWD0|BWD1|SYM0 |SPLITV,
|
|
|
|
FWD0|FWD1|SYM0|SYM1|SPLITH,
|
|
|
|
FWD0|FWD1|SYM0|SYM1 |SPLITV,
|
|
|
|
SPLITH|SPLITV, //B_8X8 = 29
|
2006-07-01 22:52:56 +00:00
|
|
|
};
|
|
|
|
|
2010-06-30 15:38:06 +00:00
|
|
|
/** mark block as "no prediction from this direction"
|
2006-07-03 17:37:57 +00:00
|
|
|
e.g. forward motion vector in BWD partition */
|
2009-01-16 17:20:17 +00:00
|
|
|
const cavs_vector ff_cavs_dir_mv = {0,0,1,REF_DIR};
|
2006-07-01 22:52:56 +00:00
|
|
|
|
2010-06-30 15:38:06 +00:00
|
|
|
/** mark block as using intra prediction */
|
2009-01-16 17:20:17 +00:00
|
|
|
const cavs_vector ff_cavs_intra_mv = {0,0,1,REF_INTRA};
|
2006-07-01 22:52:56 +00:00
|
|
|
|
2008-08-31 07:39:47 +00:00
|
|
|
#endif /* AVCODEC_CAVSDATA_H */
|