CALL AD
This page was last modified 11:19, 17 May 2020 by Mars2000you.

Contents

Effect

Makes an automatic digitizing of picture from video input and copies it in VRAM of the Sony HBI-V1 cartridge. 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 AD (<BlockSizeX>,<BlockSizeY>,<StartBlockX>,<StartBlockY>,<WaitingTime>,<AutocopyMode>,<InterlaceMode>)

Parameters

<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

<WaitingTime> is a number between 0 and 255 to specify the waiting time between each digitizing. This number is divided by 60 or 50 according the VDP refresh frequency (60Hz or 50Hz). With value 0, there is no waiting time between each digitizing.

<AutocopyMode> is a value to eventually enable an automatic copy of the data from the VRAM of the Sony HBI-V1 cartridge to the computer VRAM. This parameter can have 2 values:

  • 0 = autocopy mode disabled (it implies that you will need to use CALL DCOPY to make a manual copy)
  • 1 = autocopy mode enabled

<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

Example

110 ON STOP GOSUB 210
120 STOP ON
130 SCREEN 12
140 COLOR,,255
150 _DCLS
160 _AD(1,3,0,1,30,1,0)
180 GOTO 150
210 'REM STOP
220 END

Related to

CALL DCLS, CALL DCOPY, CALL FMD, CALL MD, SCREEN

Compatibility

SonyVideo BASIC