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  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

The clockwise rotation of the video.

Enumerator
AgoraVideoRotationNone 

0: (Default) No rotation.

AgoraVideoRotation90 

90: 90 degrees.

AgoraVideoRotation180 

180: 180 degrees.

AgoraVideoRotation270 

270: 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.