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 St, Fifth Floor, Boston, MA 02110-1301 USA
27 #define SLICE_MIN_START_CODE 0x00000101
28 #define SLICE_MAX_START_CODE 0x000001af
29 #define EXT_START_CODE 0x000001b5
30 #define USER_START_CODE 0x000001b2
31 #define CAVS_START_CODE 0x000001b0
32 #define PIC_I_START_CODE 0x000001b3
33 #define PIC_PB_START_CODE 0x000001b6
43 #define ESCAPE_CODE 59
54 #define MV_BWD_OFFS 12
127 MV_BWD_D3 = MV_BWD_OFFS,
134 MV_BWD_A3 = MV_BWD_OFFS+8,
139 DECLARE_ALIGNED_8(typedef, struct) {
146 typedef struct residual_vlc_t {
148 int8_t level_add[27];