FCVG_SUBCHAR(3X) — NEWS-OS Programmer’s Manual
NAME
fcvg_subchar_box_w, fcvg_subchar_pixel_r, fcvg_subchar_pixel_w, fcvg_subchar_scan_r, fcvg_subchar_scan_w − functions for sub-character plane of the FCVG device
SYNOPSIS
#include <fcvg.h>
int fcvg_subchar_box_w(x, y, width, height, col_num)
int x, y, width, height;
unsigned char col_num;
int fcvg_subchar_pixel_r(x, y)
int x, y;
int fcvg_subchar_pixel_w(x, y, col_num)
int x, y;
unsigned char col_num;
int fcvg_subchar_scan_r(x, y, n, col_nums)
int x, y, n;
unsigned char ∗col_nums;
int fcvg_subchar_scan_w(x, y, n, col_nums)
int x, y, n;
unsigned char ∗col_nums;
DESCRIPTION
These function operate on the sub-character plane of the FCVG device.
fcvg_subchar_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 number of col_num.
fcvg_subchar_pixel_r
Reads the pixels of the character plane specified with x and y. The color number of the pixel is returned.
fcvg_subchar_pixel_w
Writes the value of the color number specified with col_num to the pixels of the character plane specified with x and y.
fcvg_subchar_scan_r
Reads n pixels data to col_nums from the pixel specified with x and y horizontally (in +x direction). col_nums must be bigger than n.
fcvg_subchar_scan_w
Writes n pixels data stored in col_nums from the pixel specified with x and y horizontally(in +x direction). col_nums must be bigger than n.
The ranges of col_num and col_nums are shown below:
0 ≤ col_num
col_nums[] ≤ 7
BUG
When the position of the pixel specified is out of the memory area, the operation is not guaranteed.
FILES
/usr/src/sony/lib/libfcvg/∗ directory 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