Voice SDK v3.7.1 API Reference for All Platforms (C++)
|
Public Types | |
enum | PLANE_TYPE { Y_PLANE = 0, U_PLANE = 1, V_PLANE = 2, NUM_OF_PLANES = 3 } |
enum | VIDEO_TYPE { VIDEO_TYPE_UNKNOWN = 0, VIDEO_TYPE_I420 = 1, VIDEO_TYPE_IYUV = 2, VIDEO_TYPE_RGB24 = 3, VIDEO_TYPE_ABGR = 4, VIDEO_TYPE_ARGB = 5, VIDEO_TYPE_ARGB4444 = 6, VIDEO_TYPE_RGB565 = 7, VIDEO_TYPE_ARGB1555 = 8, VIDEO_TYPE_YUY2 = 9, VIDEO_TYPE_YV12 = 10, VIDEO_TYPE_UYVY = 11, VIDEO_TYPE_MJPG = 12, VIDEO_TYPE_NV21 = 13, VIDEO_TYPE_NV12 = 14, VIDEO_TYPE_BGRA = 15, VIDEO_TYPE_RGBA = 16, VIDEO_TYPE_I422 = 17 } |
Public Member Functions | |
virtual void | release ()=0 |
virtual const unsigned char * | buffer (PLANE_TYPE type) const =0 |
virtual int | copyFrame (IVideoFrame **dest_frame) const =0 |
virtual int | convertFrame (VIDEO_TYPE dst_video_type, int dst_sample_size, unsigned char *dst_frame) const =0 |
virtual int | allocated_size (PLANE_TYPE type) const =0 |
virtual int | stride (PLANE_TYPE type) const =0 |
virtual int | width () const =0 |
virtual int | height () const =0 |
virtual unsigned int | timestamp () const =0 |
virtual int64_t | render_time_ms () const =0 |
virtual bool | IsZeroSize () const =0 |
virtual VIDEO_TYPE | GetVideoType () const =0 |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Copies the frame.
If the required size is larger than the allocated size, new buffers of the adequate size will be allocated.
dest_frame | Address of the returned destination frame. See IVideoFrame. |
|
pure virtual |
Converts the frame.
dst_video_type | Type of the output video. |
dst_sample_size | Required only for the parsing of M-JPEG. |
dst_frame | Pointer to a destination frame. See IVideoFrame. |
|
pure virtual |
Gets the specified component in the YUV space.
type | Component type: PLANE_TYPE |
|
pure virtual |
Gets the stride of the specified component in the YUV space.
type | Component type: PLANE_TYPE |
|
pure virtual |
Gets the width of the frame.
|
pure virtual |
Gets the height of the frame.
|
pure virtual |
Gets the timestamp (ms) of the frame.
|
pure virtual |
Gets the render time (ms).
|
pure virtual |
Checks if a plane is of zero size.
|
pure virtual |