Lines Matching refs:enc_params
732 SEncParamExt enc_params; in gst_openh264enc_set_format() local
776 openh264enc->encoder->GetDefaultParams (&enc_params); in gst_openh264enc_set_format()
778 enc_params.iUsageType = openh264enc->usage_type; in gst_openh264enc_set_format()
779 enc_params.iPicWidth = width; in gst_openh264enc_set_format()
780 enc_params.iPicHeight = height; in gst_openh264enc_set_format()
781 enc_params.iTargetBitrate = openh264enc->bitrate; in gst_openh264enc_set_format()
782 enc_params.iMaxBitrate = openh264enc->max_bitrate; in gst_openh264enc_set_format()
783 enc_params.iMaxQp = openh264enc->qp_max; in gst_openh264enc_set_format()
784 enc_params.iMinQp = openh264enc->qp_min; in gst_openh264enc_set_format()
785 enc_params.iRCMode = openh264enc->rate_control; in gst_openh264enc_set_format()
786 enc_params.iTemporalLayerNum = 1; in gst_openh264enc_set_format()
787 enc_params.iSpatialLayerNum = 1; in gst_openh264enc_set_format()
788 enc_params.iLtrMarkPeriod = 30; in gst_openh264enc_set_format()
789 enc_params.iMultipleThreadIdc = openh264enc->multi_thread; in gst_openh264enc_set_format()
790 enc_params.bEnableDenoise = openh264enc->enable_denoise; in gst_openh264enc_set_format()
791 enc_params.iComplexityMode = openh264enc->complexity; in gst_openh264enc_set_format()
792 enc_params.uiIntraPeriod = openh264enc->gop_size; in gst_openh264enc_set_format()
793 enc_params.bEnableBackgroundDetection = openh264enc->background_detection; in gst_openh264enc_set_format()
794 enc_params.bEnableAdaptiveQuant = openh264enc->adaptive_quantization; in gst_openh264enc_set_format()
795 enc_params.bEnableSceneChangeDetect = openh264enc->scene_change_detection; in gst_openh264enc_set_format()
796 enc_params.bEnableFrameSkip = openh264enc->enable_frame_skip; in gst_openh264enc_set_format()
797 enc_params.bEnableLongTermReference = 0; in gst_openh264enc_set_format()
799 enc_params.eSpsPpsIdStrategy = CONSTANT_ID; in gst_openh264enc_set_format()
801 enc_params.bEnableSpsPpsIdAddition = 0; in gst_openh264enc_set_format()
803 enc_params.bPrefixNalAddingCtrl = 0; in gst_openh264enc_set_format()
804 enc_params.fMaxFrameRate = fps_n * 1.0 / fps_d; in gst_openh264enc_set_format()
805 enc_params.iLoopFilterDisableIdc = openh264enc->deblocking_mode; in gst_openh264enc_set_format()
806 …enc_params.sSpatialLayers[0].uiProfileIdc = gst_openh264enc_get_profile_from_caps (outcaps, allowe… in gst_openh264enc_set_format()
807 …enc_params.sSpatialLayers[0].uiLevelIdc = (ELevelIdc) gst_openh264enc_get_level_from_caps (outcaps… in gst_openh264enc_set_format()
808 enc_params.sSpatialLayers[0].iVideoWidth = enc_params.iPicWidth; in gst_openh264enc_set_format()
809 enc_params.sSpatialLayers[0].iVideoHeight = enc_params.iPicHeight; in gst_openh264enc_set_format()
810 enc_params.sSpatialLayers[0].fFrameRate = fps_n * 1.0 / fps_d; in gst_openh264enc_set_format()
811 enc_params.sSpatialLayers[0].iSpatialBitrate = enc_params.iTargetBitrate; in gst_openh264enc_set_format()
812 enc_params.sSpatialLayers[0].iMaxSpatialBitrate = enc_params.iMaxBitrate; in gst_openh264enc_set_format()
836 enc_params.sSpatialLayers[0].sSliceCfg.uiSliceMode = slice_mode; in gst_openh264enc_set_format()
837 enc_params.sSpatialLayers[0].sSliceCfg.sSliceArgument.uiSliceNum = n_slices; in gst_openh264enc_set_format()
839 enc_params.sSpatialLayers[0].sSliceArgument.uiSliceMode = slice_mode; in gst_openh264enc_set_format()
840 enc_params.sSpatialLayers[0].sSliceArgument.uiSliceNum = n_slices; in gst_openh264enc_set_format()
845 ret = openh264enc->encoder->InitializeExt (&enc_params); in gst_openh264enc_set_format()
892 SEncParamExt enc_params; in gst_openh264enc_handle_frame() local
894 &enc_params) == cmResultSuccess) { in gst_openh264enc_handle_frame()
896 enc_params.iTargetBitrate = openh264enc->bitrate; in gst_openh264enc_handle_frame()
897 enc_params.sSpatialLayers[0].iSpatialBitrate = in gst_openh264enc_handle_frame()
898 enc_params.iTargetBitrate; in gst_openh264enc_handle_frame()
901 enc_params.iMaxBitrate = openh264enc->max_bitrate; in gst_openh264enc_handle_frame()
902 enc_params.sSpatialLayers[0].iMaxSpatialBitrate = in gst_openh264enc_handle_frame()
903 enc_params.iMaxBitrate; in gst_openh264enc_handle_frame()
906 &enc_params) != cmResultSuccess) { in gst_openh264enc_handle_frame()