#include <SurfaceInterop.h>
virtual QtAV::VideoSurfaceInterop::~VideoSurfaceInterop |
( |
| ) |
|
|
inlinevirtual |
virtual void* QtAV::VideoSurfaceInterop::createHandle |
( |
void * |
handle, |
|
|
SurfaceType |
type, |
|
|
const VideoFormat & |
fmt, |
|
|
int |
plane, |
|
|
int |
planeWidth, |
|
|
int |
planeHeight |
|
) |
| |
|
inlinevirtual |
createHandle It is used by opengl renderer to create a texture when rendering frame from VDA/VideoToolbox decoder VideoSurfaceInterop does not have the ownership.
VideoShader does
- Returns
- NULL if not used for opengl rendering. handle if create here
virtual void* QtAV::VideoSurfaceInterop::map |
( |
SurfaceType |
type, |
|
|
const VideoFormat & |
fmt, |
|
|
void * |
handle = 0 , |
|
|
int |
plane = 0 |
|
) |
| |
|
inlinevirtual |
map currently is used to map a frame from hardware decoder to opengl texture, host memory.
- Parameters
-
type | currently only support GLTextureSurface and HostMemorySurface for some decoders |
fmt | HostMemorySurface: must be a packed rgb format |
handle | address of real handle. handle value can be modified in map() and the caller (VideoShader for example) should manage the changes. GLTextureSurface: usually opengl texture. maybe other objects for some decoders in the feature HostMemorySurface: a VideoFrame ptr |
plane | |
- Returns
- Null if not supported or failed. handle if success.
virtual void QtAV::VideoSurfaceInterop::unmap |
( |
void * |
handle | ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: