Home
last modified time | relevance | path

Searched refs:chroma_format_idc (Results 1 – 25 of 35) sorted by relevance

12

/rockchip-linux_mpp/mpp/codec/dec/h264/
H A Dh264d_sps.c178 cur_sps->chroma_format_idc = 1; in parser_sps()
217 READ_UE(p_bitctx, &cur_sps->chroma_format_idc); in parser_sps()
219 VAL_CHECK (ret, (cur_sps->chroma_format_idc <= H264_CHROMA_444)); in parser_sps()
221 if (cur_sps->chroma_format_idc > H264_CHROMA_422) { in parser_sps()
222 H264D_ERR("ERROR: Not support chroma_format_idc %d", cur_sps->chroma_format_idc); in parser_sps()
401 p_Vid->yuv_format = sps->chroma_format_idc; in update_video_pars()
418 crop_left = SubWidthC [sps->chroma_format_idc] * sps->frame_crop_left_offset; in update_video_pars()
419 crop_right = SubWidthC [sps->chroma_format_idc] * sps->frame_crop_right_offset; in update_video_pars()
420 …crop_top = SubHeightC[sps->chroma_format_idc] * ( 2 - sps->frame_mbs_only_flag ) * sps->frame_c… in update_video_pars()
421 …crop_bottom = SubHeightC[sps->chroma_format_idc] * ( 2 - sps->frame_mbs_only_flag ) * sps->frame_c… in update_video_pars()
H A Dh264d_scalist.c89 for (i = 6; i < ((sps->chroma_format_idc != H264_CHROMA_444) ? 8 : 12); ++i) { in set_sps_scanlist_matrix()
134 for (i = 6; i < ((sps->chroma_format_idc != H264_CHROMA_444) ? 8 : 12); ++i) { in set_pps_scanlist_matrix()
317 for (i = 0; i < ((sps->chroma_format_idc != H264_CHROMA_444) ? 2 : 6); ++i) { in parse_sps_scalinglists()
H A Dh264d_slice.c120 if (currSlice->active_sps->chroma_format_idc) { in pred_weight_table()
129 if (currSlice->active_sps->chroma_format_idc) { in pred_weight_table()
147 if (currSlice->active_sps->chroma_format_idc) { in pred_weight_table()
278 ret |= (sps->chroma_format_idc >= 3); in check_sps_pps()
H A Dh264d_fill.c86 for (i = 6; i < ((p_Vid->active_sps->chroma_format_idc != H264_CHROMA_444) ? 8 : 12); ++i) { in fill_scanlist()
140 pp->chroma_format_idc = p_Vid->active_sps->chroma_format_idc; in fill_picparams()
H A Dh264d_dpb.c819 fs->frame->chroma_format_idc = fs->top_field->chroma_format_idc; in dpb_combine_field_yuv()
956 fs->bottom_field->chroma_format_idc = p->chroma_format_idc; in write_unpaired_field()
969 fs->top_field->chroma_format_idc = p->chroma_format_idc; in write_unpaired_field()
1207 fs_top->chroma_format_idc = fs_btm->chroma_format_idc = frame->chroma_format_idc; in dpb_split_field()
H A Dh264d_pps.c49 for (i = 0; i < ((sps->chroma_format_idc != 3) ? 2 : 6); ++i) { in parse_pps_calingLists()
H A Dh264d_global.h332 RK_S32 chroma_format_idc; member
527 RK_S32 chroma_format_idc; // ue(v) member
/rockchip-linux_mpp/mpp/codec/enc/h264/
H A Dh264e_sps.c162 sps->chroma_format_idc = (fmt == MPP_FMT_YUV400) ? H264_CHROMA_400 : H264_CHROMA_420; in h264e_sps_update()
304 mpp_writer_put_ue(bit, sps->chroma_format_idc); in h264e_sps_to_packet()
345 mpp_writer_put_ue(bit, sps->crop.left / SubWidthC[sps->chroma_format_idc]); in h264e_sps_to_packet()
347 mpp_writer_put_ue(bit, sps->crop.right / SubWidthC[sps->chroma_format_idc]); in h264e_sps_to_packet()
349 mpp_writer_put_ue(bit, sps->crop.top / SubHeightC[sps->chroma_format_idc]); in h264e_sps_to_packet()
351 mpp_writer_put_ue(bit, sps->crop.bottom / SubHeightC[sps->chroma_format_idc]); in h264e_sps_to_packet()
H A Dh264e_sps.h96 RK_S32 chroma_format_idc; member
/rockchip-linux_mpp/mpp/hal/rkdec/h264d/
H A Dhal_h264d_vdpu384a.c91 RK_U32 chroma_format_idc; member
168 mpp_put_bits(&bp, pp->chroma_format_idc, 2); in prepare_spspps()
683 RK_U32 chroma_format_idc = p_hal->pp->chroma_format_idc; in h264d_refine_rcb_size() local
688 if (chroma_format_idc == 0) in h264d_refine_rcb_size()
706 if (chroma_format_idc == 1 || chroma_format_idc == 2) in h264d_refine_rcb_size()
730 RK_U32 chroma_format_idc = p_hal->pp->chroma_format_idc; in hal_h264d_rcb_info_update() local
736 ctx->chroma_format_idc != chroma_format_idc || in hal_h264d_rcb_info_update()
760 ctx->chroma_format_idc = chroma_format_idc; in hal_h264d_rcb_info_update()
H A Dhal_h264d_vdpu34x.c157 RK_U32 chroma_format_idc; member
366 mpp_put_bits(&bp, pp->chroma_format_idc, 2); in prepare_spspps()
801 RK_U32 chroma_format_idc = p_hal->pp->chroma_format_idc; in h264d_refine_rcb_size() local
838 rcb_bits = (chroma_format_idc > 1) ? (2 * width * bit_depth) : 0; in h264d_refine_rcb_size()
851 RK_U32 chroma_format_idc = p_hal->pp->chroma_format_idc; in hal_h264d_rcb_info_update() local
857 ctx->chroma_format_idc != chroma_format_idc || in hal_h264d_rcb_info_update()
877 if (mbaff && 2 == chroma_format_idc) in hal_h264d_rcb_info_update()
884 ctx->chroma_format_idc = chroma_format_idc; in hal_h264d_rcb_info_update()
H A Dhal_h264d_vdpu383.c104 RK_U32 chroma_format_idc; member
181 mpp_put_bits(&bp, pp->chroma_format_idc, 2); in prepare_spspps()
732 RK_U32 chroma_format_idc = p_hal->pp->chroma_format_idc; in h264d_refine_rcb_size() local
737 if (chroma_format_idc == 0) in h264d_refine_rcb_size()
755 if (chroma_format_idc == 1 || chroma_format_idc == 2) in h264d_refine_rcb_size()
779 RK_U32 chroma_format_idc = p_hal->pp->chroma_format_idc; in hal_h264d_rcb_info_update() local
785 ctx->chroma_format_idc != chroma_format_idc || in hal_h264d_rcb_info_update()
808 ctx->chroma_format_idc = chroma_format_idc; in hal_h264d_rcb_info_update()
H A Dhal_h264d_vdpu382.c161 RK_U32 chroma_format_idc; member
372 mpp_put_bits(&bp, pp->chroma_format_idc, 2); in prepare_spspps()
830 RK_U32 chroma_format_idc = p_hal->pp->chroma_format_idc; in h264d_refine_rcb_size() local
863 rcb_bits = width * ((chroma_format_idc ? 1 : 0) + 1) * 11; in h264d_refine_rcb_size()
875 rcb_bits = (chroma_format_idc > 1) ? (2 * width * bit_depth) : 0; in h264d_refine_rcb_size()
889 RK_U32 chroma_format_idc = p_hal->pp->chroma_format_idc; in hal_h264d_rcb_info_update() local
895 ctx->chroma_format_idc != chroma_format_idc || in hal_h264d_rcb_info_update()
918 ctx->chroma_format_idc = chroma_format_idc; in hal_h264d_rcb_info_update()
H A Dhal_h264d_rkv_reg.c265 mpp_put_bits(&bp, pp->chroma_format_idc, 2); in prepare_spspps()
461 if (pp->chroma_format_idc == 0) { //!< Y400 in set_registers()
463 } else if (pp->chroma_format_idc == 1) { //!< Y420 in set_registers()
465 } else if (pp->chroma_format_idc == 2) { //!< Y422 in set_registers()
H A Dhal_h264d_vdpu1.c622 * ((p_hal->pp->chroma_format_idc == 0) ? 256 : 384); in vdpu1_set_asic_regs()
647 && pp->chroma_format_idc == 0) ? 1 : 0; in vdpu1_set_asic_regs()
/rockchip-linux_mpp/mpp/common/
H A Davs2d_syntax.h25 RK_U32 chroma_format_idc : 2; member
H A Dh264d_syntax.h51 RK_U16 chroma_format_idc : 2; member
338 RK_U16 chroma_format_idc : 2; member
H A Dh265d_syntax.h76 USHORT chroma_format_idc : 2; member
H A Dh265e_syntax_new.h37 RK_U16 chroma_format_idc : 2; member
/rockchip-linux_mpp/mpp/codec/dec/h265/
H A Dh265d_ps.c662 if (openhevc_sps->chroma_format_idc != sps->chroma_format_idc) { in compare_sps()
1249 if (sps->chroma_format_idc == H265_CHROMA_420) { in decode_vui()
1254 } else if (sps->chroma_format_idc == H265_CHROMA_422) { in decode_vui()
1396 if (sps->chroma_format_idc == H265_CHROMA_444) { in scaling_list_data()
1469 READ_UE(gb, &sps->chroma_format_idc); in mpp_hevc_decode_nal_sps()
1471 if (sps->chroma_format_idc == H265_CHROMA_444) in mpp_hevc_decode_nal_sps()
1484 if (sps->chroma_format_idc == H265_CHROMA_420) { in mpp_hevc_decode_nal_sps()
1489 } else if (sps->chroma_format_idc == H265_CHROMA_422) { in mpp_hevc_decode_nal_sps()
1511 switch (sps->chroma_format_idc) { in mpp_hevc_decode_nal_sps()
H A Dh265d_parser.c331 if (s->sps->chroma_format_idc != 0) { in pred_weight_table()
345 if (s->sps->chroma_format_idc != 0) { // FIXME: invert "if" and "for" in pred_weight_table()
387 if (s->sps->chroma_format_idc != 0) { in pred_weight_table()
907 if (s->sps->chroma_format_idc) { in hls_slice_header()
/rockchip-linux_mpp/mpp/hal/rkdec/h265d/
H A Dhal_h265d_vdpu384a.c378 mpp_put_bits(&bp, dxva_ctx->pp.chroma_format_idc, 2); in hal_h265d_v345_output_pps_packet()
651 RK_U32 chroma_fmt_idc = pp->chroma_format_idc;//0 400,1 4202 ,422,3 444 in h265d_refine_rcb_size()
728 RK_U32 chroma_fmt_idc = pp->chroma_format_idc;//0 400,1 4202 ,422,3 444 in hal_h265d_rcb_info_update()
879 RK_U32 chroma_fmt_idc = dxva_ctx->pp.chroma_format_idc; in hal_h265d_vdpu384a_gen_regs()
H A Dhal_h265d_vdpu34x.c253 mpp_put_bits(&bp, dxva_cxt->pp.chroma_format_idc , 2); in hal_h265d_v345_output_pps_packet()
479 mpp_put_bits(&bp, dxva_cxt->pp.chroma_format_idc , 2); in hal_h265d_output_pps_packet()
674 RK_U32 chroma_fmt_idc = pp->chroma_format_idc;//0 400,1 4202 ,422,3 444 in h265d_refine_rcb_size()
777 RK_U32 chroma_fmt_idc = pp->chroma_format_idc;//0 400,1 4202 ,422,3 444 in hal_h265d_rcb_info_update()
H A Dhal_h265d_vdpu383.c410 mpp_put_bits(&bp, dxva_ctx->pp.chroma_format_idc, 2); in hal_h265d_v345_output_pps_packet()
655 RK_U32 chroma_fmt_idc = pp->chroma_format_idc;//0 400,1 4202 ,422,3 444 in h265d_refine_rcb_size()
732 RK_U32 chroma_fmt_idc = pp->chroma_format_idc;//0 400,1 4202 ,422,3 444 in hal_h265d_rcb_info_update()
967 RK_U32 chroma_fmt_idc = dxva_ctx->pp.chroma_format_idc; in hal_h265d_vdpu383_gen_regs()
H A Dhal_h265d_vdpu382.c246 mpp_put_bits(&bp, dxva_cxt->pp.chroma_format_idc , 2); in hal_h265d_v382_output_pps_packet()
445 RK_U32 chroma_fmt_idc = pp->chroma_format_idc;//0 400,1 420 ,2 422,3 444 in h265d_refine_rcb_size()
548 RK_U32 chroma_fmt_idc = pp->chroma_format_idc;//0 400,1 4202 ,422,3 444 in hal_h265d_rcb_info_update()

12