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 {
  AgoraVideoRotation_0 = 0, AgoraVideoRotation_90 = 90, AgoraVideoRotation_180 = 180, AgoraVideoRotation_270 = 270,
  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
AgoraVideoRotation_0 

0: Rotate the video by 0 degree clockwise.

AgoraVideoRotation_90 

90: Rotate the video by 90 degrees clockwise.

AgoraVideoRotation_180 

180: Rotate the video by 180 degrees clockwise.

AgoraVideoRotation_270 

270: Rotate the video by 270 degrees clockwise.

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.