Lines Matching refs:nal

54 static void h265e_nal_encode(RK_U8 *dst, H265eNal *nal)  in h265e_nal_encode()  argument
58 RK_U8 *src = nal->p_payload; in h265e_nal_encode()
59 RK_U8 *end = nal->p_payload + nal->i_payload; in h265e_nal_encode()
74 mpp_writer_put_bits(&s, nal->i_type, 6);//nal_unit_type in h265e_nal_encode()
76 mpp_writer_put_bits(&s, nal->temporal_id + 1, 3); //nuh_temporal_id_plus1 in h265e_nal_encode()
90 nal->i_payload = size + 4; in h265e_nal_encode()
91 nal->p_payload = orig_dst; in h265e_nal_encode()
102 H265eNal *nal = out->nal; in h265e_encapsulate_nals() local
106 nal_size += nal[i].i_payload; in h265e_encapsulate_nals()
111 necessary_size += nal[i].i_padding; in h265e_encapsulate_nals()
114 nal[i].b_long_startcode = !i || in h265e_encapsulate_nals()
115 nal[i].i_type == NAL_VPS || in h265e_encapsulate_nals()
116 nal[i].i_type == NAL_SPS || in h265e_encapsulate_nals()
117 nal[i].i_type == NAL_PPS || in h265e_encapsulate_nals()
119 h265e_nal_encode(nal_buffer, &nal[i]); in h265e_encapsulate_nals()
120 nal_buffer += nal[i].i_payload; in h265e_encapsulate_nals()
643 H265eNal *nal = &out->nal[out->nal_num]; in h265e_nal_start() local
645 nal->i_ref_idc = i_ref_idc; in h265e_nal_start()
646 nal->i_type = i_type; in h265e_nal_start()
647 nal->b_long_startcode = 1; in h265e_nal_start()
649 nal->i_payload = 0; in h265e_nal_start()
651 nal->p_payload = &s->buf[s->enc_stream.byte_cnt]; in h265e_nal_start()
652 nal->i_padding = 0; in h265e_nal_start()
654 nal->temporal_id = out->temporal_id; in h265e_nal_start()
659 H265eNal *nal = &(out->nal[out->nal_num]); in h265e_nal_end() local
663 nal->i_payload = (RK_S32)(end - nal->p_payload); in h265e_nal_end()
779 src->nal[k].i_type, src->nal[k].i_payload); in h265e_get_extra_info()
780 mpp_packet_write(pkt_out, offset, src->nal[k].p_payload, src->nal[k].i_payload); in h265e_get_extra_info()
781 mpp_packet_add_segment_info(pkt_out, src->nal[k].i_type, in h265e_get_extra_info()
782 offset, src->nal[k].i_payload); in h265e_get_extra_info()
783 offset += src->nal[k].i_payload; in h265e_get_extra_info()