codec: Use context functions for rfx decoding
authorMartin Fleisz <martin.fleisz@thincast.com>
Wed, 23 Nov 2016 13:22:42 +0000 (14:22 +0100)
committerMartin Fleisz <martin.fleisz@thincast.com>
Wed, 23 Nov 2016 13:22:42 +0000 (14:22 +0100)
libfreerdp/codec/rfx_decode.c
libfreerdp/codec/rfx_encode.c

index c239348..05a1852 100644 (file)
@@ -65,7 +65,7 @@ static void rfx_decode_component(RFX_CONTEXT* context,
        dwt_buffer = BufferPool_Take(context->priv->BufferPool, -1); /* dwt_buffer */
        PROFILER_ENTER(context->priv->prof_rfx_decode_component);
        PROFILER_ENTER(context->priv->prof_rfx_rlgr_decode);
-       rfx_rlgr_decode(context->mode, data, size, buffer, 4096);
+       context->rlgr_decode(context->mode, data, size, buffer, 4096);
        PROFILER_EXIT(context->priv->prof_rfx_rlgr_decode);
        PROFILER_ENTER(context->priv->prof_rfx_differential_decode);
        rfx_differential_decode(buffer + 4032, 64);
index 7695a86..cdd69e5 100644 (file)
@@ -249,7 +249,7 @@ static void rfx_encode_component(RFX_CONTEXT* context,
        rfx_differential_encode(data + 4032, 64);
        PROFILER_EXIT(context->priv->prof_rfx_differential_encode);
        PROFILER_ENTER(context->priv->prof_rfx_rlgr_encode);
-       *size = rfx_rlgr_encode(context->mode, data, 4096, buffer, buffer_size);
+       *size = context->rlgr_encode(context->mode, data, 4096, buffer, buffer_size);
        PROFILER_EXIT(context->priv->prof_rfx_rlgr_encode);
        PROFILER_EXIT(context->priv->prof_rfx_encode_component);
        BufferPool_Return(context->priv->BufferPool, dwt_buffer);