[net.micro.amiga] DPAINT & Interlace

mickol@dec-highfi.UUCP (05/20/86)

Does anyone know how to use DPAINT in lo-res mode with interlace turned on.
Although I am able to record the NTSC output from DPAINT with little trouble,
there is a noticable distortion in the middle of the picture from improper
field syncronization. Also, both 1/2" and 3/4" editing systems indicate
this when I pause (still-frame) or use slow motion. I get the flagging at the 
top middle of the screen. I do most of my work in lo-res mode. Supposedly,
hi-res mode is interlaced, but it is too much of a pain to use due to memory 
limitations (yes, I have 512K). Thanks, in advance, for any help the net can 
provide.

Jim Mickol
Digital Equipment Corp.
Maynard, Mass
Work: 617-493-9609
Home: 617-529-4687

carolyn@cbmvax.cbm.UUCP (Carolyn Scheppner) (05/21/86)

In article <3122@decwrl.DEC.COM> mickol@highfi.DEC (NPO Tech Support Mgr, DTN 223-9609, MLO5-3/F13) writes:
>Does anyone know how to use DPAINT in lo-res mode with interlace turned on.

   You need to put the display in Interlace mode before entering DPaint.
The following program (SetLace.c) will turn Interlace ON and OFF.
   USAGE:   SetLace y  (ON)   OR   SetLace n

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Carolyn Scheppner -- CBM   >>Amiga Technical Support<<
                     UUCP  ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn 
                     PHONE 215-431-9180
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

---------------------------- CUT HERE ----------------------------------

/************************************************************************
 *  SetLace -- Program to force the Amiga into interlaced display
 *             regardless of the interlace status of the currently
 *             active Screens (ViewPorts).  Run from the CLI (only).
 *
 *             1>SetLace        -- Set forced Interlace mode
 *             1>SetLace off    -- Clear forced Interlace mode
 *
 *   Bob Pariseau -- November 2, 1985
 *
 ************************************************************************/

#include <exec/types.h>
#include <exec/tasks.h>
#include <exec/libraries.h>
#include <graphics/copper.h>
#include <graphics/display.h>
#include <graphics/gfxbase.h>
#include <graphics/text.h>
#include <graphics/view.h>
#include <hardware/blit.h>
#include <intuition/intuitionbase.h>

struct GfxBase *GfxBase;
struct IntuitionBase *IntuitionBase;

main(argc, argv)
  int argc;
  char  *argv[];
{
  BOOL TurnItOn;

  TurnItOn = TRUE;
  if (argc > 1)
    if (!strcmp(argv[1], "off")) TurnItOn = FALSE;
  
  GfxBase = (struct GfxBase *)OpenLibrary("graphics.library", 0);
  if (GfxBase == NULL) exit(1000);

  IntuitionBase = (struct IntuitionBase*)
                  OpenLibrary("intuition.library", 0);
  if (IntuitionBase == NULL)
  {
    CloseLibrary(GfxBase);
    exit(2000);
  }

/*  The system_bplcon0 value is ORed into all copper instructions that
 *  change bplcon0 (one of the hardware bitplane control registers)
 *  whenever copper lists are formed by the graphics library copper
 *  list management routines.  This value provides a control context
 *  for system display that overrides the normal control values usually
 *  managed by Intuition.  In particular, Intuition manages the interlace
 *  control in the View structure, so we have to do our control here
 *  to give it some permanence.
 */

  if (TurnItOn)
    GfxBase->system_bplcon0 |=  INTERLACE;
  else
    GfxBase->system_bplcon0 &= !INTERLACE;

/*  Now we have to get all the copper lists rebuilt.  The easiest way
 *  to do this is to have Intuition do it for us.
 */

 RemakeDisplay();

/*  Be good, and clean up. */

  CloseLibrary(GfxBase);
  CloseLibrary(IntuitionBase);
}

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Carolyn Scheppner -- CBM   >>Amiga Technical Support<<
                     UUCP  ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn 
                     PHONE 215-431-9180
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

carolyn@cbmvax.cbm.UUCP (Carolyn Scheppner) (05/21/86)

CORRECTION:
   Usage of SetLace is       SetLace       (Turns on Interlace)
                    OR       SetLace off

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Carolyn Scheppner -- CBM   >>Amiga Technical Support<<
                     UUCP  ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn 
                     PHONE 215-431-9180
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

cem@intelca.UUCP (Chuck McManis) (05/21/86)

Actually, Dan Silva author of Dpaint, at a recent BADGE meeting indicated
that there were a few bugs in lo-res interlace mode. His explanation was
that he never checked it because he didn't think anyone would use it.
Needless to say many people have tried to use it because using interlace
mode in V1.1 is the only way to prevent the frame jumping when recording
to an external video device. He claims it and a bunch of other stuff is
fixed in version 2.0 (due out in july) Some highlights of version two
include the ability to work on 1024 X 1024 X 5 images in lo-res mode
with a way of scrolling the image around on the screen, Being able to
switch modes (lo-res, med-res, hi-res) with a menu selection and still
retain the image you are working on, rotatable ellipses, "low pass filtering"
of the image (basically a brush mode that provides a simple anti-aliasing
capability), runnable from the workbench. There were some more but I
don't remember them all. (This was two months ago after all) I certainly
am looking forward to it.

--Chuck McManis

-------------------------original message--------------------------------
> Does anyone know how to use DPAINT in lo-res mode with interlace turned on.
> Although I am able to record the NTSC output from DPAINT with little trouble,
> there is a noticable distortion in the middle of the picture from improper
> field syncronization. Also, both 1/2" and 3/4" editing systems indicate
> this when I pause (still-frame) or use slow motion. I get the flagging at the 
> top middle of the screen. I do most of my work in lo-res mode. Supposedly,
> hi-res mode is interlaced, but it is too much of a pain to use due to memory 
> limitations (yes, I have 512K). Thanks, in advance, for any help the net can 
> provide.
> 
> Jim Mickol
> Digital Equipment Corp.
> Maynard, Mass
> Work: 617-493-9609
> Home: 617-529-4687
---------------------------------------------------------------------------
-- 
                                            - - - D I S C L A I M E R - - - 
{ihnp4,fortune}!dual\                     All opinions expressed herein are my
        {qantel,idi}-> !intelca!cem       own and not those of my employer, my
 {ucbvax,hao}!hplabs/                     friends, or my avocado plant. :-}