Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- meta:
- id: images
- endian: le
- file-extension: dat
- seq:
- - id: magic
- contents: [0x43, 0x47, 0x53, 0x52]
- - id: file_toc
- type: file_toc_block
- # - id: skip
- # size: 2088 -4
- # - id: images
- # type: image_block
- # repeat: eos
- # repeat: expr
- # repeat-expr: file_toc.num_images
- # repeat-expr: 2
- types:
- file_toc_block:
- seq:
- - id: num_images1
- type: u2
- - id: unknown_constant1
- type: u1
- - id: unknown_constant2
- type: u1
- - id: unknown_constant3
- type: u4
- - id: unknown_constant4
- type: u4
- - id: empty_space1
- type: u4
- - id: some_data_that_depends_on_num_images1
- type: u4
- repeat: expr
- repeat-expr: num_images1
- - id: num_images2
- type: u4
- # - id: some_data_that_depends_on_num_images2
- # type: u4
- # repeat: expr
- # repeat-expr: num_images2
- # - id: skip2
- # size: 1008
- image_block:
- seq:
- - id: image_header
- type: img_header
- - id: image_data
- size: image_header.img_size
- img_header:
- seq:
- # - id: unknown3
- # size: 32
- - id: img_name
- type: str
- terminator: 0
- encoding: utf-8
- - id: str_padding
- size: (4 - _io.pos) % 4 # see https://github.com/kaitai-io/kaitai_struct/issues/12#issuecomment-277757932
- - id: img_width
- type: u4
- - id: img_height
- type: u4
- - id: unknown2
- size: 60
- - id: img_size
- type: u4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement