IVideoFrame class

Inheritance
  • Object
  • NativeClass
  • IVideoFrame
Implementers

Constructors

IVideoFrame([NativeClassOptions? options])

Properties

$resource → NativeResource
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
ready Future<void>
Whether the instance is initialized
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addRef() FutureOr<void>
@detail api @brief Increase the reference count of the video frame by 1. @note If you wants to asynchronously process the video frame (for example, switch the thread for rendering), you need to call this interface to increase the reference count. After the asynchronous processing is completed, you need to call releaseRef to reduce the reference count by 1.
bufferType() FutureOr<VideoBufferType>
@detail api @brief Gets video buffer type, see VideoBufferType{@link #VideoBufferType}
cameraId() FutureOr<CameraId>
@detail api @brief Get camera position info of the video frame, see CameraId{@link #CameraId}
contentType() FutureOr<VideoContentType>
@detail api @brief Gets video content type. @return See VideoContentType{@link #VideoContentType}.
destroy() → void
inherited
eglContext() FutureOr
@detail api @brief Gets the EGLContext
height() FutureOr<int>
@detail api @brief Gets video frame height
nativeCall<T>(String method, [List? args, NativeMethodMeta? meta]) Future<T>
Call instance method
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
numberOfPlanes() FutureOr<int>
@detail api @brief Gets the number of video frame planes
pixelFormat() FutureOr<VideoPixelFormat>
@detail api @brief Gets video frame's pixel format, see VideoPixelFormat{@link #VideoPixelFormat}
planeData(int planeIndex) FutureOr<ByteBuffer>
@detail api @brief Gets array of video frame planes @param planeIndex Plane index
planeStride(int planeIndex) FutureOr<int>
@detail api @brief Gets the length of memory between two lines of image data in video frame plane in bytes. @param planeIndex Plane index
releaseRef() FutureOr<long>
@detail api @brief Decrease the reference count of the video frame by 1. @note When the reference count of a video frame is decreased to 0, the video frame object is released. After the video frame is released, it should not be used anymore.
rotation() FutureOr<VideoRotation>
@detail api @brief Gets video frame rotation angle
seiData() FutureOr<ByteBuffer>
@detail api @brief Gets SEI data
sendInstanceGet<T>(String property) Future<T>
Get instance property
inherited
sendInstancePropertiesGet(dynamic nativeClass) Future<Map<String, dynamic>>
Get instance properties
inherited
sendInstanceSet(String property, dynamic value) Future<void>
Set instance property
inherited
textureId() FutureOr<int>
@detail api @brief Gets texture ID
textureMatrix() FutureOr<Array<float>>
@detail api @brief Gets texture matrix
timestampUs() FutureOr<long>
@detail api @brief Gets video frame timestamp in microseconds
toString() String
A string representation of this object.
inherited
updateResource(NativeResource resource) → void
inherited
width() FutureOr<int>
@detail api @brief Gets video frame width

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

codegen_$namespace → dynamic
no setter