@Namespace(value="dai") @Properties(inherit=depthai.class) public class VideoEncoderProperties extends Pointer
| Modifier and Type | Class and Description |
|---|---|
static class |
VideoEncoderProperties.Profile
Encoding profile, H264, H265 or MJPEG
|
static class |
VideoEncoderProperties.RateControlMode
Rate control mode specifies if constant or variable bitrate should be used (H264 / H265)
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
VideoEncoderProperties()
Default native constructor.
|
VideoEncoderProperties(long size)
Native array allocator.
|
VideoEncoderProperties(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
bitrate()
Specifies prefered bitrate (kb) of compressed output bitstream
|
VideoEncoderProperties |
bitrate(int setter) |
float |
frameRate()
Frame rate
|
VideoEncoderProperties |
frameRate(float setter) |
VideoEncoderProperties |
getPointer(long i) |
int |
height()
Input and compressed output frame height
|
VideoEncoderProperties |
height(int setter) |
int |
keyframeFrequency()
Every x number of frames a keyframe will be inserted
|
VideoEncoderProperties |
keyframeFrequency(int setter) |
boolean |
lossless()
Lossless mode ([M]JPEG only)
|
VideoEncoderProperties |
lossless(boolean setter) |
int |
maxBitrate()
Specifies maximum bitrate (kb) of compressed output bitstream
|
VideoEncoderProperties |
maxBitrate(int setter) |
int |
numBFrames()
Specifies number of B frames to be inserted
|
VideoEncoderProperties |
numBFrames(int setter) |
int |
numFramesPool()
This options specifies how many frames are available in this nodes pool (can help if
receiver node is slow at consuming
|
VideoEncoderProperties |
numFramesPool(int setter) |
VideoEncoderProperties |
position(long position) |
VideoEncoderProperties.Profile |
profile()
Encoding profile, H264, H265 or MJPEG
|
VideoEncoderProperties |
profile(VideoEncoderProperties.Profile setter) |
int |
quality()
Value between 0-100% (approximates quality)
|
VideoEncoderProperties |
quality(int setter) |
VideoEncoderProperties.RateControlMode |
rateCtrlMode()
Rate control mode specifies if constant or variable bitrate should be used (H264 / H265)
|
VideoEncoderProperties |
rateCtrlMode(VideoEncoderProperties.RateControlMode setter) |
int |
width()
Input and compressed output frame width
|
VideoEncoderProperties |
width(int setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic VideoEncoderProperties()
public VideoEncoderProperties(long size)
Pointer.position(long).public VideoEncoderProperties(Pointer p)
Pointer(Pointer).public VideoEncoderProperties position(long position)
public VideoEncoderProperties getPointer(long i)
getPointer in class Pointer@Cast(value="std::int32_t") public int bitrate()
public VideoEncoderProperties bitrate(int setter)
@Cast(value="std::int32_t") public int keyframeFrequency()
public VideoEncoderProperties keyframeFrequency(int setter)
@Cast(value="std::int32_t") public int maxBitrate()
public VideoEncoderProperties maxBitrate(int setter)
@Cast(value="std::int32_t") public int numBFrames()
public VideoEncoderProperties numBFrames(int setter)
@Cast(value="std::uint32_t") public int numFramesPool()
public VideoEncoderProperties numFramesPool(int setter)
public VideoEncoderProperties.Profile profile()
public VideoEncoderProperties profile(VideoEncoderProperties.Profile setter)
@Cast(value="std::int32_t") public int quality()
public VideoEncoderProperties quality(int setter)
public VideoEncoderProperties lossless(boolean setter)
public VideoEncoderProperties.RateControlMode rateCtrlMode()
public VideoEncoderProperties rateCtrlMode(VideoEncoderProperties.RateControlMode setter)
public VideoEncoderProperties width(int setter)
public VideoEncoderProperties height(int setter)
public float frameRate()
public VideoEncoderProperties frameRate(float setter)
Copyright © 2021. All rights reserved.