Lines Matching refs:ps_codec

690 IHEVCD_ERROR_T ihevcd_fmt_conv(codec_t *ps_codec,  in ihevcd_fmt_conv()  argument
728 ps_disp_pic = ps_codec->ps_disp_buf; in ihevcd_fmt_conv()
734 …pu1_luma += ps_codec->i4_strd * ps_sps->i2_pic_crop_top_offset * crop_unit_y + ps_sps->i2_pic_c… in ihevcd_fmt_conv()
737 …pu1_chroma += ps_codec->i4_strd * ps_sps->i2_pic_crop_top_offset + ps_sps->i2_pic_crop_left_offse… in ihevcd_fmt_conv()
740 is_u_first = (IV_YUV_420SP_UV == ps_codec->e_ref_chroma_fmt) ? 1 : 0; in ihevcd_fmt_conv()
744 if(1 == ps_codec->i4_share_disp_buf) in ihevcd_fmt_conv()
752 pu1_y_src = pu1_luma + cur_row * ps_codec->i4_strd; in ihevcd_fmt_conv()
753 pu1_uv_src = pu1_chroma + (cur_row / 2) * ps_codec->i4_strd; in ihevcd_fmt_conv()
756 if((1 == ps_codec->i4_share_disp_buf) && (IV_YUV_420P == ps_codec->e_chroma_fmt)) in ihevcd_fmt_conv()
759 for(i = 0; i < ps_codec->i4_share_disp_buf_cnt; i++) in ihevcd_fmt_conv()
761 WORD32 diff = ps_disp_pic->pu1_luma - ps_codec->s_disp_buffer[i].pu1_bufs[0]; in ihevcd_fmt_conv()
762 if(diff == (ps_codec->i4_strd * PAD_TOP + PAD_LEFT)) in ihevcd_fmt_conv()
764 pu1_u_dst = ps_codec->s_disp_buffer[i].pu1_bufs[1]; in ihevcd_fmt_conv()
765 pu1_u_dst += (ps_codec->i4_strd * PAD_TOP) / 4 + (PAD_LEFT / 2); in ihevcd_fmt_conv()
767 pu1_v_dst = ps_codec->s_disp_buffer[i].pu1_bufs[2]; in ihevcd_fmt_conv()
768 pu1_v_dst += (ps_codec->i4_strd * PAD_TOP) / 4 + (PAD_LEFT / 2); in ihevcd_fmt_conv()
774 pu2_rgb_dst_tmp += cur_row * ps_codec->i4_disp_strd; in ihevcd_fmt_conv()
776 pu4_rgb_dst_tmp += cur_row * ps_codec->i4_disp_strd; in ihevcd_fmt_conv()
777 pu1_y_dst_tmp = pu1_y_dst + cur_row * ps_codec->i4_disp_strd; in ihevcd_fmt_conv()
778 pu1_uv_dst_tmp = pu1_u_dst + (cur_row / 2) * ps_codec->i4_disp_strd; in ihevcd_fmt_conv()
779 pu1_u_dst_tmp = pu1_u_dst + (cur_row / 2) * ps_codec->i4_disp_strd / 2; in ihevcd_fmt_conv()
780 pu1_v_dst_tmp = pu1_v_dst + (cur_row / 2) * ps_codec->i4_disp_strd / 2; in ihevcd_fmt_conv()
789 …if((0 == ps_codec->i4_flush_mode) && (ps_codec->i4_disp_buf_id == ps_proc->i4_cur_pic_buf_id) && (… in ihevcd_fmt_conv()
815 pu1_buf = (ps_codec->pu1_proc_map + idx + ctb_in_row); in ihevcd_fmt_conv()
831 … if((IV_YUV_420SP_UV == ps_codec->e_chroma_fmt) || (IV_YUV_420SP_VU == ps_codec->e_chroma_fmt)) in ihevcd_fmt_conv()
834 ps_codec->s_func_selector.ihevcd_fmt_conv_420sp_to_420sp_fptr(pu1_y_src, pu1_uv_src, in ihevcd_fmt_conv()
836 ps_codec->i4_disp_wd, in ihevcd_fmt_conv()
838 ps_codec->i4_strd, in ihevcd_fmt_conv()
839 ps_codec->i4_strd, in ihevcd_fmt_conv()
840 ps_codec->i4_disp_strd, in ihevcd_fmt_conv()
841 ps_codec->i4_disp_strd); in ihevcd_fmt_conv()
843 else if(IV_YUV_420P == ps_codec->e_chroma_fmt) in ihevcd_fmt_conv()
850 WORD32 num_cols = ps_codec->i4_disp_wd; in ihevcd_fmt_conv()
855 pu1_y_dst_tmp += ps_codec->i4_disp_strd; in ihevcd_fmt_conv()
856 pu1_y_src += ps_codec->i4_strd; in ihevcd_fmt_conv()
862 ps_codec->s_func_selector.ihevcd_fmt_conv_420sp_to_420p_fptr(pu1_y_src, pu1_uv_src, in ihevcd_fmt_conv()
864 ps_codec->i4_disp_wd, in ihevcd_fmt_conv()
866 ps_codec->i4_strd, in ihevcd_fmt_conv()
867 ps_codec->i4_strd, in ihevcd_fmt_conv()
868 ps_codec->i4_disp_strd, in ihevcd_fmt_conv()
869 … (ps_codec->i4_disp_strd / 2), in ihevcd_fmt_conv()
874 else if(IV_RGB_565 == ps_codec->e_chroma_fmt) in ihevcd_fmt_conv()
877 ps_codec->s_func_selector.ihevcd_fmt_conv_420sp_to_rgb565_fptr(pu1_y_src, pu1_uv_src, in ihevcd_fmt_conv()
879 ps_codec->i4_disp_wd, in ihevcd_fmt_conv()
881 ps_codec->i4_strd, in ihevcd_fmt_conv()
882 ps_codec->i4_strd, in ihevcd_fmt_conv()
883 ps_codec->i4_disp_strd, in ihevcd_fmt_conv()
887 else if(IV_RGBA_8888 == ps_codec->e_chroma_fmt) in ihevcd_fmt_conv()
891 ps_codec->s_func_selector.ihevcd_fmt_conv_420sp_to_rgba8888_fptr(pu1_y_src, in ihevcd_fmt_conv()
894 ps_codec->i4_disp_wd, in ihevcd_fmt_conv()
896 ps_codec->i4_strd, in ihevcd_fmt_conv()
897 ps_codec->i4_strd, in ihevcd_fmt_conv()
898 ps_codec->i4_disp_strd, in ihevcd_fmt_conv()