17 #ifndef NVMEDIA_COMMON_ENCODE_H
18 #define NVMEDIA_COMMON_ENCODE_H
39 #define NVMEDIA_COMMON_ENCODE_VERSION_MAJOR 1
41 #define NVMEDIA_COMMON_ENCODE_VERSION_MINOR 2
47 #define NVMEDIA_VIDEO_ENCODER_TIMEOUT_INFINITE 0xFFFFFFFFU
53 #define NVMEDIA_ENCODE_INFINITE_GOPLENGTH 0xFFFFFFFFU
116 uint32_t averageBitRate;
121 uint32_t vbvBufferSize;
124 uint32_t vbvInitialDelay;
128 uint32_t averageBitRate;
133 uint32_t vbvBufferSize;
136 uint32_t vbvInitialDelay;
142 uint32_t averageBitRate;
145 uint32_t vbvBufferSize;
148 uint32_t vbvInitialDelay;
466 #define MAX_NON_SLICE_DATA_SIZE 2048U
553 uint32_t partType : 2;
555 uint32_t lastofPart : 1;
557 uint32_t lastOfMB : 1;
764 uint8_t reserved3[3];
770 uint32_t mvcNumViews : 4;
772 uint32_t enableExternalPictureRC : 1;
774 uint32_t enableAllIFrames : 1;
776 uint32_t reserved : 26;
1078 uint32_t mvNumViews : 4;
1080 uint32_t enableExternalPictureRC : 1;
1082 uint32_t enableAllIFrames : 1;
1084 uint32_t reserved : 26;
1219 int8_t ref_lf_deltas[4];
1221 int8_t mode_lf_deltas[2];
1407 int8_t ref_lf_deltas[4];
1409 int8_t mode_lf_deltas[4];
1440 int8_t seg_filter_level[4];
1442 int8_t seg_qindex[4];
Enable high precision mv.
Enable support for motion vector buffer dump.
Enable ultra fast encoding.
This attribute is used to get SPS data for current encoding session.
Enable lossless compression.
Disable Intra 8x8 vertical left prediction.
Enable to set loop filter parameters.
Automatic profile selection.
NvMediaEncodeH264Features
Defines H264 encoder configuration features.
Entropy coding mode is CABAC.
Disable Intra 8x8 vertical right prediction.
Enable support to use 4 byte start code in all the slices in a picture.
Enable self_temporal_refine.
uint32_t NvMediaBool
A boolean value, holding NVMEDIA_TRUE or NVMEDIA_FALSE.
Constant bitrate mode with MinQP.
NvMediaEncodeLevel
Defines encoding levels.
Disable Intra 4x4 horizontal down prediction.
Enable slice level output encoding.
Disable Intra 4x4 diagonal down right prediction.
Quality Level 1 Pre-settings.
Enable lossless compression.
NvMediaEncodeVP9Features
Defines VP9 encoder configuration features.
IP Search mode bit Intra 4x4.
Enable encoder profiling.
Enable self_spatial_refine.
Disable Intra 4x4 vertical right prediction.
Specifies that Adaptive Transform 8x8 mode is disabled.
Enable to set quantization parameters.
Bi-directionally predicted picture.
Enable support for external picture RC hint.
Disable Intra chroma vertical prediction.
Enable constrainedFrame encoding where each slice in the constrained picture is independent of other ...
Disable Intra 8x8 vertical prediction.
Disable Intra 16x16 vertical prediction.
Indicates that this frame is encoded with each slice completely independent of other slices in the fr...
Entropy coding mode is CAVLC.
Disable Intra 8x8 horizontal up prediction.
Auto selected picture type.
Enable dynamic slice mode.
Disable Intra chroma DC prediction.
Disable Intra 4x4 vertical prediction.
Enable encoder profiling.
Enable gradual decoder refresh or intra refresh.
Block only when operation is pending.
Enable encoder profiling.
Disable Intra 4x4 horizontal prediction.
NvMediaEncodeH264BDirectMode
Defines H.264 specific Bdirect modes.
Enable to set quantization parameters.
Enable gradual decoder refresh or intra refresh.
Enable support for dynamic reference picture set RPS/DPB control support.
NvMediaEncodePicFlags
Defines encoding Picture encode flags.
NvMediaEncodeH264MotionPredictionExclusionFlags
Defines motion prediction exclusion flags for H.264.
NvMediaEncodeProfile
Defines encoding profiles.
Disable Inter L0 partition 8x16 prediction.
Disable Intra chroma horizontal prediction.
NvMediaEncodeQuality
Defines encode quality level pre-settings.
Disable Intra 8x8 DC prediction.
Enable support to use client provided QP max for all frame types.
Quality Level 2 Pre-settings.
Specifies that Adaptive Transform 8x8 mode is auto selected by the encoder driver.
NvMediaEncodePicType
Input picture type.
NvMediaEncAttrType
Specifies the Video encoder get attribute type.
Enable dynamic slice mode.
Disable Intra 8x8 horizontal prediction.
#define MAX_NON_SLICE_DATA_SIZE
Maximum encoded header info size.
Disable Intra 4x4 DC prediction.
Disable Intra 16x16 horizontal prediction.
Enable support for motion vector buffer dump.
Disable Intra chroma plane prediction.
Disable Inter L0 partition 16x8 prediction.
Enable support to use client provided QP max for all frame types.
Indicates change in rate control parameters from the current picture onwards.
NvMediaEncodeH265Features
Defines H265 encoder configuration features.
Starts a new intra refresh cycle if intra refresh support is enabled otherwise it indicates a P frame...
Disable Intra 8x8 diagonal down left prediction.
Specifies that Adaptive Transform 8x8 mode must be used.
SPS/PPS is repeated for every intra frame.
Enable to write access unit delimiter syntax in bitstream.
Repeating of SPS/PPS is disabled.
NvMediaEncodeH264POCType
Define H.264 pic_order_cnt_type.
Enable support to use client provided Initial QP for all frame types.
NvMediaEncodeH264SPSPPSRepeatMode
Specifies the frequency of the writing of Sequence and Picture parameters for H.264.
Enable ultra fast encoding.
Disable Intra 4x4 vertical left prediction.
Disable Intra 4x4 diagonal down left prediction.
Enable to set loop filter parameters.
Enable support to use client provided QP max for all frame types.
Disable Intra 16x16 DC prediction.
Enable to write access unit delimiter syntax in bitstream.
NvMediaBlockingType
Blocking type.
Enable constrainedFrame encoding where each slice in the constrained picture is independent of other ...
Enable support to use client provided Initial QP for all frame types.
NvMediaEncodeH264MotionSearchControlFlags
Defines motion search mode control flags for H.264.
NvMediaEncodeParamsRCMode
Rate Control Modes.
Enable support to use 4 byte start code in all the slices in a picture.
Enable support to use client provided Initial QP for all frame types.
Automatic level selection.
Enable support to use client provided Initial QP for all frame types.
Disable Intra 8x8 diagonal down right prediction.
Disable Intra 4x4 horizontal up prediction.
IP Search mode bit Intra 8x8.
Quality Level 0 Pre-settings.
IP Search mode bit Intra 16x16.
Disable Inter L0 partition 16x16 prediction.
NvMediaEncodeH264AdaptiveTransformMode
Defines H.264 specific Adaptive Transform modes.
Automatic level selection.
This attribute is used to get PPS data for current encoding session.
SPS/PPS is repeated for every IDR frame.
Disable Inter L0 partition 8x8 prediction.
Disable error resiliency.
This attribute is used to get VPS data for current h265 encoding session.
Enable encoder profiling.
Enable support for dynamic reference picture set RPS/DPB control support.
Enable support to use client provided QP max for all frame types.
Writes the sequence and picture header in encoded bitstream of the current picture.
NvMediaEncodeH264EntropyCodingMode
Defines H.264 entropy coding modes.
Disable Intra 16x16 plane prediction.
Variable bitrate mode with MinQP.
Disable Intra 8x8 horizontal down prediction.
Enable support for external picture RC hint.
Enable slice level output encoding.
NvMediaEncodeVP8Features
Defines VP8 encoder configuration features.