PgConfigScalerChannel

I’m in the middle of expanding the CnT driver to add Video capture ability
on a board with a CnT 69000 and 7146 Phillips Chip. Anyways my problem is
this:

When I call PgConfigScalerChannel() and pass the color_key as the same
color I Created my colorkey_window, the color_key0 parameter that gets
received by my driver is different than what I send down:
ie.
PgScalerProps_t scalerProps;
PgVideoChannel_t *vidChannel = NULL;

vidChannel=PgCreateVideoChannel(Pg_VIDEO_CHANNEL_SCALER,
Pg_VIDEO_CHANNEL_FLAG_TARGETABLE);
scalerProps.color_key = PgColorByIndex(255);
PgConfigScalerChannel(vidChannel, scalerProps);

this ends up calling:
int hiqv_vid_set_channel_props(disp_adapter_t *adapter, int channel,
disp_vid_channel_props_t * props,…)
{

disp_color_t color = props->color_key0
}


Does anyone know what the mangalation from Photon is?

PgScalerProps_t => => disp_vid_channel_props

\

Jeffrey B. Holtz
Software Engineering
Electro Scientific Industries, Inc.
Ph: 734-332-7054
Fax: 734-332-7077
email: holtzj@esi.com

Jeff Holtz <holtzj@esi.com> wrote:

I’m in the middle of expanding the CnT driver to add Video capture ability
on a board with a CnT 69000 and 7146 Phillips Chip. Anyways my problem is
this:

When I call PgConfigScalerChannel() and pass the color_key as the same
color I Created my colorkey_window, the color_key0 parameter that gets
received by my driver is different than what I send down:
ie.
PgScalerProps_t scalerProps;
PgVideoChannel_t *vidChannel = NULL;

vidChannel=PgCreateVideoChannel(Pg_VIDEO_CHANNEL_SCALER,
Pg_VIDEO_CHANNEL_FLAG_TARGETABLE);
scalerProps.color_key = PgColorByIndex(255);
PgConfigScalerChannel(vidChannel, scalerProps);

this ends up calling:
int hiqv_vid_set_channel_props(disp_adapter_t *adapter, int channel,
disp_vid_channel_props_t * props,…)
{

disp_color_t color = props->color_key0
}



Does anyone know what the mangalation from Photon is?

PgScalerProps_t => => disp_vid_channel_props

Is it getting changed to 0xf800f8 by any chance? Are you specifying
the Pg_SCALER_PROP_CHROMA_SPECIFY_KEY_MASK flag?