📄 mp4dtble.c
字号:
/******************************************************************************// INTEL CORPORATION PROPRIETARY INFORMATION// This software is supplied under the terms of a license agreement or// nondisclosure agreement with Intel Corporation and may not be copied// or disclosed except in accordance with the terms of that agreement.// Copyright (c) 2003 Intel Corporation. All Rights Reserved.//// Description: Constant tables of MPEG-4 video decoder sample code for// Intel(R) Integrated Performance Primitives.// Functions List://******************************************************************************/#include "sampmp4.h"const int bits_mask_tbl[33] ={ 0x00000000, 0x00000001, 0x00000003, 0x00000007, 0x0000000f, 0x0000001f, 0x0000003f, 0x0000007f, 0x000000ff, 0x000001ff, 0x000003ff, 0x000007ff, 0x00000fff, 0x00001fff, 0x00003fff, 0x00007fff, 0x0000ffff, 0x0001ffff, 0x0003ffff, 0x0007ffff, 0x000fffff, 0x001fffff, 0x003fffff, 0x007fffff, 0x00ffffff, 0x01ffffff, 0x03ffffff, 0x07ffffff, 0x0fffffff, 0x1fffffff, 0x3fffffff, 0x7fffffff, 0xffffffff};unsigned char default_qmat_intra_tbl [64] = { 8, 17, 18, 19, 21, 23, 25, 27, 17, 18, 19, 21, 23, 25, 27, 28, 20, 21, 22, 23, 24, 26, 28, 30, 21, 22, 23, 24, 26, 28, 30, 32, 22, 23, 24, 26, 28, 30, 32, 35, 23, 24, 26, 28, 30, 32, 35, 38, 25, 26, 28, 30, 32, 35, 38, 41, 27, 28, 30, 32, 35, 38, 41, 45};unsigned char default_qmat_inter_tbl [64] = { 16, 17, 18, 19, 20, 21, 22, 23, 17, 18, 19, 20, 21, 22, 23, 24, 18, 19, 20, 21, 22, 23, 24, 25, 19, 20, 21, 22, 23, 24, 26, 27, 20, 21, 22, 23, 25, 26, 27, 28, 21, 22, 23, 24, 26, 27, 28, 30, 22, 23, 24, 26, 27, 28, 30, 31, 23, 24, 25, 27, 28, 30, 31, 33};const Ipp16u dc_switch_thresh_tbl[8] = {512, 13, 15, 17, 19, 21, 23, 0};const unsigned char classic_zigzag_tbl[64] = { 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, 35, 42, 49, 56, 57, 50, 43, 36, 29, 22, 15, 23, 30, 37, 44, 51, 58, 59, 52, 45, 38, 31, 39, 46, 53, 60, 61, 54, 47, 55, 62, 63};const Ipp8u cbpy4_intra_tbl[13] = {16, 16, 16, 0, 12, 10, 14, 5, 13, 3, 11, 7, 15};const mp4_tree_node mcbpc_pvop_vlc_tbl[21] = { { 0, 1, 1, 0 }, { 0, 0, 2, 7 }, { 0, 0, 4, 3 }, { 1, 1, 2, 1 }, { 0, 0, 8, 5 }, { 0, 1, 6, 12 }, { 1, 1, 16, 3 }, { 1, 1, 8, 4 }, { 0, 0, 11, 9 }, { 0, 0, 15, 10 }, { 1, 1, 6, 5 }, { 0, 0, 12, 16}, { 0, 0, 18, 13}, { 0, 1, 14, 14 }, { 1, 1, 17, 7 }, { 1, 1, 10, 9 }, { 0, 1, 17, 15}, { 1, 1, 13, 11 }, { 0, 0, 20, 19}, { 1, 1, 19, 18}, { 1, 1, -1, 48 }};/* for intra DC only block */const mp4_table_node dc_size_lum_tbl[8] = { {5,3}, {4,3}, {3,3}, {0,3}, {2,2}, {2,2}, {1,2}, {1,2}};const mp4_table_node dc_size_chr_tbl[4] = { {3,2}, {2,2}, {1,2}, {0,2}};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -