|
Jetson Linux API Reference
|
32.7.6 Release
|
Go to the documentation of this file.
45 #ifndef __NV_VIDEO_ENCODER_H__
46 #define __NV_VIDEO_ENCODER_H__
106 uint32_t height, uint32_t sizeimage);
119 int setFrameRate(uint32_t framerate_num, uint32_t framerate_den);
537 int setQpRange(uint32_t MinQpI, uint32_t MaxQpI, uint32_t MinQpP,
538 uint32_t MaxQpP, uint32_t MinQpB, uint32_t MaxQpB);
int setCapturePlaneFormat(uint32_t pixfmt, uint32_t width, uint32_t height, uint32_t sizeimage)
Sets the format on the converter capture plane.
int setTemporalTradeoff(v4l2_enc_temporal_tradeoff_level_type level)
Sets the encoder Temporal Tradeoff.
int setDisableAMP(bool enabled)
Sets the Disable AMP types to true for H.265.
int setIFrameInterval(uint32_t interval)
Sets the encoder I-frame interval.
int setHWPresetType(v4l2_enc_hw_preset_type type)
Sets the encoder HW Preset Type.
int setLossless(bool enabled)
Sets the lossless encoding for H.264/H.265.
int setInsertAudEnabled(bool enabled)
Enables/disables insert AUD.
v4l2_enc_temporal_tradeoff_level_type
Specifies the types of encoder temporal tradeoff levels.
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 enableExternalRPS(v4l2_enc_enable_ext_rps_ctr ¶ms)
Enable External RPS.
int setSampleAspectRatioWidth(uint32_t sar_width)
Sets Sample Aspect Ratio width for VUI encoding.
int forceIDR()
Forces an IDR frame.
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...
Holds the encoder frame input metadata parameters.
int setSliceIntrarefresh(uint32_t interval)
Sets slice intra-refresh interval params.
int setIDRInterval(uint32_t interval)
Sets the encoder IDR interval.
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.
Holds the params to configure encoder for Reconstructed CRC encoding.
int setConstantQp(int qp_value)
Sets the encoder constant qp.
int setEncoderCommand(int cmd, int flags)
Sets the encoder command.
int setExtendedColorFormat(bool enabled)
Enables/disables extended color format.
int enableROI(v4l2_enc_enable_roi_param ¶ms)
Enables External ROI.
int setMaxPerfMode(int flag)
Sets the encoder for maximum performance.
int setNumBFrames(uint32_t num)
Sets the number of B frames to P frames.
int setCABAC(bool enabled)
Enables/disables CABAC entropy encoding for H264.
v4l2_mpeg_video_bitrate_mode
Holds the params to configure encoder for ROI parameters encoding.
int setPeakBitrate(uint32_t peak_bitrate)
Sets the encoder peak bitrate.
int setSampleAspectRatioHeight(uint32_t sar_height)
Sets Sample Aspect Ratio height for VUI encoding.
int setNumReferenceFrames(uint32_t num_frames)
Sets the number of reference frames of the encoder.
int SetPollInterrupt()
Sets the polling interrupt, now if the application calls Poll, the device should not block,...
int setProfile(uint32_t profile)
Sets the encoder profile.
int setSliceLevelEncode(bool enabled)
Enables/disables Slice level encoding for H264 / HEVC.
int setChromaFactorIDC(uint8_t crfactor)
Sets the H.265 encoder Chroma Format IDC.
static NvVideoEncoder * createVideoEncoder(const char *name, int flags=0)
Creates a new V4L2 Video Encoder object named name.
Holds the params to configure encoder for external rate control mode to be used with V4L2_CID_MPEG_VI...
int setRateControlMode(enum v4l2_mpeg_video_bitrate_mode mode)
Sets the encoder rate control mode.
int setFrameRate(uint32_t framerate_num, uint32_t framerate_den)
Sets the encode framerate.
static const ProfilerField PROFILER_FIELD_LATENCIES
int setPocType(uint32_t pocType)
Sets the encoder Picture Order Control type.
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 setInsertVuiEnabled(bool enabled)
Enables/disables insert VUI.
int setLevel(uint32_t level)
Set the encoder level.
v4l2_enc_hw_preset_type
Specifies the encoder HW Preset type.
Defines a helper class for V4L2 based components.
static const ProfilerField PROFILER_FIELD_TOTAL_UNITS
v4l2_enc_slice_length_type
Enum specifying the type of slice length.
int setVirtualBufferSize(uint32_t size)
Sets the virtual buffer size of the encoder.
int getMetadata(uint32_t buffer_index, v4l2_ctrl_videoenc_outputbuf_metadata &enc_metadata)
Gets metadata for the encoded capture plane buffer.
static const ProfilerField PROFILER_FIELD_FPS
Holds the encoder frame ROI parameters to be used with V4L2_CID_MPEG_VIDEOENC_ROI_PARAMS IOCTL.
Defines a helper class for V4L2 Video Encoder.
Holds the params to configure encoder for external rps control to be used with V4L2_CID_MPEG_VIDEOENC...
Holds the encoder output metadata for a frame, to be used with V4L2_CID_MPEG_VIDEOENC_METADATA IOCTL.
int setAlliFramesEncode(bool enabled)
Enables/disables all i-frame encode.
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 enableExternalRC(v4l2_enc_enable_ext_rate_ctr ¶ms)
Enable External Picture RC.
int setOutputPlaneFormat(uint32_t pixfmt, uint32_t width, uint32_t height)
Sets the format on the encoder output plane.
int enableMotionVectorReporting()
Enables video encoder output motion vector metadata reporting.
int ClearPollInterrupt()
Clears the polling interrupt, now if the application calls Poll, the device should block until the ev...
int enableReconCRC(v4l2_enc_enable_reconcrc_param ¶ms)
Enables Recon CRC.
int setSliceLength(v4l2_enc_slice_length_type type, uint32_t length)
Sets the encoder output slice length.
Holds the motion vector parameters for one complete frame.
int setBitrate(uint32_t bitrate)
Sets the encoder bitrate.
int setInsertSpsPpsAtIdrEnabled(bool enabled)
Enables/disables insert SPS PPS at every IDR.