9 #pragma once // NOLINT(build/header_guard)
11 #include "AgoraBase.h"
13 #ifndef OPTIONAL_ENUM_CLASS
14 #if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1800)
15 #define OPTIONAL_ENUM_CLASS enum class
17 #define OPTIONAL_ENUM_CLASS enum
30 OPTIONAL_ENUM_CLASS TextureType {
34 OPTIONAL_ENUM_CLASS EglContextType {
39 TextureType texture_type;
40 EglContextType context_type;
44 float transform_matrix[16];
52 OPTIONAL_ENUM_CLASS Format {
69 RawPixelBuffer::Format format;
74 : data(NULL), size(0), stride(0) {}
82 OPTIONAL_ENUM_CLASS Type {
100 int64_t timestamp_ms;
107 OPTIONAL_ENUM_CLASS VideoFrameMetaDataType {
117 OPTIONAL_ENUM_CLASS VideoFrameGravityRotation {
118 kGravityRotation_Unknown = -1,
119 kGravityRotation_0 = 0,
120 kGravityRotation_90 = 90,
121 kGravityRotation_180 = 180,
122 kGravityRotation_270 = 270
130 typedef int32_t VideoSourceType;
192 const VideoFrameData& data,
const VideoFrameMetaDataType* metatypes = NULL,
int count = 0) = 0;