From patchwork Tue Sep 26 22:16:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 43937 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:2a18:b0:15d:8365:d4b8 with SMTP id e24csp2209595pzh; Tue, 26 Sep 2023 15:19:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEGdbAH5eDOlPX+DagwGYGOkoC64dpMI5hgcGggkcM1HdAmxC8ktHnms8lFAnb7qDONkBxQ X-Received: by 2002:adf:fc07:0:b0:31f:fae3:7629 with SMTP id i7-20020adffc07000000b0031ffae37629mr43078wrr.13.1695766793021; Tue, 26 Sep 2023 15:19:53 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id bk1-20020a170906b0c100b00992fef51a60si10861845ejb.525.2023.09.26.15.19.52; Tue, 26 Sep 2023 15:19:53 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@outlook.com header.s=selector1 header.b=lpTgdoRm; arc=fail (body hash mismatch); spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3DA9468CAEF; Wed, 27 Sep 2023 01:18:17 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04olkn2058.outbound.protection.outlook.com [40.92.74.58]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 06BC468CAEB for ; Wed, 27 Sep 2023 01:18:15 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EgAPjNt+2iWiMuzgBiMIBPlfmVYPE2LK6DWwKyrcE5KzctnBnL1lXUpI3gERGPu8VTMN+wobcwta+qLEDvvw3OLbFgOK00Ei9Ctz3ckBTtQ4LlSaXyuyGITwTgaOkwGaecC/dgPgg4KjmiIcTPKmHLGBtUXXh4S4tEZF4SFuKTuEhBgZxA91rCEkGheeE2Gp4lZM/lUhHoFJktbYWFv44lmAtIxBd4YOmtlXsD3DDlJZvJjbtvuEiNNqsy9al5mKSHHgCuIfbSlOxEzvkLLpLi75XF7zVLBu1De0nQB8F9ZKXw1ZQOPvk6y32osjknwKvSBIcLICr0HjlK0Nx9LNDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Oalt4dWPwYEaVuVoRiZ5Q+X23+6lIUd53u9eXI7qF6c=; b=ZgUP0q0LAsxC+EpOV/bkUKZCrYdls8r67ETDFOKX46dq61x2p0O0FS1b/v42em88OzwoRWlEOc/1hILWs5bVdsxDEN8kY+NGA7vPRcVTMq57jj7yP9gT3h7izzRz3Veuio3mZ0VEhqEAMhQXfnRm1XROK7On+b6Y2mwpUbaO0aO91ZHP/IS42fM8AaeQX0oybmo6Xc6E1eEYBdd7DwD2lCNaBwD1r78w1mJJ1ROGmj5g0M4v/LEcrWkKD2VFVzeMSPcVqPD5WsvlcwtBHZTEQvkCTVxO1B6/rt15cT3CDNIUFoCcMA0pun3BLVpil6jKiYXGxHW2a6yclBpDUmgKbQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Oalt4dWPwYEaVuVoRiZ5Q+X23+6lIUd53u9eXI7qF6c=; b=lpTgdoRmryUdm5E1bi1yDqfEaamZpDfnYMvFGOxtR9vzat0tul5fstKVdUYjO5GgY1MvSXdcLZvpukrCl+XnKVBN3g1pBrT5Eex6S9BV2m51+IsbVzhz5GMTOZv3hbEXXmfpjI1c3hgi7Nru158BMeEErGRv+uXbgDJxMKwjQzrhrfOMdKifcqo/0/VgKUcd3kwi+H/s86bVpmJemSn5TMz3+w4QShidEnmddxMWA+b4uqaLi0eWNxqTTIBnTlMEqt025zPEvtc0Xkt5C8C7d5F4s/vO2ykf1gkr2WuKjOzA5OfAspWdsZgsREvjN6RUxkoEKn/8FirqZ9Anc2yXoA== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by DU2P250MB0189.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:275::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Tue, 26 Sep 2023 22:18:14 +0000 Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::9d42:7b4f:71ef:c76a]) by GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::9d42:7b4f:71ef:c76a%3]) with mapi id 15.20.6813.027; Tue, 26 Sep 2023 22:18:14 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Wed, 27 Sep 2023 00:16:55 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-TMN: [vTVuzAiBzqN0ymOsm330fSEw8s+3k2G3] X-ClientProxiedBy: FR3P281CA0019.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:1c::6) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20230926221732.3711507-23-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|DU2P250MB0189:EE_ X-MS-Office365-Filtering-Correlation-Id: 8887f1b2-523e-4aa5-439c-08dbbede79e1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Y816biqjI7FHI5jz4PHf2sfR1kI4nB0To9Iyek7vNXOguuI0iyD5ZDdGGdSH8TsW8yIlmxzabSrlikZb2KJH7mqV4Rg2NVHKA/91vNN9RZbt3Yq/Ym/XMeGGeFxlpWKNVApo0CO065mYCHJDtlIxRpHjx/iUmfJrPjHL630wujRa8YPjVqwx/8tS7pt7oO9iIp/ZQXvEVw56uwSNhVhMpO4xwwijQMAFI1+I9o2Cmxk3UGcQFkAsg/8lsZ3ayoNg5hkAiMYPCq0Z3lRdnJuemQRHgFPnDsRA0CJYLsB8Uoj5yqTQv9UTzDHtmY2bgxc036Hac5t3Ve+8KUXg5JXPrKxRmPfOZpAIqSQ2tSIxusB4ACBT1kjAlOs+esi97JZJP/PEHgHcC5u0QQDAFUBuKhMnJNEFlEzeLB+M0GhxVvI/0dXNNi+hfKNNi19Iu1IXs680srMjwWn3ESC0+ECma+iU/F+hDO2JaHYh22JuCT7kuEiM4l9YEMfTjlsqjFIVXSd43MsdlS/J5bltUO9Y0T2DjigiHsSbnRnn90E7txyH5YwZPujJaTmsncpse9pdYGroxz6UawSHa2akanoMWvaF3okoNGV2KY9Wm/P+iSJMh1nz3F+isZ0USTmGlUo/ X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hO0nyztJqC8Tda6q/mzNC/OiTrsN+T7/aO3+vS0POs2nOfc/T3z2F6IQOM6knC83d6yflJfkGRc9r/f+8U/d2HsFFXqOROFDswWZip31sTWYb1r8pApaEyT2i6Hc4JpfyX0JyNx5agGf+F74qOChdNYNeWQoLP++A9ABjNjeSdHdXrE7ouOpwGLv+f1P924TaSwRfS5eI0+JGOdgDsUyk68d8sld8CwAB7i/nucKF8tJg5wOuZQTchUQLCpRgEmcc/zdDoK2/vYRJOOgPeLyqmrJMFLJupKxPGqb39Tx5poC7nBQVWY7pUEQ0ZItNaxw6HOJLp0ZfiY1/ZK/NvJBfjo5dmMpX6Z9LXl0QFff6G+48U+/TuPoCoVlT3gmAEcLKNqXglXzFNdShHgDrELV/u1uSH9j0xwCZdKqwd2v82Ja4Q48doVUpRfMWfGA3dwXSzo/IQJEVsCAmf2+bvF15xTMkivebJgFcEE2QHFEAJwTzP0CzhNISxKfM+TZjA3hOGg0Cjheje76d4oRGFF9a856SkyhI7tGtWg/Iir8UlV4Il++Hk9F73fmI7e1wvcagVltiEWrMeOotbhRbtpCyP+/Wu/6A1uBRKpMnMZqYPii5N9uCgCf9Zx0c8UqJNSFcTWyIk+S6q3DfbXuwj4CIzEg12mhxbweGreN0S2YWRPHBAsm1ggjw599wT3RWbGDeNXs0uowUt30dzwcPSxCX005PpnOM5Uobd0Hg3s12vSUIaKT39RSXfKUvilotQ0k3gcqrfgjAuX6VmnW0n9UWSjGTq34eANmPv1x/xLh6GJ4xhvJ2weXUlRnyhhJEBACdpcfCtzO0rp0ir9+DCRo5tsK5JYUgA1L69wFq7bVeVHT5xUCxg72sxjb1MqYAfb9DO9atHzUd6Nbt353Vdcq5LR7Z3BwhE+VYxbvFespwWNasMBYRiJGAr3i1m0+WZiSOag8Qlan3wo7EhR/DDOxxNzNMY06GPhty9Osq9RPVVxAs+jCc1dDsj5KEHWN8Md4rPk0XMXo4YT0FfLxiljPHYVgSiajAMbGIGo593KchU78e0ngrS2/iwl4rmmnHkVXmDOWn+7Z/41LUQ0UaMExifzNWnUI1gzLHMQ1Pc7loZNziDQCvT8Pr1lLID8rJxrt2/MQZBSAAYY7ll5UwTgc7TGC03ruvM4Gun4epNaiXWNBNIzePZuyD0qJ1zTEzwyHHK9y4p7FH0VYicTc0gFTVZQbHI7Dutf6YtQL7cA375uj6XFWni4vKTsox0z71dOc X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8887f1b2-523e-4aa5-439c-08dbbede79e1 X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2023 22:18:14.2216 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2P250MB0189 Subject: [FFmpeg-devel] [PATCH 24/61] avcodec/rv34: Avoid superfluous VLC structures X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: l/P+UV6O7ej9 For most VLCs here, the number of bits of the VLC is write-only, because it is hardcoded at the call site. Therefore one can replace these VLC structures with the only thing that is actually used: The pointer to the VLCElem table. Signed-off-by: Andreas Rheinhardt --- libavcodec/rv34.c | 74 +++++++++++++++++++++++++++-------------------- libavcodec/rv34.h | 12 ++++---- 2 files changed, 49 insertions(+), 37 deletions(-) diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c index e9660bb457..a7bc8efd8e 100644 --- a/libavcodec/rv34.c +++ b/libavcodec/rv34.c @@ -90,8 +90,8 @@ static VLCElem table_data[117592]; * @param insyms symbols for input codes (NULL for default ones) * @param num VLC table number (for static initialization) */ -static void rv34_gen_vlc(const uint8_t *bits, int size, VLC *vlc, const uint8_t *syms, - int *offset) +static av_cold void rv34_gen_vlc_ext(const uint8_t *bits, int size, VLC *vlc, + const uint8_t *syms, int *offset) { int counts[17] = {0}, codes[17]; uint16_t cw[MAX_VLC_SIZE]; @@ -120,6 +120,14 @@ static void rv34_gen_vlc(const uint8_t *bits, int size, VLC *vlc, const uint8_t *offset += vlc->table_size; } +static av_cold void rv34_gen_vlc(const uint8_t *bits, int size, const VLCElem **vlcp, + int *offset) +{ + VLC vlc = { 0 }; + rv34_gen_vlc_ext(bits, size, &vlc, NULL, offset); + *vlcp = vlc.table; +} + /** * Initialize all tables. */ @@ -130,41 +138,41 @@ static av_cold void rv34_init_tables(void) for(i = 0; i < NUM_INTRA_TABLES; i++){ for(j = 0; j < 2; j++){ rv34_gen_vlc(rv34_table_intra_cbppat [i][j], CBPPAT_VLC_SIZE, - &intra_vlcs[i].cbppattern[j], NULL, &offset); + &intra_vlcs[i].cbppattern[j], &offset); rv34_gen_vlc(rv34_table_intra_secondpat[i][j], OTHERBLK_VLC_SIZE, - &intra_vlcs[i].second_pattern[j], NULL, &offset); + &intra_vlcs[i].second_pattern[j], &offset); rv34_gen_vlc(rv34_table_intra_thirdpat [i][j], OTHERBLK_VLC_SIZE, - &intra_vlcs[i].third_pattern[j], NULL, &offset); + &intra_vlcs[i].third_pattern[j], &offset); for(k = 0; k < 4; k++){ - rv34_gen_vlc(rv34_table_intra_cbp[i][j+k*2], CBP_VLC_SIZE, - &intra_vlcs[i].cbp[j][k], rv34_cbp_code, &offset); + rv34_gen_vlc_ext(rv34_table_intra_cbp[i][j+k*2], CBP_VLC_SIZE, + &intra_vlcs[i].cbp[j][k], rv34_cbp_code, &offset); } } for(j = 0; j < 4; j++){ rv34_gen_vlc(rv34_table_intra_firstpat[i][j], FIRSTBLK_VLC_SIZE, - &intra_vlcs[i].first_pattern[j], NULL, &offset); + &intra_vlcs[i].first_pattern[j], &offset); } rv34_gen_vlc(rv34_intra_coeff[i], COEFF_VLC_SIZE, - &intra_vlcs[i].coefficient, NULL, &offset); + &intra_vlcs[i].coefficient, &offset); } for(i = 0; i < NUM_INTER_TABLES; i++){ rv34_gen_vlc(rv34_inter_cbppat[i], CBPPAT_VLC_SIZE, - &inter_vlcs[i].cbppattern[0], NULL, &offset); + &inter_vlcs[i].cbppattern[0], &offset); for(j = 0; j < 4; j++){ - rv34_gen_vlc(rv34_inter_cbp[i][j], CBP_VLC_SIZE, - &inter_vlcs[i].cbp[0][j], rv34_cbp_code, &offset); + rv34_gen_vlc_ext(rv34_inter_cbp[i][j], CBP_VLC_SIZE, + &inter_vlcs[i].cbp[0][j], rv34_cbp_code, &offset); } for(j = 0; j < 2; j++){ rv34_gen_vlc(rv34_table_inter_firstpat [i][j], FIRSTBLK_VLC_SIZE, - &inter_vlcs[i].first_pattern[j], NULL, &offset); + &inter_vlcs[i].first_pattern[j], &offset); rv34_gen_vlc(rv34_table_inter_secondpat[i][j], OTHERBLK_VLC_SIZE, - &inter_vlcs[i].second_pattern[j], NULL, &offset); + &inter_vlcs[i].second_pattern[j], &offset); rv34_gen_vlc(rv34_table_inter_thirdpat [i][j], OTHERBLK_VLC_SIZE, - &inter_vlcs[i].third_pattern[j], NULL, &offset); + &inter_vlcs[i].third_pattern[j], &offset); } rv34_gen_vlc(rv34_inter_coeff[i], COEFF_VLC_SIZE, - &inter_vlcs[i].coefficient, NULL, &offset); + &inter_vlcs[i].coefficient, &offset); } } @@ -187,7 +195,7 @@ static int rv34_decode_cbp(GetBitContext *gb, RV34VLC *vlc, int table) const int *curshift = shifts; int i, t, mask; - code = get_vlc2(gb, vlc->cbppattern[table].table, 9, 2); + code = get_vlc2(gb, vlc->cbppattern[table], 9, 2); pattern = code & 0xF; code >>= 4; @@ -211,11 +219,12 @@ static int rv34_decode_cbp(GetBitContext *gb, RV34VLC *vlc, int table) /** * Get one coefficient value from the bitstream and store it. */ -static inline void decode_coeff(int16_t *dst, int coef, int esc, GetBitContext *gb, VLC* vlc, int q) +static inline void decode_coeff(int16_t *dst, int coef, int esc, GetBitContext *gb, + const VLCElem *vlc, int q) { if(coef){ if(coef == esc){ - coef = get_vlc2(gb, vlc->table, 9, 2); + coef = get_vlc2(gb, vlc, 9, 2); if(coef > 23){ coef -= 23; coef = 22 + ((1 << coef) | get_bits(gb, coef)); @@ -231,7 +240,8 @@ static inline void decode_coeff(int16_t *dst, int coef, int esc, GetBitContext * /** * Decode 2x2 subblock of coefficients. */ -static inline void decode_subblock(int16_t *dst, int code, const int is_block2, GetBitContext *gb, VLC *vlc, int q) +static inline void decode_subblock(int16_t *dst, int code, const int is_block2, + GetBitContext *gb, const VLCElem *vlc, int q) { int flags = modulo_three_table[code]; @@ -249,13 +259,15 @@ static inline void decode_subblock(int16_t *dst, int code, const int is_block2, /** * Decode a single coefficient. */ -static inline void decode_subblock1(int16_t *dst, int code, GetBitContext *gb, VLC *vlc, int q) +static inline void decode_subblock1(int16_t *dst, int code, GetBitContext *gb, + const VLCElem *vlc, int q) { int coeff = modulo_three_table[code] >> 6; decode_coeff(dst, coeff, 3, gb, vlc, q); } -static inline void decode_subblock3(int16_t *dst, int code, GetBitContext *gb, VLC *vlc, +static inline void decode_subblock3(int16_t *dst, int code, GetBitContext *gb, + const VLCElem *vlc, int q_dc, int q_ac1, int q_ac2) { int flags = modulo_three_table[code]; @@ -281,32 +293,32 @@ static int rv34_decode_block(int16_t *dst, GetBitContext *gb, RV34VLC *rvlc, int { int code, pattern, has_ac = 1; - code = get_vlc2(gb, rvlc->first_pattern[fc].table, 9, 2); + code = get_vlc2(gb, rvlc->first_pattern[fc], 9, 2); pattern = code & 0x7; code >>= 3; if (modulo_three_table[code] & 0x3F) { - decode_subblock3(dst, code, gb, &rvlc->coefficient, q_dc, q_ac1, q_ac2); + decode_subblock3(dst, code, gb, rvlc->coefficient, q_dc, q_ac1, q_ac2); } else { - decode_subblock1(dst, code, gb, &rvlc->coefficient, q_dc); + decode_subblock1(dst, code, gb, rvlc->coefficient, q_dc); if (!pattern) return 0; has_ac = 0; } if(pattern & 4){ - code = get_vlc2(gb, rvlc->second_pattern[sc].table, 9, 2); - decode_subblock(dst + 4*0+2, code, 0, gb, &rvlc->coefficient, q_ac2); + code = get_vlc2(gb, rvlc->second_pattern[sc], 9, 2); + decode_subblock(dst + 4*0+2, code, 0, gb, rvlc->coefficient, q_ac2); } if(pattern & 2){ // Looks like coefficients 1 and 2 are swapped for this block - code = get_vlc2(gb, rvlc->second_pattern[sc].table, 9, 2); - decode_subblock(dst + 4*2+0, code, 1, gb, &rvlc->coefficient, q_ac2); + code = get_vlc2(gb, rvlc->second_pattern[sc], 9, 2); + decode_subblock(dst + 4*2+0, code, 1, gb, rvlc->coefficient, q_ac2); } if(pattern & 1){ - code = get_vlc2(gb, rvlc->third_pattern[sc].table, 9, 2); - decode_subblock(dst + 4*2+2, code, 0, gb, &rvlc->coefficient, q_ac2); + code = get_vlc2(gb, rvlc->third_pattern[sc], 9, 2); + decode_subblock(dst + 4*2+2, code, 0, gb, rvlc->coefficient, q_ac2); } return has_ac | pattern; } diff --git a/libavcodec/rv34.h b/libavcodec/rv34.h index 84789625ce..4bb81b4965 100644 --- a/libavcodec/rv34.h +++ b/libavcodec/rv34.h @@ -63,12 +63,12 @@ enum RV40BlockTypes{ * Intra frame VLC sets do not contain some of those tables. */ typedef struct RV34VLC{ - VLC cbppattern[2]; ///< VLCs used for pattern of coded block patterns decoding - VLC cbp[2][4]; ///< VLCs used for coded block patterns decoding - VLC first_pattern[4]; ///< VLCs used for decoding coefficients in the first subblock - VLC second_pattern[2]; ///< VLCs used for decoding coefficients in the subblocks 2 and 3 - VLC third_pattern[2]; ///< VLCs used for decoding coefficients in the last subblock - VLC coefficient; ///< VLCs used for decoding big coefficients + const VLCElem *cbppattern[2]; ///< VLCs used for pattern of coded block patterns decoding + VLC cbp[2][4]; ///< VLCs used for coded block patterns decoding + const VLCElem *first_pattern[4]; ///< VLCs used for decoding coefficients in the first subblock + const VLCElem *second_pattern[2]; ///< VLCs used for decoding coefficients in the subblocks 2 and 3 + const VLCElem *third_pattern[2]; ///< VLCs used for decoding coefficients in the last subblock + const VLCElem *coefficient; ///< VLCs used for decoding big coefficients }RV34VLC; /** essential slice information */