On 8/1/20, Andreas Rheinhardt <andreas.rheinha...@gmail.com> wrote: > Smacker uses two types of Huffman trees: Those for eight bit values and > those for 16 bit values. Given that both return their values via arrays > and that both need to check not to overrun their array, the context for > parsing eight bit values (HuffContext) will necessarily exhibit certain > similarities with the context used for parsing 16 bit values (DBCtx). > These similarities led to using a HuffContext in addition a DBCtx for > parsing 16 bit trees. > > This stands in the way of further developments for the HuffContext struct > (when parsing eight bit trees, the length of the arrays are always 256, > so that one can inline said value and move the currently heap-allocated > tables directly in the structure). > > Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@gmail.com> > --- > libavcodec/smacker.c | 43 +++++++++++++++++++++---------------------- > 1 file changed, 21 insertions(+), 22 deletions(-) >
Probably OK _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".