|
Jetson Linux API Reference
|
36.4.3 Release
|
Go to the documentation of this file.
47 #ifndef __NV_VIDEO_ENCODER_H__
48 #define __NV_VIDEO_ENCODER_H__
95 enum v4l2_colorspace cs = V4L2_COLORSPACE_SMPTE170M);
109 uint32_t height, uint32_t sizeimage);
122 int setFrameRate(uint32_t framerate_num, uint32_t framerate_den);
636 int setQpRange(uint32_t MinQpI, uint32_t MaxQpI, uint32_t MinQpP,
637 uint32_t MaxQpP, uint32_t MinQpB, uint32_t MaxQpB);
744 int setInitQP(uint32_t IinitQP, uint32_t PinitQP, uint32_t BinitQP);
833 NvVideoEncoder(
const char *name,
const char* dev_node,
int flags);
int setChromaFactorIDC(uint8_t crfactor)
Sets the H.265 encoder Chroma Format IDC.
Holds the params to configure encoder for ROI parameters encoding.
Defines a helper class for V4L2 based components.
int setInsertSpsPpsAtIdrEnabled(bool enabled)
Enables/disables insert SPS PPS at every IDR.
int setAV1SsimRdo(bool enabled)
Enable AV1 variance based SSIM RDO.
Holds the encoder frame ROI parameters to be used with V4L2_CID_MPEG_VIDEOENC_ROI_PARAMS IOCTL.
v4l2_enc_slice_length_type
Enum specifying the type of slice length.
int setROIParams(uint32_t buffer_index, v4l2_enc_frame_ROI_params ¶ms)
Sets the Region of Interest (ROI) parameters for the next buffer, which will be queued on the output ...
int setInitQP(uint32_t IinitQP, uint32_t PinitQP, uint32_t BinitQP)
Sets the initial QP for I/P/B frames.
int setInsertAudEnabled(bool enabled)
Enables/disables insert AUD.
int setIFrameInterval(uint32_t interval)
Sets the encoder I-frame interval.
int setSliceLevelEncode(bool enabled)
Enables/disables Slice level encoding for H264 / HEVC.
int setIDRInterval(uint32_t interval)
Sets the encoder IDR interval.
int enableExternalRC(v4l2_enc_enable_ext_rate_ctr ¶ms)
Enable External Picture RC.
int ClearPollInterrupt()
Clears the polling interrupt, now if the application calls Poll, the device should block until the ev...
int setHWPresetType(v4l2_enc_hw_preset_type type)
Sets the encoder HW Preset Type.
int setSliceIntrarefresh(uint32_t interval)
Sets slice intra-refresh interval params.
int setPPEInitParams(v4l2_enc_ppe_init_params ¶ms)
Sets the preprocessing enhancement (PPE) initialization parameters at the start of the session.
v4l2_enc_temporal_tradeoff_level_type
Specifies the types of encoder temporal tradeoff levels.
int setPeakBitrate(uint32_t peak_bitrate)
Sets the encoder peak bitrate.
Holds the params to configure encoder for external rps control to be used with V4L2_CID_MPEG_VIDEOENC...
int setConstantQp(bool enabled_rc)
Sets constant QP for encoder.
int enableTwoPassCBR()
Sets whether to enable two pass CBR for H.264/H.265.
int SetInputMetaParams(uint32_t buffer_index, v4l2_ctrl_videoenc_input_metadata ¶ms)
Set input Metadata parameters for the next buffer which will be queued on output plane with index buf...
int enableAV1TileGroups(bool enabled)
Enable AV1 frame_id_numbers_present_flag.
Holds the preprocessing enhancement initialization parameters to be used with V4L2_CID_MPEG_VIDEOENC_...
int setVirtualBufferSize(uint32_t size)
Sets the virtual buffer size of the encoder.
int setFramesToEncode(uint32_t framesToEncode)
Sets the number of frames to encode.
int setOutputPlaneFormat(uint32_t pixfmt, uint32_t width, uint32_t height, enum v4l2_colorspace cs=V4L2_COLORSPACE_SMPTE170M)
Sets the format on the encoder output plane.
int enableMotionVectorReporting()
Enables video encoder output motion vector metadata reporting.
int setEncoderCommand(int cmd, int flags)
Sets the encoder command.
int enableROI(v4l2_enc_enable_roi_param ¶ms)
Enables External ROI.
int enableExternalRPS(v4l2_enc_enable_ext_rps_ctr ¶ms)
Enable External RPS.
int setProfile(uint32_t profile)
Sets the encoder profile.
int setSampleAspectRatioWidth(uint32_t sar_width)
Sets Sample Aspect Ratio width for VUI encoding.
int setNumBFrames(uint32_t num)
Sets the number of B frames to P frames.
v4l2_mpeg_video_bitrate_mode
int setLevel(uint32_t level)
Set the encoder level.
int enableReconCRC(v4l2_enc_enable_reconcrc_param ¶ms)
Enables Recon CRC.
static const ProfilerField PROFILER_FIELD_LATENCIES
int setQpRange(uint32_t MinQpI, uint32_t MaxQpI, uint32_t MinQpP, uint32_t MaxQpP, uint32_t MinQpB, uint32_t MaxQpB)
Sets QP values for I/P/B frames.
int DevicePoll(v4l2_ctrl_video_device_poll *devicepoll)
Issues Poll on the device which blocks until : a) Either there is something to dequeue from capture o...
int setMaxPerfMode(int flag)
Sets the encoder for maximum performance.
int setCapturePlaneFormat(uint32_t pixfmt, uint32_t width, uint32_t height, uint32_t sizeimage)
Sets the format on the converter capture plane.
int setSampleAspectRatioHeight(uint32_t sar_height)
Sets Sample Aspect Ratio height for VUI encoding.
int getMotionVectors(uint32_t buffer_index, v4l2_ctrl_videoenc_outputbuf_metadata_MV &enc_mv_metadata)
Gets motion vector metadata for the encoded capture plane buffer.
int setFrameRate(uint32_t framerate_num, uint32_t framerate_den)
Sets the encode framerate.
int setDisableAMP(bool enabled)
Sets the Disable AMP types to true for H.265.
int setAV1ErrResilienceMode(bool enabled)
Enable Error Resilient Mode for AV1.
int setAlliFramesEncode(bool enabled)
Enables/disables all i-frame encode.
int setTemporalTradeoff(v4l2_enc_temporal_tradeoff_level_type level)
Sets the encoder Temporal Tradeoff.
static NvVideoEncoder * createVideoEncoder(const char *name, int flags=0)
Creates a new V4L2 Video Encoder object named name.
int setAV1FrameIDPresentFlag(bool enabled)
Enable AV1 frame_id_numbers_present_flag.
int setExtendedColorFormat(bool enabled)
Enables/disables extended color format.
static const ProfilerField PROFILER_FIELD_FPS
int setRateControlMode(enum v4l2_mpeg_video_bitrate_mode mode)
Sets the encoder rate control mode.
int setSliceLength(v4l2_enc_slice_length_type type, uint32_t length)
Sets the encoder output slice length.
int enableAV1Tile(v4l2_enc_av1_tile_config ¶ms)
Enable AV1 Multi-tile configuration.
v4l2_enc_hw_preset_type
Specifies the encoder HW Preset type.
int setInsertVuiEnabled(bool enabled)
Enables/disables insert VUI.
static const ProfilerField PROFILER_FIELD_TOTAL_UNITS
int SetPollInterrupt()
Sets the polling interrupt, now if the application calls Poll, the device should not block,...
Holds the params to configure tiles for AV1 encoding.
int setNumReferenceFrames(uint32_t num_frames)
Sets the number of reference frames of the encoder.
Holds the params to configure encoder for external rate control mode to be used with V4L2_CID_MPEG_VI...
int setPocType(uint32_t pocType)
Sets the encoder Picture Order Control type.
Holds the params to configure encoder for Reconstructed CRC encoding.
int forceIDR()
Forces an IDR frame.
int setLossless(bool enabled)
Sets the lossless encoding for H.264/H.265.
int setAV1DisableCDFUpdate(bool disabled)
Disable AV1 CDF update in the symbol decoding process.
int setBitrate(uint32_t bitrate)
Sets the encoder bitrate.
int getMetadata(uint32_t buffer_index, v4l2_ctrl_videoenc_outputbuf_metadata &enc_metadata)
Gets metadata for the encoded capture plane buffer.
int setCABAC(bool enabled)
Enables/disables CABAC entropy encoding for H264.
Defines a helper class for V4L2 Video Encoder.