gst-plugins-rs/gst-plugin-cdg/src
Guillaume Desmottes 7ba1e6f60d cdg: typefind: improve CDG packets detection heuristic
We used to look at the first 10 seconds of data to compute the ratio of
CDG packets. This was not working great for files having a long intro
as no video was displayed during this time.

Split the single search window into multiple smaller ones and walk
through the whole file hoping to find a section containing CDG packets.

With this change we are now fetching at most 230400 bytes of data,
but in almost all matching cases we find the type way before that.

This heuristic is good enough to be able to properly detect all the cdg
files from my collection (77625 files).
2019-11-14 15:49:36 +05:30
..
cdgdec.rs cdgdec: decide_allocation fixes 2019-11-05 10:42:12 +00:00
cdgparse.rs cdgparse: mark palette commands as HEADER 2019-11-03 16:59:10 +01:00
constants.rs cdg: implement typefind 2019-06-06 18:35:49 +05:30
lib.rs cdg: typefind: improve CDG packets detection heuristic 2019-11-14 15:49:36 +05:30