Loading [MathJax]/extensions/tex2jax.js
|
NVIDIA DRIVE OS Linux SDK API Reference
|
6.0.9 Release
|
Go to the documentation of this file.
22 #ifndef NVMEDIA_COMMON_ENCODE_H
23 #define NVMEDIA_COMMON_ENCODE_H
44 #define NVMEDIA_ENCODE_TIMEOUT_INFINITE 0xFFFFFFFFU
50 #define NVMEDIA_ENCODE_INFINITE_GOPLENGTH 0xFFFFFFFFU
642 #define MAX_NON_SLICE_DATA_SIZE 2048U
1069 uint8_t reserved3[3];
1683 int8_t ref_lf_deltas[4];
1686 int8_t mode_lf_deltas[2];
1948 uint32_t reserved[17];
2021 uint32_t reserved[20];
2078 uint32_t reserved[18];
uint32_t enableAllIFrames
Encode all frames as I frames.
bool bmode_ref_lf_delta_enabled
Set it to true if MB-level loop filter adjustment is on.
uint32_t viewId
Holds the viewId of current picture.
uint32_t sharpness_level
Specifies Sharpness level.
NvMediaEncodeH264Features
Defines H264 encoder configuration features.
NvMediaEncodePicType pictureType
Holds input picture type.
@ NVMEDIA_ENCODE_DISABLE_INTRA_8x8_HORIZONTAL_PREDICTION
Disable Intra 8x8 horizontal prediction.
uint8_t frameRestorationType
NvMediaEncodeExtProfile extProfile
Holds the extended encoding profile.
NvMediaEncodeH264SPSPPSRepeatMode
Specifies the frequency of the writing of Sequence and Picture parameters for H.264.
bool enableSourceHalfScaled
Enable 2 pass RC with quarter resolution first pass.
uint32_t maxBitRate
Holds the maximum bitrate for the encoded output.
uint32_t gopLength
Holds the number of pictures in one GOP.
@ NVMEDIA_ENCODE_EXT_PROFILE_MAIN
Main profile.
bool enableReconCRC
Enable support for recon CRC generation.
bool overscanInfoPresentFlag
If set to true, it specifies that the overscanInfo is present.
bool enableExtProfile
Enables extended encoding profiles.
uint8_t enableWeightedPrediction
Enable/disable weighted prediction.
uint32_t numMacroblocksPerSlice
Holds the number of macroblocks per slice.
@ NVMEDIA_ENCODE_DISABLE_INTRA_16x16_VERTICAL_PREDICTION
Disable Intra 16x16 vertical prediction.
NvMediaEncodePicType pictureType
Holds input picture type.
@ NVMEDIA_ENCODE_PROFILE_BASELINE
Baseline profile.
uint32_t frameRateNum
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
uint16_t numSliceCountMinus1
Holds a number that is 1 less than the desired number of slices per frame.
@ NVMEDIA_ENCODE_DISABLE_INTRA_4x4_VERTICAL_PREDICTION
Disable Intra 4x4 vertical prediction.
uint32_t nextBFrames
Holds the number of B-frames that follow the current frame.
NvMediaEncAttrType
Specifies the encoder get attribute type.
@ NVMEDIA_ENCODE_DISABLE_INTER_L0_8x16_PREDICTION
Disable Inter L0 partition 8x16 prediction.
@ NVMEDIA_ENCODE_ENABLE_SELF_SPATIAL_REFINE
Enable self_spatial_refine.
uint32_t frameRateDen
Holds the denominator for frame rate used for encoding in frames per second ( Frame rate = frameRateN...
uint32_t idrPeriod
Holds the IDR interval.
uint32_t averageBitRate
Holds the average bitrate (in bits/sec) used for encoding.
NvMediaEncodeH264MotionPredictionExclusionFlags
Defines motion prediction exclusion flags for H.264.
uint32_t filter_level
Specifies the loop filter strength for each segment.
uint32_t seiPayloadArrayCnt
Holds the number of elements allocated in seiPayloadArray array.
@ NVMEDIA_ENCODE_H264_ENTROPY_CODING_MODE_CABAC
Entropy coding mode is CABAC.
uint32_t numBFrames
Specified number of B frames between two reference frames.
bool enableLimitedRGB
Set this to true for limited-RGB (16-235) input.
uint16_t encodeWidth
Holds the encode width.
@ NVMEDIA_ENCODE_LEVEL_H265_61
H.265 Level 6.1.
uint32_t vbvBufferSize
Holds the VBV(HRD) buffer size, in bits.
@ NVMEDIA_ENCODE_CONFIG_H264_QP_MAX
Enable support to use client provided QP max for all frame types.
#define MAX_NON_SLICE_DATA_SIZE
Maximum encoded header info size.
NvMediaEncodeRCParams rcParams
Holds the rate control parameters from the current frame onward if the NVMEDIA_ENCODE_PIC_FLAG_RATECO...
uint32_t frameRateNum
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
@ NVMEDIA_ENCODE_PARAMS_RC_CONSTQP
Constant QP mode.
@ NVMEDIA_ENCODE_SPSPPS_REPEAT_IDR_FRAMES
SPS/PPS is repeated for every IDR frame.
@ NVMEDIA_ENCODE_LEVEL_H265_AUTOSELECT
Automatic level selection.
@ NVMEDIA_ENCODE_LEVEL_H265_31
H.265 Level 3.1.
@ NVMEDIA_ENCODE_LEVEL_H265_1
H.265 Level 1.0.
uint32_t enableExternalPictureRC
Enable external picture rate control.
bool bConstFrameQP
Use constant QP at frame level or MB row level.
uint32_t maxSliceSizeInBytes
Holds the maximum slice size in bytes for dynamic slice mode.
uint16_t encodeHeight
Holds the encode height.
NvMediaEncodeH264SEIPayload * seiPayloadArray
Array of SEI payloads which will be inserted for this frame.
@ NVMEDIA_ENCODE_CONFIG_H265_ENABLE_CONSTRANED_ENCODING
Enable constrainedFrame encoding where each slice in the constrained picture is independent of other ...
bool aspectRatioInfoPresentFlag
If set to true, it specifies that the aspectRatioIdc is present.
uint16_t aspectSARHeight
If aspectRatioIdc is Extended SAR it indicates vertical size of the sample aspect ratio (in the same ...
int32_t delta_y_dc_q
Specifies explicit qindex adjustment for y dccoefficient, -15...15.
@ NVMEDIA_ENCODE_CONFIG_H265_ENABLE_LOSSLESS_COMPRESSION
Enable lossless compression.
NvMediaEncodeLevel
Defines encoding levels for H264 encoder.
NvMediaEncPreset
Defines encode preset level settings.
uint8_t maxNumRefFrames
Holds the max reference numbers used for encoding.
uint32_t vbvBufferSize
Holds the VBV(HRD) buffer size, in bits.
bool overscanAppropriateFlag
Holds the overscan info (as defined in Annex E of the ITU-T Specification).
@ NVMEDIA_ENCODE_DISABLE_INTRA_CHROMA_VERTICAL_PREDICTION
Disable Intra chroma vertical prediction.
@ NVMEDIA_ENCODE_DISABLE_INTRA_4x4_HORIZONTAL_DOWN_PREDICTION
Disable Intra 4x4 horizontal down prediction.
NvMediaEncodeH264BDirectMode bdirectMode
Holds the BDirect mode.
@ NVMEDIA_ENCODE_H264_BDIRECT_MODE_DISABLE
Disable BDirect mode.
uint8_t log2NumTilesInCol
Holds the log2 value of number of tiles used in a column.
bool bitstreamRestrictionFlag
Specified the bitstream restriction info (as defined in Annex E of the ITU-T Specification).
NvMediaBlockingType
Blocking type.
@ NVMEDIA_ENCODE_DISABLE_INTRA_4x4_HORIZONTAL_PREDICTION
Disable Intra 4x4 horizontal prediction.
uint32_t frameRateNum
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
@ NVMEDIA_ENCODE_CONFIG_H265_ENABLE_DYNAMIC_SLICE_MODE
Enable dynamic slice mode.
NvMediaEncodeConfigH264VUIParams * h264VUIParameters
Holds the H.264 video usability information pamameters.
bool bitstreamRestrictionFlag
Holds the bitstream restriction info (as defined in Annex E of the ITU-T Specification).
@ NVMEDIA_ENCODE_LEVEL_H265_6
H.265 Level 6.0.
@ NVMEDIA_ENCODE_CONFIG_H264_ENABLE_RTP_MODE_OUTPUT
Enable RTP mode output.
bool enableTwoPassRC
Enable 2 pass RC support.
bool enableSliceEncode
use slice encode to reduce latency in getting encoded buffers.
NvMediaEncodeRCParams rcParams
Holds the rate control parameters from the current frame onward if the NVMEDIA_ENCODE_PIC_FLAG_RATECO...
@ NVMEDIA_ENCODE_PARAMS_RC_CBR_MINQP
Constant bitrate mode with MinQP.
@ NVMEDIA_ENCODE_H265_PROFILES_HIGH_THROUGHPUT
High throughput profiles.
uint32_t numCTUsPerSlice
Number of CTU per slice.
NvMediaEncodeH264AdaptiveTransformMode adaptiveTransformMode
Holds the Adaptive Transform Mode.
@ NVMEDIA_ENCODE_LEVEL_H265_62
H.265 Level 6.2.
@ NVMEDIA_ENCODE_CONFIG_VP9_ENABLE_LOOP_FILTER_PARAMS
Enable to set loop filter parameters.
bool enableROIEncode
Enable region of interest encoding.
@ NvMediaEncAttr_GetSPS
This attribute is used to get SPS data for current encoding session.
uint16_t numSliceCountMinus1
Holds a number that is 1 less than the desired number of slices per frame.
@ NVMEDIA_ENCODE_LEVEL_H264_2
H.264 Level 2.
@ NVMEDIA_ENCODE_CONFIG_H265_ENABLE_MV_BUFFER_DUMP
Enable support for motion vector buffer dump.
@ NVMEDIA_ENCODE_LEVEL_H265_52
H.265 Level 5.2.
NvMediaEncodeExternalMEHint * meExternalHints
Holds the pointer to ME external hints for the current frame.
@ NVMEDIA_ENCODE_PIC_TYPE_B
Bi-directionally predicted picture.
bool enableSliceEncode
Use slice encode to reduce latency in getting encoded buffers.
NvMediaEncodeRCParams rcParams
Holds the rate control parameters from the current frame onward if the NVMEDIA_ENCODE_PIC_FLAG_RATECO...
bool videoFullRangeFlag
Holds the output range of the luma and chroma samples (as defined in Annex E of the ITU-T Specificati...
@ NvMediaEncAttr_GetVPS
This attribute is used to get VPS data for current h265 encoding session.
@ NVMEDIA_ENCODE_BLOCKING_TYPE_IF_PENDING
Block only when operation is pending.
int16_t qpInterP
QP value for P frames.
@ NVMEDIA_ENCODE_H265_PROFILES_SCREEN_CONTENT_CODING_EXTENSIONS
Screen content coding extensions profiles.
uint32_t frameRateDen
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
@ NVMEDIA_ENCODE_LEVEL_H264_5
H.264 Level 5.0.
@ NVMEDIA_ENCODE_CONFIG_H264_ENABLE_MV_BUFFER_DUMP_V2
Enable support for motion vector buffer dump in a simplified (V2) format.
@ NVMEDIA_ENC_PRESET_DEFAULT
Encoder Quality Preset Default.
uint32_t payloadSize
SEI payload size in bytes.
@ NVMEDIA_ENCODE_EXT_PROFILE_CAVLC444_INTRA
Cavlc444_intra predictive profile.
uint32_t features
Holds bit-wise OR`ed configuration feature flags.
@ NVMEDIA_ENCODE_PIC_TYPE_P
Forward predicted.
uint32_t seiPayloadArrayCnt
Holds the number of elements allocated in seiPayloadArray array.
uint8_t maxNumRefFrames
Holds the max reference numbers used for encoding.
bool enableReconCRC
Enable support for recon CRC generation.
@ NVMEDIA_ENCODE_SEQUENCEHDR_REPEAT_DISABLED
Repeating of SPS is disabled.
@ NVMEDIA_ENCODE_DISABLE_INTRA_16x16_HORIZONTAL_PREDICTION
Disable Intra 16x16 horizontal prediction.
@ NVMEDIA_ENCODE_DISABLE_INTRA_8x8_HORIZONTAL_UP_PREDICTION
Disable Intra 8x8 horizontal up prediction.
@ NVMEDIA_ENCODE_CONFIG_H265_ENABLE_FOUR_BYTE_START_CODE
Enable support to use 4 byte start code in all the slices in a picture.
uint8_t videoFormat
Holds the source video format (as defined in Annex E of the ITU-T Specification).
bool enableSsimRdo
Set to true to enable SSIM RDO.
@ NVMEDIA_ENCODE_LEVEL_H265_5
H.265 Level 5.0.
bool error_resilient
Set the feature flag NVMEDIA_ENCODE_CONFIG_VP9_DISABLE_ERROR_RESILIENT to set the following parameter...
uint8_t * payload
Pointer to user data.
uint32_t vp9SkipChroma
Skip Chroma Processing.
@ NVMEDIA_ENCODE_CONFIG_H265_ENABLE_MV_BUFFER_DUMP_V2
Enable support for motion vector buffer dump in a simplified (V2) format.
@ NVMEDIA_ENCODE_CONFIG_H264_ENABLE_OUTPUT_AUD
Enable to write access unit delimiter syntax in bitstream.
@ NVMEDIA_ENCODE_EXT_PROFILE_HIGH10_INTRA
High10_intra predictive profile.
@ NVMEDIA_ENCODE_PARAMS_RC_VBR
Variable bitrate mode.
bool overscanAppropriateFlag
Holds the overscan info (as defined in Annex E of the ITU-T Specification).
uint32_t dir
Holds the direction of motion estimation .
@ NVMEDIA_ENCODE_DISABLE_INTRA_16x16_PLANE_PREDICTION
Disable Intra 16x16 plane prediction.
@ NVMEDIA_ENCODE_CONFIG_AV1_ENABLE_PROFILING
Enable encoder profiling.
bool enableTileEncode
Set to true to enable Multiple tile mode.
uint32_t enableMemoryOptimization
Enables feature to allocate memory as per optimizations.
NvMediaEncodeQP initQP
Holds Initial QP parameters.
uint32_t payloadSize
SEI payload size in bytes.
NvMediaEncodeRCParams rcParams
Holds the rate control parameters for the current encoding session.
uint8_t disableDeblockingFilterIDC
Holds the deblocking filter mode.
NvMediaEncodeQP maxQP
Holds maximum QP parameters.
uint16_t encodeHeight
Holds the encode height.
int32_t delta_uv_ac
Specifies qindex adjustment for uv dccoefficient, -15...15.
uint8_t colourMatrix
Holds the matrix coefficients used in deriving the luma and chroma from the RGB primaries (as defined...
uint8_t level
Holds the encoding level.
uint8_t levelTier
Holds the level tier information.
bool videoFullRangeFlag
Holds the output range of the luma and chroma samples (as defined in Annex E of the ITU-T Specificati...
@ NVMEDIA_ENCODE_DISABLE_INTRA_16x16_DC_PREDICTION
Disable Intra 16x16 DC prediction.
bool aspectRatioInfoPresentFlag
If set to true, specifies the aspectRatioIdc is present.
uint8_t matrixCoeffs
Holds the matrix coefficients used in deriving the luma and chroma from the RGB primaries (as defined...
int32_t delta_uv_dc
Specifies qindex adjustment for uv accoefficient, -15...15.
uint32_t viewId
Holds the viewId of current picture.
@ NVMEDIA_ENCODE_CONFIG_AV1_QP_MAX
Enable support to use client provided QP max for all frame types.
@ NVMEDIA_ENCODE_EXT_PROFILE_AUTOSELECT
Automatic profile selection.
@ NVMEDIA_ENCODE_EXT_PROFILE_EXTENDED
Extended profile.
uint32_t frameRateDen
Holds the denominator for frame rate used for encoding in frames per second ( Frame rate = frameRateN...
NvMediaEncodeVP9Features
Defines VP9 encoder configuration features.
uint32_t numCandsPerBlk8x16
Holds the number of candidates per 8x16 block.
uint32_t motionPredictionExclusionFlags
Holds bitwise OR`ed exclusion flags.
NvMediaEncodeQP maxQP
Holds maximum QP parameters.
@ NVMEDIA_ENCODE_LEVEL_H264_42
H.264 Level 4.2.
int32_t delta_y_dc_q
Specifies explicit qindex adjustment for y dccoefficient, -15...15.
@ NVMEDIA_ENCODE_DISABLE_INTRA_8x8_DIAGONAL_DOWN_RIGHT_PREDICTION
Disable Intra 8x8 diagonal down right prediction.
uint32_t frameRateNum
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
@ NVMEDIA_ENCODE_PIC_FLAG_CONSTRAINED_FRAME
Indicates that this frame is encoded with each slice completely independent of other slices in the fr...
NvMediaEncodePicFlags
Defines encoding Picture encode flags.
@ NVMEDIA_ENCODE_EXT_PROFILE_HIGH444_PREDICTIVE
High444 predictive profile.
bool bmode_ref_lf_delta_update
Set it to true if MB-level loop filter adjustment delta values are updated.
@ NVMEDIA_ENCODE_ENABLE_COLOC_REFINE
Enable coloc_refine.
uint32_t payloadType
SEI payload types and syntax can be found in Annex D of the H265 Specification.
@ NVMEDIA_ENC_PRESET_HP
Encoder Quality Preset HP Relative comparison with respect to other presets:
@ NVMEDIA_ENCODE_CONFIG_VP9_ENABLE_PROFILING
Enable encoder profiling.
uint32_t vbvBufferSize
Holds the VBV(HRD) buffer size, in bits.
@ NVMEDIA_ENCODE_DISABLE_INTRA_CHROMA_HORIZONTAL_PREDICTION
Disable Intra chroma horizontal prediction.
bool enableInternalHighBitDepth
uint32_t numCandsPerBlk16x8
Holds the number of candidates per 16x8 block.
uint8_t colourPrimaries
Holds color primaries for converting to RGB (as defined in Annex E of the ITU-T Specification).
uint32_t idrPeriod
Holds the IDR interval.
NvMediaEncoderInstanceId
Specifies the encoder instance ID.
@ NVMEDIA_ENCODE_ENABLE_IP_SEARCH_INTRA_4x4
IP Search mode bit Intra 4x4.
@ NVMEDIA_ENCODE_CONFIG_H265_ENABLE_ULTRA_FAST_ENCODE
Enable ultra fast encoding.
@ NVMEDIA_ENCODE_CONFIG_VP9_DISABLE_ERROR_RESILIENT
Disable error resiliency.
@ NVMEDIA_ENCODE_DISABLE_INTRA_4x4_VERTICAL_RIGHT_PREDICTION
Disable Intra 4x4 vertical right prediction.
@ NVMEDIA_ENCODE_EXT_PROFILE_HIGH444_INTRA
High444_intra predictive profile.
NvMediaEncodeExternalMEHint * meExternalHints
Holds the pointer to ME external hints for the current frame.
uint32_t features
Holds bit-wise OR`ed configuration feature flags.
@ NVMEDIA_ENCODE_SEQUENCEHDR_REPEAT_IDR_FRAMES
SPS is repeated for every IDR frame.
uint32_t encodeWidth
Holds the encode width.
uint32_t mvNumViews
Number of views used for MV-Hevc.
@ NVMEDIA_ENCODE_CONFIG_H265_INIT_QP
Enable support to use client provided Initial QP for all frame types.
@ NVMEDIA_ENCODE_CONFIG_VP9_ENABLE_QUANTIZATION_PARAMS
Enable to set quantization parameters.
@ NVMEDIA_ENCODE_H265_PROFILES_HIGH_THROUGHPUT_SCREEN_CONTENT_CODING_EXTENSIONS
High throughput screen content coding extensions profiles.
@ NVMEDIA_ENCODE_LEVEL_H265_4
H.265 Level 4.0.
uint32_t gopLength
Holds the number of pictures in one GOP.
@ NVMEDIA_ENCODE_PROFILE_HIGH
High profile.
uint32_t reserved
Add padding.
@ NVMEDIA_ENCODE_PIC_TYPE_AUTOSELECT
Auto selected picture type.
NvMediaEncodeAV1SeqHdrRepeatMode repeatSeqHdr
Holds the frequency of the writing of Sequence header.
NvMediaEncodeAV1SeqHdrRepeatMode
Specifies the frequency of the writing of Sequence header for AV1.
@ NVMEDIA_ENCODE_PIC_TYPE_P_INTRA_REFRESH
Starts a new intra refresh cycle if intra refresh support is enabled otherwise it indicates a P frame...
@ NVMEDIA_ENCODE_H265_PROFILE_MAIN
Main profile.
NvMediaEncodeAV1Features
Defines AV1 encoder configuration features.
bool enableROIEncode
Enable region of interest encoding.
uint32_t gopLength
Holds the number of pictures in one GOP.
uint32_t nextBFrames
Specifies the number of B-frames that follow the current frame.
uint8_t aspectRatioIdc
Holds the aspect ratio IDC (as defined in Annex E of the ITU-T specification).
NvMediaEncodeRCParams rcParams
Holds the rate control parameters for the current encoding session.
@ NVMEDIA_ENCODE_H264_POC_TYPE_2
Pic_order_cnt_type 2.
@ NVMEDIA_ENCODE_H265_PROFILE_MAIN10
Main10.
uint32_t ulNalSize
Nal size for header.
@ NVMEDIA_ENCODE_LEVEL_H264_22
H.264 Level 2.2.
@ NVMEDIA_ENCODE_PROFILE_HIGH444
High 444 profile.
bool overscanInfoPresentFlag
If set to true, it specifies that the overscanInfo is present.
uint8_t disableDeblockingFilter
Holds disable the deblocking filter.
uint8_t level
Holds the encoding level.
@ NVMEDIA_ENCODE_SPSPPS_REPEAT_INTRA_FRAMES
SPS/PPS is repeated for every intra frame.
uint32_t useBFramesAsRef
Enables B frames to be used as reference frames.
uint32_t lastofPart
Set to true for the last MV of (sub) partition
@ NVMEDIA_ENCODE_LEVEL_H264_3
H.264 Level 3.
uint32_t features
Holds bit-wise OR`ed configuration feature flags.
@ NVMEDIA_ENCODE_H264_ADAPTIVE_TRANSFORM_AUTOSELECT
Specifies that Adaptive Transform 8x8 mode is auto selected by the encoder driver.
@ NVMEDIA_ENCODE_H264_BDIRECT_MODE_SPATIAL
Spatial BDirect mode.
bool timingInfoPresentFlag
Holds that num_units_in_tick, time_scale and fixed_frame_rate_flag are present in the bitstream (as d...
uint32_t frameRateNum
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
@ NVMEDIA_ENCODE_CONFIG_VP9_ENABLE_HIGH_PRECISION_MV
Enable high precision mv.
@ NVMEDIA_ENCODE_CONFIG_VP9_INIT_QP
Enable support to use client provided Initial QP for all frame types.
NvMediaEncodeH265Profile
Defines H265encoding profiles.
int32_t delta_uv_ac
Specifies qindex adjustment for uv dccoefficient, -15...15.
uint16_t encodeWidth
Holds the encode width.
bool enableSliceLevelEncode
Set this to true for slice level encode.
@ NVMEDIA_ENCODE_EXT_PROFILE_HIGH422
High422 profile.
uint8_t * payload
pointer to user data
@ NVMEDIA_ENCODE_CONFIG_VP9_ENABLE_TRANSFORM_MODE
Enable transform mode.
uint32_t frameRateNum
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
@ NVMEDIA_ENCODE_DISABLE_INTRA_4x4_HORIZONTAL_UP_PREDICTION
Disable Intra 4x4 horizontal up prediction.
@ NVMEDIA_ENCODE_PIC_FLAG_OUTPUT_SPSPPS
Writes the sequence and picture header in encoded bitstream of the current picture.
uint32_t numCandsPerBlk16x16
Holds the number of candidates per 16x16 block.
@ NVMEDIA_ENCODE_LEVEL_H264_32
H.264 Level 3.2.
uint32_t idrPeriod
Holds the IDR interval.
uint32_t enableExternalPictureRC
Enable external picture rate control.
@ NVMEDIA_ENCODE_CONFIG_AV1_FRAME_END_CDF_UPDATE
enable/disable CDF update at end of frame
NvMediaEncPreset encPreset
Holds the encode quality pre-set.
@ NVMEDIA_ENCODE_PIC_TYPE_IDR
IDR picture.
uint32_t high_prec_mv
Set the feature flag NVMEDIA_ENCODE_CONFIG_VP9_ENABLE_HIGH_PRECISION_MV to set the following paramete...
@ NVMEDIA_ENCODE_DISABLE_INTRA_4x4_DC_PREDICTION
Disable Intra 4x4 DC prediction.
NvMediaEncodeParamsRCMode
Rate Control Modes.
@ NVMEDIA_ENCODE_DISABLE_INTRA_8x8_VERTICAL_PREDICTION
Disable Intra 8x8 vertical prediction.
@ NVMEDIA_ENCODE_EXT_PROFILE_PROGRESSIVE_HIGH
Progressive High profile.
uint8_t enableWeightedPrediction
Holds enable weighted prediction.
@ NVMEDIA_ENCODE_LEVEL_H264_4
H.264 Level 4.
uint8_t aspectRatioIdc
Holds the aspect ratio IDC (as defined in Annex E of the ITU-T Specification).
uint32_t idrPeriod
Holds the IDR interval.
uint32_t encodePicFlags
Holds bit-wise OR`ed encode pic flags.
@ NVMEDIA_ENCODE_EXT_PROFILE_BASELINE
Baseline profile.
uint32_t nextBFrames
Holds the number of B-frames that follow the current frame.
uint32_t vbvInitialDelay
Holds the VBV(HRD) initial delay in bits.
@ NVMEDIA_ENCODE_CONFIG_H265_ENABLE_INTRA_REFRESH
Enable gradual decoder refresh or intra refresh.
@ NVMEDIA_ENCODE_H264_POC_TYPE_AUTOSELECT
Automatic level selection.
bool enableMVC
If client want to do MVC encoding then this flag need to be set.
@ NVMEDIA_ENCODE_LEVEL_H264_1
H.264 Level 1.
bool videoSignalTypePresentFlag
If set to true, it specifies that the videoFormat, videoFullRangeFlag, and colourDescriptionPresentFl...
NvMediaEncodeQP maxQP
Holds the maximum QP parameters.
NvMediaEncodeH264POCType
Define H.264 pic_order_cnt_type.
@ NVMEDIA_ENCODE_CONFIG_H264_ENABLE_DYNAMIC_RPS
Enable support for dynamic reference picture set RPS/DPB control support.
@ NVMEDIA_ENCODE_CONFIG_H264_ENABLE_MV_BUFFER_DUMP
Enable support for motion vector buffer dump.
uint8_t numEpCores
Holds number of HW entropy cores for encoding.
uint32_t frameRateDen
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
@ NVMEDIA_ENCODE_H264_ENTROPY_CODING_MODE_CAVLC
Entropy coding mode is CAVLC.
NvMediaEncodeQP minQP
Holds the minimum QP used for rate control.
uint32_t intraRefreshPeriod
Holds the interval between frames that trigger a new intra refresh cycle and this cycle lasts for int...
@ NVMEDIA_ENCODE_ENABLE_IP_SEARCH_INTRA_16x16
IP Search mode bit Intra 16x16.
NvMediaEncodeLevelH265
Defines encoding levels for H265 encoder.
uint32_t partType
Holds the block partition type.
uint32_t frameRateDen
Holds the denominator for frame rate used for encoding in frames per second ( Frame rate = frameRateN...
@ NVMEDIA_ENCODE_CONFIG_H264_ENABLE_INTRA_REFRESH
Enable gradual decoder refresh or intra refresh.
@ NVMEDIA_ENCODE_PROFILE_CAVLC444_INTRA
Cavlc444_intra predictive profile.
@ NVMEDIA_ENCODE_LEVEL_H264_11
H.264 Level 1.1.
bool enableExternalMEHints
Holds a flag indicating whether to enable or disable the external ME hints.
uint32_t enableAllIFrames
Encode all frames as I frames.
@ NVMEDIA_ENCODE_ENABLE_CONST_MV_REFINE
Enable const_mv_refine.
@ NVMEDIA_ENCODE_DISABLE_INTRA_4x4_VERTICAL_LEFT_PREDICTION
Disable Intra 4x4 vertical left prediction.
uint32_t maxSliceSizeInBytes
Holds the maximum slice size in bytes for dynamic slice mode.
@ NVMEDIA_ENCODE_LEVEL_H264_41
H.264 Level 4.1.
uint32_t frameRateDen
Holds the denominator for frame rate used for encoding in frames per second ( Frame rate = frameRateN...
@ NVMEDIA_ENCODE_CONFIG_H264_ENABLE_CONSTRANED_ENCODING
Enable constrainedFrame encoding where each slice in the constrained picture is independent of other ...
uint32_t averageBitRate
Holds the average bitrate (in bits/sec) used for encoding.
bool enableExternalMEHints
Set to true to enable external ME hints.
@ NVMEDIA_ENCODE_PARAMS_RC_VBR_MINQP
Variable bitrate mode with MinQP.
uint16_t aspectSARHeight
If aspectRatioIdc is Extended SAR then it indicates vertical size of the sample aspect ratio (in the ...
bool enableSourceHalfScaled
Enable 2 pass RC with quarter resolution first pass.
uint32_t base_qindex
Specifies quant base index (used only when rc_mode = 0) for each segment 0...255.
NvMediaEncodeRCParams rcParams
Holds the rate control parameters for the current encoding session.
uint32_t vbvBufferSize
Holds the VBV(HRD) buffer size, in bits.
@ NVMEDIA_ENCODER_INSTANCE_0
Specifies the encoder instance ID 0.
@ NVMEDIA_ENCODE_LEVEL_H264_52
H.264 Level 5.2.
@ NVMEDIA_ENCODE_CONFIG_H264_ENABLE_LOSSLESS_COMPRESSION
Enable lossless compression.
NvMediaEncodePicType
Input picture type.
@ NVMEDIA_ENCODE_PROFILE_AUTOSELECT
Automatic profile selection.
int8_t maxSessionQP
Holds the max QP for encoding session when external picture RC hint is used.
@ NVMEDIA_ENCODE_DISABLE_INTRA_4x4_DIAGONAL_DOWN_RIGHT_PREDICTION
Disable Intra 4x4 diagonal down right prediction.
@ NVMEDIA_ENCODE_LEVEL_H264_31
H.264 Level 3.1.
@ NVMEDIA_ENCODE_CONFIG_H264_ENABLE_SLICE_LEVEL_OUTPUT
Enable slice level output encoding.
@ NVMEDIA_ENCODE_SPSPPS_REPEAT_DISABLED
Repeating of SPS/PPS is disabled.
@ NVMEDIA_ENCODER_INSTANCE_1
Specifies the encoder instance ID 1.
uint8_t log2NumTilesInRow
Holds the log2 value of number of tiles used in a row.
uint16_t aspectSARWidth
If aspectRatioIdc is Extended SAR then it indicates horizontal size of the sample aspect ratio (in ar...
NvMediaEncodePicType pictureType
Holds input picture type.
@ NVMEDIA_ENCODE_LEVEL_H264_51
H.264 Level 5.1.
@ NVMEDIA_ENCODE_LEVEL_H264_21
H.264 Level 2.1.
uint32_t encodePicFlags
Holds bit-wise OR`ed encode pic flags.
@ NVMEDIA_ENCODE_MOTION_SEARCH_CONTROL_FLAG_VALID
Enable the flag set.
@ NVMEDIA_ENCODE_H265_PROFILE_MAIN_STILLPICTURE
Main still profile.
bool colourDescriptionPresentFlag
If set to true, it specifies that the colourPrimaries, transferCharacteristics and colourMatrix are p...
NvMediaEncodeH264BDirectMode
Defines H.264 specific Bdirect modes.
uint32_t gopLength
Holds the number of pictures in one GOP.
@ NVMEDIA_ENCODE_LEVEL_H264_1b
H.264 Level 1b.
uint32_t encodeWidth
Holds the encode width.
@ NVMEDIA_ENCODE_H265_PROFILES_FORMAT_RANGE_EXTENSIONS
Format range exetnsions profiles.
@ NVMEDIA_ENCODE_CONFIG_H265_ENABLE_OUTPUT_AUD
Enable to write access unit delimiter syntax in bitstream.
@ NVMEDIA_ENCODE_PIC_TYPE_I
Intra predicted picture.
@ NVMEDIA_ENCODE_BLOCKING_TYPE_NEVER
Never blocks.
@ NVMEDIA_ENCODE_DISABLE_INTER_L0_16x8_PREDICTION
Disable Inter L0 partition 16x8 prediction.
uint32_t mvcNumViews
Number of views used for MVC.
uint32_t intraRefreshPeriod
Holds the interval between frames that triggers a new intra refresh cycle.
NvMediaEncodeH264SPSPPSRepeatMode repeatSPSPPS
Holds the frequency of the writing of Sequence and Picture parameters.
NvMediaEncodeH264EntropyCodingMode
Defines H.264 entropy coding modes.
uint32_t frameRateNum
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
NvMediaEncodeQP initQP
Holds Initial QP parameters.
bool enableLimitedRGB
Holds a flag indicating whether input is limited-RGB (16-235).
@ NVMEDIA_ENCODE_PARAMS_RC_CBR
Constant bitrate mode.
NvMediaEncodeH265Features
Defines H265 encoder configuration features.
uint32_t intraRefreshCnt
Holds the number of frames over which intra refresh happens.
NvMediaEncodeParamsRCMode rateControlMode
Holds the rate control mode.
bool vuiTimingInfoPresentFlag
Holds that num_units_in_tick, time_scale and fixed_frame_rate_flag are present in the bitstream (as d...
@ NVMEDIA_ENCODE_ENABLE_IP_SEARCH_INTRA_8x8
IP Search mode bit Intra 8x8.
@ NVMEDIA_ENCODE_LEVEL_H265_21
H.265 Level 2.1.
uint32_t payloadType
SEI payload types and syntax can be found in Annex D of the H.264 Specification.
@ NVMEDIA_ENC_PRESET_HQ
Encoder Quality Preset HQ Relative comparison with respect to other presets:
@ NVMEDIA_ENCODE_PROFILE_HIGH422
High422 profile.
NvMediaEncodeRCParams rcParams
Holds the rate control parameters for the current encoding session.
@ NVMEDIA_ENCODE_CONFIG_H265_ENABLE_PROFILING
Enable encoder profiling.
NvMediaEncodeH264POCType pocType
Holds pic_ordec_cnt_type.
@ NVMEDIA_ENCODE_LEVEL_AUTOSELECT
Automatic level selection.
@ NVMEDIA_ENCODE_LEVEL_H265_3
H.265 Level 3.0.
uint8_t profile
Holds the encoding profile.
@ NVMEDIA_ENCODE_DISABLE_INTRA_8x8_HORIZONTAL_DOWN_PREDICTION
Disable Intra 8x8 horizontal down prediction.
NvMediaEncodeH264MotionSearchControlFlags
Defines motion search mode control flags for H.264.
uint32_t nextBFrames
Specifies the number of B-frames that follow the current frame.
bool enableTwoPassRC
Enable 2 pass RC support.
uint32_t nalUnitType
SEI nal_unit_type.
@ NVMEDIA_ENCODE_CONFIG_H264_INIT_QP
Enable support to use client provided Initial QP for all frame types.
uint32_t vbvInitialDelay
Holds the VBV(HRD) initial delay in bits.
uint32_t transform_mode
Set the feature flag NVMEDIA_ENCODE_CONFIG_VP9_ENABLE_TRANSFORM_MODE to set the following parameter.
int16_t qpInterB
QP value for B frames.
@ NVMEDIA_ENCODE_CONFIG_H265_QP_MAX
Enable support to use client provided QP max for all frame types.
@ NVMEDIA_ENCODE_PROFILE_EXTENDED
Extended profile.
uint32_t lastOfMB
Set to true for the last MV of macroblock.
uint32_t encodePicFlags
Holds bit-wise OR`ed encode pic flags.
uint32_t features
Holds bit-wise OR`ed configuration feature flags.
NvMediaEncodeExternalMEHint * meExternalHints
uint32_t vbvInitialDelay
Holds the VBV(HRD) initial delay in bits.
@ NVMEDIA_ENCODE_CONFIG_H264_ENABLE_PROFILING
Enable encoder profiling.
uint8_t useBFramesAsRef
Enables B frames to be used as reference frames.
@ NVMEDIA_ENCODE_ENABLE_EXTERNAL_REFINE
Enable external_refine.
uint8_t transferCharacteristics
Holds the opto-electronic transfer characteristics to use (as defined in Annex E of the ITU-T Specifi...
@ NVMEDIA_ENCODER_INSTANCE_AUTO
Specifies that the encoder instance ID can be set dynamically during encode.
@ NVMEDIA_ENCODE_CONFIG_H264_ENABLE_EXT_PIC_RC_HINT
Enable support for external picture RC hint.
@ NVMEDIA_ENCODE_DISABLE_INTRA_8x8_DC_PREDICTION
Disable Intra 8x8 DC prediction.
@ NVMEDIA_ENCODE_LEVEL_H264_12
H.264 Level 1.2.
@ NVMEDIA_ENCODE_EXT_PROFILE_HIGH422_INTRA
High422_intra predictive profile.
NvMediaEncodeH264EntropyCodingMode entropyCodingMode
Holds the entropy coding mode.
@ NVMEDIA_ENCODE_DISABLE_INTRA_CHROMA_PLANE_PREDICTION
Disable Intra chroma plane prediction.
@ NVMEDIA_ENCODE_CONFIG_H265_ENABLE_DYNAMIC_RPS
Enable support for dynamic reference picture set RPS/DPB control support.
@ NVMEDIA_ENCODE_CONFIG_H264_ENABLE_DYNAMIC_SLICE_MODE
Enable dynamic slice mode.
NvMediaEncodeQP maxQP
Holds maximum QP parameters.
@ NVMEDIA_ENCODE_CONFIG_AV1_DISABLE_CDF_UPDATE
Disable CDF update during symbol decoding.
@ NVMEDIA_ENCODE_CONFIG_H264_ENABLE_ULTRA_FAST_ENCODE
Enable ultra fast encoding.
@ NVMEDIA_ENCODE_EXT_PROFILE_HIGH
High profile.
@ NVMEDIA_ENCODE_PROFILE_MAIN
Main profile.
@ NVMEDIA_ENCODE_PIC_FLAG_RATECONTROL_CHANGE
Indicates change in rate control parameters from the current picture onwards.
uint32_t reserved
Add padding.
bool enableExternalMEHints
Set to true to enable external ME hints.
@ NVMEDIA_ENCODE_EXT_PROFILE_HIGH10
High10 profile.
@ NVMEDIA_ENCODE_CONFIG_AV1_ENABLE_QUANTIZATION_PARAMS
Enable to set quantization parameters.
@ NVMEDIA_ENCODE_LEVEL_H264_END
@ NVMEDIA_ENCODE_DISABLE_INTRA_8x8_DIAGONAL_DOWN_LEFT_PREDICTION
Disable Intra 8x8 diagonal down left prediction.
uint8_t maxNumRefFrames
Holds the maximum number of reference frames used for encoding.
NvMediaEncodeH265SEIPayload * seiPayloadArray
Array of SEI payloads which will be inserted for this frame.
int16_t qpIntra
QP value for Intra frames.
uint32_t frameRateDen
Holds the numerator for frame rate used for encoding in frames per second ( Frame rate = frameRateNum...
NvMediaEncodeExtProfile
Defines extended encoding profiles.
uint8_t profile
Holds the encoding profile.
uint8_t maxNumRefFrames
Holds the maximum number of reference frames used for encoding.
NvMediaEncodeQP initQP
Holds the initial QP parameters.
bool ampDisable
Use ampDisable to enable or disable assymetric partition types.
@ NVMEDIA_ENCODE_DISABLE_INTRA_8x8_VERTICAL_LEFT_PREDICTION
Disable Intra 8x8 vertical left prediction.
@ NVMEDIA_ENC_PRESET_UHP
Encoder Quality Preset UHP Relative comparison with respect to other presets:
@ NVMEDIA_ENCODE_DISABLE_INTRA_4x4_DIAGONAL_DOWN_LEFT_PREDICTION
Disable Intra 4x4 diagonal down left prediction.
NvMediaEncodeQP constQP
Holds the initial QP to be used for encoding, these values would be used for all frames in Constant Q...
uint32_t filter_type
Set the feature flag NVMEDIA_ENCODE_CONFIG_VP9_ENABLE_LOOP_FILTER_PARAMS to change the following para...
@ NVMEDIA_ENCODE_EXT_PROFILE_CONSTRAINED_BASELINE
Constrained Baseline profile.
bool enableMVC
If client want to do MVC encoding then this flag need to be set.
uint32_t numCandsPerBlk8x8
Holds the number of candidates per 8x8 block.
uint32_t maxBitRate
Holds the maximum bitrate for the encoded output.
@ NVMEDIA_ENCODE_H264_ADAPTIVE_TRANSFORM_DISABLE
Specifies that Adaptive Transform 8x8 mode is disabled.
uint16_t aspectSARWidth
If aspectRatioIdc is Extended SAR it indicates horizontal size of the sample aspect ratio (in arbitra...
uint32_t encodeHeight
Holds the encode height.
uint8_t level
Holds the encoding level.
uint32_t intraRefreshCnt
Holds the number of frames over which intra refresh will happen.
uint32_t log2TileCols
Holds number of log2Cols used in a frame.
NvMediaEncodeExternalMEHint * meExternalHints
Holds the pointer to ME external hints for the current frame.
@ NVMEDIA_ENCODE_CONFIG_H264_ENABLE_FOUR_BYTE_START_CODE
Enable support to use 4 byte start code in all the slices in a picture.
uint32_t averageBitRate
Holds the average bitrate (in bits/sec) used for encoding.
uint8_t colourPrimaries
Holds color primaries for converting to RGB (as defined in Annex E of the ITU-T Specification).
uint8_t profile
Holds the encoding profile to be set based on NvMediaEncodeH265Profile.
uint32_t vbvInitialDelay
Holds the VBV(HRD) initial delay in bits.
@ NVMEDIA_ENCODE_DISABLE_INTRA_8x8_VERTICAL_RIGHT_PREDICTION
Disable Intra 8x8 vertical right prediction.
@ NVMEDIA_ENCODE_ENABLE_SELF_TEMPORAL_REFINE
Enable self_temporal_refine.
uint32_t base_qindex
Set the feature flag NVMEDIA_ENCODE_CONFIG_VP9_ENABLE_QUANTIZATION_PARAMS to set the following parame...
NvMediaEncPreset encPreset
Holds the encode quality pre-set.
NvMediaEncodeProfile
Defines encoding profiles.
@ NVMEDIA_ENCODE_EXT_PROFILE_CONSTRAINED_HIGH
Constrained High profile.
bool enableLimitedRGB
Holds a flag indicating whether input is limited-RGB (16-235).
int32_t mvy
Holds the y component of integer pixel MV (relative to current MB) S10.0 .
@ NVMEDIA_ENCODE_DISABLE_INTER_L0_8x8_PREDICTION
Disable Inter L0 partition 8x8 prediction.
@ NVMEDIA_ENCODE_SEQUENCEHDR_REPEAT_INTRA_FRAMES
SPS is repeated for every intra frame.
NvMediaBool disableCdfUpdate
Set to true to disable CDF update.
bool enableLimitedRGB
Set this to true for limited-RGB (16-235) input.
NvMediaEncodeConfigH265VUIParams * h265VUIParameters
Holds the H265 video usability info pamameters.
NvMediaEncPreset encPreset
Holds the encode quality pre-set.
bool enableExternalMEHints
Holds a flag indicating whether to enable or disable the external ME hints.
@ NvMediaEncAttr_GetPPS
This attribute is used to get PPS data for current encoding session.
uint32_t refidx
Holds the reference index (31=invalid).
@ NVMEDIA_ENCODE_CONFIG_H265_ENABLE_RTP_MODE_OUTPUT
Enable RTP mode output.
uint32_t NvMediaBool
A boolean value, holding NVMEDIA_TRUE or NVMEDIA_FALSE.
@ NVMEDIA_ENCODE_LEVEL_H265_51
H.265 Level 5.1.
NvMediaEncodeRCParams rcParams
Holds the rate control parameters from the current frame onward if the NVMEDIA_ENCODE_PIC_FLAG_RATECO...
@ NVMEDIA_ENCODE_CONFIG_H265_ENABLE_SLICE_LEVEL_OUTPUT
Enable slice level output encoding.
@ NVMEDIA_ENCODE_CONFIG_VP9_QP_MAX
Enable support to use client provided QP max for all frame types.
@ NVMEDIA_ENCODE_H265_PROFILE_AUTOSELECT
Automatic profile selection.
@ NVMEDIA_ENCODE_DISABLE_INTER_L0_16x16_PREDICTION
Disable Inter L0 partition 16x16 prediction.
uint32_t encodePicFlags
Holds bit-wise OR`ed encode pic flags.
NvMediaEncodeQP initQP
Holds Initial QP parameters.
uint32_t encodeHeight
Holds the encode height.
uint32_t log2TileRows
Holds number of log2Rows used in a frame.
NvMediaEncodeH264AdaptiveTransformMode
Defines H.264 specific Adaptive Transform modes.
@ NVMEDIA_ENCODE_LEVEL_H265_END
@ NVMEDIA_ENCODE_DISABLE_INTRA_CHROMA_DC_PREDICTION
Disable Intra chroma DC prediction.
uint8_t transferCharacteristics
Holds the opto-electronic transfer characteristics to use (as defined in Annex E of the ITU-T Specifi...
@ NVMEDIA_ENCODE_CONFIG_AV1_INIT_QP
Enable support to use client provided Initial QP for all frame types.
uint32_t averageBitRate
Holds the average bitrate (in bits/sec) used for encoding.
@ NVMEDIA_ENCODE_LEVEL_H265_41
H.265 Level 4.1.
@ NVMEDIA_ENCODE_LEVEL_H265_2
H.265 Level 2.0.
uint8_t videoFormat
Holds the source video format (as defined in Annex E of the ITU-T Specification).
@ NVMEDIA_ENCODE_LEVEL_H264_13
H.264 Level 1.3.
NvMediaEncodePicType pictureType
Holds input picture type.
NvMediaEncodeH264SPSPPSRepeatMode repeatSPSPPS
Holds the frequency of the writing of Sequence and Picture parameters.
bool colourDescriptionPresentFlag
If set to true, it specifies that the colourPrimaries, transferCharacteristics, and colourMatrix are ...
@ NVMEDIA_ENCODE_CONFIG_H265_ENABLE_EXT_PIC_RC_HINT
Enable support for external picture RC hint.
@ NVMEDIA_ENCODE_H264_BDIRECT_MODE_TEMPORAL
Temporal BDirect mode.
@ NVMEDIA_ENCODE_PROFILE_HIGH10
High10 profile.
bool videoSignalTypePresentFlag
If set to true, it specifies that the videoFormat, videoFullRangeFlag and colourDescriptionPresentFla...
@ NVMEDIA_ENCODE_H264_POC_TYPE_0
Pic_order_cnt_type 0.
@ NVMEDIA_ENCODE_H264_ADAPTIVE_TRANSFORM_ENABLE
Specifies that Adaptive Transform 8x8 mode must be used.
NvMediaEncodeQP minQP
Holds the minimum QP used for rate control.
@ NVMEDIA_ENCODE_EXT_PROFILE_PROGRESSIVE_HIGH10
Progressive High10 profile.
int32_t delta_uv_dc
Specifies qindex adjustment for uv accoefficient, -15...15.
int32_t mvx
Holds the x component of integer pixel MV (relative to current MB) S12.0.
人人超碰97caoporen国产