2014-11-20 21:06:39 -08:00
|
|
|
/*
|
2016-03-25 12:59:40 -07:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
|
|
* or more contributor license agreements. See the NOTICE file
|
|
|
|
* distributed with this work for additional information
|
|
|
|
* regarding copyright ownership. The ASF licenses this file
|
|
|
|
* to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance
|
|
|
|
* with the License. You may obtain a copy of the License at
|
2014-11-20 21:06:39 -08:00
|
|
|
*
|
2016-03-25 12:59:40 -07:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2014-11-20 21:06:39 -08:00
|
|
|
*
|
2016-03-25 12:59:40 -07:00
|
|
|
* Unless required by applicable law or agreed to in writing,
|
|
|
|
* software distributed under the License is distributed on an
|
|
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
|
|
* KIND, either express or implied. See the License for the
|
|
|
|
* specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2014-11-20 21:06:39 -08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GUAC_RDP_COLOR_H
|
|
|
|
#define GUAC_RDP_COLOR_H
|
|
|
|
|
|
|
|
#include <freerdp/freerdp.h>
|
|
|
|
#include <winpr/wtypes.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Converts the given color to ARGB32. The color given may be an index
|
|
|
|
* referring to the palette, a 16-bit or 32-bit color, etc. all depending on
|
|
|
|
* the current color depth of the RDP session.
|
2016-02-29 21:50:00 -08:00
|
|
|
*
|
2016-03-07 15:05:31 -08:00
|
|
|
* @param context
|
|
|
|
* The rdpContext associated with the current RDP session.
|
|
|
|
*
|
|
|
|
* @param color
|
|
|
|
* A color value in the format of the current RDP session.
|
|
|
|
*
|
2016-02-29 21:50:00 -08:00
|
|
|
* @return
|
|
|
|
* A 32-bit ARGB color, where the low 8 bits are the blue component and
|
|
|
|
* the high 8 bits are alpha.
|
2014-11-20 21:06:39 -08:00
|
|
|
*/
|
|
|
|
UINT32 guac_rdp_convert_color(rdpContext* context, UINT32 color);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|