Silent Debuggers Is A WIP

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
grafx:huvideo [2020/06/12 15:55] moozgrafx:huvideo [2020/11/29 12:42] (current) mooz
Line 1: Line 1:
-====== HuVIDEO ======+{{:grafx:huvideo.png|}}
  
-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://www.youtube.com/watch?v=aRNw9ccJHS4 +===== Format description =====
- +
-https://www.researchgate.net/publication/335322903_A_Tale_of_Two_CDs_Archaeological_Analysis_of_Full-Motion_Video_Formats_in_Two_PC_EngineTurboGrafx-16_Games +
- +
-===== Description =====+
  
 ^ Offset ^ Size (bytes)  ^ Description        ^ ^ Offset ^ Size (bytes)  ^ Description        ^
Line 27: Line 26:
 | 26     | 6             | Unknown | | 26     | 6             | Unknown |
  
-===== Power Golf 2 =====+==== Power Golf 2 ====
 The next 32 bytes following the header contains the palette of the video. The next 32 bytes following the header contains the palette of the video.
 The first frame is located 8 sectors away from the header. The first frame is located 8 sectors away from the header.
Line 60: Line 59:
 | 10     | :::                | | 10     | :::                |
  
-===== John Madden Duo CD Football =====+ 
 +==== John Madden Duo CD Football ====
 The header is the same as Power Golf 2. The header is the same as Power Golf 2.
 The only way to tell if a video has ADPCM is to check its size. The only way to tell if a video has ADPCM is to check its size.
Line 73: Line 73:
 <code>sox --rate 16k adpcm_sample.vox sample.ogg</code> <code>sox --rate 16k adpcm_sample.vox sample.ogg</code>
  
-===== Yuna HuVIDEO CD / Gulliver Boy =====+==== Yuna 2 / Yuna HuVIDEO CD / Gulliver Boy ==== 
 +For those games, the signature changes to ''HuVideo'' where spaces are replaced by 0. 
 +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            | tile palettes | 
 +| ...               | :::           | 
 +| N0+512+w*h/128    | adpcm audio   | 
 +| ...               | :::           | 
 + 
 +Here ''N0'' is the size of the tile data. With ''w'' and ''h'' being the width and height in pixels of a frame, and knowing the each tile is 8 by 8 pixels wide, we have: 
 +<code>N0 = w * h * 32 / 8 / 8</code> 
 +The size of the tile palettes is ''w*h/128'' because 1 bytes contains the palettes for two consecutive tiles. The palette of tile ''i'' is stored in the last 4 bits, and the one for tile ''i+1'' in the first 4 ones.  
 + 
 +===== Replay routines ===== 
 +==== Power Golf 2 ==== 
 +FIXME 
 +==== John Madden Duo CD Football ==== 
 +FIXME 
 +==== Yuna 2 / Yuna HuVIDEO CD / Gulliver Boy ==== 
 +FIXME 
 + 
 +===== References ===== 
 + 
 +  * [[https://www.youtube.com/watch?v=aRNw9ccJHS4 
 +|Gulliverboy HuVideo insertion test]] 
 + 
 +  * [[https://www.researchgate.net/publication/335322903_A_Tale_of_Two_CDs_Archaeological_Analysis_of_Full-Motion_Video_Formats_in_Two_PC_EngineTurboGrafx-16_Games|A Tale of Two CDs: Archaeological Analysis of Full-Motion Video Formats in Two PC Engine/TurboGrafx-16 Games]] 
 + 
 +  * [[https://archives.tg-16.com/Dengeki_PC_Engine_1995_06.htm|GULLIVER BOY, ACT II: HuVIDEO]]
  
-FIXME some examples (non spoiler ones) 
  
 [<>] [<>]
Print/export
QR Code
QR Code grafx:huvideo (generated for current page)