|
MeiCam SDK For iOS
3.16.3
|
Go to the documentation of this file.
15 #import <Foundation/Foundation.h>
64 #define NVS_CUSTOM_VIDEO_FX_REQUIREMENT_OUTPUT_TEXTURE_COLOR_TRANSFER @"output-texture-color-transfer"
65 #define NVS_CUSTOM_VIDEO_FX_REQUIREMENT_OUTPUT_TEXTURE_COLOR_PRIMARIES @"output-texture-color-primaries"
66 #define NVS_CUSTOM_VIDEO_FX_REQUIREMENT_BUDDY_FRAME_FORMAT @"buddy-frame-pixel-format"
67 #define NVS_CUSTOM_VIDEO_FX_REQUIREMENT_OUTPUT_SIZE_FOLLOW_SINK @"output-size-follow-sink"
227 - (int)allocateRGBATexture:(
NvsSize)texSize;
255 - (void)reclaimTexture:(
int)texId;
267 - (BOOL)uploadHostBufferToOpenGLTexture:(
NvsVideoFrameInfo*)hostBuffer textureId:(
int)tId;
struct NvsCustomVideoFxVideoFrame inputVideoFrame
Inputs video frame.
Definition: NvsCustomVideoFx.h:49
NvsVideoFrameColorPrimaries
Definition: NvsCommonDef.h:265
int texId
The texture ID of the video frame.
Definition: NvsCustomVideoFx.h:19
NvsVideoFrameColorTransfer
Definition: NvsCommonDef.h:245
NvsRational proxyScale
Definition: NvsCustomVideoFx.h:23
NSDictionary * didGetRequirement()
Meishe SDK calls this method on custom video effects to allow input buddy frame.
@ NvsParamType_Float
Definition: NvsCustomVideoFx.h:31
BOOL isUpsideDownTexture
YES means that the texture in this video frame is upside down. The user needs to deal with the textur...
Definition: NvsCustomVideoFx.h:22
Video frame information.
Definition: NvsCommonDef.h:472
int64_t effectEndTime
Effect ending time (in microseconds).
Definition: NvsCustomVideoFx.h:58
void didCleanup()
Meishe SDK calls this method on custom video special effects to let users clean up resources.
void didClearCacheResources()
Meishe SDK calls this method on custom video effects to allow some resource preprocessing.
Rational value.
Definition: NvsCommonDef.h:350
Definition: NvsCustomVideoFx.h:48
NvsParamType
Definition: NvsCustomVideoFx.h:28
bool hasBuddyVideoFrame
Indicates that whether the buddy video frame exists or not.Buddy video frames will only exist which s...
Definition: NvsCustomVideoFx.h:50
int width
The width of the video frame.
Definition: NvsCustomVideoFx.h:20
int64_t mediaStreamTime
Effect ending time (in microseconds).
Definition: NvsCustomVideoFx.h:59
int64_t effectStartTime
Effect starting time (in microseconds).
Definition: NvsCustomVideoFx.h:57
NvsParamType type
Definition: NvsCustomVideoFx.h:39
NvsVideoFrameInfo inputBuddyVideoFrame
Data and information of the input video frame in Host Memory.
Definition: NvsCustomVideoFx.h:51
NvsColor colorVal
Definition: NvsCustomVideoFx.h:45
Custom video effects renderer interface.
Definition: NvsCustomVideoFx.h:79
bool needInputBuddyFrame()
Meishe SDK calls this method on custom video effects to allow input buddy frame.
NvsVideoFrameYUVColorMatrix inputBuddyVideoFrameColorMatrix
Definition: NvsCustomVideoFx.h:52
struct NvsCustomVideoFxVideoFrame outputVideoFrame
Output video frame.
Definition: NvsCustomVideoFx.h:55
Self-defined color.
Definition: NvsCommonDef.h:429
float fltVal
Definition: NvsCustomVideoFx.h:41
Definition: NvsCustomVideoFx.h:38
int menuItemIdx
Definition: NvsCustomVideoFx.h:43
int height
The height of the video frame.
Definition: NvsCustomVideoFx.h:21
@ NvsParamType_Int
Definition: NvsCustomVideoFx.h:30
Auxiliary method interface for custom video effects.
Definition: NvsCustomVideoFx.h:212
@ NvsParamType_String
Definition: NvsCustomVideoFx.h:35
@ NvsParamType_Unknown
Definition: NvsCustomVideoFx.h:29
NSString * strVal
Definition: NvsCustomVideoFx.h:44
NvsVideoFrameYUVColorMatrix
Definition: NvsCommonDef.h:227
#define NVS_EXPORT
Definition: NvsCommonDef.h:20
void didPreloadResources()
Meishe SDK calls this method on custom video effects to allow some resource preprocessing.
NvsGpuVideoFrameFormat texFormat
Definition: NvsCustomVideoFx.h:25
bool boolVal
Definition: NvsCustomVideoFx.h:42
@ NvsParamType_Menu
Definition: NvsCustomVideoFx.h:33
void didInit()
Meishe SDK calls this method on custom video effects to let the user initialize resources.
NSMutableDictionary * paramsMap
Effect params map.
Definition: NvsCustomVideoFx.h:60
@ NvsParamType_Color
Definition: NvsCustomVideoFx.h:34
NvsGpuVideoFrameFormat
Video frame pixel format.
Definition: NvsCommonDef.h:212
NvsVideoFrameColorPrimaries inputBuddyVideoFrameColorPrimaries
Definition: NvsCustomVideoFx.h:54
Definition: NvsCustomVideoFx.h:18
int intVal
Definition: NvsCustomVideoFx.h:40
@ NvsParamType_Bool
Definition: NvsCustomVideoFx.h:32
int64_t effectTime
Special effect duration (in microseconds).
Definition: NvsCustomVideoFx.h:56
NvsVideoFrameColorTransfer inputBuddyVideoFrameColorTransfer
Definition: NvsCustomVideoFx.h:53
Size.
Definition: NvsCommonDef.h:361
NSMutableArray * attachedVideoFrames
Attached video frames.
Definition: NvsCustomVideoFx.h:61
Video frame extra information.
Definition: NvsCommonDef.h:492