Go to the documentation of this file.
15 #import <Foundation/Foundation.h>
164 - (int)allocateRGBATexture:(
NvsSize)texSize;
174 - (void)reclaimTexture:(
int)texId;
186 - (BOOL)uploadHostBufferToOpenGLTexture:(
NvsVideoFrameInfo*)hostBuffer textureId:(
int)tId;
struct NvsCustomVideoFxVideoFrame inputVideoFrame
Inputs video frame.
Definition: NvsCustomVideoFx.h:27
int texId
The texture ID of the video frame.
Definition: NvsCustomVideoFx.h:19
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:361
int64_t effectEndTime
Effect ending time (in microseconds).
Definition: NvsCustomVideoFx.h:33
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:254
Definition: NvsCustomVideoFx.h:26
bool hasBuddyVideoFrame
Indicates that whether the buddy video frame exists or not.Buddy video frames will only exist which s...
Definition: NvsCustomVideoFx.h:28
int width
The width of the video frame.
Definition: NvsCustomVideoFx.h:20
int64_t mediaStreamTime
Effect ending time (in microseconds).
Definition: NvsCustomVideoFx.h:34
int64_t effectStartTime
Effect starting time (in microseconds).
Definition: NvsCustomVideoFx.h:32
NvsVideoFrameInfo inputBuddyVideoFrame
Data and information of the input video frame in Host Memory.
Definition: NvsCustomVideoFx.h:29
Custom video effects renderer interface.
Definition: NvsCustomVideoFx.h:47
struct NvsCustomVideoFxVideoFrame outputVideoFrame
Output video frame.
Definition: NvsCustomVideoFx.h:30
int height
The height of the video frame.
Definition: NvsCustomVideoFx.h:21
Auxiliary method interface for custom video effects.
Definition: NvsCustomVideoFx.h:149
#define NVS_EXPORT
Definition: NvsCommonDef.h:20
void didPreloadResources()
Meishe SDK calls this method on custom video effects to allow some resource preprocessing.
void didInit()
Meishe SDK calls this method on custom video effects to let the user initialize resources.
Definition: NvsCustomVideoFx.h:18
int64_t effectTime
Special effect duration (in microseconds).
Definition: NvsCustomVideoFx.h:31
Size.
Definition: NvsCommonDef.h:265