[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]


NAME
    VideoControl -- Modify the operation of a ViewPort's ColorMap (V36)

SYNOPSIS
    error = VideoControl( cm , tags )
    d0                    a0   a1

    ULONG VideoControl( struct ColorMap *, struct TagItem * );

FUNCTION
   Process the commands in the VideoControl command TagItem buffer
   using cm as the target, with respect to its "attached" ViewPort.

   viewport commands:

   VTAG_ATTACH_CM     [_SET        | _GET] -- setget attached viewport
   VTAG_VIEWPORTEXTRA [_SET        | _GET] -- setget attached vp_extra
   VTAG_NORMAL_DISP   [_SET        | _GET] -- setget DisplayInfoHandle
                                                      (natural mode)
   VTAG_COERCE_DISP   [_SET        | _GET] -- setget DisplayInfoHandle
                                                      (coerced mode)

   genlock commands:

   VTAG_BORDERBLANK   [_SET | _CLR | _GET] -- onoffinquire blanking
   VTAG_BORDERNOTRANS [_SET | _CLR | _GET] -- onoffinquire notransparency
   VTAG_CHROMAKEY     [_SET | _CLR | _GET] -- onoffinquire chroma mode
   VTAG_BITPLANEKEY   [_SET | _CLR | _GET] -- onoffinquire bitplane mode
   VTAG_CHROMA_PEN    [_SET | _CLR | _GET] -- setclrget chromakey pen #
   VTAG_CHROMA_PLANE  [_SET |      | _GET] -- setget bitplanekey plane #

   copper commands

   VTAG_USERCLIP      [_SET | _CLR | _GET] -- onoffinquire clipping of
                                              UserCopperList at bottom
                                              edge of ColorMap->cm_vp
                                              (defaults to off)

   buffer commands:

   VTAG_NEXTBUF_CM                         -- link to more VTAG commands
   VTAG_END_CM                             -- terminate command buffer

   batch mode commands:

   (if you want your videocontol taglist to be processed in "batch"
    mode, that is, at the next MakeVPort() for the ColorMap->cm_vp;
    you may intall a static list of videocontrol TagItems into the
    ColorMap with the BATCH_ITEMS_SET command; and then enable/disable
    batch mode processing of those items via the BATCH_CM control
    command)

   VTAG_BATCH_CM      [_SET | _CLR | _GET] -- onoffinquire batch mode
   VTAG_BATCH_ITEMS   [_SET | _ADD | _GET] -- setaddget batched TagLists

   private commands (used internally by intuition -- do not call):

   VTAG_VPMODEID      [_SET | _CLR | _GET] -- force GetVPModeID() return


INPUTS
    cm   = pointer to struct ColorMap obtained via GetColorMap().
    tags = pointer to a table of videocontrol tagitems.

RESULT
    error = NULL if no error occured in the control operation.
   (non-NULL if bad colormap pointer, no tagitems or bad tag)

    The operating characteristics of the ColorMap and its attached
    ViewPort are modified. The result will be incorporated into the
    ViewPort when its copper lists are reassembled via MakeVPort().

BUGS

SEE ALSO
    graphics/videocontrol.h, GetColorMap(), FreeColorMap()


[Back to Amiga Developer Docs]