Title | Data | Data Name | No |
/ * Film sample table item * /
typedef struct {
Uint32 offset; / * Offset from media start position * /
Sint32 size; / * Sample size * /
Sint32 time; / * Frame display time, -1: Audio sample * /
Sint32 duration; / * Frame display duration * /
} CpkFilmSample;
/ * Film header * /
typedef struct {
/ * FilmHeader * /
Uint32 film; / * “FILM” * /
Uint32 size_header; / * Header size (offset to start of media) * /
, Uint32 version; / * version * /
Uint32 <> reserved; / * Reservation * /
/ * FrameDescription * /
Uint32 fdsc; / * “FDSC” * /
Uint32 size_fdsc; / * FDSC size 0x0000001C = 7 * 4 [byte] * /
Uint32 c_type; / * Compression method “cvid” * /
Uint32 height; / * Vertical width [pixel] * /
Uint32 width; / * width [pixel] * /
Uin32 color; / * Number of display colors [bit] * /
Uin32 sound_channel; / * Number of channels * /
Uin32 sound_smpling_bit; / * Number of sampling bits [bit] * /
Uin32 sound_compress; / * Compression 00h: None 01h: Reserve * /
Uint32 sound_smpling_rate; / * Sampling rate [Hz] Lower 2 bytes are decimal numbers * /
Uin32 ckey; / * Chroma key information * /
/ * FilmSampleTable / *
Uint32 stab; / * “STAB” * /
Uint32 size_stab; / * STAB size (total number of samples + 1) * 16 [byte] * /
Uint32 time_scale_film; / * Timescale * /
Uint32 sample_total; / * Total number of samples * /
CpkFilmSample sample [1]; / * Sample table arbitrary size * /
} CpkHeader;
Title | Data | Data Name | No |
Format void (* CpkErrFunc) (void * obj, Sint32 err_code) Input obj: Registered object err_code: Error code Output None