Lines Matching refs:reg2_sys
285 regs->reg2_sys.scaledown_mode = SCALEDOWN_HALF; in setup_output_fmt()
287 regs->reg2_sys.scaledown_mode = SCALEDOWN_QUARTER; in setup_output_fmt()
289 regs->reg2_sys.scaledown_mode = SCALEDOWN_ONE_EIGHTS; in setup_output_fmt()
291 regs->reg2_sys.scaledown_mode = SCALEDOWN_DISABLE; in setup_output_fmt()
299 regs->reg2_sys.yuv_out_format = YUV_OUT_FMT_2_NV12; in setup_output_fmt()
305 regs->reg2_sys.yuv_out_format = YUV_OUT_FMT_2_YUYV; in setup_output_fmt()
307 regs->reg2_sys.out_cbcr_swap = 1; in setup_output_fmt()
308 regs->reg2_sys.yuv_out_format = YUV_OUT_FMT_2_YUYV; in setup_output_fmt()
310 regs->reg2_sys.yuv_out_format = YUV_OUT_FMT_2_NV12; in setup_output_fmt()
311 regs->reg2_sys.out_cbcr_swap = 1; in setup_output_fmt()
315 regs->reg2_sys.yuv_out_format = YUV_OUT_FMT_2_RGB888; in setup_output_fmt()
319 regs->reg2_sys.yuv_out_format = YUV_OUT_FMT_2_RGB565; in setup_output_fmt()
328 regs->reg2_sys.yuv2rgb_range = YUV_TO_RGB_FULL_RANGE; in setup_output_fmt()
330 regs->reg2_sys.yuv2rgb_range = YUV_TO_RGB_LIMIT_RANGE; in setup_output_fmt()
333 regs->reg2_sys.yuv_out_format = YUV_OUT_FMT_NO_TRANS; in setup_output_fmt()
338 regs->reg2_sys.dec_out_sequence = OUTPUT_TILE; in setup_output_fmt()
340 regs->reg2_sys.dec_out_sequence = OUTPUT_RASTER; in setup_output_fmt()
344 if ((s->yuv_mode == YUV_MODE_420 && regs->reg2_sys.yuv_out_format == YUV_OUT_FMT_NO_TRANS) || in setup_output_fmt()
345 (regs->reg2_sys.yuv_out_format == YUV_OUT_FMT_2_NV12)) in setup_output_fmt()
346 regs->reg2_sys.fill_down_e = 1; in setup_output_fmt()
348 regs->reg2_sys.fill_down_e = s->fill_bottom; in setup_output_fmt()
349 regs->reg2_sys.fill_right_e = s->fill_right; in setup_output_fmt()
414 out_width = out_width >> regs->reg2_sys.scaledown_mode; in jpegd_gen_regs()
416 out_height = regs->reg2_sys.fill_down_e ? MPP_ALIGN(out_height, 16) : MPP_ALIGN(out_height, 8); in jpegd_gen_regs()
417 out_height = out_height >> regs->reg2_sys.scaledown_mode; in jpegd_gen_regs()
418 …jpegd_dbg_hal("output scale %d, width %d, height %d\n", regs->reg2_sys.scaledown_mode, out_width, … in jpegd_gen_regs()
424 switch (regs->reg2_sys.yuv_out_format) { in jpegd_gen_regs()
455 if (regs->reg2_sys.dec_out_sequence == OUTPUT_TILE) { in jpegd_gen_regs()
458 switch (regs->reg2_sys.yuv_out_format) { in jpegd_gen_regs()