mirror of https://github.com/FreeRDP/FreeRDP
libfreerdp-rfx: add rfx_context_reset API.
This commit is contained in:
parent
d3f9a2a9ab
commit
d8a0ceeaab
|
@ -121,6 +121,7 @@ typedef struct _RFX_CONTEXT RFX_CONTEXT;
|
||||||
FREERDP_API RFX_CONTEXT* rfx_context_new(void);
|
FREERDP_API RFX_CONTEXT* rfx_context_new(void);
|
||||||
FREERDP_API void rfx_context_free(RFX_CONTEXT* context);
|
FREERDP_API void rfx_context_free(RFX_CONTEXT* context);
|
||||||
FREERDP_API void rfx_context_set_pixel_format(RFX_CONTEXT* context, RFX_PIXEL_FORMAT pixel_format);
|
FREERDP_API void rfx_context_set_pixel_format(RFX_CONTEXT* context, RFX_PIXEL_FORMAT pixel_format);
|
||||||
|
FREERDP_API void rfx_context_reset(RFX_CONTEXT* context);
|
||||||
|
|
||||||
FREERDP_API RFX_MESSAGE* rfx_process_message(RFX_CONTEXT* context, STREAM* data_in);
|
FREERDP_API RFX_MESSAGE* rfx_process_message(RFX_CONTEXT* context, STREAM* data_in);
|
||||||
FREERDP_API void rfx_message_free(RFX_CONTEXT* context, RFX_MESSAGE* message);
|
FREERDP_API void rfx_message_free(RFX_CONTEXT* context, RFX_MESSAGE* message);
|
||||||
|
|
|
@ -195,6 +195,12 @@ void rfx_context_set_pixel_format(RFX_CONTEXT* context, RFX_PIXEL_FORMAT pixel_f
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void rfx_context_reset(RFX_CONTEXT* context)
|
||||||
|
{
|
||||||
|
context->header_processed = False;
|
||||||
|
context->frame_idx = 0;
|
||||||
|
}
|
||||||
|
|
||||||
static void rfx_process_message_sync(RFX_CONTEXT* context, STREAM* data_in)
|
static void rfx_process_message_sync(RFX_CONTEXT* context, STREAM* data_in)
|
||||||
{
|
{
|
||||||
uint32 magic;
|
uint32 magic;
|
||||||
|
|
Loading…
Reference in New Issue