예제 #1
0
int shadow_encoder_uninit(rdpShadowEncoder* encoder)
{
    shadow_encoder_uninit_grid(encoder);

    if (encoder->bs)
    {
        Stream_Free(encoder->bs, TRUE);
        encoder->bs = NULL;
    }

    if (encoder->codecs & FREERDP_CODEC_REMOTEFX)
    {
        shadow_encoder_uninit_rfx(encoder);
    }

    if (encoder->codecs & FREERDP_CODEC_NSCODEC)
    {
        shadow_encoder_uninit_nsc(encoder);
    }

    if (encoder->codecs & FREERDP_CODEC_PLANAR)
    {
        shadow_encoder_uninit_planar(encoder);
    }

    if (encoder->codecs & FREERDP_CODEC_INTERLEAVED)
    {
        shadow_encoder_uninit_interleaved(encoder);
    }

    return 1;
}
예제 #2
0
int shadow_encoder_uninit(rdpShadowEncoder* encoder)
{
	shadow_encoder_uninit_grid(encoder);

	if (encoder->bs)
	{
		Stream_Free(encoder->bs, TRUE);
		encoder->bs = NULL;
	}

	if (encoder->codecs & SHADOW_CODEC_REMOTEFX)
	{
		shadow_encoder_uninit_rfx(encoder);
	}

	if (encoder->codecs & SHADOW_CODEC_NSCODEC)
	{
		shadow_encoder_uninit_nsc(encoder);
	}

	if (encoder->codecs & SHADOW_CODEC_BITMAP)
	{
		shadow_encoder_uninit_bitmap(encoder);
	}

	return 1;
}