vlc.VideoLockCb
- class vlc.VideoLockCb
Bases:
ctypes.c_void_pCallback prototype to allocate and lock a picture buffer.
Whenever a new video frame needs to be decoded, the lock callback is invoked. Depending on the video chroma, one or three pixel planes of adequate dimensions must be returned via the second parameter. Those planes must be aligned on 32-bytes boundaries.
- Parameters:
opaque – private pointer as passed to
libvlc_video_set_callbacks()[IN].planes – start address of the pixel planes (LibVLC allocates the array. of void pointers, this callback must initialize the array) [OUT].
- Returns:
a private pointer for the display and unlock callbacks to identify. the picture buffers.
Initialize self. See help(type(self)) for accurate signature.