@Properties(inherit=nvencodeapi.class) public class NV_ENC_RC_PARAMS extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
NV_ENC_RC_PARAMS()
Default native constructor.
|
NV_ENC_RC_PARAMS(long size)
Native array allocator.
|
NV_ENC_RC_PARAMS(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
alphaLayerBitrateRatio()
[in]: Specifies the ratio in which bitrate should be split between base and alpha layer.
|
NV_ENC_RC_PARAMS |
alphaLayerBitrateRatio(int setter) |
int |
aqStrength()
[in]: When AQ (Spatial) is enabled (i.e.
|
NV_ENC_RC_PARAMS |
aqStrength(int setter) |
int |
averageBitRate()
[in]: Specifies the average bitrate(in bits/sec) used for encoding.
|
NV_ENC_RC_PARAMS |
averageBitRate(int setter) |
byte |
cbQPIndexOffset()
[in]: Specifies the value of 'chroma_qp_index_offset' in H264 / 'pps_cb_qp_offset' in HEVC / 'deltaQ_u_ac' in AV1.
|
NV_ENC_RC_PARAMS |
cbQPIndexOffset(byte setter) |
NV_ENC_QP |
constQP()
[in]: Specifies the initial QP to be used for encoding, these values would be used for all frames if in Constant QP mode.
|
NV_ENC_RC_PARAMS |
constQP(NV_ENC_QP setter) |
byte |
crQPIndexOffset()
[in]: Specifies the value of 'second_chroma_qp_index_offset' in H264 / 'pps_cr_qp_offset' in HEVC / 'deltaQ_v_ac' in AV1 (for future use only - deltaQ_v_ac is currently always internally set to same value as deltaQ_u_ac).
|
NV_ENC_RC_PARAMS |
crQPIndexOffset(byte setter) |
int |
disableBadapt()
[in]: Set this to 1 to disable adaptive B-frame decision (only has an effect when lookahead is enabled)
|
NV_ENC_RC_PARAMS |
disableBadapt(int setter) |
int |
disableIadapt()
[in]: Set this to 1 to disable adaptive I-frame insertion at scene cuts (only has an effect when lookahead is enabled)
|
NV_ENC_RC_PARAMS |
disableIadapt(int setter) |
int |
enableAQ()
[in]: Set this to 1 to enable adaptive quantization (Spatial).
|
NV_ENC_RC_PARAMS |
enableAQ(int setter) |
int |
enableExtLookahead()
[in]: Set this to 1 to enable lookahead externally.
|
NV_ENC_RC_PARAMS |
enableExtLookahead(int setter) |
int |
enableInitialRCQP()
[in]: Set this to 1 if user supplied initial QP is used for rate control.
|
NV_ENC_RC_PARAMS |
enableInitialRCQP(int setter) |
int |
enableLookahead()
[in]: Set this to 1 to enable lookahead with depth
|
NV_ENC_RC_PARAMS |
enableLookahead(int setter) |
int |
enableMaxQP()
[in]: Set this to 1 if maximum QP used for rate control.
|
NV_ENC_RC_PARAMS |
enableMaxQP(int setter) |
int |
enableMinQP()
[in]: Set this to 1 if minimum QP used for rate control.
|
NV_ENC_RC_PARAMS |
enableMinQP(int setter) |
int |
enableNonRefP()
[in]: Set this to 1 to enable automatic insertion of non-reference P-frames (no effect if enablePTD=0)
|
NV_ENC_RC_PARAMS |
enableNonRefP(int setter) |
int |
enableTemporalAQ()
[in]: Set this to 1 to enable temporal AQ
|
NV_ENC_RC_PARAMS |
enableTemporalAQ(int setter) |
NV_ENC_RC_PARAMS |
getPointer(long i) |
NV_ENC_QP |
initialRCQP()
[in]: Specifies the initial QP hint used for rate control.
|
NV_ENC_RC_PARAMS |
initialRCQP(NV_ENC_QP setter) |
short |
lookaheadDepth()
[in]: Maximum depth of lookahead with range 0-(31 - number of B frames).
|
NV_ENC_RC_PARAMS |
lookaheadDepth(short setter) |
int |
lookaheadLevel()
[in]: Specifies the lookahead level.
|
NV_ENC_RC_PARAMS |
lookaheadLevel(int setter) |
byte |
lowDelayKeyFrameScale()
[in]: Specifies the ratio of I frame bits to P frame bits in case of single frame VBV and CBR rate control mode,
is set to 2 by default for low latency tuning info and 1 by default for ultra low latency tuning info
|
NV_ENC_RC_PARAMS |
lowDelayKeyFrameScale(byte setter) |
int |
maxBitRate()
[in]: Specifies the maximum bitrate for the encoded output.
|
NV_ENC_RC_PARAMS |
maxBitRate(int setter) |
NV_ENC_QP |
maxQP()
[in]: Specifies the maximum QP used for rate control.
|
NV_ENC_RC_PARAMS |
maxQP(NV_ENC_QP setter) |
NV_ENC_QP |
minQP()
[in]: Specifies the minimum QP used for rate control.
|
NV_ENC_RC_PARAMS |
minQP(NV_ENC_QP setter) |
int |
multiPass()
[in]: This flag is used to enable multi-pass encoding for a given ::NV_ENC_PARAMS_RC_MODE.
|
NV_ENC_RC_PARAMS |
multiPass(int setter) |
NV_ENC_RC_PARAMS |
position(long position) |
int |
qpMapMode()
[in]: This flag is used to interpret values in array specified by NV_ENC_PIC_PARAMS::qpDeltaMap.
|
NV_ENC_RC_PARAMS |
qpMapMode(int setter) |
int |
rateControlMode()
[in]: Specifies the rate control mode.
|
NV_ENC_RC_PARAMS |
rateControlMode(int setter) |
IntPointer |
reserved() |
int |
reserved(int i) |
NV_ENC_RC_PARAMS |
reserved(int i,
int setter) |
short |
reserved2() |
NV_ENC_RC_PARAMS |
reserved2(short setter) |
int |
reservedBitField1()
[in]: Reserved bitfields and must be set to 0.
|
NV_ENC_RC_PARAMS |
reservedBitField1(int setter) |
int |
reservedBitFields()
[in]: Reserved bitfields and must be set to 0
|
NV_ENC_RC_PARAMS |
reservedBitFields(int setter) |
int |
strictGOPTarget()
[in]: Set this to 1 to minimize GOP-to-GOP rate fluctuations
|
NV_ENC_RC_PARAMS |
strictGOPTarget(int setter) |
byte |
targetQuality()
[in]: Target CQ (Constant Quality) level for VBR mode (range 0-51 with 0-automatic)
|
NV_ENC_RC_PARAMS |
targetQuality(byte setter) |
byte |
targetQualityLSB()
[in]: Fractional part of target quality (as 8.8 fixed point format)
|
NV_ENC_RC_PARAMS |
targetQualityLSB(byte setter) |
int |
temporallayerIdxMask()
[in]: Specifies the temporal layers (as a bitmask) whose QPs have changed.
|
NV_ENC_RC_PARAMS |
temporallayerIdxMask(int setter) |
BytePointer |
temporalLayerQP() |
byte |
temporalLayerQP(int i)
[in]: Specifies the temporal layer QPs used for rate control.
|
NV_ENC_RC_PARAMS |
temporalLayerQP(int i,
byte setter) |
byte |
uDcQPIndexOffset()
[in]: Specifies the value of 'deltaQ_u_dc' in AV1.
|
NV_ENC_RC_PARAMS |
uDcQPIndexOffset(byte setter) |
int |
vbvBufferSize()
[in]: Specifies the VBV(HRD) buffer size.
|
NV_ENC_RC_PARAMS |
vbvBufferSize(int setter) |
int |
vbvInitialDelay()
[in]: Specifies the VBV(HRD) initial delay in bits.
|
NV_ENC_RC_PARAMS |
vbvInitialDelay(int setter) |
byte |
vDcQPIndexOffset()
[in]: Specifies the value of 'deltaQ_v_dc' in AV1 (for future use only - deltaQ_v_dc is currently always internally set to same value as deltaQ_u_dc).
|
NV_ENC_RC_PARAMS |
vDcQPIndexOffset(byte setter) |
int |
version() |
NV_ENC_RC_PARAMS |
version(int setter) |
byte |
yDcQPIndexOffset()
[in]: Specifies the value of 'deltaQ_y_dc' in AV1.
|
NV_ENC_RC_PARAMS |
yDcQPIndexOffset(byte setter) |
int |
zeroReorderDelay()
[in]: Set this to 1 to indicate zero latency operation (no reordering delay, num_reorder_frames=0)
|
NV_ENC_RC_PARAMS |
zeroReorderDelay(int setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public NV_ENC_RC_PARAMS()
public NV_ENC_RC_PARAMS(long size)
Pointer.position(long)
.public NV_ENC_RC_PARAMS(Pointer p)
Pointer(Pointer)
.public NV_ENC_RC_PARAMS position(long position)
public NV_ENC_RC_PARAMS getPointer(long i)
getPointer
in class Pointer
public NV_ENC_RC_PARAMS version(int setter)
@Cast(value="NV_ENC_PARAMS_RC_MODE") public int rateControlMode()
public NV_ENC_RC_PARAMS rateControlMode(int setter)
@ByRef public NV_ENC_QP constQP()
public NV_ENC_RC_PARAMS constQP(NV_ENC_QP setter)
@Cast(value="uint32_t") public int averageBitRate()
public NV_ENC_RC_PARAMS averageBitRate(int setter)
@Cast(value="uint32_t") public int maxBitRate()
public NV_ENC_RC_PARAMS maxBitRate(int setter)
@Cast(value="uint32_t") public int vbvBufferSize()
public NV_ENC_RC_PARAMS vbvBufferSize(int setter)
@Cast(value="uint32_t") public int vbvInitialDelay()
public NV_ENC_RC_PARAMS vbvInitialDelay(int setter)
@Cast(value="uint32_t") @NoOffset public int enableMinQP()
public NV_ENC_RC_PARAMS enableMinQP(int setter)
@Cast(value="uint32_t") @NoOffset public int enableMaxQP()
public NV_ENC_RC_PARAMS enableMaxQP(int setter)
@Cast(value="uint32_t") @NoOffset public int enableInitialRCQP()
public NV_ENC_RC_PARAMS enableInitialRCQP(int setter)
@Cast(value="uint32_t") @NoOffset public int enableAQ()
public NV_ENC_RC_PARAMS enableAQ(int setter)
@Cast(value="uint32_t") @NoOffset public int reservedBitField1()
public NV_ENC_RC_PARAMS reservedBitField1(int setter)
@Cast(value="uint32_t") @NoOffset public int enableLookahead()
public NV_ENC_RC_PARAMS enableLookahead(int setter)
@Cast(value="uint32_t") @NoOffset public int disableIadapt()
public NV_ENC_RC_PARAMS disableIadapt(int setter)
@Cast(value="uint32_t") @NoOffset public int disableBadapt()
public NV_ENC_RC_PARAMS disableBadapt(int setter)
@Cast(value="uint32_t") @NoOffset public int enableTemporalAQ()
public NV_ENC_RC_PARAMS enableTemporalAQ(int setter)
@Cast(value="uint32_t") @NoOffset public int zeroReorderDelay()
public NV_ENC_RC_PARAMS zeroReorderDelay(int setter)
@Cast(value="uint32_t") @NoOffset public int enableNonRefP()
public NV_ENC_RC_PARAMS enableNonRefP(int setter)
@Cast(value="uint32_t") @NoOffset public int strictGOPTarget()
public NV_ENC_RC_PARAMS strictGOPTarget(int setter)
@Cast(value="uint32_t") @NoOffset public int aqStrength()
public NV_ENC_RC_PARAMS aqStrength(int setter)
@Cast(value="uint32_t") @NoOffset public int enableExtLookahead()
public NV_ENC_RC_PARAMS enableExtLookahead(int setter)
@Cast(value="uint32_t") @NoOffset public int reservedBitFields()
public NV_ENC_RC_PARAMS reservedBitFields(int setter)
@ByRef public NV_ENC_QP minQP()
public NV_ENC_RC_PARAMS minQP(NV_ENC_QP setter)
@ByRef public NV_ENC_QP maxQP()
public NV_ENC_RC_PARAMS maxQP(NV_ENC_QP setter)
@ByRef public NV_ENC_QP initialRCQP()
public NV_ENC_RC_PARAMS initialRCQP(NV_ENC_QP setter)
@Cast(value="uint32_t") public int temporallayerIdxMask()
public NV_ENC_RC_PARAMS temporallayerIdxMask(int setter)
@Cast(value="uint8_t") public byte temporalLayerQP(int i)
public NV_ENC_RC_PARAMS temporalLayerQP(int i, byte setter)
@MemberGetter @Cast(value="uint8_t*") public BytePointer temporalLayerQP()
@Cast(value="uint8_t") public byte targetQuality()
public NV_ENC_RC_PARAMS targetQuality(byte setter)
@Cast(value="uint8_t") public byte targetQualityLSB()
public NV_ENC_RC_PARAMS targetQualityLSB(byte setter)
@Cast(value="uint16_t") public short lookaheadDepth()
public NV_ENC_RC_PARAMS lookaheadDepth(short setter)
@Cast(value="uint8_t") public byte lowDelayKeyFrameScale()
public NV_ENC_RC_PARAMS lowDelayKeyFrameScale(byte setter)
@Cast(value="int8_t") public byte yDcQPIndexOffset()
public NV_ENC_RC_PARAMS yDcQPIndexOffset(byte setter)
@Cast(value="int8_t") public byte uDcQPIndexOffset()
public NV_ENC_RC_PARAMS uDcQPIndexOffset(byte setter)
@Cast(value="int8_t") public byte vDcQPIndexOffset()
public NV_ENC_RC_PARAMS vDcQPIndexOffset(byte setter)
@Cast(value="NV_ENC_QP_MAP_MODE") public int qpMapMode()
Set this to NV_ENC_QP_MAP_DELTA to treat values specified by NV_ENC_PIC_PARAMS::qpDeltaMap as QP Delta. This specifies QP modifier to be applied on top of the QP chosen by rate control
Set this to NV_ENC_QP_MAP_DISABLED to ignore NV_ENC_PIC_PARAMS::qpDeltaMap values. In this case, qpDeltaMap should be set to NULL.
Other values are reserved for future use.
public NV_ENC_RC_PARAMS qpMapMode(int setter)
@Cast(value="NV_ENC_MULTI_PASS") public int multiPass()
public NV_ENC_RC_PARAMS multiPass(int setter)
@Cast(value="uint32_t") public int alphaLayerBitrateRatio()
public NV_ENC_RC_PARAMS alphaLayerBitrateRatio(int setter)
@Cast(value="int8_t") public byte cbQPIndexOffset()
public NV_ENC_RC_PARAMS cbQPIndexOffset(byte setter)
@Cast(value="int8_t") public byte crQPIndexOffset()
public NV_ENC_RC_PARAMS crQPIndexOffset(byte setter)
public NV_ENC_RC_PARAMS reserved2(short setter)
@Cast(value="NV_ENC_LOOKAHEAD_LEVEL") public int lookaheadLevel()
public NV_ENC_RC_PARAMS lookaheadLevel(int setter)
public NV_ENC_RC_PARAMS reserved(int i, int setter)
@MemberGetter @Cast(value="uint32_t*") public IntPointer reserved()
Copyright © 2024. All rights reserved.