Go to the documentation of this file.
15 #import <Foundation/Foundation.h>
146 - (int)allocateRGBATexture:(
NvsSize)texSize;
156 - (void)reclaimTexture:(
int)texId;
168 - (BOOL)uploadHostBufferToOpenGLTexture:(
NvsVideoFrameInfo*)hostBuffer textureId:(
int)tId;
void didPreloadResources()
Meishe SDK calls this method on custom video effects to allow some resource preprocessing.
struct NvsCustomVideoTransitionVideoFrame outputVideoFrame
Output video frame.
Definition: NvsCustomVideoTransition.h:28
int64_t effectStartTime
Effect starting time (in microseconds).
Definition: NvsCustomVideoTransition.h:31
struct NvsCustomVideoTransitionVideoFrame outGoingVideoFrame
Inputs video frame.
Definition: NvsCustomVideoTransition.h:27
Video frame information.
Definition: NvsCommonDef.h:361
int texId
The texture ID of the video frame.
Definition: NvsCustomVideoTransition.h:19
Definition: NvsCustomVideoTransition.h:25
void didInit()
Meishe SDK calls this method on custom video effects to let the user initialize resources.
int64_t effectEndTime
Effect ending time (in microseconds).
Definition: NvsCustomVideoTransition.h:32
struct NvsCustomVideoTransitionVideoFrame commingInVideoFrame
Inputs video frame.
Definition: NvsCustomVideoTransition.h:26
int64_t effectTime
Special effect duration (in microseconds).
Definition: NvsCustomVideoTransition.h:30
void didCleanup()
Meishe SDK calls this method on custom video special effects to let users clean up resources.
Custom video effects renderer interface.
Definition: NvsCustomVideoTransition.h:45
float progress
Definition: NvsCustomVideoTransition.h:29
Auxiliary method interface for custom video effects.
Definition: NvsCustomVideoTransition.h:131
#define NVS_EXPORT
Definition: NvsCommonDef.h:20
int width
The width of the video frame.
Definition: NvsCustomVideoTransition.h:20
int height
The height of the video frame.
Definition: NvsCustomVideoTransition.h:21
BOOL isUpsideDownTexture
YES means that the texture in this video frame is upside down. The user needs to deal with the textur...
Definition: NvsCustomVideoTransition.h:22
Definition: NvsCustomVideoTransition.h:18
Size.
Definition: NvsCommonDef.h:265