(1) CiImgList
(2) CiImg
u32 ci_img_list_tag CiImgList is the list of index images that are used by the color index texture. Please describe the tags shown below. TAG_CI_IMG_LIST 0x00200000u32 ci_img_list_header_size Describes the CiImgListHeader byte size. u32 ci_img_list_size Describes the CiImgList byte size. u32 ci_img_num Describes the CiImg number included in CiImgList. u32 ci_img_num_byte Describes the byte size of each CiImg. CiImg This is the CiImg area. One color index image is stored here.
u32 ci_img_tag Describes the tags of CiImg. Please describe the tags shown below. TAG_CI_IMG 0x00200100u32 this_ci_img_index Describes this CiImg index number. u32 ci_img_size Describes the CiImg byte size. u32 ci_img_name_index Uses a NameList index number indicating the CiImg name. u32 ci_img_width Describes the CiImg width. u32 ci_img_height Describes the CiImg height. u32 ci_img_pixel_depth Describes the CiImg pixel bit size. The following flags have been defined: NIFF2_CI_PIXEL_DEPTH_4 0x00000004 NIFF2_CI_PIXEL_DEPTH_8 0x00000008u32 reserved Please describe 0x0. u32 pixel_index_array This area describes which palette color to use for each pixel. The pixel data is described in order from the bottom-left of the image data.
In the case of 4bit CI, stored using the big endian method in 8-pixel units in pixel_index_array in order from the bottom-left of the image data.
In the case of 8bit, stored using the big endian method in 4-pixel units in pixel_index_array in order from the bottom-left of the image data.
In either case, if the last data is less than 32-bits, the remainder is filled with 0x0.
pixel_index_array_num is the pixel_index_array number created with the processes above.