[OBU] Factor out frame header obu writing function
[OBU] Factor out frame header obu writing function

So that it can be used for both show_existing case and tile (group) case.

TODO: Add write_tile_group_header() for each tile group.

xiph/rav1e,xiph/rav1e