[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface : Subroutine Reference

GPQCPR - Inquire Color Processing Representation

GPQCPR (wsid, index, errind, model, quant, data)

Note:

This subroutine is a Workstation State List (WSL) inquiry. For an overview, see "WSL Inquiries"

Purpose

Use GPQCPR to inquire the current attribute values in the specified entry in the color processing table of the specified workstation.

If the inquired information is available, then the graPHIGS API sets the error indicator to zero and returns the values in the output parameters. If the inquired information is unavailable, then the error indicator (errind) contains an error number indicating the reason, and the values returned in the output parameters are unpredictable.

Parameters

wsid -- specified by user, fullword integer

Workstation identifier.

index -- specified by user, fullword integer

Color processing table index (>=0)

errind -- returned by the graPHIGS API, fullword integer

Error indicator. If the error indicator is zero, the request has been completed. Otherwise, one of the following errors exists:
25
SPECIFIED WORKSTATION DOES NOT EXIST
35
WORKSTATION HAS ONLY INPUT CAPABILITIES
265
COLOR PROCESSING INDEX < ZERO
266
COLOR PROCESSING INDEX EXCEEDS THE WORKSTATION TABLE CAPACITY

model -- returned by the graPHIGS API, fullword integer

Rendering color model (1=RGB_NORMAL, 2=RGB_B_ONLY )

quant -- returned by the graPHIGS API, fullword integer

Quantization method (1=WORKSTATION_DEPENDENT, 2=BITWISE )

data -- returned by the graPHIGS API, variable data

Quantization parameters. Values returned to this parameter depend on the quantization method. The application must supply storage for this parameter that is large enough to contain the maximum data listed below.

If quant=1 (WORKSTATION_DEPENDENT )

The data parameter should be ignored.

If quant=2 (BITWISE )

The data parameter returns the following format:
         --------------
       0 |R bit length| fullword integer
         |------------|
       4 |G bit length| fullword integer
         |------------|
       8 |B bit length| fullword integer
         |------------|
      12 |padding bits| fullword integer
         --------------

Note: The least significant (right most) bits of the padding data will be used.

Error Codes

None

Related Subroutines

GPCPI
Set Color Processing Index
GPCPR
Set Color Processing Representation
GPQCPF
Inquire Color Processing Facilities
GPQCQM
Inquire Available Color Quantization Methods
GPQRCM
Inquire Available Rendering Color Models
GPXVR
Set Extended View Representation

RCP code

201339146 (X'0C00310A')


[ Previous | Next | Contents | Glossary | Home | Search ]