reverted olf signature for rfx_context_new
This commit is contained in:
parent
6b76ac9545
commit
4a2514b58d
@ -199,7 +199,8 @@ extern "C"
|
||||
|
||||
FREERDP_API BOOL rfx_context_reset(RFX_CONTEXT* context, UINT32 width, UINT32 height);
|
||||
|
||||
FREERDP_API RFX_CONTEXT* rfx_context_new(BOOL encoder, UINT32 ThreadingFlags);
|
||||
FREERDP_API RFX_CONTEXT* rfx_context_new_ex(BOOL encoder, UINT32 ThreadingFlags);
|
||||
FREERDP_API RFX_CONTEXT* rfx_context_new(BOOL encoder);
|
||||
FREERDP_API void rfx_context_free(RFX_CONTEXT* context);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -2603,7 +2603,7 @@ PROGRESSIVE_CONTEXT* progressive_context_new(BOOL Compressor)
|
||||
progressive->log = WLog_Get(TAG);
|
||||
if (!progressive->log)
|
||||
goto fail;
|
||||
progressive->rfx_context = rfx_context_new(Compressor, 0);
|
||||
progressive->rfx_context = rfx_context_new(Compressor);
|
||||
if (!progressive->rfx_context)
|
||||
goto fail;
|
||||
progressive->buffer = Stream_New(NULL, 1024);
|
||||
|
@ -195,7 +195,12 @@ static void rfx_encoder_tile_free(void* obj)
|
||||
free(obj);
|
||||
}
|
||||
|
||||
RFX_CONTEXT* rfx_context_new(BOOL encoder, UINT32 ThreadingFlags)
|
||||
RFX_CONTEXT* rfx_context_new(BOOL encoder)
|
||||
{
|
||||
return rfx_context_new_ex(encoder, 0);
|
||||
}
|
||||
|
||||
RFX_CONTEXT* rfx_context_new_ex(BOOL encoder, UINT32 ThreadingFlags)
|
||||
{
|
||||
HKEY hKey;
|
||||
LONG status;
|
||||
|
@ -65,7 +65,7 @@ BOOL freerdp_client_codecs_prepare(rdpCodecs* codecs, UINT32 flags, UINT32 width
|
||||
if ((flags & FREERDP_CODEC_REMOTEFX))
|
||||
{
|
||||
rfx_context_free(codecs->rfx);
|
||||
if (!(codecs->rfx = rfx_context_new(FALSE, codecs->context->settings->ThreadingFlags)))
|
||||
if (!(codecs->rfx = rfx_context_new_ex(FALSE, codecs->context->settings->ThreadingFlags)))
|
||||
{
|
||||
WLog_ERR(TAG, "Failed to create rfx codec context");
|
||||
return FALSE;
|
||||
|
@ -158,7 +158,7 @@ static BOOL mf_peer_context_new(freerdp_peer* client, mfPeerContext* context)
|
||||
if (!(context->info = mf_info_get_instance()))
|
||||
return FALSE;
|
||||
|
||||
if (!(context->rfx_context = rfx_context_new(TRUE, client->settings->ThreadingFlags)))
|
||||
if (!(context->rfx_context = rfx_context_new_ex(TRUE, client->settings->ThreadingFlags)))
|
||||
goto fail_rfx_context;
|
||||
|
||||
context->rfx_context->mode = RLGR3;
|
||||
|
@ -58,7 +58,7 @@ static BOOL test_dump_rfx_realtime = TRUE;
|
||||
static BOOL test_peer_context_new(freerdp_peer* client, rdpContext* ctx)
|
||||
{
|
||||
testPeerContext* context = (testPeerContext*)ctx;
|
||||
if (!(context->rfx_context = rfx_context_new(TRUE, client->settings->ThreadingFlags)))
|
||||
if (!(context->rfx_context = rfx_context_new_ex(TRUE, client->settings->ThreadingFlags)))
|
||||
goto fail_rfx_context;
|
||||
|
||||
if (!rfx_context_reset(context->rfx_context, SAMPLE_SERVER_DEFAULT_WIDTH,
|
||||
|
@ -188,7 +188,7 @@ void wf_update_encoder_reset(wfInfo* wfi)
|
||||
else
|
||||
{
|
||||
/* TODO: pass ThreadingFlags somehow */
|
||||
wfi->rfx_context = rfx_context_new(TRUE, 0);
|
||||
wfi->rfx_context = rfx_context_new(TRUE);
|
||||
wfi->rfx_context->mode = RLGR3;
|
||||
wfi->rfx_context->width = wfi->servscreen_width;
|
||||
wfi->rfx_context->height = wfi->servscreen_height;
|
||||
|
@ -132,7 +132,7 @@ static int shadow_encoder_uninit_grid(rdpShadowEncoder* encoder)
|
||||
static int shadow_encoder_init_rfx(rdpShadowEncoder* encoder)
|
||||
{
|
||||
if (!encoder->rfx)
|
||||
encoder->rfx = rfx_context_new(TRUE, encoder->server->settings->ThreadingFlags);
|
||||
encoder->rfx = rfx_context_new_ex(TRUE, encoder->server->settings->ThreadingFlags);
|
||||
|
||||
if (!encoder->rfx)
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user