MeiCam SDK For iOS
3.14.0
|
Go to the documentation of this file.
15 #import <Foundation/Foundation.h>
185 - (int)allocateRGBATexture:(
NvsSize)texSize;
213 - (void)reclaimTexture:(
int)texId;
225 - (BOOL)uploadHostBufferToOpenGLTexture:(
NvsVideoFrameInfo*)hostBuffer textureId:(
int)tId;
struct NvsCustomVideoFxVideoFrame inputVideoFrame
Inputs video frame.
Definition: NvsCustomVideoFx.h:29
NvsVideoFrameColorPrimaries
Definition: NvsCommonDef.h:254
int texId
The texture ID of the video frame.
Definition: NvsCustomVideoFx.h:19
NvsVideoFrameColorTransfer
Definition: NvsCommonDef.h:235
NvsRational proxyScale
Definition: NvsCustomVideoFx.h:23
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:446
int64_t effectEndTime
Effect ending time (in microseconds).
Definition: NvsCustomVideoFx.h:38
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:339
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:30
int width
The width of the video frame.
Definition: NvsCustomVideoFx.h:20
int64_t mediaStreamTime
Effect ending time (in microseconds).
Definition: NvsCustomVideoFx.h:39
int64_t effectStartTime
Effect starting time (in microseconds).
Definition: NvsCustomVideoFx.h:37
NvsVideoFrameInfo inputBuddyVideoFrame
Data and information of the input video frame in Host Memory.
Definition: NvsCustomVideoFx.h:31
Custom video effects renderer interface.
Definition: NvsCustomVideoFx.h:52
bool needInputBuddyFrame()
Meishe SDK calls this method on custom video effects to allow input buddy frame.
NvsVideoFrameYUVColorMatrix inputBuddyVideoFrameColorMatrix
Definition: NvsCustomVideoFx.h:32
struct NvsCustomVideoFxVideoFrame outputVideoFrame
Output video frame.
Definition: NvsCustomVideoFx.h:35
int height
The height of the video frame.
Definition: NvsCustomVideoFx.h:21
Auxiliary method interface for custom video effects.
Definition: NvsCustomVideoFx.h:170
NvsVideoFrameYUVColorMatrix
Definition: NvsCommonDef.h:217
#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
void didInit()
Meishe SDK calls this method on custom video effects to let the user initialize resources.
NvsGpuVideoFrameFormat
Video frame pixel format.
Definition: NvsCommonDef.h:202
NvsVideoFrameColorPrimaries inputBuddyVideoFrameColorPrimaries
Definition: NvsCustomVideoFx.h:34
Definition: NvsCustomVideoFx.h:18
int64_t effectTime
Special effect duration (in microseconds).
Definition: NvsCustomVideoFx.h:36
NvsVideoFrameColorTransfer inputBuddyVideoFrameColorTransfer
Definition: NvsCustomVideoFx.h:33
Size.
Definition: NvsCommonDef.h:350
Video frame extra information.
Definition: NvsCommonDef.h:466