|
Agora Java API Reference for Android
|
Public Member Functions | |
| virtual int | initVideoEncoder (ExtensionVideoCodecSettings codec_settings)=0 |
| virtual int32_t | registerEncoderCallback (IExtensionEncoderCallback *callback)=0 |
| virtual int | encode (agora_refptr< IVideoFrame > frame, VIDEO_FRAME_TYPE frame_type)=0 |
| virtual int32_t | releaseVideoEncoder ()=0 |
| virtual int32_t | setRates (uint32_t bitrate_kbps, uint32_t framerate)=0 |
| virtual void | querySupportCodecDataFormat (media::base::VIDEO_PIXEL_FORMAT *data_format, int &size)=0 |
| virtual int | setAdvancedCodecProperty (const char *key, const char *json_value)=0 |
| virtual int | getAdvancedCodecProperty (const char *key, char *json_value, int &length) const =0 |
Public Member Functions inherited from agora::RefCountInterface | |
| virtual void | AddRef () const =0 |
| virtual RefCountReleaseStatus | Release () const =0 |
| virtual bool | HasOneRef () const =0 |
|
pure virtual |
Initializes the video encoder with the specified codec settings.
| codec_settings | The video codec settings that define how the video should be encoded. |
|
pure virtual |
Registers a callback function to handle encoding events or notifications.
| callback | A pointer to the encoder callback interface. |
|
pure virtual |
Encodes a video frame.
| frame | A reference to the video frame to be encoded. |
| frame_type | The type of the video frame (e.g., keyframe, delta frame). |
|
pure virtual |
Releases the resources used by the video encoder.
|
pure virtual |
Sets the rates for the encoder, specifying the target bitrate and framerate.
| bitrate_kbps | The target bitrate in kilobits per second. |
| framerate | The target framerate in frames per second. |
|
pure virtual |
Queries the supported codec data formats.
| data_format | A pointer to an array where supported pixel formats will be filled. |
| size | An input/output parameter; initially holds the size of the array, and will be updated with the actual number of formats filled. |
|
pure virtual |
Sets a advanced codec property in the IExtensionVideoEncoder class.
| key | The pointer to the property name. |
| buf | The pointer to the buffer of this private property. |
| buf_size | The buffer size of this private property. |
|
pure virtual |
Gets a advanced codec property in the IExtensionVideoEncoder class.
| name | The pointer to the property name. |
| buf | The pointer to the buffer of this advanced codec property. |
| buf_size | The buffer size of this advanced codec property. |
1.8.18