Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XsmQueryVideo(3X) — NEWS-os 4.1C

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XsmVideoMap(3X)

XsmGetVideoStatus(3X)

XsmCreateVideoMap(3X)

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

NAME

XsmQueryVideo — Gets the current video attributes

SYNOPSIS

#include <X11/Xsm/VideoMap.h> Boolean XsmQueryVideo (widget, v_attr)
Widgetwidget;
XsmVideoAttr∗v_attr;

DESCRIPTION

XsmQueryVideo sets v_attr to the video attributes of the display specified by the widget.  If the display does not support video, False is returned. 

widgetSpecifies the ID of the widget in the display to be checked. 

v_attrReturns the specified video attributes to the XsmVideoAttr structure. 

STRUCTURE

 typedef struct {
intmax_video;/∗ number of video functions ∗/
intsignal;/∗ usable video signal type ∗/
intnframerates;/∗ number of frame rate lists ∗/
char∗framerates;/∗ list of allowable frame rates ∗/
XsmVideoSizevideo_size;/∗ size hints of video ∗/
} XsmVideoAttr;

max_video
Contains the number of video frames the graphics board is capable of supporting.

signalContains the type of video signal the board is able to use.  For NTSC, it is NTSCVideoSignal, and for PAL it is PALVideoSignal. 

frameratesContains a pointer to a list of the frame rates that can be set. 

nframerates
Contains the number of frame rate lists.

video_sizeContains the size hints of video in the XsmVideoSize structure. 

STRUCTURE

typedef struct {
longflags;
intmin_width;/∗ video minimum width ∗/
intmin_height;/∗ video minimum height ∗/
intmax_width;/∗ video maximum width ∗/
intmax_height;/∗ video maximum height ∗/
intwidth_inc;/∗ video width increment ∗/
intheight_inc;/∗ video height increment ∗/
intreserved[24];
} XsmVideoSize;

flagsContains the following bits: (SVMaxSize|SVMinSize|SVResizeInc|SVAspect)
Marks which filelds in this structure are defined.

min_width
Contains the minimum video width that can be displayed.

min_height
Contains the minimum video height that can be displayed.

max_width
Contains the maximum video width that can be displayed.

max_height
Contains the maximum video height that can be displayed.

width_incContains the unit of the minimum video screen width that can be changed.  The width of video screen is within the range of max_width, and is the sum of min_width and a multiple of width_inc.

height_incContains the unit of the minimum video screen height that can be changed.  The height of video screen is within the range of max_height, and is the sum of min_height and a multiple of height_inc.

min_aspect
Contains the minimum acpect ratio of a video screen.

max_aspect
Contains the maximum acpect ratio of a video screen.

RETURN VALUE

False is returned if execution is unsuccessful. 

SEE ALSO

XsmVideoMap(3X) XsmGetVideoStatus(3X) XsmCreateVideoMap(3X)

NEWS-OSRelease 4.1C

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