@classmethod
def parse(cls, reader):
    """returns this metadata block from a BitstreamReader"""
    picture_type = reader.read(32)
    mime_type = reader.read_bytes(reader.read(32)).decode('ascii')
    description = reader.read_bytes(reader.read(32)).decode('utf-8')
    width = reader.read(32)
    height = reader.read(32)
    color_depth = reader.read(32)
    color_count = reader.read(32)
    data = reader.read_bytes(reader.read(32))
    return cls(picture_type=picture_type, mime_type=mime_type, description=
        description, width=width, height=height, color_depth=color_depth,
        color_count=color_count, data=data)
