| /rockchip-linux_mpp/utils/ |
| H A D | mpi_enc_utils.c | 107 MpiEncTestArgs *cmd = (MpiEncTestArgs *)ctx; in mpi_enc_opt_i() local 112 cmd->file_input = mpp_calloc(char, len + 1); in mpi_enc_opt_i() 113 strcpy(cmd->file_input, next); in mpi_enc_opt_i() 114 name_to_frame_format(cmd->file_input, &cmd->format); in mpi_enc_opt_i() 116 if (cmd->type_src == MPP_VIDEO_CodingUnused) in mpi_enc_opt_i() 117 name_to_coding_type(cmd->file_input, &cmd->type_src); in mpi_enc_opt_i() 129 MpiEncTestArgs *cmd = (MpiEncTestArgs *)ctx; in mpi_enc_opt_o() local 134 cmd->file_output = mpp_calloc(char, len + 1); in mpi_enc_opt_o() 135 strcpy(cmd->file_output, next); in mpi_enc_opt_o() 136 name_to_coding_type(cmd->file_output, &cmd->type); in mpi_enc_opt_o() [all …]
|
| H A D | mpi_dec_utils.c | 433 MpiDecTestCmd *cmd = (MpiDecTestCmd *)ctx; in mpi_dec_opt_i() local 436 strncpy(cmd->file_input, next, MAX_FILE_NAME_LENGTH - 1); in mpi_dec_opt_i() 437 cmd->have_input = 1; in mpi_dec_opt_i() 438 if (!cmd->type) in mpi_dec_opt_i() 439 name_to_coding_type(cmd->file_input, &cmd->type); in mpi_dec_opt_i() 449 MpiDecTestCmd *cmd = (MpiDecTestCmd *)ctx; in mpi_dec_opt_o() local 452 strncpy(cmd->file_output, next, MAX_FILE_NAME_LENGTH - 1); in mpi_dec_opt_o() 453 cmd->have_output = 1; in mpi_dec_opt_o() 463 MpiDecTestCmd *cmd = (MpiDecTestCmd *)ctx; in mpi_dec_opt_w() local 466 cmd->width = atoi(next); in mpi_dec_opt_w() [all …]
|
| H A D | mpi_dec_utils.h | 138 RK_S32 mpi_dec_test_cmd_init(MpiDecTestCmd* cmd, int argc, char **argv); 139 RK_S32 mpi_dec_test_cmd_deinit(MpiDecTestCmd* cmd); 140 void mpi_dec_test_cmd_options(MpiDecTestCmd* cmd);
|
| H A D | mpi_enc_utils.h | 132 MPP_RET mpi_enc_test_cmd_update_by_args(MpiEncTestArgs* cmd, int argc, char **argv); 133 MPP_RET mpi_enc_test_cmd_put(MpiEncTestArgs* cmd); 135 MPP_RET mpi_enc_test_cmd_show_opt(MpiEncTestArgs* cmd);
|
| /rockchip-linux_mpp/mpp/vproc/rga/test/ |
| H A D | rga_test.c | 38 static RK_S32 rga_test_parse_options(int argc, char **argv, RgaTestCmd *cmd) in rga_test_parse_options() argument 46 if (argc < 2 || cmd == NULL) { in rga_test_parse_options() 70 strncpy(cmd->input_file, next, MAX_NAME_LENGTH - 1); in rga_test_parse_options() 71 cmd->input_file[strlen(next)] = '\0'; in rga_test_parse_options() 72 cmd->have_input = 1; in rga_test_parse_options() 80 strncpy(cmd->output_file, next, MAX_NAME_LENGTH - 1); in rga_test_parse_options() 81 cmd->output_file[strlen(next)] = '\0'; in rga_test_parse_options() 82 cmd->have_output = 1; in rga_test_parse_options() 90 cmd->src_w = atoi(next); in rga_test_parse_options() 98 cmd->src_h = atoi(next); in rga_test_parse_options() [all …]
|
| /rockchip-linux_mpp/test/ |
| H A D | mpi_enc_test.c | 174 MpiEncTestArgs *cmd; // pointer to global command line info member 268 MpiEncTestArgs *cmd = info->cmd; in test_ctx_init() local 273 p->width = cmd->width; in test_ctx_init() 274 p->height = cmd->height; in test_ctx_init() 275 p->hor_stride = (cmd->hor_stride) ? (cmd->hor_stride) : in test_ctx_init() 276 (MPP_ALIGN(cmd->width, 16)); in test_ctx_init() 277 p->ver_stride = (cmd->ver_stride) ? (cmd->ver_stride) : in test_ctx_init() 278 (MPP_ALIGN(cmd->height, 16)); in test_ctx_init() 279 p->fmt = cmd->format; in test_ctx_init() 280 p->type = cmd->type; in test_ctx_init() [all …]
|
| H A D | mpi_enc_mt_test.c | 130 MpiEncTestArgs *cmd; // pointer to global command line info member 146 MpiEncTestArgs *cmd = info->cmd; in mt_test_ctx_init() local 151 p->width = cmd->width; in mt_test_ctx_init() 152 p->height = cmd->height; in mt_test_ctx_init() 153 p->hor_stride = (cmd->hor_stride) ? (cmd->hor_stride) : in mt_test_ctx_init() 154 (MPP_ALIGN(cmd->width, 16)); in mt_test_ctx_init() 155 p->ver_stride = (cmd->ver_stride) ? (cmd->ver_stride) : in mt_test_ctx_init() 156 (MPP_ALIGN(cmd->height, 16)); in mt_test_ctx_init() 157 p->fmt = cmd->format; in mt_test_ctx_init() 158 p->type = cmd->type; in mt_test_ctx_init() [all …]
|
| H A D | mpi_dec_multi_test.c | 26 MpiDecTestCmd *cmd; member 60 MpiDecTestCmd *cmd; // pointer to global command line info member 69 MpiDecTestCmd *cmd = data->cmd; in multi_dec_simple() local 75 FileReader reader = cmd->reader; in multi_dec_simple() 150 if (MPP_FRAME_FMT_IS_FBC(cmd->format)) { in multi_dec_simple() 156 mpp_frame_set_fmt(frm, cmd->format); in multi_dec_simple() 167 grp = dec_buf_mgr_setup(data->buf_mgr, buf_size, 24, cmd->buf_mode); in multi_dec_simple() 205 fps_calc_inc(cmd->fps); in multi_dec_simple() 252 MpiDecTestCmd *cmd = data->cmd; in multi_dec_advanced() local 261 ret = reader_index_read(cmd->reader, 0, &slot); in multi_dec_advanced() [all …]
|
| H A D | vpu_api_test.c | 235 static RK_S32 vpu_encode_demo(VpuApiDemoCmdContext_t *cmd) in vpu_encode_demo() argument 256 if (cmd == NULL) { in vpu_encode_demo() 260 if ((cmd->have_input == 0) || (cmd->width <= 0) || (cmd->height <= 0) in vpu_encode_demo() 261 || (cmd->coding <= OMX_RK_VIDEO_CodingAutoDetect)) { in vpu_encode_demo() 265 if (cmd->have_input) { in vpu_encode_demo() 267 cmd->width, cmd->height, cmd->coding, in vpu_encode_demo() 268 cmd->codec_type == CODEC_DECODER ? "decode" : "encode", in vpu_encode_demo() 269 cmd->input_file); in vpu_encode_demo() 271 pInFile = fopen(cmd->input_file, "rb"); in vpu_encode_demo() 281 if (cmd->have_output) { in vpu_encode_demo() [all …]
|
| H A D | mpi_dec_test.c | 22 MpiDecTestCmd *cmd; member 56 MpiDecTestCmd *cmd = data->cmd; in dec_simple() local 65 ret = reader_read(cmd->reader, &slot); in dec_simple() 75 reader_rewind(cmd->reader); in dec_simple() 138 if (MPP_FRAME_FMT_IS_FBC(cmd->format)) { in dec_simple() 144 mpp_frame_set_fmt(frm, cmd->format); in dec_simple() 155 grp = dec_buf_mgr_setup(data->buf_mgr, buf_size, 24, cmd->buf_mode); in dec_simple() 211 fps_calc_inc(cmd->fps); in dec_simple() 270 MpiDecTestCmd *cmd = data->cmd; in dec_advanced() local 282 ret = reader_index_read(cmd->reader, 0, &slot); in dec_advanced() [all …]
|
| H A D | mpi_dec_nt_test.c | 22 MpiDecTestCmd *cmd; member 56 MpiDecTestCmd *cmd = data->cmd; in dec_loop() local 65 ret = reader_read(cmd->reader, &slot); in dec_loop() 75 reader_rewind(cmd->reader); in dec_loop() 129 if (MPP_FRAME_FMT_IS_FBC(cmd->format)) { in dec_loop() 135 mpp_frame_set_fmt(frm, cmd->format); in dec_loop() 146 grp = dec_buf_mgr_setup(data->buf_mgr, buf_size, 24, cmd->buf_mode); in dec_loop() 206 fps_calc_inc(cmd->fps); in dec_loop() 304 int dec_nt_decode(MpiDecTestCmd *cmd) in dec_nt_decode() argument 315 RK_U32 width = cmd->width; in dec_nt_decode() [all …]
|
| H A D | mpi_dec_mt_test.c | 25 MpiDecTestCmd *cmd; member 110 MpiDecTestCmd *cmd = data->cmd; in thread_output() local 146 if (MPP_FRAME_FMT_IS_FBC(cmd->format)) { in thread_output() 152 mpp_frame_set_fmt(frm, cmd->format); in thread_output() 163 grp = dec_buf_mgr_setup(data->buf_mgr, buf_size, 24, cmd->buf_mode); in thread_output() 207 fps_calc_inc(cmd->fps); in thread_output() 223 int mt_dec_decode(MpiDecTestCmd *cmd) in mt_dec_decode() argument 226 FileReader reader = cmd->reader; in mt_dec_decode() 241 RK_U32 width = cmd->width; in mt_dec_decode() 242 RK_U32 height = cmd->height; in mt_dec_decode() [all …]
|
| /rockchip-linux_mpp/mpp/codec/ |
| H A D | mpp_enc_v2.c | 87 p->output_cb.cmd = ENC_CALLBACK_BASE; in mpp_enc_init_v2() 366 MPP_RET mpp_enc_control_v2(MppEnc ctx, MpiCmd cmd, void *param) in mpp_enc_control_v2() argument 376 if (NULL == param && cmd != MPP_ENC_SET_IDR_FRAME && cmd != MPP_ENC_SET_REF_CFG) { in mpp_enc_control_v2() 377 mpp_err_f("found NULL param enc %p cmd %x\n", enc, cmd); in mpp_enc_control_v2() 383 enc_dbg_ctrl("sending cmd %d param %p\n", cmd, param); in mpp_enc_control_v2() 385 switch (cmd) { in mpp_enc_control_v2() 400 cmd == MPP_ENC_SET_PREP_CFG ? "MPP_ENC_SET_PREP_CFG" : in mpp_enc_control_v2() 401 cmd == MPP_ENC_GET_PREP_CFG ? "MPP_ENC_GET_PREP_CFG" : in mpp_enc_control_v2() 402 cmd == MPP_ENC_SET_RC_CFG ? "MPP_ENC_SET_RC_CFG" : in mpp_enc_control_v2() 403 cmd == MPP_ENC_GET_RC_CFG ? "MPP_ENC_GET_RC_CFG" : in mpp_enc_control_v2() [all …]
|
| H A D | mpp_dec.c | 91 MPP_RET mpp_dec_proc_cfg(MppDecImpl *dec, MpiCmd cmd, void *param) in mpp_dec_proc_cfg() argument 95 mpp_parser_control(dec->parser, cmd, param); in mpp_dec_proc_cfg() 97 ret = mpp_hal_control(dec->hal, cmd, param); in mpp_dec_proc_cfg() 102 switch (cmd) { in mpp_dec_proc_cfg() 138 ret = mpp_dec_set_cfg_by_cmd(dec->cfg_obj, cmd, param); in mpp_dec_proc_cfg() 470 RK_S32 cmd, void *param) in mpp_dec_callback_hal_to_parser() argument 476 mpp_assert(cmd == DEC_PARSER_CALLBACK); in mpp_dec_callback_hal_to_parser() 484 MPP_RET mpp_dec_callback_slot(const char *caller, void *ctx, RK_S32 cmd, void *param) in mpp_dec_callback_slot() argument 487 (void) cmd; in mpp_dec_callback_slot() 538 p->dec_cb.cmd = DEC_PARSER_CALLBACK; in mpp_dec_init() [all …]
|
| /rockchip-linux_mpp/osal/driver/ |
| H A D | mpp_service.c | 58 RK_S32 mpp_service_ioctl(RK_S32 fd, RK_U32 cmd, RK_U32 size, void *param) in mpp_service_ioctl() argument 64 mpp_req.cmd = cmd; in mpp_service_ioctl() 78 MPP_RET mpp_service_check_cmd_valid(RK_U32 cmd, const MppServiceCmdCap *cap) in mpp_service_check_cmd_valid() argument 83 found = (cmd < cap->query_cmd) ? 1 : 0; in mpp_service_check_cmd_valid() 84 found = (cmd >= MPP_CMD_INIT_BASE && cmd < cap->init_cmd) ? 1 : found; in mpp_service_check_cmd_valid() 85 found = (cmd >= MPP_CMD_SEND_BASE && cmd < cap->send_cmd) ? 1 : found; in mpp_service_check_cmd_valid() 86 found = (cmd >= MPP_CMD_POLL_BASE && cmd < cap->poll_cmd) ? 1 : found; in mpp_service_check_cmd_valid() 87 found = (cmd >= MPP_CMD_CONTROL_BASE && cmd < cap->ctrl_cmd) ? 1 : found; in mpp_service_check_cmd_valid() 90 found = (cmd >= MPP_CMD_INIT_BASE && cmd <= MPP_CMD_INIT_TRANS_TABLE) ? 1 : found; in mpp_service_check_cmd_valid() 91 found = (cmd >= MPP_CMD_SEND_BASE && cmd <= MPP_CMD_SET_REG_ADDR_OFFSET) ? 1 : found; in mpp_service_check_cmd_valid() [all …]
|
| H A D | mpp_vcodec_client.c | 22 RK_U32 cmd; member 47 MPP_RET mpp_vcodec_ioctl(RK_S32 fd, RK_U32 cmd, RK_U32 ctrl_cmd, RK_U32 size, void *param) in mpp_vcodec_ioctl() argument 53 req.cmd = cmd; in mpp_vcodec_ioctl()
|
| /rockchip-linux_mpp/mpp/ |
| H A D | mpp.c | 1156 MPP_RET mpp_control(Mpp *mpp, MpiCmd cmd, MppParam param) in mpp_control() argument 1165 mpp_ops_ctrl(mpp->mDump, cmd); in mpp_control() 1168 return mpp->mKmpp->mApi->control(mpp->mKmpp, cmd, param); in mpp_control() 1170 switch (cmd & CMD_MODULE_ID_MASK) { in mpp_control() 1172 ret = mpp_control_osal(mpp, cmd, param); in mpp_control() 1175 mpp_assert(cmd > MPP_CMD_BASE); in mpp_control() 1176 mpp_assert(cmd < MPP_CMD_END); in mpp_control() 1178 ret = mpp_control_mpp(mpp, cmd, param); in mpp_control() 1181 switch (cmd & CMD_CTX_ID_MASK) { in mpp_control() 1184 mpp_assert(cmd > MPP_DEC_CMD_BASE); in mpp_control() [all …]
|
| /rockchip-linux_mpp/mpp/legacy/ |
| H A D | vpu.c | 85 mpp_req.cmd = MPP_CMD_INIT_CLIENT_TYPE; in vpu_api_set_client_type() 107 RK_U32 cmd = (vpu_api_ioctl_version == 0) ? in vpu_api_set_client_type() local 111 ret = ioctl(dev, cmd, client_type); in vpu_api_set_client_type() 208 reqs[0].cmd = MPP_CMD_SET_REG_WRITE; in VPUClientSendReg() 215 reqs[1].cmd = MPP_CMD_SET_REG_READ; in VPUClientSendReg() 223 reqs[2].cmd = MPP_CMD_SET_REG_ADDR_OFFSET; in VPUClientSendReg() 270 RK_S32 VPUClientWaitResult(int socket, RK_U32 *regs, RK_U32 nregs, VPU_CMD_TYPE *cmd, RK_S32 *len) in VPUClientWaitResult() argument 288 mpp_req.cmd = MPP_CMD_POLL_HW_FINISH; in VPUClientWaitResult() 304 *cmd = VPU_SEND_CONFIG_ACK_FAIL; in VPUClientWaitResult() 306 *cmd = VPU_SEND_CONFIG_ACK_OK; in VPUClientWaitResult()
|
| /rockchip-linux_mpp/mpp/inc/ |
| H A D | mpp.h | 215 MPP_RET mpp_control(Mpp *mpp, MpiCmd cmd, MppParam param); 221 MPP_RET mpp_control_mpp(Mpp *mpp, MpiCmd cmd, MppParam param); 222 MPP_RET mpp_control_osal(Mpp *mpp, MpiCmd cmd, MppParam param); 223 MPP_RET mpp_control_codec(Mpp *mpp, MpiCmd cmd, MppParam param); 224 MPP_RET mpp_control_dec(Mpp *mpp, MpiCmd cmd, MppParam param); 225 MPP_RET mpp_control_enc(Mpp *mpp, MpiCmd cmd, MppParam param); 226 MPP_RET mpp_control_isp(Mpp *mpp, MpiCmd cmd, MppParam param);
|
| /rockchip-linux_mpp/kmpp/base/inc/ |
| H A D | kmpp_obj_helper.h | 515 static rk_s32 cmd = -1; \ 525 if (cmd < 0) { \ 526 cmd = kmpp_objdef_get_cmd(def, TO_STR(func)); \ 527 if (cmd < 0) { \ 533 return kmpp_obj_ioctl(ctx, cmd, NULL, NULL, __FUNCTION__); \ 540 static rk_s32 cmd = -1; \ 546 if (cmd < 0) { \ 547 cmd = kmpp_objdef_get_cmd(def, TO_STR(func)); \ 548 if (cmd < 0) { \ 554 return kmpp_obj_ioctl(ctx, cmd, in, NULL, __FUNCTION__); \ [all …]
|
| H A D | kmpp_ioc.h | 15 ENTRY(prefix, u32, rk_u32, cmd, FLAG_NONE, cmd) \
|
| /rockchip-linux_mpp/mpp/vproc/vdpp/ |
| H A D | vdpp.c | 190 mpp_req.cmd = MPP_CMD_INIT_CLIENT_TYPE; in vdpp_init() 342 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_WRITE; in vdpp_start() 349 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_WRITE; in vdpp_start() 356 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_WRITE; in vdpp_start() 363 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_WRITE; in vdpp_start() 370 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_WRITE; in vdpp_start() 377 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_WRITE; in vdpp_start() 389 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_ADDR_OFFSET; in vdpp_start() 396 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_WRITE; in vdpp_start() 403 mpp_req[req_cnt].cmd = MPP_CMD_SET_REG_READ; in vdpp_start() [all …]
|
| /rockchip-linux_mpp/osal/inc/ |
| H A D | mpp_callback.h | 12 typedef MPP_RET (*MppCallBack)(const char *caller, void *ctx, RK_S32 cmd, void *param); 17 RK_S32 cmd; member
|
| /rockchip-linux_mpp/mpp/codec/inc/ |
| H A D | mpp_dec.h | 53 MPP_RET mpp_dec_control(MppDec ctx, MpiCmd cmd, void *param); 58 MPP_RET mpp_dec_set_cfg_by_cmd(MppDecCfg cfg, MpiCmd cmd, void *param);
|
| /rockchip-linux_mpp/osal/driver/inc/ |
| H A D | mpp_service_impl.h | 69 RK_S32 mpp_service_ioctl(RK_S32 fd, RK_U32 cmd, RK_U32 size, void *param); 71 MPP_RET mpp_service_check_cmd_valid(RK_U32 cmd, const MppServiceCmdCap *cap);
|