1 /* 2 * Copyright 2016 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 __RC_VEPU_540_H__ 18 #define __RC_VEPU_540_H__ 19 20 #include "rk_type.h" 21 22 #define VEPU540_BLK_RC_CTRL_LEVELS 9 23 24 typedef struct RcVepu540Set_t { 25 RK_S32 rc_en; 26 RK_S32 rc_mode; 27 28 RK_S32 ctu_num; 29 RK_S32 ctu_ebits; 30 31 RK_S32 qp_pic; 32 RK_S32 qp_min; 33 RK_S32 qp_max; 34 RK_S32 qp_range; 35 36 RK_S32 aqmode_en; 37 RK_S32 aq_strength; 38 RK_S32 rc_fact0; 39 RK_S32 rc_fact1; 40 41 RK_S32 target_error[VEPU_BLK_RC_CTRL_LEVELS]; 42 RK_S32 delta_qp[VEPU_BLK_RC_CTRL_LEVELS]; 43 } RcVepu540Set; 44 45 typedef struct RcVepu540Ret_t { 46 RK_S32 stream_size; 47 48 RK_U32 qp_sum; 49 RK_U64 sse_sum; 50 } RcVepu540Ret; 51 52 #endif /* __RC_VEPU_540_H__ */ 53