2 * Chinese AVS video (AVS1-P2, JiZhun profile) decoder.
3 * Copyright (c) 2006 Stefan Gehrer <stefan.gehrer@gmx.de>
5 * This file is part of FFmpeg.
7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * FFmpeg is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with FFmpeg; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 #ifndef AVCODEC_CAVSDATA_H
23 #define AVCODEC_CAVSDATA_H
27 const uint8_t ff_cavs_partition_flags[30] = {
33 SPLITH|SPLITV, //P_8X8
34 SPLITH|SPLITV, //B_SKIP
35 SPLITH|SPLITV, //B_DIRECT
47 FWD0|FWD1 |SYM1|SPLITH,
48 FWD0|FWD1 |SYM1 |SPLITV,
49 BWD0|FWD1 |SYM1|SPLITH,
50 BWD0|FWD1 |SYM1 |SPLITV,
51 FWD0|FWD1|SYM0 |SPLITH,
52 FWD0|FWD1|SYM0 |SPLITV,
53 FWD0|BWD1|SYM0 |SPLITH,
54 FWD0|BWD1|SYM0 |SPLITV,
55 FWD0|FWD1|SYM0|SYM1|SPLITH,
56 FWD0|FWD1|SYM0|SYM1 |SPLITV,
57 SPLITH|SPLITV, //B_8X8 = 29
60 /** mark block as "no prediction from this direction"
61 e.g. forward motion vector in BWD partition */
62 const cavs_vector ff_cavs_dir_mv = {0,0,1,REF_DIR};
64 /** mark block as using intra prediction */
65 const cavs_vector ff_cavs_intra_mv = {0,0,1,REF_INTRA};
67 #endif /* AVCODEC_CAVSDATA_H */