Lines Matching refs:bit
263 MppWriteCtx *bit = &bit_ctx; in h264e_sps_to_packet() local
268 mpp_writer_init(bit, p, buf_size); in h264e_sps_to_packet()
271 mpp_writer_put_raw_bits(bit, 0, 24); in h264e_sps_to_packet()
272 mpp_writer_put_raw_bits(bit, 1, 8); in h264e_sps_to_packet()
274 mpp_writer_put_raw_bits(bit, 0, 1); in h264e_sps_to_packet()
276 mpp_writer_put_raw_bits(bit, H264_NALU_PRIORITY_HIGHEST, 2); in h264e_sps_to_packet()
278 mpp_writer_put_raw_bits(bit, H264_NALU_TYPE_SPS, 5); in h264e_sps_to_packet()
281 mpp_writer_put_bits(bit, sps->profile_idc, 8); in h264e_sps_to_packet()
283 mpp_writer_put_bits(bit, sps->constraint_set0, 1); in h264e_sps_to_packet()
285 mpp_writer_put_bits(bit, sps->constraint_set1, 1); in h264e_sps_to_packet()
287 mpp_writer_put_bits(bit, sps->constraint_set2, 1); in h264e_sps_to_packet()
289 mpp_writer_put_bits(bit, sps->constraint_set3, 1); in h264e_sps_to_packet()
291 mpp_writer_put_bits(bit, sps->constraint_set4, 1); in h264e_sps_to_packet()
293 mpp_writer_put_bits(bit, sps->constraint_set5, 1); in h264e_sps_to_packet()
295 mpp_writer_put_bits(bit, 0, 2); in h264e_sps_to_packet()
298 mpp_writer_put_bits(bit, sps->level_idc, 8); in h264e_sps_to_packet()
300 mpp_writer_put_ue(bit, sps->sps_id); in h264e_sps_to_packet()
304 mpp_writer_put_ue(bit, sps->chroma_format_idc); in h264e_sps_to_packet()
306 mpp_writer_put_ue(bit, 0); in h264e_sps_to_packet()
308 mpp_writer_put_ue(bit, 0); in h264e_sps_to_packet()
310 mpp_writer_put_bits(bit, 0, 1); in h264e_sps_to_packet()
312 mpp_writer_put_bits(bit, 0, 1); in h264e_sps_to_packet()
316 mpp_writer_put_ue(bit, sps->log2_max_frame_num_minus4); in h264e_sps_to_packet()
321 mpp_writer_put_ue(bit, cfg->h264.poc_type); in h264e_sps_to_packet()
324 mpp_writer_put_ue(bit, sps->log2_max_poc_lsb_minus4); in h264e_sps_to_packet()
328 mpp_writer_put_ue(bit, sps->num_ref_frames); in h264e_sps_to_packet()
330 mpp_writer_put_bits(bit, sps->gaps_in_frame_num_value_allowed, 1); in h264e_sps_to_packet()
333 mpp_writer_put_ue(bit, sps->pic_width_in_mbs - 1); in h264e_sps_to_packet()
335 mpp_writer_put_ue(bit, sps->pic_height_in_mbs - 1); in h264e_sps_to_packet()
338 mpp_writer_put_bits(bit, sps->frame_mbs_only, 1); in h264e_sps_to_packet()
340 mpp_writer_put_bits(bit, sps->direct8x8_inference, 1); in h264e_sps_to_packet()
342 mpp_writer_put_bits(bit, sps->cropping, 1); 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()
355 mpp_writer_put_bits(bit, sps->vui.vui_en, 1); in h264e_sps_to_packet()
360 mpp_writer_put_bits(bit, vui->aspect_ratio_info_present, 1); in h264e_sps_to_packet()
363 mpp_writer_put_bits(bit, vui->aspect_ratio_idc, 8); in h264e_sps_to_packet()
366 mpp_writer_put_bits(bit, vui->sar_width, 16); in h264e_sps_to_packet()
368 mpp_writer_put_bits(bit, vui->sar_height, 16); in h264e_sps_to_packet()
373 mpp_writer_put_bits(bit, vui->overscan_info_present, 1); in h264e_sps_to_packet()
376 mpp_writer_put_bits(bit, vui->overscan_appropriate_flag, 1); in h264e_sps_to_packet()
380 mpp_writer_put_bits(bit, vui->signal_type_present, 1); in h264e_sps_to_packet()
383 mpp_writer_put_bits(bit, vui->vidformat, 3); in h264e_sps_to_packet()
385 mpp_writer_put_bits(bit, vui->fullrange, 1); in h264e_sps_to_packet()
387 mpp_writer_put_bits(bit, vui->color_description_present, 1); in h264e_sps_to_packet()
390 mpp_writer_put_bits(bit, vui->colorprim, 8); in h264e_sps_to_packet()
392 mpp_writer_put_bits(bit, vui->colortrc, 8); in h264e_sps_to_packet()
394 mpp_writer_put_bits(bit, vui->colmatrix, 8); in h264e_sps_to_packet()
399 mpp_writer_put_bits(bit, vui->chroma_loc_info_present, 1); in h264e_sps_to_packet()
402 mpp_writer_put_ue(bit, vui->chroma_loc_top); in h264e_sps_to_packet()
404 mpp_writer_put_ue(bit, vui->chroma_loc_bottom); in h264e_sps_to_packet()
408 mpp_writer_put_bits(bit, vui->timing_info_present, 1); in h264e_sps_to_packet()
411 mpp_writer_put_bits(bit, vui->num_units_in_tick >> 16, 16); in h264e_sps_to_packet()
413 mpp_writer_put_bits(bit, vui->num_units_in_tick & 0xffff, 16); in h264e_sps_to_packet()
415 mpp_writer_put_bits(bit, vui->time_scale >> 16, 16); in h264e_sps_to_packet()
417 mpp_writer_put_bits(bit, vui->time_scale & 0xffff, 16); in h264e_sps_to_packet()
419 mpp_writer_put_bits(bit, vui->fixed_frame_rate, 1); in h264e_sps_to_packet()
423 mpp_writer_put_bits(bit, vui->nal_hrd_parameters_present, 1); in h264e_sps_to_packet()
425 mpp_writer_put_bits(bit, vui->vcl_hrd_parameters_present, 1); in h264e_sps_to_packet()
427 mpp_writer_put_bits(bit, vui->pic_struct_present, 1); in h264e_sps_to_packet()
430 mpp_writer_put_bits(bit, vui->bitstream_restriction, 1); in h264e_sps_to_packet()
433 mpp_writer_put_bits(bit, vui->motion_vectors_over_pic_boundaries, 1); in h264e_sps_to_packet()
435 mpp_writer_put_ue(bit, vui->max_bytes_per_pic_denom); in h264e_sps_to_packet()
437 mpp_writer_put_ue(bit, vui->max_bits_per_mb_denom); in h264e_sps_to_packet()
439 mpp_writer_put_ue(bit, vui->log2_max_mv_length_horizontal); in h264e_sps_to_packet()
441 mpp_writer_put_ue(bit, vui->log2_max_mv_length_vertical); in h264e_sps_to_packet()
443 mpp_writer_put_ue(bit, vui->num_reorder_frames); in h264e_sps_to_packet()
445 mpp_writer_put_ue(bit, vui->max_dec_frame_buffering); in h264e_sps_to_packet()
449 mpp_writer_trailing(bit); in h264e_sps_to_packet()
451 sps_size = mpp_writer_bytes(bit); in h264e_sps_to_packet()