[codec,rfx] missing palette setting api.
This commit is contained in:
parent
40dd43cb01
commit
5fffaf6cd2
@ -120,6 +120,7 @@ extern "C"
|
|||||||
FREERDP_API BOOL rfx_context_reset(RFX_CONTEXT* context, UINT32 width, UINT32 height);
|
FREERDP_API BOOL rfx_context_reset(RFX_CONTEXT* context, UINT32 width, UINT32 height);
|
||||||
FREERDP_API BOOL rfx_context_set_mode(RFX_CONTEXT* context, RLGR_MODE mode);
|
FREERDP_API BOOL rfx_context_set_mode(RFX_CONTEXT* context, RLGR_MODE mode);
|
||||||
FREERDP_API void rfx_context_set_pixel_format(RFX_CONTEXT* context, UINT32 pixel_format);
|
FREERDP_API void rfx_context_set_pixel_format(RFX_CONTEXT* context, UINT32 pixel_format);
|
||||||
|
FREERDP_API void rfx_context_set_palette(RFX_CONTEXT* context, const BYTE* palette);
|
||||||
FREERDP_API UINT32 rfx_context_get_frame_idx(const RFX_CONTEXT* context);
|
FREERDP_API UINT32 rfx_context_get_frame_idx(const RFX_CONTEXT* context);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -430,6 +430,12 @@ void rfx_context_set_pixel_format(RFX_CONTEXT* context, UINT32 pixel_format)
|
|||||||
context->bits_per_pixel = FreeRDPGetBitsPerPixel(pixel_format);
|
context->bits_per_pixel = FreeRDPGetBitsPerPixel(pixel_format);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void rfx_context_set_palette(RFX_CONTEXT* context, const BYTE* palette)
|
||||||
|
{
|
||||||
|
WINPR_ASSERT(context);
|
||||||
|
context->palette = palette;
|
||||||
|
}
|
||||||
|
|
||||||
BOOL rfx_context_reset(RFX_CONTEXT* context, UINT32 width, UINT32 height)
|
BOOL rfx_context_reset(RFX_CONTEXT* context, UINT32 width, UINT32 height)
|
||||||
{
|
{
|
||||||
if (!context)
|
if (!context)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user