You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it seems the scanner will read every bytes of the stream. This is commonly optimized with a reduce Boyer-More algorithm, allowing to read only a third of the bytes.
The text was updated successfully, but these errors were encountered:
ndufresne
changed the title
Consider using boyer-more alogorithm to optimize start code scanning
Consider using boyer-more algorithm to optimize start code scanning
Apr 24, 2023
Thank you for bringing this parser performance issue to our attention, Nicolas. We are already aware of this issue and have an internal task (not started yet) to address it.
We would also gladly take code contributions to the parser :).
In
vk_video_samples/vk_video_decoder/libs/NvVideoParser/src/VulkanVideoDecoder.cpp
Line 266 in ff6ef40
An example can be found here: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/subprojects/gstreamer/libs/gst/base/gstbytereader.c#L865 which has been reduced from https://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_string-search_algorithm
The text was updated successfully, but these errors were encountered: