1 /* 2 * Copyright 2015 Rockchip Electronics Co. LTD 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef __HAL_H264E_VPU_TBL_H__ 18 #define __HAL_H264E_VPU_TBL_H__ 19 20 #include "rk_type.h" 21 22 #define H264E_CABAC_TABLE_BUF_SIZE (52*2*464) 23 24 /* H.264 motion estimation parameters */ 25 extern const RK_U32 h264_prev_mode_favor[52]; 26 /* sqrt(2^((qp-12)/3))*8 */ 27 extern const RK_U32 h264_diff_mv_penalty[52]; 28 /* 31*sqrt(2^((qp-12)/3))/4 */ 29 extern const RK_U32 h264_diff_mv_penalty4p[52]; 30 extern const RK_U32 h264_intra16_favor[52]; 31 extern const RK_U32 h264_inter_favor[52]; 32 extern const RK_U32 h264_skip_sad_penalty[52]; 33 extern const RK_S32 h264_context_init_intra[460][2]; 34 extern const RK_S32 h264_context_init[3][460][2]; 35 36 #endif 37