mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[deprecate] rename planar_decompress
This commit is contained in:
@@ -540,9 +540,10 @@ static UINT gdi_SurfaceCommand_Planar(rdpGdi* gdi, RdpgfxClientContext* context,
|
||||
if (!is_within_surface(surface, cmd))
|
||||
return ERROR_INVALID_DATA;
|
||||
|
||||
if (!planar_decompress(surface->codecs->planar, cmd->data, cmd->length, cmd->width, cmd->height,
|
||||
DstData, surface->format, surface->scanline, cmd->left, cmd->top,
|
||||
cmd->width, cmd->height, FALSE))
|
||||
if (!freerdp_bitmap_decompress_planar(surface->codecs->planar, cmd->data, cmd->length,
|
||||
cmd->width, cmd->height, DstData, surface->format,
|
||||
surface->scanline, cmd->left, cmd->top, cmd->width,
|
||||
cmd->height, FALSE))
|
||||
return ERROR_INTERNAL_ERROR;
|
||||
|
||||
invalidRect.left = (UINT16)MIN(UINT16_MAX, cmd->left);
|
||||
|
||||
@@ -206,11 +206,11 @@ static BOOL gdi_Bitmap_Decompress(rdpContext* context, rdpBitmap* bitmap, const
|
||||
const BOOL fidelity =
|
||||
freerdp_settings_get_bool(context->settings, FreeRDP_DrawAllowDynamicColorFidelity);
|
||||
freerdp_planar_switch_bgr(context->codecs->planar, fidelity);
|
||||
if (!planar_decompress(context->codecs->planar, pSrcData, SrcSize, DstWidth, DstHeight,
|
||||
bitmap->data, bitmap->format, 0, 0, 0, DstWidth, DstHeight,
|
||||
TRUE))
|
||||
if (!freerdp_bitmap_decompress_planar(context->codecs->planar, pSrcData, SrcSize,
|
||||
DstWidth, DstHeight, bitmap->data, bitmap->format,
|
||||
0, 0, 0, DstWidth, DstHeight, TRUE))
|
||||
{
|
||||
WLog_ERR(TAG, "planar_decompress failed");
|
||||
WLog_ERR(TAG, "freerdp_bitmap_decompress_planar failed");
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user