| /rockchip-linux_mpp/osal/inc/ |
| H A D | mpp_mem.h | 14 #define mpp_malloc_with_caller(type, count, caller) \ argument 15 (type*)mpp_osal_malloc(caller, sizeof(type) * (count)) 17 #define mpp_malloc(type, count) \ argument 18 (type*)mpp_osal_malloc(__FUNCTION__, sizeof(type) * (count)) 20 #define mpp_malloc_size(type, size) \ argument 21 (type*)mpp_osal_malloc(__FUNCTION__, size) 23 #define mpp_calloc(type, count) \ argument 24 (type*)mpp_osal_calloc(__FUNCTION__, sizeof(type) * (count)) 26 #define mpp_calloc_size(type, size) \ argument 27 (type*)mpp_osal_calloc(__FUNCTION__, size) [all …]
|
| H A D | mpp_list.h | 91 #define list_entry(ptr, type, member) \ argument 92 ((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member))) 94 #define list_first_entry(ptr, type, member) \ argument 95 list_entry((ptr)->next, type, member) 97 #define list_last_entry(ptr, type, member) \ argument 98 list_entry((ptr)->prev, type, member) 100 #define list_first_entry_or_null(ptr, type, member) ({ \ argument 103 pos__ != head__ ? list_entry(pos__, type, member) : NULL; \ 106 #define list_next_entry(pos, type, member) \ argument 107 list_entry((pos)->member.next, type, member) [all …]
|
| /rockchip-linux_mpp/utils/ |
| H A D | camera_source.c | 47 enum v4l2_buf_type type; member 118 enum v4l2_buf_type type; in camera_source_init() local 162 vfmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; in camera_source_init() 165 vfmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; in camera_source_init() 174 fmtdesc.type = vfmt.type; in camera_source_init() 193 type = vfmt.type; in camera_source_init() 194 ctx->type = vfmt.type; in camera_source_init() 211 req.type = type; in camera_source_init() 226 buf.type = type; in camera_source_init() 230 if (V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE == type) { in camera_source_init() [all …]
|
| /rockchip-linux_mpp/mpp/base/ |
| H A D | mpp_cfg.c | 39 const char *strof_cfg_type(CfgType type) in strof_cfg_type() argument 51 if (type < 0 || type >= CFG_FUNC_TYPE_BUTT) in strof_cfg_type() 52 type = CFG_FUNC_TYPE_BUTT; in strof_cfg_type() 54 return cfg_type_names[type]; in strof_cfg_type() 57 static void show_cfg_info_err(MppCfgInfo *node, CfgType type, const char *func, const char *name) in show_cfg_info_err() argument 60 strof_cfg_type(node->data_type), strof_cfg_type(type)); in show_cfg_info_err() 78 #define MPP_CFG_ACCESS(type, base_type) \ argument 79 MPP_RET mpp_cfg_set_##type(MppCfgInfo *info, void *cfg, base_type val) \ 81 base_type *dst = CFG_TO_##type##_PTR(info, cfg); \ 85 … mpp_cfg_dbg_set("%p + %d set " #type " change %d -> %d\n", cfg, info->data_offset, old, val); \ [all …]
|
| H A D | mpp_cfg_io.c | 68 MppCfgType type; member 103 MppCfgStrFmt type; member 108 static const char *strof_type(MppCfgType type) in strof_type() argument 127 if (type < 0 || type > MPP_CFG_TYPE_BUTT) in strof_type() 128 type = MPP_CFG_TYPE_BUTT; in strof_type() 130 return str[type]; in strof_type() 161 if (curr->type >= MPP_CFG_TYPE_OBJECT) in get_full_name() 207 rk_s32 mpp_cfg_get_object(MppCfgObj *obj, const char *name, MppCfgType type, MppCfgVal *val) in mpp_cfg_get_object() argument 215 if (!obj || type <= MPP_CFG_TYPE_INVALID || type >= MPP_CFG_TYPE_BUTT) { in mpp_cfg_get_object() 216 mpp_loge_f("invalid param obj %p name %s type %d val %p\n", obj, name, type, val); in mpp_cfg_get_object() [all …]
|
| H A D | mpp_task_impl.c | 52 MppPortType type; member 92 static MPP_RET mpp_port_init(MppTaskQueueImpl *queue, MppPortType type, MppPort *port) in mpp_port_init() argument 96 mpp_err_f("failed to malloc MppPort type %d\n", type); in mpp_port_init() 100 mpp_task_dbg_func("enter queue %p type %d\n", queue, type); in mpp_port_init() 102 impl->type = type; in mpp_port_init() 105 if (MPP_PORT_INPUT == type) { in mpp_port_init() 142 port_type_str[port_impl->type]); in _mpp_port_poll() 152 port_type_str[port_impl->type], in _mpp_port_poll() 168 port_type_str[port_impl->type]); in _mpp_port_poll() 174 port_type_str[port_impl->type], timeout); in _mpp_port_poll() [all …]
|
| H A D | mpp_buffer_impl.c | 122 MppBufferMode mode, MppBufferType type, 242 group->mode, group->type, ops2str[ops]); in buf_grp_add_log() 262 mpp_log("type %s\n", type2str[group->type]); in mpp_buffer_group_dump() 287 info->type = MPP_BUFFER_TYPE_BUTT; in clear_buffer_info() 484 p->type = group->type; in mpp_buffer_create() 806 MppBufferMode mode, MppBufferType type) in mpp_buffer_group_init() argument 811 *group = service_get_group(tag, caller, mode, type, 0); in mpp_buffer_group_init() 907 static rk_u32 type_to_flag(MppBufferType type) in type_to_flag() argument 911 if (type & MPP_BUFFER_FLAGS_DMA32) in type_to_flag() 914 if (type & MPP_BUFFER_FLAGS_CACHABLE) in type_to_flag() [all …]
|
| /rockchip-linux_mpp/mpp/hal/common/ |
| H A D | hal_info.c | 27 MppCtxType type; member 36 MPP_RET hal_info_init(HalInfo *ctx, MppCtxType type, MppCodingType coding) in hal_info_init() argument 44 RK_U32 elem_nb = (type == MPP_CTX_DEC) ? (ENC_INFO_BUTT) : (DEC_INFO_BUTT); in hal_info_init() 48 impl->type = type; in hal_info_init() 66 MPP_RET hal_info_set(HalInfo ctx, RK_U32 type, RK_U32 flag, RK_U64 data) in hal_info_set() argument 81 switch (info->type) { in hal_info_set() 83 if (type <= DEC_INFO_BASE || type >= DEC_INFO_BUTT) { in hal_info_set() 85 type, DEC_INFO_BASE, DEC_INFO_BUTT); in hal_info_set() 90 type -= DEC_INFO_BASE; in hal_info_set() 93 if (type <= ENC_INFO_BASE || type >= ENC_INFO_BUTT) { in hal_info_set() [all …]
|
| /rockchip-linux_mpp/mpp/codec/rc/ |
| H A D | rc_api.c | 46 MppCodingType type; member 104 strof_coding_type(pos->type), pos->name); in rc_api_srv_deinit() 120 static RcImplApi *_rc_api_get(MppRcApiSrv *srv, MppCodingType type, const char *name) in _rc_api_get() argument 129 if (type == pos->type && in _rc_api_get() 132 strof_coding_type(type), pos->name); in _rc_api_get() 138 rc_dbg_impl("%-5s rc api %s can not be found\n", strof_coding_type(type), name); in _rc_api_get() 146 node->type = api->type; in set_node_api() 151 node->brief.type = api->type; in set_node_api() 172 node_api = _rc_api_get(srv, api->type, api->name); in rc_api_add() 186 rc_dbg_impl("%-5s rc api %s is added\n", strof_coding_type(api->type), api->name); in rc_api_add() [all …]
|
| /rockchip-linux_mpp/osal/ |
| H A D | mpp_soc.c | 39 #define CODING_TO_IDX(type) \ argument 40 ((rk_u32)(type) >= (rk_u32)MPP_VIDEO_CodingKhronosExtensions) ? \ 42 ((rk_u32)(type) >= (rk_u32)MPP_VIDEO_CodingVC1) ? \ 43 ((rk_u32)(type) - (rk_u32)MPP_VIDEO_CodingVC1 + 16) : \ 44 ((rk_u32)(type) - (rk_u32)MPP_VIDEO_CodingUnused) 81 .type = VPU_CLIENT_VDPU1, 99 .type = VPU_CLIENT_VDPU1, 117 .type = VPU_CLIENT_VDPU1_PP, 135 .type = VPU_CLIENT_VDPU2, 153 .type = VPU_CLIENT_VDPU2, [all …]
|
| H A D | osal_2str.c | 8 const char *strof_client_type(MppClientType type) in strof_client_type() argument 53 if (type < 0 || type >= VPU_CLIENT_BUTT) in strof_client_type() 56 return client_type_name[type]; in strof_client_type()
|
| /rockchip-linux_mpp/mpp/base/test/ |
| H A D | mpp_sys_cfg_st_test.c | 16 MppCodingType type = MPP_VIDEO_CodingHEVC; in main() local 27 h_stride_cfg.type = type; in main() 37 byte_stride_cfg.type = type; in main() 48 v_stride_cfg.type = type; in main() 58 size_cfg.type = type; in main()
|
| /rockchip-linux_mpp/osal/driver/ |
| H A D | vcodec_service.c | 138 const char *mpp_get_platform_dev_name(MppCtxType type, MppCodingType coding, RK_U32 platform) in mpp_get_platform_dev_name() argument 142 if ((platform & HAVE_RKVDEC) && (type == MPP_CTX_DEC) && in mpp_get_platform_dev_name() 148 } else if ((platform & HAVE_HEVC_DEC) && (type == MPP_CTX_DEC) && in mpp_get_platform_dev_name() 151 } else if ((platform & HAVE_AVSDEC) && (type == MPP_CTX_DEC) && in mpp_get_platform_dev_name() 154 } else if ((platform & HAVE_RKVENC) && (type == MPP_CTX_ENC) && in mpp_get_platform_dev_name() 157 } else if ((platform & HAVE_VEPU22) && (type == MPP_CTX_ENC) && in mpp_get_platform_dev_name() 161 if (type == MPP_CTX_ENC) in mpp_get_platform_dev_name() 171 const char *mpp_get_vcodec_dev_name(MppCtxType type, MppCodingType coding) in mpp_get_vcodec_dev_name() argument 179 if (type == MPP_CTX_ENC) in mpp_get_vcodec_dev_name() 181 else if (coding == MPP_VIDEO_CodingHEVC && type == MPP_CTX_DEC) in mpp_get_vcodec_dev_name() [all …]
|
| /rockchip-linux_mpp/mpp/ |
| H A D | mpi.c | 23 MppCtxType type; member 269 static MPP_RET mpi_poll(MppCtx ctx, MppPortType type, MppPollType timeout) in mpi_poll() argument 274 mpi_dbg_func("enter ctx %p type %d timeout %d\n", ctx, type, timeout); in mpi_poll() 280 if (type >= MPP_PORT_BUTT || in mpi_poll() 283 mpp_err_f("invalid input type %d timeout %d\n", type, timeout); in mpi_poll() 288 ret = mpp_poll(p->ctx, type, timeout); in mpi_poll() 297 static MPP_RET mpi_dequeue(MppCtx ctx, MppPortType type, MppTask *task) in mpi_dequeue() argument 302 mpi_dbg_func("enter ctx %p type %d task %p\n", ctx, type, task); in mpi_dequeue() 308 if (type >= MPP_PORT_BUTT || NULL == task) { in mpi_dequeue() 309 mpp_err_f("invalid input type %d task %p\n", type, task); in mpi_dequeue() [all …]
|
| /rockchip-linux_mpp/mpp/base/inc/ |
| H A D | mpp_buf_slot.h | 207 MPP_RET mpp_buf_slot_set_flag(MppBufSlots slots, RK_S32 index, SlotUsageType type); 208 MPP_RET mpp_buf_slot_clr_flag(MppBufSlots slots, RK_S32 index, SlotUsageType type); 219 MPP_RET mpp_buf_slot_enqueue(MppBufSlots slots, RK_S32 index, SlotQueueType type); 220 MPP_RET mpp_buf_slot_dequeue(MppBufSlots slots, RK_S32 *index, SlotQueueType type); 230 MPP_RET mpp_buf_slot_set_prop(MppBufSlots slots, RK_S32 index, SlotPropType type, void *val); 231 MPP_RET mpp_buf_slot_get_prop(MppBufSlots slots, RK_S32 index, SlotPropType type, void *val); 257 RK_U32 mpp_slots_is_empty(MppBufSlots slots, SlotQueueType type); 260 MPP_RET mpp_slots_set_prop(MppBufSlots slots, SlotsPropType type, void *val); 261 MPP_RET mpp_slots_get_prop(MppBufSlots slots, SlotsPropType type, void *val);
|
| /rockchip-linux_mpp/kmpp/base/ |
| H A D | kmpp_vdec_cfg.c | 66 MPP_RET mpp_vdec_kcfg_init(MppVdecKcfg *cfg, MppVdecKcfgType type) in MPP_SINGLETON() 75 if (type >= MPP_VDEC_KCFG_TYPE_BUTT) { in MPP_SINGLETON() 76 mpp_err_f("invalid config type %d\n", type); in MPP_SINGLETON() 82 if (kcfg_defs[type]) in MPP_SINGLETON() 83 kmpp_obj_get_f(&obj, kcfg_defs[type]); in MPP_SINGLETON() 93 MppVdecKcfgType type = MPP_VDEC_KCFG_TYPE_BUTT; in mpp_vdec_kcfg_init_by_name() local 103 type = i; in mpp_vdec_kcfg_init_by_name() 108 if (type >= MPP_VDEC_KCFG_TYPE_BUTT) { in mpp_vdec_kcfg_init_by_name() 115 kmpp_obj_get_f(&obj, kcfg_defs[type]); in mpp_vdec_kcfg_init_by_name()
|
| H A D | kmpp_venc_cfg.c | 67 MPP_RET mpp_venc_kcfg_init(MppVencKcfg *cfg, MppVencKcfgType type) in MPP_SINGLETON() 76 if (type >= MPP_VENC_KCFG_TYPE_BUTT) { in MPP_SINGLETON() 77 mpp_err_f("invalid config type %d\n", type); in MPP_SINGLETON() 83 if (kcfg_defs[type]) in MPP_SINGLETON() 84 kmpp_obj_get_f(&obj, kcfg_defs[type]); in MPP_SINGLETON() 94 MppVencKcfgType type = MPP_VENC_KCFG_TYPE_BUTT; in mpp_venc_kcfg_init_by_name() local 104 type = i; in mpp_venc_kcfg_init_by_name() 109 if (type >= MPP_VENC_KCFG_TYPE_BUTT) { in mpp_venc_kcfg_init_by_name() 116 kmpp_obj_get_f(&obj, kcfg_defs[type]); in mpp_venc_kcfg_init_by_name()
|
| /rockchip-linux_mpp/kmpp/base/inc/ |
| H A D | kmpp_obj_func.h | 47 #define ENTRY_DECLARE(prefix, ftype, type, name, flag, ...) \ argument 48 rk_s32 CONCAT_US(prefix, set, __VA_ARGS__)(KMPP_OBJ_INTF_TYPE p, type val); \ 49 rk_s32 CONCAT_US(prefix, get, __VA_ARGS__)(KMPP_OBJ_INTF_TYPE p, type* val); \ 52 #define STRCT_DECLARE(prefix, ftype, type, name, flag, ...) \ argument 53 rk_s32 CONCAT_US(prefix, set, __VA_ARGS__)(KMPP_OBJ_INTF_TYPE p, type* val); \ 54 rk_s32 CONCAT_US(prefix, get, __VA_ARGS__)(KMPP_OBJ_INTF_TYPE p, type* val); \ 57 #define ALIAS_DECLARE(prefix, ftype, type, name, flag, ...) argument
|
| H A D | kmpp_obj_helper.h | 65 #define ENTRY_TO_TRIE(prefix, ftype, type, name, flag, ...) \ argument 87 #define ENTRY_TO_TRIE(prefix, ftype, type, name, flag, ...) \ argument 100 #define ENTRY_TO_TRIE(prefix, ftype, type, name, flag, ...) argument 104 #define VAL_ENTRY_TBL(prefix, ftype, type, name, flag, ...) \ argument 107 #define VAL_HOOK_IDX(prefix, ftype, type, name, flag, ...) \ argument 111 #define ENTRY_QUERY(prefix, ftype, type, name, flag, ...) \ argument 116 #define HOOK_QUERY(prefix, ftype, type, name, flag, ...) \ argument 125 #define ENTRY_TO_FUNC(prefix, ftype, type, name, flag, ...) \ argument 126 rk_s32 CONCAT_US(prefix, get, __VA_ARGS__)(KMPP_OBJ_INTF_TYPE s, type *v) \ 136 rk_s32 CONCAT_US(prefix, set, __VA_ARGS__)(KMPP_OBJ_INTF_TYPE s, type v) \ [all …]
|
| /rockchip-linux_mpp/mpp/hal/vpu/vp8e/ |
| H A D | hal_vp8e_api_v2.c | 45 MppClientType type = VPU_CLIENT_BUTT; in hal_vp8e_init() local 56 type = VPU_CLIENT_VEPU2; in hal_vp8e_init() 59 type = VPU_CLIENT_VEPU1; in hal_vp8e_init() 67 mpp_assert(type != VPU_CLIENT_BUTT); in hal_vp8e_init() 75 cfg->type = type; in hal_vp8e_init()
|
| /rockchip-linux_mpp/inc/ |
| H A D | rk_mpi.h | 166 MPP_RET (*poll)(MppCtx ctx, MppPortType type, MppPollType timeout); 176 MPP_RET (*dequeue)(MppCtx ctx, MppPortType type, MppTask *task); 186 MPP_RET (*enqueue)(MppCtx ctx, MppPortType type, MppTask task); 242 MPP_RET mpp_init(MppCtx ctx, MppCtxType type, MppCodingType coding); 259 MPP_RET mpp_check_support_format(MppCtxType type, MppCodingType coding);
|
| H A D | mpp_sys_cfg_st.h | 16 MppCodingType type; member 27 MppCodingType type; member 38 MppCodingType type; member 48 MppCodingType type; member
|
| /rockchip-linux_mpp/test/ |
| H A D | mpp_parse_cfg.c | 27 int type; member 124 return op_tbl[i].type; in lookup_opt_type() 167 int type; in parse_options() local 173 type = lookup_opt_type(opt); in parse_options() 175 switch (type) { in parse_options() 219 int type = lookup_opt_type(line); in mpp_parse_config() local 221 switch (type) { in mpp_parse_config()
|
| /rockchip-linux_mpp/mpp/common/ |
| H A D | h264e_syntax.h | 35 #define SYN_TYPE_FLAG(type) (1 << (type)) argument 38 H264eSyntaxType type; member 80 desc[number].type = syn_type; \
|
| /rockchip-linux_mpp/mpp/codec/enc/h264/ |
| H A D | h264e_sei.c | 52 RK_S32 type = H264_SEI_RECOVERY_POINT; in h264e_sei_recovery_point_to_packet() local 73 for (i = 0; i <= type - 255; i += 255) in h264e_sei_recovery_point_to_packet() 77 mpp_writer_put_bits(bit, type - i, 8); in h264e_sei_recovery_point_to_packet() 102 MPP_RET h264e_sei_to_packet(MppPacket packet, RK_S32 *len, RK_S32 type, in h264e_sei_to_packet() argument 135 for (i = 0; i <= type - 255; i += 255) in h264e_sei_to_packet() 139 mpp_writer_put_bits(bit, type - i, 8); in h264e_sei_to_packet()
|