caprica/vlcj — pull request #93 by hjohn (2012-09-08 07:31:17+00:00)
Title: DirectMediaPlayer with format callback support (updated)

Update: I removed all the white space changes and formatted the code I added. Also added some more missing javadoc.

I've added a new constructor to DirectMediaPlayer and made the old constructor call the new one since the new one is more general.

I introduced a BufferFormat class for configuring the format of the buffers in the newly introduced call back interface BufferFormatCallback. I also understand now how VLC handles multiple "buffers" -- they are planes actually for formats that have several buffers (like YV42 where the buffers are not all the same size for each color component).

I've implemented this support as well, so multiple buffers can be allocated if required.

I was unable to run your tests -- I donot know if I broke anything, but probably I guess. Let me know what you think.