Lines Matching refs:s
61 MppWriteCtx s; in h265e_nal_encode() local
72 mpp_writer_init(&s, dst, 10); in h265e_nal_encode()
73 mpp_writer_put_bits(&s, 0, 1); //forbidden_zero_bit in h265e_nal_encode()
74 mpp_writer_put_bits(&s, nal->i_type, 6);//nal_unit_type in h265e_nal_encode()
75 mpp_writer_put_bits(&s, 0, 6); //nuh_reserved_zero_6bits in h265e_nal_encode()
76 mpp_writer_put_bits(&s, nal->temporal_id + 1, 3); //nuh_temporal_id_plus1 in h265e_nal_encode()
130 static MPP_RET h265e_write_recovery_point(H265eStream * s, RK_U32 recovery_frame_cnt) in h265e_write_recovery_point() argument
132 h265e_stream_write_se_with_log(s, recovery_frame_cnt, NULL); in h265e_write_recovery_point()
133 h265e_stream_write1_with_log(s, 1, NULL); in h265e_write_recovery_point()
134 h265e_stream_write1_with_log(s, 0, NULL); in h265e_write_recovery_point()
135 h265e_stream_rbsp_trailing(s); in h265e_write_recovery_point()
139 static MPP_RET h265e_sei_write(H265eStream *s, RK_U8 uuid[16], const RK_U8 *payload, in h265e_sei_write() argument
148 h265e_stream_realign(s); in h265e_sei_write()
167 h265e_stream_write_with_log(s, 0xff, 8, in h265e_sei_write()
170 h265e_stream_write_with_log(s, payload_type - i, 8, in h265e_sei_write()
174 h265e_stream_write_with_log(s, 0xff, 8, in h265e_sei_write()
177 h265e_stream_write_with_log(s, payload_size - i, 8, in h265e_sei_write()
183 h265e_stream_write_with_log(s, uuid[i], 8, NULL); in h265e_sei_write()
185 h265e_stream_write_with_log(s, (RK_U32) payload[i], 8, NULL); in h265e_sei_write()
186 h265e_stream_rbsp_trailing(s); in h265e_sei_write()
189 h265e_write_recovery_point(s, ((RK_U32 *)payload)[0]); in h265e_sei_write()
232 void codeProfileTier(H265eStream *s, ProfileTierLevel* ptl) in codeProfileTier() argument
235 h265e_stream_write_with_log(s, ptl->m_profileSpace, 2, "profile_space[]"); in codeProfileTier()
236 h265e_stream_write1_with_log(s, ptl->m_tierFlag, "tier_flag[]"); in codeProfileTier()
237 h265e_stream_write_with_log(s, ptl->m_profileIdc, 5, "profile_idc[]"); in codeProfileTier()
239 …h265e_stream_write1_with_log(s, ptl->m_profileCompatibilityFlag[j], "profile_compatibility_flag[][… in codeProfileTier()
242 …h265e_stream_write1_with_log(s, ptl->m_progressiveSourceFlag, "general_progressive_source_flag"); in codeProfileTier()
243 … h265e_stream_write1_with_log(s, ptl->m_interlacedSourceFlag, "general_interlaced_source_flag"); in codeProfileTier()
244 …h265e_stream_write1_with_log(s, ptl->m_nonPackedConstraintFlag, "general_non_packed_constraint_fla… in codeProfileTier()
245 …h265e_stream_write1_with_log(s, ptl->m_frameOnlyConstraintFlag, "general_frame_only_constraint_fla… in codeProfileTier()
248 …h265e_stream_write1_with_log(s, ptl->m_max12bitConstraintFlag , "general_max_12_bit_constraint_fla… in codeProfileTier()
249 …h265e_stream_write1_with_log(s, ptl->m_max10bitConstraintFlag, "general_max_10_bit_constraint_flag… in codeProfileTier()
250 …h265e_stream_write1_with_log(s, ptl->m_max8bitConstraintFlag, "general_max_8_bit_constraint_flag"… in codeProfileTier()
251 …h265e_stream_write1_with_log(s, ptl->m_max422chromaConstraintFlag, "general_max_422chroma_constrai… in codeProfileTier()
252 …h265e_stream_write1_with_log(s, ptl->m_max420chromaConstraintFlag, "general_max_420chroma_constrai… in codeProfileTier()
253 …h265e_stream_write1_with_log(s, ptl->m_maxMonochromaConstraintFlag, "general_max_monochroma_constr… in codeProfileTier()
254 … h265e_stream_write1_with_log(s, ptl->m_intraConstraintFlag, "general_intra_constraint_flag"); in codeProfileTier()
255 …h265e_stream_write1_with_log(s, ptl->m_onePictureConstraintFlag, "general_one_picture_constraint_f… in codeProfileTier()
256 …h265e_stream_write1_with_log(s, ptl->m_lowerBitRateConstraintFlag, "general_lower_bit_rate_constra… in codeProfileTier()
257 h265e_stream_write_with_log(s, 0, 16, "reserved_zero_35bits[0..15]"); in codeProfileTier()
258 h265e_stream_write_with_log(s, 0, 16, "reserved_zero_35bits[16..31]"); in codeProfileTier()
259 h265e_stream_write_with_log(s, 0, 3, "eserved_zero_35bits[32..34]"); in codeProfileTier()
261 h265e_stream_write_with_log(s, 0, 16, "reserved_zero_44bits[0..15]"); in codeProfileTier()
262 h265e_stream_write_with_log(s, 0, 16, "reserved_zero_44bits[16..31]"); in codeProfileTier()
263 h265e_stream_write_with_log(s, 0, 12, "eserved_zero_44bits[32..43]"); in codeProfileTier()
267 void codePTL(H265eStream *s, H265ePTL* ptl, RK_U32 profilePresentFlag, int maxNumSubLayersMinus1) in codePTL() argument
271 codeProfileTier(s, &ptl->m_generalPTL); in codePTL()
273 h265e_stream_write_with_log(s, ptl->m_generalPTL.m_levelIdc, 8, "general_level_idc"); in codePTL()
277 …h265e_stream_write1_with_log(s, ptl->m_subLayerProfilePresentFlag[i], "sub_layer_profile_present_f… in codePTL()
280 …h265e_stream_write1_with_log(s, ptl->m_subLayerLevelPresentFlag[i], "sub_layer_level_present_flag[… in codePTL()
285 h265e_stream_write_with_log(s, 0, 2, "reserved_zero_2bits"); in codePTL()
291 codeProfileTier(s, &ptl->m_subLayerPTL[i]); // sub_layer_... in codePTL()
294 … h265e_stream_write_with_log(s, ptl->m_subLayerPTL[i].m_levelIdc, 8, "sub_layer_level_idc[i]"); in codePTL()
299 static MPP_RET h265e_vps_write(H265eVps *vps, H265eStream *s) in h265e_vps_write() argument
305 h265e_stream_realign(s); in h265e_vps_write()
306 vps_byte_start = s->enc_stream.byte_cnt; in h265e_vps_write()
307 h265e_stream_write_with_log(s, vps->m_VPSId, 4, "vps_video_parameter_set_id"); in h265e_vps_write()
308 h265e_stream_write_with_log(s, 3, 2, "vps_reserved_three_2bits"); in h265e_vps_write()
309 h265e_stream_write_with_log(s, 0, 6, "vps_reserved_zero_6bits"); in h265e_vps_write()
310 h265e_stream_write_with_log(s, vps->m_maxTLayers - 1, 3, "vps_max_sub_layers_minus1"); in h265e_vps_write()
311 h265e_stream_write1_with_log(s, vps->m_bTemporalIdNestingFlag, "vps_temporal_id_nesting_flag"); in h265e_vps_write()
313 h265e_stream_write_with_log(s, 0xffff, 16, "vps_reserved_ffff_16bits"); in h265e_vps_write()
315 codePTL(s, &vps->m_ptl, 1, vps->m_maxTLayers - 1); in h265e_vps_write()
317 h265e_stream_write1_with_log(s, 1, "vps_sub_layer_ordering_info_present_flag"); in h265e_vps_write()
319 …h265e_stream_write_ue_with_log(s, vps->m_maxDecPicBuffering[i] - 1, "vps_max_dec_pic_buffering_min… in h265e_vps_write()
320 h265e_stream_write_ue_with_log(s, vps->m_numReorderPics[i], "vps_num_reorder_pics[i]"); in h265e_vps_write()
321 …h265e_stream_write_ue_with_log(s, vps->m_maxLatencyIncrease[i], "vps_max_latency_increase_plus1[i]… in h265e_vps_write()
326 …h265e_stream_write_with_log(s, vps->m_maxNuhReservedZeroLayerId, 6, "vps_max_nuh_reserved_zero_lay… in h265e_vps_write()
328 h265e_stream_write_ue_with_log(s, vps->m_numOpSets - 1, "vps_max_op_sets_minus1"); in h265e_vps_write()
334 …h265e_stream_write1_with_log(s, vps->m_layerIdIncludedFlag[opsIdx][i] ? 1 : 0, "layer_id_included_… in h265e_vps_write()
339 …h265e_stream_write1_with_log(s, timingInfo->m_timingInfoPresentFlag, "vps_timing_info_present_flag… in h265e_vps_write()
341 …h265e_stream_write_with_log(s, timingInfo->m_numUnitsInTick, 32, "vps_num_units_in_tick"… in h265e_vps_write()
342 … h265e_stream_write_with_log(s, timingInfo->m_timeScale, 32, "vps_time_scale"); in h265e_vps_write()
343 …h265e_stream_write1_with_log(s, timingInfo->m_pocProportionalToTimingFlag, "vps_poc_proportional_… in h265e_vps_write()
345 …h265e_stream_write_ue_with_log(s, timingInfo->m_numTicksPocDiffOneMinus1, "vps_num_ticks_poc_dif… in h265e_vps_write()
348 …h265e_stream_write_ue_with_log(s, vps->m_numHrdParameters, "vps_num_hrd_parameters… in h265e_vps_write()
356 … h265e_stream_write_ue_with_log(s, vps->getHrdOpSetIdx(i), "hrd_op_set_idx"); in h265e_vps_write()
358 … h265e_stream_write1_with_log(s, vps->getCprmsPresentFlag(i) ? 1 : 0, "cprms_present_flag[i]"); in h265e_vps_write()
364 h265e_stream_write1_with_log(s, 0, "vps_extension_flag"); in h265e_vps_write()
365 h265e_stream_rbsp_trailing(s); in h265e_vps_write()
366 h265e_stream_flush(s); in h265e_vps_write()
367 …h265e_dbg(H265E_DBG_HEADER, "write pure vps head size: %d bits", (s->enc_stream.byte_cnt - vps_byt… in h265e_vps_write()
373 void codeVUI(H265eStream *s, H265eVuiInfo *vui) in codeVUI() argument
375 …h265e_stream_write1_with_log(s, vui->m_aspectRatioInfoPresentFlag, "aspect_ratio_info_present_fla… in codeVUI()
377 h265e_stream_write_with_log(s, vui->m_aspectRatioIdc, 8, "aspect_ratio_idc"); in codeVUI()
379 h265e_stream_write_with_log(s, vui->m_sarWidth, 16, "sar_width"); in codeVUI()
380 h265e_stream_write_with_log(s, vui->m_sarHeight, 16, "sar_height"); in codeVUI()
383 … h265e_stream_write1_with_log(s, vui->m_overscanInfoPresentFlag, "overscan_info_present_flag"); in codeVUI()
385 … h265e_stream_write1_with_log(s, vui->m_overscanAppropriateFlag, "overscan_appropriate_flag"); in codeVUI()
387 …h265e_stream_write1_with_log(s, vui->m_videoSignalTypePresentFlag, "video_signal_type_present_fla… in codeVUI()
389 h265e_stream_write_with_log(s, vui->m_videoFormat, 3, "video_format"); in codeVUI()
390 h265e_stream_write1_with_log(s, vui->m_videoFullRangeFlag, "video_full_range_flag"); in codeVUI()
391 …h265e_stream_write1_with_log(s, vui->m_colourDescriptionPresentFlag, "colour_description_present_f… in codeVUI()
393 h265e_stream_write_with_log(s, vui->m_colourPrimaries, 8, "colour_primaries"); in codeVUI()
394 … h265e_stream_write_with_log(s, vui->m_transferCharacteristics, 8, "transfer_characteristics"); in codeVUI()
395 … h265e_stream_write_with_log(s, vui->m_matrixCoefficients, 8, "matrix_coefficients"); in codeVUI()
399 …h265e_stream_write1_with_log(s, vui->m_chromaLocInfoPresentFlag, "chroma_loc_info_presen… in codeVUI()
401 …h265e_stream_write_ue_with_log(s, vui->m_chromaSampleLocTypeTopField, "chroma_sample_loc_type_t… in codeVUI()
402 …h265e_stream_write_ue_with_log(s, vui->m_chromaSampleLocTypeBottomField, "chroma_sample_loc_type_b… in codeVUI()
405 …h265e_stream_write1_with_log(s, vui->m_neutralChromaIndicationFlag, "neutral_chroma_indicat… in codeVUI()
406 h265e_stream_write1_with_log(s, vui->m_fieldSeqFlag, "field_seq_flag"); in codeVUI()
407 …h265e_stream_write1_with_log(s, vui->m_frameFieldInfoPresentFlag, "frame_field_info_prese… in codeVUI()
410 …h265e_stream_write1_with_log(s, defaultDisplayWindow.m_enabledFlag, "default_display_win… in codeVUI()
412 …h265e_stream_write_ue_with_log(s, defaultDisplayWindow.m_winLeftOffset, "def_disp_win_left_off… in codeVUI()
413 …h265e_stream_write_ue_with_log(s, defaultDisplayWindow.m_winRightOffset, "def_disp_win_right_of… in codeVUI()
414 …h265e_stream_write_ue_with_log(s, defaultDisplayWindow.m_winTopOffset, "def_disp_win_top_offs… in codeVUI()
415 …h265e_stream_write_ue_with_log(s, defaultDisplayWindow.m_winBottomOffset, "def_disp_win_bottom_o… in codeVUI()
418 …h265e_stream_write1_with_log(s, timingInfo->m_timingInfoPresentFlag, "vui_timing_info_presen… in codeVUI()
420 h265e_stream_write32(s, timingInfo->m_numUnitsInTick, "vui_num_units_in_tick"); in codeVUI()
421 h265e_stream_write32(s, timingInfo->m_timeScale, "vui_time_scale"); in codeVUI()
422 …h265e_stream_write1_with_log(s, timingInfo->m_pocProportionalToTimingFlag, "vui_poc_proportional_… in codeVUI()
424 …h265e_stream_write_ue_with_log(s, timingInfo->m_numTicksPocDiffOneMinus1, "vui_num_ticks_poc_dif… in codeVUI()
426 …h265e_stream_write1_with_log(s, vui->m_hrdParametersPresentFlag, "hrd_parameters_pres… in codeVUI()
431 …h265e_stream_write1_with_log(s, vui->m_bitstreamRestrictionFlag, "bitstream_restric… in codeVUI()
433 …h265e_stream_write1_with_log(s, vui->m_tilesFixedStructureFlag, "tiles_fixed_structure… in codeVUI()
434 …h265e_stream_write1_with_log(s, vui->m_motionVectorsOverPicBoundariesFlag, "motion_vectors_over_p… in codeVUI()
435 …h265e_stream_write1_with_log(s, vui->m_restrictedRefPicListsFlag, "restricted_ref_pic_li… in codeVUI()
436 …h265e_stream_write_ue_with_log(s, vui->m_minSpatialSegmentationIdc, "min_spatial_segment… in codeVUI()
437 …h265e_stream_write_ue_with_log(s, vui->m_maxBytesPerPicDenom, "max_bytes_per_pic_d… in codeVUI()
438 …h265e_stream_write_ue_with_log(s, vui->m_maxBitsPerMinCuDenom, "max_bits_per_mincu_… in codeVUI()
439 …h265e_stream_write_ue_with_log(s, vui->m_log2MaxMvLengthHorizontal, "log2_max_mv_length_… in codeVUI()
440 …h265e_stream_write_ue_with_log(s, vui->m_log2MaxMvLengthHorizontal, "log2_max_mv_lengt… in codeVUI()
444 static MPP_RET h265e_sps_write(H265eSps *sps, H265eStream *s) in h265e_sps_write() argument
453 h265e_stream_realign(s); in h265e_sps_write()
454 sps_byte_start = s->enc_stream.byte_cnt; in h265e_sps_write()
456 h265e_stream_write_with_log(s, sps->m_VPSId, 4, "sps_video_parameter_set_id"); in h265e_sps_write()
457 h265e_stream_write_with_log(s, sps->m_maxTLayers - 1, 3, "sps_max_sub_layers_minus1"); in h265e_sps_write()
458 …h265e_stream_write1_with_log(s, sps->m_bTemporalIdNestingFlag ? 1 : 0, "sps_temporal_id_nesting_fl… in h265e_sps_write()
459 codePTL(s, sps->m_ptl, 1, sps->m_maxTLayers - 1); in h265e_sps_write()
460 h265e_stream_write_ue_with_log(s, sps->m_SPSId, "sps_seq_parameter_set_id"); in h265e_sps_write()
461 h265e_stream_write_ue_with_log(s, sps->m_chromaFormatIdc, "chroma_format_idc"); in h265e_sps_write()
464 … h265e_stream_write1_with_log(s, 0, "separate_colour_plane_flag"); in h265e_sps_write()
467 h265e_stream_write_ue_with_log(s, sps->m_picWidthInLumaSamples, "pic_width_in_luma_samples"); in h265e_sps_write()
468 h265e_stream_write_ue_with_log(s, sps->m_picHeightInLumaSamples, "pic_height_in_luma_samples"); in h265e_sps_write()
470 h265e_stream_write1_with_log(s, conf->m_enabledFlag, "conformance_window_flag"); in h265e_sps_write()
472 …h265e_stream_write_ue_with_log(s, conf->m_winLeftOffset / winUnitX[sps->m_chromaFormatIdc], "con… in h265e_sps_write()
473 …h265e_stream_write_ue_with_log(s, conf->m_winRightOffset / winUnitX[sps->m_chromaFormatIdc], "con… in h265e_sps_write()
474 …h265e_stream_write_ue_with_log(s, conf->m_winTopOffset / winUnitY[sps->m_chromaFormatIdc], "con… in h265e_sps_write()
475 …h265e_stream_write_ue_with_log(s, conf->m_winBottomOffset / winUnitY[sps->m_chromaFormatIdc], "con… in h265e_sps_write()
478 h265e_stream_write_ue_with_log(s, sps->m_bitDepthY - 8, "bit_depth_luma_minus8"); in h265e_sps_write()
479 h265e_stream_write_ue_with_log(s, sps->m_bitDepthC - 8, "bit_depth_chroma_minus8"); in h265e_sps_write()
481 …h265e_stream_write_ue_with_log(s, sps->m_bitsForPOC - 4, "log2_max_pic_order_cnt_lsb_mi… in h265e_sps_write()
483 h265e_stream_write1_with_log(s, 1, "sps_sub_layer_ordering_info_present_flag"); in h265e_sps_write()
485 …h265e_stream_write_ue_with_log(s, sps->m_maxDecPicBuffering[i] - 1, "sps_max_dec_pic_buffering_min… in h265e_sps_write()
486 … h265e_stream_write_ue_with_log(s, sps->m_numReorderPics[i], "sps_num_reorder_pics[i]"); in h265e_sps_write()
487 …h265e_stream_write_ue_with_log(s, sps->m_maxLatencyIncrease[i], "sps_max_latency_increase_plus1[… in h265e_sps_write()
490 …h265e_stream_write_ue_with_log(s, sps->m_log2MinCodingBlockSize - 3, "log2_min_coding_block_siz… in h265e_sps_write()
491 …h265e_stream_write_ue_with_log(s, sps->m_log2DiffMaxMinCodingBlockSize, "log2_diff_max_min_coding_… in h265e_sps_write()
492 …h265e_stream_write_ue_with_log(s, sps->m_quadtreeTULog2MinSize - 2, "log2_min_transform_block_… in h265e_sps_write()
493 …h265e_stream_write_ue_with_log(s, sps->m_quadtreeTULog2MaxSize - sps->m_quadtreeTULog2MinSize, "lo… in h265e_sps_write()
494 …h265e_stream_write_ue_with_log(s, sps->m_quadtreeTUMaxDepthInter - 1, "max_transform_hierarchy_d… in h265e_sps_write()
495 …h265e_stream_write_ue_with_log(s, sps->m_quadtreeTUMaxDepthIntra - 1, "max_transform_hierarchy_d… in h265e_sps_write()
496 …h265e_stream_write1_with_log(s, sps->m_scalingListEnabledFlag ? 1 : 0, "scaling_list_enabled… in h265e_sps_write()
498 h265e_stream_write1_with_log(s, 0, "sps_scaling_list_data_present_flag"); in h265e_sps_write()
503 h265e_stream_write1_with_log(s, sps->m_useAMP ? 1 : 0, "amp_enabled_flag"); in h265e_sps_write()
504 h265e_stream_write1_with_log(s, sps->m_bUseSAO ? 1 : 0, "sample_adaptive_offset_enabled_flag"); in h265e_sps_write()
506 h265e_stream_write1_with_log(s, sps->m_usePCM ? 1 : 0, "pcm_enabled_flag"); in h265e_sps_write()
508 …h265e_stream_write_with_log(s, sps->m_pcmBitDepthLuma - 1, 4, "pcm_sample_bit_… in h265e_sps_write()
509 …h265e_stream_write_with_log(s, sps->m_pcmBitDepthChroma - 1, 4, "pcm_sample_bit_… in h265e_sps_write()
510 …h265e_stream_write_ue_with_log(s, sps->m_pcmLog2MinSize - 3, "log2_min_pcm… in h265e_sps_write()
511 …h265e_stream_write_ue_with_log(s, sps->m_pcmLog2MaxSize - sps->m_pcmLog2MinSize, "log2_diff_max_m… in h265e_sps_write()
512 …h265e_stream_write1_with_log(s, sps->m_bPCMFilterDisableFlag ? 1 : 0, "pcm_loop_filt… in h265e_sps_write()
520 …h265e_stream_write_ue_with_log(s, rpsList->m_numberOfReferencePictureSets, "num_short_term_ref_pic… in h265e_sps_write()
526 …h265e_stream_write1_with_log(s, sps->m_bLongTermRefsPresent ? 1 : 0, "long_term_ref_pics_pres… in h265e_sps_write()
528 h265e_stream_write_ue_with_log(s, sps->m_numLongTermRefPicSPS, "num_long_term_ref_pic_sps"); in h265e_sps_write()
530 …h265e_stream_write_with_log(s, sps->m_ltRefPicPocLsbSps[k], sps->m_bitsForPOC, "lt_ref_pic_poc_lsb… in h265e_sps_write()
531 … h265e_stream_write1_with_log(s, sps->m_usedByCurrPicLtSPSFlag[k], "used_by_curr_pic_lt_sps_flag"); in h265e_sps_write()
534 …h265e_stream_write1_with_log(s, sps->m_TMVPFlagsPresent ? 1 : 0, "sps_temporal_mvp_enable_f… in h265e_sps_write()
536 …h265e_stream_write1_with_log(s, sps->m_useStrongIntraSmoothing, "sps_strong_intra_smoothi… in h265e_sps_write()
538 …h265e_stream_write1_with_log(s, sps->m_vuiParametersPresentFlag, "vui_parameters_present_f… in h265e_sps_write()
540 codeVUI(s, &sps->vui); in h265e_sps_write()
542 h265e_stream_write1_with_log(s, 0, "sps_extension_flag"); in h265e_sps_write()
543 h265e_stream_rbsp_trailing(s); in h265e_sps_write()
544 h265e_stream_flush(s); in h265e_sps_write()
545 …h265e_dbg(H265E_DBG_HEADER, "write pure sps head size: %d bits", (s->enc_stream.byte_cnt - sps_byt… in h265e_sps_write()
552 static void h265e_rkv_scaling_list_write( H265eRkvStream *s,
559 static MPP_RET h265e_pps_write(H265ePps *pps, H265eSps *sps, H265eStream *s) in h265e_pps_write() argument
564 h265e_stream_realign(s); in h265e_pps_write()
565 pps_byte_start = s->enc_stream.byte_cnt; in h265e_pps_write()
568 …h265e_stream_write_ue_with_log(s, pps->m_PPSId, "pps_pic_parameter_set_… in h265e_pps_write()
569 …h265e_stream_write_ue_with_log(s, pps->m_SPSId, "pps_seq_parameter_set_… in h265e_pps_write()
570 …h265e_stream_write1_with_log(s, 0, "dependent_slice_segme… in h265e_pps_write()
571 …h265e_stream_write1_with_log(s, pps->m_outputFlagPresentFlag ? 1 : 0, "output_flag_present_flag… in h265e_pps_write()
572 …h265e_stream_write_with_log(s, pps->m_numExtraSliceHeaderBits, 3, "num_extra_slice_header_bi… in h265e_pps_write()
573 … h265e_stream_write1_with_log(s, pps->m_signHideFlag, "sign_data_hiding_flag"); in h265e_pps_write()
574 …h265e_stream_write1_with_log(s, pps->m_cabacInitPresentFlag ? 1 : 0, "cabac_init_present_flag"… in h265e_pps_write()
575 …h265e_stream_write_ue_with_log(s, pps->m_numRefIdxL0DefaultActive - 1, "num_ref_idx_l0_default… in h265e_pps_write()
576 …h265e_stream_write_ue_with_log(s, pps->m_numRefIdxL1DefaultActive - 1, "num_ref_idx_l1_default… in h265e_pps_write()
578 h265e_stream_write_se_with_log(s, pps->m_picInitQPMinus26, "init_qp_minus26"); in h265e_pps_write()
579 …h265e_stream_write1_with_log(s, pps->m_bConstrainedIntraPred ? 1 : 0, "constrained_intra_pred_… in h265e_pps_write()
580 …h265e_stream_write1_with_log(s, pps->m_useTransformSkip ? 1 : 0, "transform_skip_enabled_f… in h265e_pps_write()
581 …h265e_stream_write1_with_log(s, pps->m_useDQP ? 1 : 0, "cu_qp_delta_enabled_flag… in h265e_pps_write()
583 … h265e_stream_write_ue_with_log(s, pps->m_maxCuDQPDepth, "diff_cu_qp_delta_depth"); in h265e_pps_write()
585 h265e_stream_write_se_with_log(s, pps->m_chromaCbQpOffset, "pps_cb_qp_offset"); in h265e_pps_write()
586 h265e_stream_write_se_with_log(s, pps->m_chromaCrQpOffset, "pps_cr_qp_offset"); in h265e_pps_write()
587 …h265e_stream_write1_with_log(s, pps->m_bSliceChromaQpFlag ? 1 : 0, "pps_slice_chroma_qp_off… in h265e_pps_write()
589 …h265e_stream_write1_with_log(s, pps->m_bUseWeightPred ? 1 : 0, "weighted_pred_f… in h265e_pps_write()
590 …h265e_stream_write1_with_log(s, pps->m_useWeightedBiPred ? 1 : 0, "weighted_bipred… in h265e_pps_write()
591 …h265e_stream_write1_with_log(s, pps->m_transquantBypassEnableFlag ? 1 : 0, "transquant_bypass_enab… in h265e_pps_write()
592 … h265e_stream_write1_with_log(s, pps->m_tiles_enabled_flag, "tiles_enabled_flag"); in h265e_pps_write()
593 …h265e_stream_write1_with_log(s, pps->m_entropyCodingSyncEnabledFlag ? 1 : 0, "entropy_coding_sync_… in h265e_pps_write()
595 h265e_stream_write_ue_with_log(s, pps->m_nNumTileColumnsMinus1, "num_tile_columns_minus1"); in h265e_pps_write()
596 h265e_stream_write_ue_with_log(s, pps->m_nNumTileRowsMinus1, "num_tile_rows_minus1"); in h265e_pps_write()
597 h265e_stream_write1_with_log(s, pps->m_bTileUniformSpacing, "uniform_spacing_flag"); in h265e_pps_write()
600 … h265e_stream_write_ue_with_log(s, pps->m_nTileColumnWidthArray[i] - 1, "column_width_minus1"); in h265e_pps_write()
603 … h265e_stream_write_ue_with_log(s, pps->m_nTileRowHeightArray[i] - 1, "row_height_minus1"); in h265e_pps_write()
607 …h265e_stream_write1_with_log(s, pps->m_loopFilterAcrossTilesEnabledFlag ? 1 : 0, "loop_filter_acro… in h265e_pps_write()
609 …h265e_stream_write1_with_log(s, pps->m_LFCrossSliceBoundaryFlag ? 1 : 0, "loop_filter_across_slice… in h265e_pps_write()
612 …h265e_stream_write1_with_log(s, pps->m_deblockingFilterControlPresentFlag ? 1 : 0, "deblocking_fil… in h265e_pps_write()
614 …h265e_stream_write1_with_log(s, pps->m_deblockingFilterOverrideEnabledFlag ? 1 : 0, "deblocking_f… in h265e_pps_write()
615 …h265e_stream_write1_with_log(s, pps->m_picDisableDeblockingFilterFlag ? 1 : 0, "pps_disable_… in h265e_pps_write()
617 … h265e_stream_write_se_with_log(s, pps->m_deblockingFilterBetaOffsetDiv2, "pps_beta_offset_div2"); in h265e_pps_write()
618 … h265e_stream_write_se_with_log(s, pps->m_deblockingFilterTcOffsetDiv2, "pps_tc_offset_div2"); in h265e_pps_write()
621 …h265e_stream_write1_with_log(s, pps->m_scalingListPresentFlag ? 1 : 0, "pps_scaling_list_d… in h265e_pps_write()
625 …h265e_stream_write1_with_log(s, pps->m_listsModificationPresentFlag, "lists_modification_present_f… in h265e_pps_write()
626 …h265e_stream_write_ue_with_log(s, pps->m_log2ParallelMergeLevelMinus2, "log2_parallel_merge_level_… in h265e_pps_write()
627 …h265e_stream_write1_with_log(s, pps->m_sliceHeaderExtensionPresentFlag ? 1 : 0, "slice_segment_hea… in h265e_pps_write()
628 h265e_stream_write1_with_log(s, 0, "pps_extension_flag"); in h265e_pps_write()
630 h265e_stream_rbsp_trailing( s ); in h265e_pps_write()
631 h265e_stream_flush( s ); in h265e_pps_write()
633 …h265e_dbg(H265E_DBG_HEADER, "write pure pps size: %d bits", (s->enc_stream.byte_cnt - pps_byte_sta… in h265e_pps_write()
642 H265eStream *s = &out->stream; in h265e_nal_start() local
651 nal->p_payload = &s->buf[s->enc_stream.byte_cnt]; in h265e_nal_start()
660 H265eStream *s = &out->stream; in h265e_nal_end() local
662 RK_U8 *end = &s->buf[s->enc_stream.byte_cnt]; in h265e_nal_end()