{
if (bitsPerPixel < 32)
{
- if (!freerdp_client_codecs_prepare(gdi->codecs,
+ if (!freerdp_client_codecs_prepare(codecs,
FREERDP_CODEC_INTERLEAVED,
gdi->width, gdi->height))
return FALSE;
}
else
{
- if (!freerdp_client_codecs_prepare(gdi->codecs,
+ if (!freerdp_client_codecs_prepare(codecs,
FREERDP_CODEC_PLANAR,
gdi->width, gdi->height))
return FALSE;
{
case RDP_CODEC_ID_REMOTEFX:
{
- if (!rfx_process_message(gdi->codecs->rfx, cmd->bitmapData,
+ if (!rfx_process_message(context->codecs->rfx, cmd->bitmapData,
PIXEL_FORMAT_BGRX32,
cmd->bitmapDataLength,
0, 0,
case RDP_CODEC_ID_NSCODEC:
{
- if (!nsc_process_message(gdi->codecs->nsc, cmd->bpp, cmd->width,
+ if (!nsc_process_message(context->codecs->nsc, cmd->bpp, cmd->width,
cmd->height, cmd->bitmapData,
cmd->bitmapDataLength, gdi->primary_buffer,
gdi->dstFormat, gdi->stride, cmd->destLeft, cmd->destTop,
instance->context->gdi = gdi;
gdi->context = instance->context;
- gdi->codecs = instance->context->codecs;
gdi->width = instance->settings->DesktopWidth;
gdi->height = instance->settings->DesktopHeight;
gdi->dstFormat = format;
goto fail;
}
- gdi->codecs = codecs_new(gdi->context);
- if (!gdi->codecs)
- goto fail;
-
- if (!freerdp_client_codecs_reset(gdi->codecs, FREERDP_CODEC_ALL, gdi->width,
+ if (!freerdp_client_codecs_reset(context->codecs, FREERDP_CODEC_ALL, gdi->width,
gdi->height))
goto fail;
{
gdi_bitmap_free_ex(gdi->primary);
gdi_DeleteDC(gdi->hdc);
- codecs_free(gdi->codecs);
free(gdi);
}
{
if (bpp < 32)
{
- if (!freerdp_client_codecs_prepare(gdi->codecs,
+ if (!freerdp_client_codecs_prepare(context->codecs,
FREERDP_CODEC_INTERLEAVED,
gdi->width, gdi->height))
return FALSE;
- status = interleaved_decompress(gdi->codecs->interleaved,
+ status = interleaved_decompress(context->codecs->interleaved,
pSrcData, SrcSize,
bpp,
pDstData, gdi->dstFormat,
}
else
{
- if (!freerdp_client_codecs_prepare(gdi->codecs,
+ if (!freerdp_client_codecs_prepare(context->codecs,
FREERDP_CODEC_PLANAR,
gdi->width, gdi->height))
return FALSE;
- status = planar_decompress(gdi->codecs->planar, pSrcData, SrcSize,
+ status = planar_decompress(context->codecs->planar, pSrcData, SrcSize,
pDstData, gdi->dstFormat, 0, 0, 0,
width, height, TRUE);
}