codec: Use context functions for rfx decoding
This commit is contained in:
parent
6c9df44846
commit
c11211181d
@ -65,7 +65,7 @@ static void rfx_decode_component(RFX_CONTEXT* context,
|
|||||||
dwt_buffer = BufferPool_Take(context->priv->BufferPool, -1); /* dwt_buffer */
|
dwt_buffer = BufferPool_Take(context->priv->BufferPool, -1); /* dwt_buffer */
|
||||||
PROFILER_ENTER(context->priv->prof_rfx_decode_component);
|
PROFILER_ENTER(context->priv->prof_rfx_decode_component);
|
||||||
PROFILER_ENTER(context->priv->prof_rfx_rlgr_decode);
|
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_EXIT(context->priv->prof_rfx_rlgr_decode);
|
||||||
PROFILER_ENTER(context->priv->prof_rfx_differential_decode);
|
PROFILER_ENTER(context->priv->prof_rfx_differential_decode);
|
||||||
rfx_differential_decode(buffer + 4032, 64);
|
rfx_differential_decode(buffer + 4032, 64);
|
||||||
|
@ -249,7 +249,7 @@ static void rfx_encode_component(RFX_CONTEXT* context,
|
|||||||
rfx_differential_encode(data + 4032, 64);
|
rfx_differential_encode(data + 4032, 64);
|
||||||
PROFILER_EXIT(context->priv->prof_rfx_differential_encode);
|
PROFILER_EXIT(context->priv->prof_rfx_differential_encode);
|
||||||
PROFILER_ENTER(context->priv->prof_rfx_rlgr_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_rlgr_encode);
|
||||||
PROFILER_EXIT(context->priv->prof_rfx_encode_component);
|
PROFILER_EXIT(context->priv->prof_rfx_encode_component);
|
||||||
BufferPool_Return(context->priv->BufferPool, dwt_buffer);
|
BufferPool_Return(context->priv->BufferPool, dwt_buffer);
|
||||||
|
Loading…
Reference in New Issue
Block a user