Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)processMovieFrame:(CMSampleBufferRef)movieSampleBuffer {
- ..
- CVReturn err = CVOpenGLESTextureCacheCreateTextureFromImage(kCFAllocatorDefault,
- coreVideoTextureCache, movieFrame, NULL, GL_TEXTURE_2D, GL_RGBA, bufferWidth,
- bufferHeight, GL_BGRA, GL_UNSIGNED_BYTE, 0, &texture);
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement