Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fcvg_video_box_w(3X) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

libfcvg(3X)

FCVG_VIDEO(3X)  —  NEWS-OS Programmer’s Manual

NAME

fcvg_video_box_w, fcvg_video_pixel_r, fcvg_video_pixel_w, fcvg_video_scan_w, fcvg_video_scan_r, fcvg_rgb_pixel_r, fcvg_rgb_pixel_w − functions for video plane of the FCVG device

SYNOPSIS

#include <fcvg.h>

int fcvg_video_box_w(x, y, width, height, plane, color)
int x, y, width, height;
unsigned char plane, color;

int fcvg_video_pixel_r(x, y, plane)
int x, y;
unsigned char plane;

int fcvg_video_pixel_w(x, y, plane, color)
int x, y;
unsigned char plane, color;

int fcvg_video_scan_r(x, y, n, plane, colors)
int x, y, n;
unsigned char plane, ∗colors;

int fcvg_video_scan_w(x, y, n, plane, colors)
int x, y, n;
unsigned char plane, ∗colors;

int fcvg_rgb_pixel_r(x, y, rgb)
int x, y;
unsigned char rgb[3];

int fcvg_rgb_pixel_w(x, y, rgb)
int x, y;
unsigned char rgb[3];

DESCRIPTION

These functions operate on the video plane of the FCVG device. 

fcvg_video_box_w
Paints the rectangular area whose upper left corner is at x and y, of the width pixel and height pixel with a single color color. The one of the following values is set to plane.

FCVG_RPaints out R plane
FCVG_GPaints out G plane
FCVG_BPaints out B plane

This plane specification is the same for the follwing functions as well. 

fcvg_video_pixel_r

fcvg_video_pixel_w
Reads/writes the pixel specified with x and y from/to the plane specified with plane. fcvg_video_pixel_r returns the pixel value read.  fcvg_video_pixel_w writes the value specified with color.

fcvg_video_scan_r

fcvg_video_scan_w
Reads/writes n pixel from the pixel specified with x and y horizontally (in +x direction).  colors is an array to store the data to be written or data to be read and must be bigger than n.

fcvg_rgb_pixel_r

fcvg_rgb_pixel_w
Reads/writes a set of the pixels of R, G and B planes at the position specified with x and y.
rgb corresponds to the following planes:

rgb[0]R plane
rgb[1]G plane
rgb[2]B plane

RESTRICTION

When the position of the pixel specified is out of the memory area, the operation is not guaranteed. 

FILES

/usr/src/sony/lib/libfcvg/∗ library for the source code of the library

/usr/sony/demo/NWB224 directory for a sample program

/usr/sony/lib/libfcvg.a FCVG library

/usr/sony/include/fcvg.h header file

/usr/sony/include/fcvg_lib.h header file

/usr/sony/include/fcvg_reg.h header file

SEE ALSO

libfcvg(3X)
Chapter 8 "Full-Color Video Graphics Interface Board" in NEWS-OS Release 4.0 Programmer’s Guide. 

NEWS-OSRelease 4.2.1R

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026