Interface libvlc_lock_callback_t

  • All Superinterfaces:
    com.sun.jna.Callback

    public interface libvlc_lock_callback_t
    extends com.sun.jna.Callback
    Callback prototype to allocate and lock a picture buffer.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.sun.jna.Callback

        com.sun.jna.Callback.UncaughtExceptionHandler
    • Field Summary

      • Fields inherited from interface com.sun.jna.Callback

        FORBIDDEN_NAMES, METHOD_NAME
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.sun.jna.Pointer lock​(com.sun.jna.Pointer opaque, com.sun.jna.ptr.PointerByReference planes)
      Callback prototype to allocate and lock a picture buffer.
    • Method Detail

      • lock

        com.sun.jna.Pointer lock​(com.sun.jna.Pointer opaque,
                                 com.sun.jna.ptr.PointerByReference planes)
        Callback 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