mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-08 02:20:06 +08:00
[h264d]: resize rkv CABAC table size to avoid useless memory
consumption. Change-Id: I3b46d7f90e1638ae54825439f10f7b112f4dbba1 Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
/* Number registers for the decoder */
|
||||
#define DEC_RKV_REGISTERS 78
|
||||
|
||||
#define RKV_CABAC_TAB_SIZE (926*16 + 128) /* bytes */
|
||||
#define RKV_CABAC_TAB_SIZE (928*4 + 128) /* bytes */
|
||||
#define RKV_SPSPPS_SIZE (256*32 + 128) /* bytes */
|
||||
#define RKV_RPS_SIZE (128 + 128) /* bytes */
|
||||
#define RKV_SCALING_LIST_SIZE (6*16+2*64 + 128) /* bytes */
|
||||
@@ -64,7 +64,7 @@ typedef struct h264d_rkv_reg_ctx_t {
|
||||
H264dRkvRegs_t *regs;
|
||||
} H264dRkvRegCtx_t;
|
||||
|
||||
const RK_U32 rkv_cabac_table[926 * 4] = {
|
||||
const RK_U32 rkv_cabac_table[928] = {
|
||||
0x3602f114, 0xf1144a03, 0x4a033602, 0x68e97fe4, 0x36ff35fa, 0x21173307,
|
||||
0x00150217, 0x31000901, 0x390576db, 0x41f54ef3, 0x310c3e01, 0x321149fc,
|
||||
0x2b094012, 0x431a001d, 0x68095a10, 0x68ec7fd2, 0x4ef34301, 0x3e0141f5,
|
||||
@@ -219,7 +219,7 @@ const RK_U32 rkv_cabac_table[926 * 4] = {
|
||||
0x032cf231, 0x222c062d, 0x52133621, 0x17ff4bfd, 0x2b012201, 0x37fe3600,
|
||||
0x40013d00, 0x5cf74400, 0x61f36af2, 0x5af45af1, 0x49f658ee, 0x56f24ff7,
|
||||
0x46f649f6, 0x42fb45f6, 0x3afb40f7, 0xf6153b02, 0xf81cf518, 0x031dff1c,
|
||||
0x1423091d, 0x430e241d,
|
||||
0x1423091d, 0x430e241d, 0x00000000, 0x00000000
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user