Create aviindexentry data structure and all the macro for flags.