CALL FMD
This page was last modified 11:25, 17 May 2020 by Mars2000you.

Contents

Effect

Makes an manual digitizing of picture from video input and copies it in both VRAM of the Sony HBI-V1 cartridge and computer VRAM. Several ways to display the digitized picture are possible.

This instruction can be used in screens 8 and 10 to 12. You can optionally first clear the VRAM of the Sony HBI-V1 cartridge with CALL DCLS.

Syntax

CALL FMD (<InterlaceMode>,<EncodingFormat>,<BlockSizeX>,<BlockSizeY>,<StartBlockX>,<StartBlockY>)

Parameters

<InterlaceMode> is a value between 0 and 2 to specify which lines of the picture will be digitized:

  • 0 = digitize all lines
  • 1 = digitize even lines
  • 2 = digitize odd lines

<EncodingFormat> is a value between 0 and 2 to specify the encoding format to be used for the digitized picture:

  • 0 = YJK (used on screen 12)
  • 1 = YJK + YAE (used on screen 10/11)
  • 2 = RGB (used on screen 8)

<BlockSizeX> and <BlockSizeY> specify the horizontal size and the vertical size of the digitized picture. These parameters can have a value between 0 and 8:

  • 0 = 1/1 = full screen
  • 1 = 1/2 = full screen, resized to fit 2 times
  • 2 = 1/3 = full screen, resized to fit 3 times
  • 3 = 1/4 = full screen, resized to fit 4 times
  • 4 = 3/4 = 1/3 screen, resized to fit 4 times
  • 5 = 2/2 = half screen, twice displayed
  • 6 = 2/3 = half screen, resized to fit 3 times
  • 7 = 2/4 = half screen, resized to fit 4 times

<StartBlockX> and <StartBlockY> specify the horizontal start block and the vertical start block for multiple digitizing. These parameters can have a value between 0 and 3:

  • 0 = update 0-X parts
  • 1 = update 1-X parts
  • 2 = update 2-X parts
  • 3 = update 3-X parts

Example

110 ON STOP GOSUB 210
120 STOP ON
130 SCREEN 10
140 COLOR,,1
150 _DCLS
160 _FMD(0,1,4,3,1,3)
170 TIME=0
180 IF INKEY$="" GOTO 180
190 IF TIME<4 GOTO 190
200 IF INKEY$="" GOTO 200 ELSE 150
210 'REM STOP
220 END

Related to

CALL AD, CALL DCLS, CALL MD, SCREEN

Compatibility

SonyVideo BASIC