public interface libvlc_video_format_cb
extends com.sun.jna.Callback
Modifier and Type | Method and Description |
---|---|
int |
format(com.sun.jna.Pointer opaque,
String chroma,
com.sun.jna.ptr.IntByReference width,
com.sun.jna.ptr.IntByReference height,
com.sun.jna.ptr.IntByReference pitches,
com.sun.jna.ptr.IntByReference lines)
Callback prototype to configure picture buffers format.
|
int format(com.sun.jna.Pointer opaque, String chroma, com.sun.jna.ptr.IntByReference width, com.sun.jna.ptr.IntByReference height, com.sun.jna.ptr.IntByReference pitches, com.sun.jna.ptr.IntByReference lines)
This callback gets the format of the video as output by the video decoder and the chain of video filters (if any). It can opt to change any parameter as it needs. In that case, LibVLC will attempt to convert the video format (rescaling and chroma conversion) but these operations can be CPU intensive.
opaque
- pointer to the private pointer passed to libvlc_video_set_callbacks() [IN/OUT]chroma
- pointer to the 4 bytes video format identifier [IN/OUT]width
- pointer to the pixel width [IN/OUT]height
- pointer to the pixel height [IN/OUT]pitches
- table of scanline pitches in bytes for each pixel plane (the table is
allocated by LibVLC) [OUT]lines
- table of scanlines count for each plane [OUT]Copyright © 2009-2012 Caprica Software Limited. All Rights Reserved.