In the specification document, the box of ISO BMFF is represented as object. Then the object oriented design might be matched for it. However the box is essentially stream. Fields in the box is needed to be keeped in a decided order. There is also a problem of an inner class in python can't refer outer class's definitions. More optimal and effective representations are required for the Box to implement with the Python. Therefore, the Box implementation using the generator is proposed for solving this problem.
In the specification document, the box of ISO BMFF is represented as object. Then the object oriented design might be matched for it. However the box is essentially stream. Fields in the box is needed to be keeped in a decided order. There is also a problem of an inner class in python can't refer outer class's definitions. More optimal and effective representations are required for the Box to implement with the Python. Therefore, the Box implementation using the generator is proposed for solving this problem.