美摄SDK For iOS  3.14.0
| 宏定义 | 类型定义 | 枚举
NvsEffectCommonDef.h 文件参考
#include <stdint.h>

浏览源代码.

struct  NvsEffectRational
 比例值 更多...
 
struct  NvsEffectVideoResolution
 视频解析度 更多...
 
struct  NvsEffectColor
 自定义颜色类 更多...
 
struct  NvsEffectPosition2D
 二维坐标结构 更多...
 
struct  NvsEffectPosition3D
 三维坐标结构 更多...
 
struct  NvsEffectVideoFrameInfo
 视频帧信息 更多...
 
struct  NvsEffectVideoFrameInfoExt
 视频帧扩展信息 更多...
 
struct  NvsEffectRect
 矩形 更多...
 

宏定义

#define NVS_EXPORT   __attribute__((visibility("default")))
 
#define NVS_VIDEO_FRAME_MAX_PLANES   4
 

类型定义

typedef enum NvsEffectVideoFramePixelFormat NvsEffectVideoFramePixelFormat
 视频帧像素格式 更多...
 
typedef enum NvsEffectGpuVideoFrameFormat NvsEffectGpuVideoFrameFormat
 视频帧像素格式 更多...
 

枚举

enum  NvsEffectVideoFramePixelFormat { NvsEffectPixelFormat_Nv12, NvsEffectPixelFormat_YUV420, NvsEffectPixelFormat_BGRA, NvsEffectPixelFormat_P010 }
 视频帧像素格式 更多...
 
enum  NvsEffectGpuVideoFrameFormat { NvsEffectGpuVideoFrameFormat_RGBA8, NvsEffectGpuVideoFrameFormat_RGBAF16 }
 视频帧像素格式 更多...
 

yuvd到rgb颜色转换矩阵

enum  NvsEffectVideoFrameYUVColorMatrix { NvsEffectVideoFrameYUVColorMatrix_Bt601, NvsEffectVideoFrameYUVColorMatrix_Bt709, NvsEffectVideoFrameYUVColorMatrix_Bt2020 }
 
typedef enum NvsEffectVideoFrameYUVColorMatrix NvsEffectVideoFrameYUVColorMatrix
 

颜色转移特性

enum  NvsEffectVideoFrameColorTransfer { NvsEffectVideoFrameColorTransfer_sRGB, NvsEffectVideoFrameColorTransfer_SMPTE2084, NvsEffectVideoFrameColorTransfer_ARIB_STD_B67 }
 
typedef enum NvsEffectVideoFrameColorTransfer NvsEffectVideoFrameColorTransfer
 

原色

enum  NvsEffectVideoFrameColorPrimaries { NvsEffectVideoFrameColorPrimaries_Bt709, NvsEffectVideoFrameColorPrimaries_Bt2020, NvsEffectVideoFrameColorPrimaries_DisplayP3 }
 
typedef enum NvsEffectVideoFrameColorPrimaries NvsEffectVideoFrameColorPrimaries
 

宏定义说明

◆ NVS_EXPORT

#define NVS_EXPORT   __attribute__((visibility("default")))

◆ NVS_VIDEO_FRAME_MAX_PLANES

#define NVS_VIDEO_FRAME_MAX_PLANES   4

类型定义说明

◆ NvsEffectGpuVideoFrameFormat

视频帧像素格式

◆ NvsEffectVideoFrameColorPrimaries

◆ NvsEffectVideoFrameColorTransfer

◆ NvsEffectVideoFramePixelFormat

视频帧像素格式

◆ NvsEffectVideoFrameYUVColorMatrix

枚举类型说明

◆ NvsEffectGpuVideoFrameFormat

视频帧像素格式

枚举值
NvsEffectGpuVideoFrameFormat_RGBA8 
NvsEffectGpuVideoFrameFormat_RGBAF16 

RGBA格式每个通道是半精度浮点(half float)

◆ NvsEffectVideoFrameColorPrimaries

枚举值
NvsEffectVideoFrameColorPrimaries_Bt709 

RGB color space BT.709 standardized as Rec. ITU-R BT.709-5.

NvsEffectVideoFrameColorPrimaries_Bt2020 

RGB color space BT.2020 standardized as Rec. ITU-R BT.2020-1.

NvsEffectVideoFrameColorPrimaries_DisplayP3 

RGB color space Display P3 based on SMPTE RP 431-2-2007 and IEC 61966-2.1:1999.

◆ NvsEffectVideoFrameColorTransfer

枚举值
NvsEffectVideoFrameColorTransfer_sRGB 
NvsEffectVideoFrameColorTransfer_SMPTE2084 

SMPTE ST 2084 for 10-, 12-, 14- and 16-bit systems known as "PQ"

NvsEffectVideoFrameColorTransfer_ARIB_STD_B67 

ARIB STD-B67, known as "Hybrid log-gamma"

◆ NvsEffectVideoFramePixelFormat

视频帧像素格式

枚举值
NvsEffectPixelFormat_Nv12 

YUV 4:2:0 12bpp ( 2通道, 一个通道是连续的亮度通道, 另一通道为VU分量交错 )

NvsEffectPixelFormat_YUV420 

YUV 4:2:0 12bpp ( 3通道, 一个亮度通道, 另两个为U分量和V分量通道, 所有通道都是连续的 )

NvsEffectPixelFormat_BGRA 
NvsEffectPixelFormat_P010 

YUV 4:2:0 24bpp ( 2通道, 一个通道是连续的亮度通道, 另一通道为VU分量交错 每个通道占用16位,高10位有效)

◆ NvsEffectVideoFrameYUVColorMatrix

枚举值
NvsEffectVideoFrameYUVColorMatrix_Bt601 

ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL

NvsEffectVideoFrameYUVColorMatrix_Bt709 

ITU-R BT1361 / IEC 61966-2-4 xvYCC709 / SMPTE RP177 Annex B

NvsEffectVideoFrameYUVColorMatrix_Bt2020 

ITU-R BT2020