Lines Matching refs:width
98 RK_S32 width = cfg->width; in vpu_api_set_enc_cfg() local
126 mpp_log("width %4d height %4d format %d:%x\n", width, height, cfg->format, fmt); in vpu_api_set_enc_cfg()
133 mpp_assert(width); in vpu_api_set_enc_cfg()
137 mpp_enc_cfg_set_s32(enc_cfg, "prep:width", width); in vpu_api_set_enc_cfg()
143 mpp_enc_cfg_set_s32(enc_cfg, "prep:hor_stride", MPP_ALIGN(width, 16)); in vpu_api_set_enc_cfg()
149 mpp_enc_cfg_set_s32(enc_cfg, "prep:hor_stride", 2 * MPP_ALIGN(width, 16)); in vpu_api_set_enc_cfg()
153 mpp_enc_cfg_set_s32(enc_cfg, "prep:hor_stride", 3 * MPP_ALIGN(width, 16)); in vpu_api_set_enc_cfg()
159 mpp_enc_cfg_set_s32(enc_cfg, "prep:hor_stride", 4 * MPP_ALIGN(width, 16)); in vpu_api_set_enc_cfg()
234 static int copy_align_raw_buffer_to_dest(RK_U8 *dst, RK_U8 *src, RK_U32 width, in copy_align_raw_buffer_to_dest() argument
242 RK_U32 hor_stride = MPP_ALIGN(width, 16); in copy_align_raw_buffer_to_dest()
251 memcpy(dst_buf + row * hor_stride, src_buf + index, width); in copy_align_raw_buffer_to_dest()
252 index += width; in copy_align_raw_buffer_to_dest()
255 memcpy(dst_u + row * hor_stride, src_buf + index, width); in copy_align_raw_buffer_to_dest()
256 index += width; in copy_align_raw_buffer_to_dest()
261 memcpy(dst_buf + row * hor_stride, src_buf + index, width); in copy_align_raw_buffer_to_dest()
262 index += width; in copy_align_raw_buffer_to_dest()
265 memcpy(dst_u + row * hor_stride / 2, src_buf + index, width / 2); in copy_align_raw_buffer_to_dest()
266 index += width / 2; in copy_align_raw_buffer_to_dest()
269 memcpy(dst_v + row * hor_stride / 2, src_buf + index, width / 2); in copy_align_raw_buffer_to_dest()
270 index += width / 2; in copy_align_raw_buffer_to_dest()
276 memcpy(dst_buf + row * hor_stride * 3, src_buf + row * width * 3, width * 3); in copy_align_raw_buffer_to_dest()
284 memcpy(dst_buf + row * hor_stride * 4, src_buf + row * width * 4, width * 4); in copy_align_raw_buffer_to_dest()
500 vpug.ImgWidth = ctx->width; in init()
707 RK_U32 width = ctx->width; in decode() local
709 RK_U32 hor_stride = MPP_ALIGN(width, 16); in decode()
764 outputCommit.size = width * height * 3 / 2; in decode()
847 aDecOut->data = mpp_malloc(RK_U8, width * height * 3 / 2); in decode()
1078 RK_U32 width = ctx->width; in encode() local
1080 RK_U32 hor_stride = MPP_ALIGN(width, 16); in encode()
1093 mpp_frame_set_width(frame, width); in encode()
1339 RK_U32 width = ctx->width; in encoder_sendframe() local
1341 RK_U32 hor_stride = MPP_ALIGN(width, 16); in encoder_sendframe()
1356 mpp_frame_set_width(frame, width); in encoder_sendframe()
1448 aEncInStrm->buf, width, height, format); in encoder_sendframe()
1458 width, height, fd, size, aEncInStrm->timeUs, aEncInStrm->nFlags); in encoder_sendframe()