|
Jetson Linux API Reference
|
32.7.5 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 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.
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 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.
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 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 setVirtualBufferSize(uint32_t size)
Sets the virtual buffer size of the encoder.
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 setOutputPlaneFormat(uint32_t pixfmt, uint32_t width, uint32_t height)
Sets the format on the encoder output plane.
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 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.
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,...
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 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.
int setConstantQp(int qp_value)
Sets the encoder constant qp.
Defines a helper class for V4L2 Video Encoder.