FreeRDP
palette.c File Reference
#include <freerdp/config.h>
#include <stdio.h>
#include <winpr/crt.h>
#include <freerdp/log.h>
#include "palette.h"
#include "cache.h"

Macros

#define TAG   FREERDP_TAG("cache.palette")
 

Functions

static void * palette_cache_get (rdpPaletteCache *palette, UINT32 index)
 
static void palette_cache_put (rdpPaletteCache *palette, UINT32 index, void *entry)
 
static BOOL update_gdi_cache_color_table (rdpContext *context, const CACHE_COLOR_TABLE_ORDER *cacheColorTable)
 
void palette_cache_register_callbacks (rdpUpdate *update)
 
rdpPaletteCache * palette_cache_new (rdpContext *context)
 
void palette_cache_free (rdpPaletteCache *paletteCache)
 
void free_palette_update (rdpContext *context, PALETTE_UPDATE *pointer)
 
PALETTE_UPDATEcopy_palette_update (rdpContext *context, const PALETTE_UPDATE *pointer)
 

Macro Definition Documentation

◆ TAG

#define TAG   FREERDP_TAG("cache.palette")

FreeRDP: A Remote Desktop Protocol Implementation Palette (Color Table) Cache

Copyright 2011 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ copy_palette_update()

PALETTE_UPDATE* copy_palette_update ( rdpContext *  context,
const PALETTE_UPDATE pointer 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ free_palette_update()

void free_palette_update ( rdpContext *  context,
PALETTE_UPDATE pointer 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ palette_cache_free()

void palette_cache_free ( rdpPaletteCache *  paletteCache)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ palette_cache_get()

void * palette_cache_get ( rdpPaletteCache *  palette,
UINT32  index 
)
static

◆ palette_cache_new()

rdpPaletteCache* palette_cache_new ( rdpContext *  context)
Here is the caller graph for this function:

◆ palette_cache_put()

void palette_cache_put ( rdpPaletteCache *  palette,
UINT32  index,
void *  entry 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ palette_cache_register_callbacks()

void palette_cache_register_callbacks ( rdpUpdate *  update)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_gdi_cache_color_table()

static BOOL update_gdi_cache_color_table ( rdpContext *  context,
const CACHE_COLOR_TABLE_ORDER cacheColorTable 
)
static
Here is the call graph for this function:
Here is the caller graph for this function: