On 09/13/2013 04:56 PM, Luca Barbato wrote:
+typedef struct HuffReader { >+ VLC vlc; >+ int simple; >+ int nb_symbols; >+ uint16_t simple_symbols[2]; >+} HuffReader; >+ >+typedef struct HuffmanGroup { >+ HuffReader huffman_code[HUFFMAN_CODES_PER_META_CODE]; >+} HuffmanGroup;Why?
I'm not sure I understand the question. Each Huffman group has 5 tables. There can be many groups in a single image.
If you're just questioning the wrapping of the array in a struct, it's mainly because that's what was easiest. I could do it another way if you wish.
-Justin _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
