Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fcvg_video_scan_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

名称

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 − FCVG デバイスのビデオプレーンに対する関数

形式

#include <fcvg.h>

int fcvg_video_box_w(x, y, width, hight, plane, color)
int x, y, width, hight;
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];

 

解説

FCVG デバイスのビデオプレーンに対する操作を行う関数です。

fcvg_video_box_w は、 x , y で指定された位置を左上の頂点として、幅 width ピクセル、高さ hight ピクセルの長方形の領域を、単一色 color で塗り潰します。 plane は以下の値のいずれかを指定します。

FCVG_RR プレーンを塗り潰す
FCVG_GG プレーンを塗り潰す
FCVG_BB プレーンを塗り潰す

この plane の指定は以下の関数でも同じです。

fcvg_video_pixel_r 、 fcvg_video_pixel_w は、 plane で指定されたプレーンに対して x 、 y で指定されたピクセルのリード、ライトを行います。 fcvg_video_pixel_r は読み出したピクセルの値を返します。 fcvg_video_pixel_w は color で指定した値を書き込みます。

fcvg_video_scan_r 、 fcvg_video_scan_w は、 x , y で指定されたピクセルから、水平右方向 (+x 方向)へ n ピクセルのリード、ライトを行います。 colors は、読み込むデータ、もしくは書き込むデータをストアするための配列で、 n 以上の大きさを持っていなくてはなりません。

fcvg_rgb_pixel_r 、 fcvg_rgb_pixel_w は、 x 、 y で指定された位置の R、G、B 各プレーンのピクセルを 同時に、リード、ライトします。
rgb は、

rgb[0]R プレーン
rgb[1]G プレーン
rgb[2]B プレーン

の値が対応しています。
 

制限事項

指定したピクセルの位置が、メモリ領域を越えた場合の動作は保証されていません。
 

関連ファイル

/usr/src/sony/lib/libfcvg/∗ ライブラリのソースコード用ディレクトリ

/usr/sony/demo/NWB224 サンプルプログラム用ディレクトリ

/usr/sony/lib/libfcvg.a FCVG ライブラリ

/usr/sony/include/fcvg.h ヘッダファイル

/usr/sony/include/fcvg_lib.h ヘッダファイル

/usr/sony/include/fcvg_reg.h ヘッダファイル

関連事項

libfcvg(3X)
「NEWS-OS Release 4.0 プログラマーズガイド
  8 章 フルカラービデオグラフィックインターフェース」

NEWS-OSRelease 4.2.1R

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