Commit Graph

9 Commits

Author SHA1 Message Date
Roland van Laar
5bf1cc00ff VIDEO: PACo decoder: Fix coverity issues
Remove unused integer _frameDelay:
    Fixes COVERITY: 1476344
Initialize Non-static class members on PacoDecoder:
    Fixes COVERITY: 1476353
Resource leak in object No destructor on PacoAudioTrack:
    Fixes COVERITY: 1476360

Fix memory leak in handleFrame. Delete copied data in fdata.
2022-09-27 09:57:57 +02:00
Misty De Meo
d4117f3887 VIDEO: mark PACo method as override 2022-03-06 09:48:52 +02:00
Roland van Laar
54240bdac6 VIDEO: PACo decoder: Add audio support
PACo audio is single channel 8 bit unsigned pcm.
The first sound packet is read to determine the sampling rate.
2022-03-05 22:11:40 +01:00
Roland van Laar
e931a1a985 VIDEO: PACo decoder: refactor for audio track
A PACo 'frame' has both the audio and video part of the frame. Where decodeNextFrame only handles video, readNextPacket enables the option to read a PACo frame and decode and queue both audio and video.
2022-03-05 22:11:40 +01:00
Eugene Sandulenko
fa9f8850bf
VIDEO: Added override keywords 2022-03-02 20:18:09 +01:00
Roland van Laar
810792195a VIDEO: PACo decoder: support custom palettes
Custom palettes inside PACo files are now parsed and imported.
2022-03-01 17:09:01 +01:00
Roland van Laar
6a3b192ead VIDEO: PACo decoder framerate and palette
Move the VideoTrack to FixedRateVideoTrack. It handles frame duration
internally and removes the need to use nextFrameStartTime accounting.

Add getPalette function.
2022-02-28 19:33:37 +01:00
Eugene Sandulenko
9a1aff9cf4
JANITORIAL: Fix indentation 2022-02-21 22:19:37 +01:00
Roland van Laar
24b7267b8b VIDEO: Implement decoder for PACo files
The code decodes PACo video frames.
Other features, such as audio and palette changes are detected
but not handled.

Format documentation: https://wiki.multimedia.cx/index.php?title=PACo
Thanks to Kostya for reverse engineering the format and the original C
code.
2022-02-21 19:11:28 +01:00