Agora RTC Objective-C API Reference  Refactor
Enumerations
AgoraMediaIO.h File Reference

Go to the source code of this file.

Enumerations

enum  AgoraVideoPixelFormat { AgoraVideoPixelFormatI420 = 1, AgoraVideoPixelFormatBGRA = 2, AgoraVideoPixelFormatNV12 = 8 }
 
enum  AgoraVideoRotation { AgoraVideoRotationNone = 0, AgoraVideoRotation90 = 90, AgoraVideoRotation180 = 180, AgoraVideoRotation270 = 270 }
 
enum  AgoraVideoBufferType { AgoraVideoBufferTypePixelBuffer = 1, AgoraVideoBufferTypeRawData = 2 }
 

Enumeration Type Documentation

◆ AgoraVideoPixelFormat

Video pixel format.

This enumeration defines the pixel format of the video frame. Agora supports three pixel formats on iOS: I420, BGRA, and NV12. For information on the YVU format, see: http://www.fourcc.org/yuv.php and https://msdn.microsoft.com/en-us/library/windows/desktop/dd206750(v=vs.85).aspx

Enumerator
AgoraVideoPixelFormatI420 

I420

AgoraVideoPixelFormatBGRA 

BGRA

AgoraVideoPixelFormatNV12 

NV12

◆ AgoraVideoRotation

Video rotation.

This enumeration defines the rotating angle of the video. Agora supports rotating clockwise by 0, 90, 180, and 270 degrees.

Enumerator
AgoraVideoRotationNone 

No rotation

AgoraVideoRotation90 

90 degrees

AgoraVideoRotation180 

180 degrees

AgoraVideoRotation270 

270 degrees

◆ AgoraVideoBufferType

Video buffer type

Enumerator
AgoraVideoBufferTypePixelBuffer 

Use a pixel buffer to transmit the video data.

AgoraVideoBufferTypeRawData 

Use raw data to transmit the video data.