Add a new _UNPACK flag and use it to mark potential unpack formats.
Use a separate variable to describe the amount of lines that will be used in packing instead of abusing the h_sub variable. Some formats might have no subsampling but need to operate on multipe lines.
Move different video functionalities into different files