HP SVA V2.1 Parallel Compositing Reference Guide
pcContextGetInteger(3)
NAME
pcContextGetInteger -- Retrieves a context property as an integer.
Synopsis
PCerr pcContextGetInteger(
PCcontext ctx,
PCenum property,
PCint hostIndex,
PCint* value
);
Parameters
ctx
The context whose properties are to be retrieved.
property
The property to retrieve.
The names of the supported properties are listed in Table 2-7 in the Parallel
Compositing Library Reference Guide.
hostIndex
For host-specific properties, this parameter lets you specify the index of the host
whose property you want. Host-specific properties are marked as such in Table 2-7
in the Parallel Compositing Library Reference Guide.
Each host is assigned a hostIndex between 0 and PC_NUM_HOSTS - 1. The
Library also defines a few hostIndex constants that can be used for this
parameter:
PC_LOCALHOST_INDEX equals hostIndex of the host making the call.
PC_MASTER_INDEX equals hostIndex of the master host.
PC_INDEX_DEFAULT equals PC_LOCALHOST_INDEX.
This parameter is ignored for global properties.
value
The variable to hold the property on return from the function. The property’s
value is stored in the value parameter.
Returns
This function returns PC_NO_ERROR on successful completion.
Description
This function is called to retrieve the current value of a context property. Context properties fall
in one of two categories:
Global: The property is the same for all hosts.
Host-specific: The property can be different for each host.
The hostIndex parameter is ignored when you request the value of a global property. For a
host-specific property, the hostIndex parameter specifies which host’s property you want to
retrieve. Several additional constants are also provided for common hostIndexes. These can be
used in place of the specific index for these common hosts.
Host-specific versus global properties are marked as such in Table 2-7 in the Parallel Compositing
Library Reference Guide.
49