/hardware/intel/img/psb_video/src/ |
D | vsp_cmdbuf.h | 74 …fset, buf) vsp_cmdbuf_add_relocation(cmdbuf, (uint32_t*)(dest), buf, offset, 0XFFFFFFFF, 0, 0, 0, … 88 #define vsp_cmdbuf_insert_command(cmdbuf,context_id, ref_buf,type,offset,size) \ argument 89 do { *cmdbuf->cmd_idx++ = context_id; *cmdbuf->cmd_idx++ = type;\ 90 VSP_RELOC_CMDBUF(cmdbuf->cmd_idx++, offset, ref_buf);\ 91 *cmdbuf->cmd_idx++ = size; *cmdbuf->cmd_idx++ = 0;\ 92 *cmdbuf->cmd_idx++ = 0; *cmdbuf->cmd_idx++ = 0; \ 93 *cmdbuf->cmd_idx++ = wsbmKBufHandle(wsbmKBuf((ref_buf)->drm_buf));} while(0) 97 …do { vsp_cmdbuf_add_relocation(cmdbuf, (uint32_t*)(pic_param_dest), ref_buf, offset, 0XFFFFFFFF, 0… 98 #define vsp_cmdbuf_fence_pic_param(cmdbuf, pic_param_handler) \ argument 99 …cmdbuf->cmd_idx++ = 0; *cmdbuf->cmd_idx++ = VspFencePictureParamCommand; *cmdbuf->cmd_idx++ = pic_… [all …]
|
D | psb_cmdbuf.c | 74 #define MTXMSG_END(cmdbuf) (cmdbuf->reloc_base) argument 75 #define RELOC_END(cmdbuf) (cmdbuf->MTX_msg + cmdbuf->reloc_size) argument 77 #define CMD_END(cmdbuf) (cmdbuf->lldma_base) argument 78 #define LLDMA_END(cmdbuf) (cmdbuf->cmd_base + cmdbuf->size) argument 97 psb_cmdbuf_p cmdbuf in psb_cmdbuf_create() argument 105 cmdbuf->size = 0; in psb_cmdbuf_create() 106 cmdbuf->reloc_size = 0; in psb_cmdbuf_create() 107 cmdbuf->regio_size = 0; in psb_cmdbuf_create() 108 cmdbuf->MTX_msg = NULL; in psb_cmdbuf_create() 109 cmdbuf->cmd_base = NULL; in psb_cmdbuf_create() [all …]
|
D | tng_cmdbuf.c | 59 #define RELOC_END(cmdbuf) (cmdbuf->cmd_base + cmdbuf->size) argument 60 #define CMD_END(cmdbuf) (cmdbuf->reloc_base) argument 80 void tng_cmdbuf_mem_unmap(tng_cmdbuf_p cmdbuf) in tng_cmdbuf_mem_unmap() argument 82 psb_buffer_unmap(&cmdbuf->frame_mem); in tng_cmdbuf_mem_unmap() 83 psb_buffer_unmap(&cmdbuf->jpeg_pic_params); in tng_cmdbuf_mem_unmap() 84 psb_buffer_unmap(&cmdbuf->jpeg_header_mem); in tng_cmdbuf_mem_unmap() 85 psb_buffer_unmap(&cmdbuf->jpeg_header_interface_mem); in tng_cmdbuf_mem_unmap() 92 static void tng_cmdbuf_clear(tng_cmdbuf_p cmdbuf, int flag) in tng_cmdbuf_clear() argument 97 psb_buffer_destroy(&cmdbuf->jpeg_header_mem); in tng_cmdbuf_clear() 99 psb_buffer_destroy(&cmdbuf->jpeg_pic_params); in tng_cmdbuf_clear() [all …]
|
D | vsp_cmdbuf.c | 50 vsp_cmdbuf_p cmdbuf) in vsp_cmdbuf_create() argument 56 cmdbuf->size = 0; in vsp_cmdbuf_create() 57 cmdbuf->cmd_base = NULL; in vsp_cmdbuf_create() 58 cmdbuf->cmd_idx = NULL; in vsp_cmdbuf_create() 59 cmdbuf->reloc_base = NULL; in vsp_cmdbuf_create() 60 cmdbuf->reloc_idx = NULL; in vsp_cmdbuf_create() 61 cmdbuf->buffer_refs_count = 0; in vsp_cmdbuf_create() 62 cmdbuf->buffer_refs_allocated = 10; in vsp_cmdbuf_create() 63 …cmdbuf->buffer_refs = (psb_buffer_p *) calloc(1, sizeof(psb_buffer_p) * cmdbuf->buffer_refs_alloca… in vsp_cmdbuf_create() 64 if (NULL == cmdbuf->buffer_refs) { in vsp_cmdbuf_create() [all …]
|
D | pnw_cmdbuf.c | 52 #define RELOC_END(cmdbuf) (cmdbuf->cmd_base + cmdbuf->size) argument 54 #define CMD_END(cmdbuf) (cmdbuf->reloc_base) argument 76 pnw_cmdbuf_p cmdbuf) in pnw_cmdbuf_create() argument 82 cmdbuf->size = 0; in pnw_cmdbuf_create() 83 cmdbuf->cmd_base = NULL; in pnw_cmdbuf_create() 84 cmdbuf->cmd_idx = NULL; in pnw_cmdbuf_create() 85 cmdbuf->reloc_base = NULL; in pnw_cmdbuf_create() 86 cmdbuf->reloc_idx = NULL; in pnw_cmdbuf_create() 87 cmdbuf->buffer_refs_count = 0; in pnw_cmdbuf_create() 88 cmdbuf->buffer_refs_allocated = 10; in pnw_cmdbuf_create() [all …]
|
D | psb_cmdbuf.h | 112 psb_cmdbuf_p cmdbuf); 117 void psb_cmdbuf_destroy(psb_cmdbuf_p cmdbuf); 124 int psb_cmdbuf_reset(psb_cmdbuf_p cmdbuf); 131 int psb_cmdbuf_unmap(psb_cmdbuf_p cmdbuf); 138 int psb_cmdbuf_buffer_ref(psb_cmdbuf_p cmdbuf, psb_buffer_p buf); 148 void psb_cmdbuf_add_relocation(psb_cmdbuf_p cmdbuf, 157 #define RELOC(dest, offset, buf) psb_cmdbuf_add_relocation(cmdbuf, (uint32_t*) &dest, buf, o… 158 #define RELOC_MSG(dest, offset, buf) psb_cmdbuf_add_relocation(cmdbuf, (uint32_t*) &dest, buf, o… 159 #define RELOC_SHIFT4(dest, offset, background, buf) psb_cmdbuf_add_relocation(cmdbuf, (uint32_t… 160 #define RELOC_REGIO(dest, offset, buf, dst) psb_cmdbuf_add_relocation(cmdbuf, (uint32_t*) &dest… [all …]
|
D | tng_cmdbuf.h | 149 tng_cmdbuf_p cmdbuf 155 void tng_cmdbuf_destroy(tng_cmdbuf_p cmdbuf); 162 int tng_cmdbuf_reset(tng_cmdbuf_p cmdbuf); 169 int tng_cmdbuf_unmap(tng_cmdbuf_p cmdbuf); 176 int tng_cmdbuf_buffer_ref(tng_cmdbuf_p cmdbuf, psb_buffer_p buf); 186 void tng_cmdbuf_add_relocation(tng_cmdbuf_p cmdbuf, 196 …buf) tng_cmdbuf_add_relocation(cmdbuf, (IMG_UINT32*)(dest), buf, offset, 0XFFFFFFFF, 0, 0, 0, (… 198 …, buf) tng_cmdbuf_add_relocation(cmdbuf, (IMG_UINT32*)(dest), buf, offset, 0XFFFFFFFF, 0, 0, 3,(… 205 …uf) tng_cmdbuf_add_relocation(cmdbuf, (IMG_UINT32*)(dest), buf, offset, 0XFFFFFFFF, 0, 0, 3,… 212 …uf) tng_cmdbuf_add_relocation(cmdbuf, (IMG_UINT32*)(dest), buf, offset, 0XFFFFFFFF, 0, 0, 3,… [all …]
|
D | pnw_MPEG2.c | 899 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in psb__MPEG2_write_VLC_tables() local 901 psb_cmdbuf_skip_start_block(cmdbuf, SKIP_ON_CONTEXT_SWITCH); in psb__MPEG2_write_VLC_tables() 904 psb_cmdbuf_dma_write_cmdbuf(cmdbuf, &ctx->vlc_packed_table, 0, in psb__MPEG2_write_VLC_tables() 910 psb_cmdbuf_reg_start_block(cmdbuf, 0); in psb__MPEG2_write_VLC_tables() 911 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_ADDR0), ADDR0); in psb__MPEG2_write_VLC_tables() 912 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_ADDR1), ADDR1); in psb__MPEG2_write_VLC_tables() 913 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_ADDR2), ADDR2); in psb__MPEG2_write_VLC_tables() 914 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_ADDR3), ADDR3); in psb__MPEG2_write_VLC_tables() 915 …psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_INITIAL_WIDTH0), WIDTH0); in psb__MPEG2_write_VLC_tables() 916 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_INITIAL_OPCODE0), OPCODE0); in psb__MPEG2_write_VLC_tables() [all …]
|
D | pnw_cmdbuf.h | 122 pnw_cmdbuf_p cmdbuf 128 void pnw_cmdbuf_destroy(pnw_cmdbuf_p cmdbuf); 135 int pnw_cmdbuf_reset(pnw_cmdbuf_p cmdbuf); 142 int pnw_cmdbuf_unmap(pnw_cmdbuf_p cmdbuf); 149 int pnw_cmdbuf_buffer_ref(pnw_cmdbuf_p cmdbuf, psb_buffer_p buf); 159 void pnw_cmdbuf_add_relocation(pnw_cmdbuf_p cmdbuf, 169 …, buf) pnw_cmdbuf_add_relocation(cmdbuf, (uint32_t*)(dest), buf, offset, 0XFFFFFFFF, 0, 0, 0, … 172 …fset, buf) pnw_cmdbuf_add_relocation(cmdbuf, (uint32_t*)(dest), buf, offset, 0XFFFFFFFF, 0, 0, 1, … 175 …buf) pnw_cmdbuf_add_relocation(cmdbuf, (uint32_t*)(dest), buf, offset, 0XFFFFFFFF, 0, 0, 2,(… 184 do { *cmdbuf->cmd_idx++ = param; } while(0) [all …]
|
D | tng_VP8.c | 767 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in tng__VP8_set_target_picture() local 769 …psb_cmdbuf_rendec_start(cmdbuf, RENDEC_REGISTER_OFFSET(MSVDX_CMDS, LUMA_RECONSTRUCTED_PICTURE_BASE… in tng__VP8_set_target_picture() 771 …psb_cmdbuf_rendec_write_address(cmdbuf, &target_surface->buf, target_surface->buf.buffer_ofs + tar… in tng__VP8_set_target_picture() 772 …psb_cmdbuf_rendec_write_address(cmdbuf, &target_surface->buf, target_surface->buf.buffer_ofs + tar… in tng__VP8_set_target_picture() 773 psb_cmdbuf_rendec_end(cmdbuf); in tng__VP8_set_target_picture() 780 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in tng__VP8_set_reference_picture() local 785 …psb_cmdbuf_rendec_start(cmdbuf, RENDEC_REGISTER_OFFSET(MSVDX_CMDS, REFERENCE_PICTURE_BASE_ADDRESSE… in tng__VP8_set_reference_picture() 788 … psb_cmdbuf_rendec_write_address(cmdbuf, &last_ref_surface->buf, last_ref_surface->buf.buffer_ofs); in tng__VP8_set_reference_picture() 789 …psb_cmdbuf_rendec_write_address(cmdbuf, &last_ref_surface->buf, last_ref_surface->buf.buffer_ofs +… in tng__VP8_set_reference_picture() 792 …psb_cmdbuf_rendec_write_address(cmdbuf, &golden_ref_surface->buf, golden_ref_surface->buf.buffer_o… in tng__VP8_set_reference_picture() [all …]
|
D | pnw_H264.c | 860 psb_cmdbuf_p cmdbuf = obj_context->cmdbuf; in psb__H264_process_slice_header_group() local 863 uint32_t *msg = (uint32_t *)cmdbuf->MTX_msg; in psb__H264_process_slice_header_group() 868 if (cmdbuf->cmd_count) { in psb__H264_process_slice_header_group() 937 cmdbuf->parse_count++; in psb__H264_process_slice_header_group() 959 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in psb__H264_build_SCA_chunk() local 969 psb_cmdbuf_rendec_start(cmdbuf, REG_MSVDX_VEC_IQRAM_OFFSET); in psb__H264_build_SCA_chunk() 972 psb_cmdbuf_rendec_write_block(cmdbuf, iq_matrix->ScalingList8x8[1], SCALING_LIST_8x8_SIZE); in psb__H264_build_SCA_chunk() 975 psb_cmdbuf_rendec_write_block(cmdbuf, iq_matrix->ScalingList8x8[0], SCALING_LIST_8x8_SIZE); in psb__H264_build_SCA_chunk() 978 psb_cmdbuf_rendec_write_block(cmdbuf, iq_matrix->ScalingList4x4[0], SCALING_LIST_4x4_SIZE); in psb__H264_build_SCA_chunk() 981 psb_cmdbuf_rendec_write_block(cmdbuf, iq_matrix->ScalingList4x4[3], SCALING_LIST_4x4_SIZE); in psb__H264_build_SCA_chunk() [all …]
|
D | vsp_vp8.c | 295 vsp_cmdbuf_p cmdbuf = ctx->obj_context->vsp_cmdbuf; in vsp_vp8_process_seqence_param() local 303 (struct VssVp8encSequenceParameterBuffer *)cmdbuf->seq_param_p; in vsp_vp8_process_seqence_param() 306 (struct ref_frame_surface*)cmdbuf->ref_param_p; in vsp_vp8_process_seqence_param() 349 cmdbuf->param_mem_loc, seq); in vsp_vp8_process_seqence_param() 354 vsp_cmdbuf_insert_command(cmdbuf, CONTEXT_VP8_ID, &cmdbuf->param_mem, in vsp_vp8_process_seqence_param() 368 vsp_cmdbuf_p cmdbuf = ctx->obj_context->vsp_cmdbuf; in vsp_vp8_process_dynamic_seqence_param() local 372 (struct VssVp8encSequenceParameterBuffer *)cmdbuf->seq_param_p; in vsp_vp8_process_dynamic_seqence_param() 379 vsp_cmdbuf_insert_command(cmdbuf, CONTEXT_VP8_ID, &cmdbuf->param_mem, in vsp_vp8_process_dynamic_seqence_param() 397 vsp_cmdbuf_p cmdbuf = ctx->obj_context->vsp_cmdbuf; in vsp_vp8_process_picture_param() local 402 (struct VssVp8encPictureParameterBuffer *)cmdbuf->pic_param_p; in vsp_vp8_process_picture_param() [all …]
|
D | pnw_MPEG4.c | 1648 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in psb__MPEG4_write_qmatrices() local 1657 psb_cmdbuf_rendec_start(cmdbuf, REG_MSVDX_VEC_IQRAM_OFFSET); in psb__MPEG4_write_qmatrices() 1663 psb_cmdbuf_rendec_write(cmdbuf, ctx->qmatrix_data[NONINTRA_LUMA_Q][i]); in psb__MPEG4_write_qmatrices() 1667 psb_cmdbuf_rendec_write(cmdbuf, 0); in psb__MPEG4_write_qmatrices() 1673 psb_cmdbuf_rendec_write(cmdbuf, ctx->qmatrix_data[INTRA_LUMA_Q][i]); in psb__MPEG4_write_qmatrices() 1677 psb_cmdbuf_rendec_write(cmdbuf, 0); in psb__MPEG4_write_qmatrices() 1681 psb_cmdbuf_rendec_end(cmdbuf); in psb__MPEG4_write_qmatrices() 1702 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in psb__MPEG4_write_VLC_tables() local 1704 psb_cmdbuf_skip_start_block(cmdbuf, SKIP_ON_CONTEXT_SWITCH); in psb__MPEG4_write_VLC_tables() 1707 psb_cmdbuf_dma_write_cmdbuf(cmdbuf, &ctx->vlc_packed_table, 0, in psb__MPEG4_write_VLC_tables() [all …]
|
D | tng_jpegdec.c | 613 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in tng__JPEG_write_qmatrices() local 616 psb_cmdbuf_rendec_start(cmdbuf, REG_MSVDX_VEC_IQRAM_OFFSET); in tng__JPEG_write_qmatrices() 619 psb_cmdbuf_rendec_write(cmdbuf, ctx->rendec_qmatrix[0][i]); in tng__JPEG_write_qmatrices() 622 psb_cmdbuf_rendec_write(cmdbuf, ctx->rendec_qmatrix[1][i]); in tng__JPEG_write_qmatrices() 625 psb_cmdbuf_rendec_write(cmdbuf, ctx->rendec_qmatrix[2][i]); in tng__JPEG_write_qmatrices() 628 psb_cmdbuf_rendec_write(cmdbuf, ctx->rendec_qmatrix[3][i]); in tng__JPEG_write_qmatrices() 631 psb_cmdbuf_rendec_end(cmdbuf); in tng__JPEG_write_qmatrices() 666 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in tng__JPEG_write_huffman_tables() local 670 psb_cmdbuf_dma_write_cmdbuf(cmdbuf, &ctx->vlc_packed_table, 0, in tng__JPEG_write_huffman_tables() 675 psb_cmdbuf_reg_start_block(cmdbuf, 0); in tng__JPEG_write_huffman_tables() [all …]
|
D | vsp_compose.c | 52 vsp_cmdbuf_p cmdbuf = ctx->obj_context->vsp_cmdbuf; in vsp_compose_process_pipeline_param() local 62 cell_compose_param = (struct VssWiDi_ComposeSequenceParameterBuffer *)cmdbuf->compose_param_p; in vsp_compose_process_pipeline_param() 66 vsp_cmdbuf_compose_end(cmdbuf); in vsp_compose_process_pipeline_param() 68 vsp_cmdbuf_vpp_context(cmdbuf, VssGenDestroyContext, CONTEXT_COMPOSE_ID, 0); in vsp_compose_process_pipeline_param() 80 vsp_cmdbuf_vpp_context(cmdbuf, VssGenInitializeContext, CONTEXT_COMPOSE_ID, VSP_APP_ID_WIDI_ENC); in vsp_compose_process_pipeline_param() 122 cmdbuf->param_mem_loc, in vsp_compose_process_pipeline_param() 135 cmdbuf->param_mem_loc, in vsp_compose_process_pipeline_param() 151 cmdbuf->param_mem_loc, in vsp_compose_process_pipeline_param() 198 vsp_cmdbuf_insert_command(cmdbuf, in vsp_compose_process_pipeline_param() 200 &cmdbuf->param_mem, in vsp_compose_process_pipeline_param() [all …]
|
D | vsp_VPP.c | 395 vsp_cmdbuf_p cmdbuf = ctx->obj_context->vsp_cmdbuf; in vsp__VPP_process_pipeline_param() local 398 …meterBuffer *cell_proc_picture_param = (struct VssProcPictureParameterBuffer *)cmdbuf->pic_param_p; in vsp__VPP_process_pipeline_param() 399 …ctureParameterBuffer *cell_end_param = (struct VssProcPictureParameterBuffer *)cmdbuf->end_param_p; in vsp__VPP_process_pipeline_param() 462 vsp_cmdbuf_vpp_context(cmdbuf, VssGenInitializeContext, CONTEXT_VPP_ID, VSP_APP_ID_FRC_VPP); in vsp__VPP_process_pipeline_param() 535 vsp_cmdbuf_insert_command(cmdbuf, CONTEXT_VPP_ID, &cmdbuf->param_mem, VssProcPictureCommand, in vsp__VPP_process_pipeline_param() 538 vsp_cmdbuf_vpp_context(cmdbuf, VssGenDestroyContext, CONTEXT_VPP_ID, 0); in vsp__VPP_process_pipeline_param() 574 cmdbuf->param_mem_loc, cell_proc_picture_param); in vsp__VPP_process_pipeline_param() 682 cmdbuf->param_mem_loc, cell_proc_picture_param); in vsp__VPP_process_pipeline_param() 709 vsp_cmdbuf_insert_command(cmdbuf, CONTEXT_VPP_ID, &cmdbuf->param_mem, VssProcPictureCommand, in vsp__VPP_process_pipeline_param() 712 vsp_cmdbuf_fence_pic_param(cmdbuf, wsbmKBufHandle(wsbmKBuf(cmdbuf->param_mem.drm_buf))); in vsp__VPP_process_pipeline_param() [all …]
|
D | pnw_hostcode.c | 182 pnw_cmdbuf_p cmdbuf, in LoadMPEG4Bias() argument 197 *cmdbuf->cmd_idx++ = cmd_word; in LoadMPEG4Bias() 198 pCount = cmdbuf->cmd_idx; in LoadMPEG4Bias() 199 cmdbuf->cmd_idx++; in LoadMPEG4Bias() 241 pnw_cmdbuf_p cmdbuf, IMG_INT32 i32Core, IMG_UINT8 __maybe_unused ui8THSkip) in LoadH263Bias() argument 253 *cmdbuf->cmd_idx++ = cmd_word; in LoadH263Bias() 254 pCount = cmdbuf->cmd_idx; in LoadH263Bias() 255 cmdbuf->cmd_idx++; in LoadH263Bias() 299 pnw_cmdbuf_p cmdbuf, IMG_INT32 i32Core, IMG_UINT8 ui8THSkip, IMG_INT8 i8QpOff) in LoadH264Bias() argument 310 *cmdbuf->cmd_idx++ = cmd_word; in LoadH264Bias() [all …]
|
/hardware/intel/img/psb_video/src/mrst/ |
D | lnc_cmdbuf.c | 52 #define RELOC_END(cmdbuf) (cmdbuf->cmd_base + cmdbuf->size) argument 54 #define CMD_END(cmdbuf) (cmdbuf->reloc_base) argument 75 lnc_cmdbuf_p cmdbuf) in lnc_cmdbuf_create() argument 81 cmdbuf->size = 0; in lnc_cmdbuf_create() 82 cmdbuf->cmd_base = NULL; in lnc_cmdbuf_create() 83 cmdbuf->cmd_idx = NULL; in lnc_cmdbuf_create() 84 cmdbuf->reloc_base = NULL; in lnc_cmdbuf_create() 85 cmdbuf->reloc_idx = NULL; in lnc_cmdbuf_create() 86 cmdbuf->buffer_refs_count = 0; in lnc_cmdbuf_create() 87 cmdbuf->buffer_refs_allocated = 10; in lnc_cmdbuf_create() [all …]
|
D | lnc_cmdbuf.h | 101 lnc_cmdbuf_p cmdbuf 107 void lnc_cmdbuf_destroy(lnc_cmdbuf_p cmdbuf); 114 int lnc_cmdbuf_reset(lnc_cmdbuf_p cmdbuf); 121 int lnc_cmdbuf_unmap(lnc_cmdbuf_p cmdbuf); 128 int lnc_cmdbuf_buffer_ref(lnc_cmdbuf_p cmdbuf, psb_buffer_p buf); 138 void lnc_cmdbuf_add_relocation(lnc_cmdbuf_p cmdbuf, 148 …fset, buf) lnc_cmdbuf_add_relocation(cmdbuf, (uint32_t*)(dest), buf, offset, 0XFFFFFFFF, 0, 0, 0, … 151 …, buf) lnc_cmdbuf_add_relocation(cmdbuf, (uint32_t*)(dest), buf, offset, 0XFFFFFFFF, 0, 0, 1, … 154 …et, buf) lnc_cmdbuf_add_relocation(cmdbuf, (uint32_t*)(dest), buf, offset, 0XFFFFFFFF, 0, 0, 2,(… 157 #define lnc_cmdbuf_insert_command(cmdbuf,cmdhdr,size,hint) \ argument [all …]
|
D | psb_MPEG2.c | 897 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in psb__MPEG2_write_VLC_tables() local 901 psb_cmdbuf_reg_start_block(cmdbuf, 0); in psb__MPEG2_write_VLC_tables() 902 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_ADDR0), ADDR0); in psb__MPEG2_write_VLC_tables() 903 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_ADDR1), ADDR1); in psb__MPEG2_write_VLC_tables() 904 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_ADDR2), ADDR2); in psb__MPEG2_write_VLC_tables() 905 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_ADDR3), ADDR3); in psb__MPEG2_write_VLC_tables() 906 …psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_INITIAL_WIDTH0), WIDTH0); in psb__MPEG2_write_VLC_tables() 907 … psb_cmdbuf_reg_set(cmdbuf, REGISTER_OFFSET(MSVDX_VEC, CR_VEC_VLC_TABLE_INITIAL_OPCODE0), OPCODE0); in psb__MPEG2_write_VLC_tables() 908 psb_cmdbuf_reg_end_block(cmdbuf); in psb__MPEG2_write_VLC_tables() 912 psb_cmdbuf_lldma_write_cmdbuf(cmdbuf, &ctx->vlc_packed_table, 0, in psb__MPEG2_write_VLC_tables() [all …]
|
D | psb_H264.c | 821 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in psb__H264_build_SCA_chunk() local 831 psb_cmdbuf_rendec_start_chunk(cmdbuf, REG_MSVDX_VEC_IQRAM_OFFSET); in psb__H264_build_SCA_chunk() 834 psb_cmdbuf_rendec_write_block(cmdbuf, iq_matrix->ScalingList8x8[1], SCALING_LIST_8x8_SIZE); in psb__H264_build_SCA_chunk() 837 psb_cmdbuf_rendec_write_block(cmdbuf, iq_matrix->ScalingList8x8[0], SCALING_LIST_8x8_SIZE); in psb__H264_build_SCA_chunk() 840 psb_cmdbuf_rendec_write_block(cmdbuf, iq_matrix->ScalingList4x4[0], SCALING_LIST_4x4_SIZE); in psb__H264_build_SCA_chunk() 843 psb_cmdbuf_rendec_write_block(cmdbuf, iq_matrix->ScalingList4x4[3], SCALING_LIST_4x4_SIZE); in psb__H264_build_SCA_chunk() 846 psb_cmdbuf_rendec_write_block(cmdbuf, iq_matrix->ScalingList4x4[4], SCALING_LIST_4x4_SIZE); in psb__H264_build_SCA_chunk() 849 psb_cmdbuf_rendec_write_block(cmdbuf, iq_matrix->ScalingList4x4[1], SCALING_LIST_4x4_SIZE); in psb__H264_build_SCA_chunk() 852 psb_cmdbuf_rendec_write_block(cmdbuf, iq_matrix->ScalingList4x4[5], SCALING_LIST_4x4_SIZE); in psb__H264_build_SCA_chunk() 855 psb_cmdbuf_rendec_write_block(cmdbuf, iq_matrix->ScalingList4x4[2], SCALING_LIST_4x4_SIZE); in psb__H264_build_SCA_chunk() [all …]
|
D | psb_MPEG4.c | 827 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in psb__MPEG4_write_qmatrices() local 835 psb_cmdbuf_rendec_start_block(cmdbuf); in psb__MPEG4_write_qmatrices() 836 psb_cmdbuf_rendec_start_chunk(cmdbuf, REG_MSVDX_VEC_IQRAM_OFFSET); in psb__MPEG4_write_qmatrices() 842 psb_cmdbuf_rendec_write(cmdbuf, ctx->qmatrix_data[NONINTRA_LUMA_Q][i]); in psb__MPEG4_write_qmatrices() 846 psb_cmdbuf_rendec_write(cmdbuf, 0); in psb__MPEG4_write_qmatrices() 852 psb_cmdbuf_rendec_write(cmdbuf, ctx->qmatrix_data[INTRA_LUMA_Q][i]); in psb__MPEG4_write_qmatrices() 856 psb_cmdbuf_rendec_write(cmdbuf, 0); in psb__MPEG4_write_qmatrices() 860 psb_cmdbuf_rendec_end_chunk(cmdbuf); in psb__MPEG4_write_qmatrices() 861 psb_cmdbuf_rendec_end_block(cmdbuf); in psb__MPEG4_write_qmatrices() 903 psb_cmdbuf_p cmdbuf = ctx->obj_context->cmdbuf; in psb__MPEG4_write_VLC_tables() local [all …]
|
D | psb_MPEG2MC.c | 146 psb_cmdbuf_p const cmdbuf, in psb__MPEG2MC_send_interPB_prediction() argument 292 …psb_cmdbuf_reg_set(cmdbuf , REGISTER_OFFSET(MSVDX_CMDS, INTER_BLOCK_PREDICTION) + pred_offset, cmd… in psb__MPEG2MC_send_interPB_prediction() 317 psb_cmdbuf_p cmdbuf, in psb__MPEG2MC_send_motion_vectores() argument 340 psb_cmdbuf_reg_set(cmdbuf , REGISTER_OFFSET(MSVDX_CMDS, MOTION_VECTOR) , cmd); in psb__MPEG2MC_send_motion_vectores() 346 psb_cmdbuf_reg_set(cmdbuf , REGISTER_OFFSET(MSVDX_CMDS, MOTION_VECTOR) , cmd); in psb__MPEG2MC_send_motion_vectores() 353 … psb_cmdbuf_reg_set(cmdbuf , REGISTER_OFFSET(MSVDX_CMDS, MOTION_VECTOR) + 0x10 , cmd); in psb__MPEG2MC_send_motion_vectores() 370 psb_cmdbuf_reg_set(cmdbuf , REGISTER_OFFSET(MSVDX_CMDS, MOTION_VECTOR) , cmd); in psb__MPEG2MC_send_motion_vectores() 384 … psb_cmdbuf_reg_set(cmdbuf , REGISTER_OFFSET(MSVDX_CMDS, MOTION_VECTOR) + 0x10 , cmd); in psb__MPEG2MC_send_motion_vectores() 388 psb__MPEG2MC_send_interPB_prediction(ctx, cmdbuf, mb_param, IMG_TRUE); in psb__MPEG2MC_send_motion_vectores() 395 … psb_cmdbuf_reg_set(cmdbuf , REGISTER_OFFSET(MSVDX_CMDS, MOTION_VECTOR) + 0x40 , cmd); in psb__MPEG2MC_send_motion_vectores() [all …]
|
D | psb_deblock.c | 74 … *cmdbuf->regio_idx++ = (group##_##reg##_##OFFSET + group##_##BASE) | MSVDX_DEBLOCK_REG_SET; \ 75 *cmdbuf->regio_idx++ = value; reg_set_count++; 78 … *cmdbuf->regio_idx++ = (group##_##reg##_##OFFSET + group##_##BASE) | MSVDX_DEBLOCK_REG_SET; \ 79 RELOC_REGIO(*cmdbuf->regio_idx++, buffer_offset, buffer, dst); reg_set_count++; 82 …*cmdbuf->regio_idx++ = ( (group##_##reg##_OFFSET + group##_##BASE + index*group##_##reg##_STRIDE) … 83 *cmdbuf->regio_idx++ = value; reg_set_count++; 86 …*cmdbuf->regio_idx++ = (group##_##reg##_##OFFSET + group##_##BASE) | MSVDX_DEBLOCK_REG_GET; reg_ge… 90 …*cmdbuf->regio_idx++ = (MSVDX_CORE_CR_MSVDX_COMMAND_SPACE_OFFSET + MSVDX_CORE_BASE) | MSVDX_DEBLOC… 91 *cmdbuf->regio_idx++ = NumCommands; reg_poll_n++; 97 …*cmdbuf->regio_idx++ = (MSVDX_CORE_CR_MSVDX_COMMAND_SPACE_OFFSET + MSVDX_CORE_BASE) | MSVDX_DEBLOC… [all …]
|
D | lnc_hostcode.c | 185 lnc_cmdbuf_p cmdbuf; in lnc_BeginPicture() local 200 cmdbuf = ctx->obj_context->lnc_cmdbuf; in lnc_BeginPicture() 203 vaStatus = psb_buffer_map(&cmdbuf->pic_params, &cmdbuf->pic_params_p); in lnc_BeginPicture() 207 vaStatus = psb_buffer_map(&cmdbuf->header_mem, &cmdbuf->header_mem_p); in lnc_BeginPicture() 209 psb_buffer_unmap(&cmdbuf->pic_params); in lnc_BeginPicture() 213 vaStatus = psb_buffer_map(&cmdbuf->slice_params, &cmdbuf->slice_params_p); in lnc_BeginPicture() 215 psb_buffer_unmap(&cmdbuf->pic_params); in lnc_BeginPicture() 216 psb_buffer_unmap(&cmdbuf->header_mem); in lnc_BeginPicture() 221 cmdbuf->topaz_in_params_I_p = NULL; in lnc_BeginPicture() 222 cmdbuf->topaz_in_params_P_p = NULL; in lnc_BeginPicture() [all …]
|