Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
grafx:huvideo [2020/06/08 10:13] – mooz | grafx:huvideo [2020/11/29 12:42] (current) – mooz | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== HuVIDEO ====== | + | {{: |
- | FIXME | + | HuVIDEO is -as its name implied- a video format for the PC Engine developed by Hudson Soft. |
+ | This format support videos up to 192 by 112 pixels, 10 frames per seconds and 16KHz ADPCM audio. | ||
+ | Here is the list of games featuring HuVIDEO in chronological order: | ||
* Hudson School Graduation CD ? | * Hudson School Graduation CD ? | ||
* Power Golf 2 - Golfer / パワーゴルフ2 ゴルファー (HCD4056) | * Power Golf 2 - Golfer / パワーゴルフ2 ゴルファー (HCD4056) | ||
Line 8: | Line 10: | ||
* Ginga Ojousama Densetsu Yuna HuVIDEO CD / 銀河お嬢様伝説ユナ (HCD5078) | * Ginga Ojousama Densetsu Yuna HuVIDEO CD / 銀河お嬢様伝説ユナ (HCD5078) | ||
* Kuusou Kagaku Sekai Gulliver Boy / 空想科学世界ガリバーボーイ (HCD5076) | * Kuusou Kagaku Sekai Gulliver Boy / 空想科学世界ガリバーボーイ (HCD5076) | ||
+ | * Ginga Ojousama Densetsu Yuna 2: Eien no Princess / 銀河お嬢様伝説ユナ2 ~永遠のプリンセス~ (HCD5075) | ||
FIXME research history / Beyond shadow gate code / Rich's doc | FIXME research history / Beyond shadow gate code / Rich's doc | ||
- | https:// | + | ===== Format description |
- | + | ||
- | https:// | + | |
- | + | ||
- | ===== Description | + | |
^ Offset ^ Size (bytes) | ^ Offset ^ Size (bytes) | ||
Line 27: | Line 26: | ||
| 26 | 6 | Unknown | | | 26 | 6 | Unknown | | ||
- | FIXME frame formats | + | ==== Power Golf 2 ==== |
+ | The next 32 bytes following the header contains the palette of the video. | ||
+ | The first frame is located 8 sectors away from the header. | ||
+ | Frames are stored sequentially. There' | ||
+ | All videos have the same size which is 128 by 128 pixels. | ||
+ | |||
+ | Here is the header of one of the video. | ||
+ | ^ Offset | ||
+ | |03739450|48|75|56|49|44|45|4F|20|20|20|20|20|20|20|20|20|H|u|V|I|D|E|O| | | | | | | | | | ||
+ | |03739460|77|00|80|00|80|00|00|00|80|7C|3E|80|7C|44|80|7C|w|.|.|.|.|.|.|.|.|%%|%%|> | ||
+ | |||
+ | According to the header description, | ||
+ | As we know that the videos does not contain ADPCM, we can safely the last 8 bytes of the header. | ||
+ | |||
+ | ^ Sector ^ Description | ||
+ | | 00 | header + palette | ||
+ | | 01 | skip | | ||
+ | | 02 | ::: | | ||
+ | | 03 | ::: | | ||
+ | | 04 | ::: | | ||
+ | | 05 | ::: | | ||
+ | | 06 | ::: | | ||
+ | | 07 | ::: | | ||
+ | | 08 | ::: | | ||
+ | | 09 | frame #0 | | ||
+ | | 0a | ::: | | ||
+ | | 0b | ::: | | ||
+ | | 0c | ::: | | ||
+ | | 0d | frame #1 | | ||
+ | | 0e | ::: | | ||
+ | | 0f | ::: | | ||
+ | | 10 | ::: | | ||
+ | |||
+ | |||
+ | ==== John Madden Duo CD Football ==== | ||
+ | The header is the same as Power Golf 2. | ||
+ | The only way to tell if a video has ADPCM is to check its size. | ||
+ | There are 3 kind of videos: | ||
+ | * 128x128 px tiles with ADPCM | ||
+ | * 256x112 px tiles without ADPCM | ||
+ | * 128x64 px sprites with ADPCM | ||
+ | The ADPCM data is stored between the palette and graphical data. | ||
+ | The length to read is given by the word stored at the offset 24 in the header. | ||
+ | As the ADPCM chip in the PC-Engine CD ROM is an Oki MSM5205, the encoding is compatible with [[https:// | ||
+ | You can easily replay or convert it with sox. Note that the file must have '' | ||
+ | < | ||
+ | |||
+ | ==== Yuna 2 / Yuna HuVIDEO CD / Gulliver Boy ==== | ||
+ | For those games, the signature changes to '' | ||
+ | The graphics are encoded as tiles and the ADPCM length specifies the number of sectors used by a single frame. | ||
+ | Unlike John Madden Duo CD Football, the ADPCM is split between each frame. As the video are played at 10 frame per seconds and the audio sample rate is 16KHz, the ADPCM buffer is 800 bytes long. | ||
+ | Another difference is that the whole 16 tile palettes are used. An auxiliary array is also stored in order to specify the palette for each tile. | ||
+ | |||
+ | ^ Sector ^ Description | ||
+ | | 00 | header | ||
+ | | 01 | skip | | ||
+ | | 02 | ::: | | ||
+ | | 03 | ::: | | ||
+ | | 04 | frame #0 | | ||
+ | | ... | ::: | | ||
+ | | 4+N | frame #1 | | ||
+ | | ... | ::: | | ||
+ | | 4+N*2 | frame #2 | | ||
+ | | ... | ::: | | ||
+ | |||
+ | The layout of a frame is as follow: | ||
+ | ^ Offset ^ Description ^ | ||
+ | | 0 | tile data | | ||
+ | | ... | ::: | | ||
+ | | N0 | palette #0 | | ||
+ | | N0+32 | palette #1 | | ||
+ | | ... | ... | | ||
+ | | N0+512 | ||
+ | | ... | ::: | | ||
+ | | N0+512+w*h/ | ||
+ | | ... | ::: | | ||
+ | |||
+ | Here '' | ||
+ | < | ||
+ | The size of the tile palettes is '' | ||
+ | |||
+ | ===== Replay routines ===== | ||
+ | ==== Power Golf 2 ==== | ||
+ | FIXME | ||
+ | ==== John Madden Duo CD Football ==== | ||
+ | FIXME | ||
+ | ==== Yuna 2 / Yuna HuVIDEO CD / Gulliver Boy ==== | ||
+ | FIXME | ||
+ | |||
+ | ===== References ===== | ||
+ | |||
+ | * [[https:// | ||
+ | |Gulliverboy HuVideo insertion test]] | ||
+ | |||
+ | * [[https:// | ||
+ | |||
+ | * [[https:// | ||
- | FIXME some examples (non spoiler ones) | ||
[<>] | [<>] |