Hello,
i'm analyzing the decoding of videos and i don't know how vlc does it, what functions use, in what class is implemented the decoding and where vlc saves the frames.
I believe that vlc decodes a frame and displays it until that the next frame is completly decoded.
In the VideoPlayerActivity, the following lines of code control the playback of the video, but for this his frames have had to be decoded before.
/* Start / resume playback */
if (savedIndexPosition > -1) {
mLibVLC.playIndex(savedIndexPosition);
} else if (mLocation != null && mLocation.length() > 0 && !dontParse) {
savedIndexPosition = mLibVLC.readMedia(mLocation, false);
}
In the readMedia method, creates an new media, gets the media list, locks the items of the list, gets and returns the position of an item and invokes to create_player_and_play(env, thiz, instance, position);.
In this last method (create_player_and_play), vlc creates a new media_player and a new media_list_player, sets the format of audio decoded, connects the event manager, sets he media list associated to the player and finally invokes to libvlc_media_list_player_play_item_at_index function to play video.
I need help to locate the functions that decode the video.
Thanks!