Blame libfreerdp/codec/rfx_types.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * RemoteFX Codec Library
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2011 Vic Lee
Packit 1fb8d4
 *
Packit 1fb8d4
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit 1fb8d4
 * you may not use this file except in compliance with the License.
Packit 1fb8d4
 * You may obtain a copy of the License at
Packit 1fb8d4
 *
Packit 1fb8d4
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 1fb8d4
 *
Packit 1fb8d4
 * Unless required by applicable law or agreed to in writing, software
Packit 1fb8d4
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 1fb8d4
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 1fb8d4
 * See the License for the specific language governing permissions and
Packit 1fb8d4
 * limitations under the License.
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
#ifndef FREERDP_LIB_CODEC_RFX_TYPES_H
Packit 1fb8d4
#define FREERDP_LIB_CODEC_RFX_TYPES_H
Packit 1fb8d4
Packit 1fb8d4
#ifdef HAVE_CONFIG_H
Packit 1fb8d4
#include "config.h"
Packit 1fb8d4
#endif
Packit 1fb8d4
Packit 1fb8d4
#include <winpr/crt.h>
Packit 1fb8d4
#include <winpr/pool.h>
Packit 1fb8d4
#include <winpr/wlog.h>
Packit 1fb8d4
#include <winpr/collections.h>
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/log.h>
Packit 1fb8d4
#include <freerdp/utils/profiler.h>
Packit 1fb8d4
Packit 1fb8d4
#define RFX_TAG FREERDP_TAG("codec.rfx")
Packit 1fb8d4
#ifdef WITH_DEBUG_RFX
Packit 1fb8d4
#define DEBUG_RFX(...) WLog_DBG(RFX_TAG, __VA_ARGS__)
Packit 1fb8d4
#else
Packit 1fb8d4
#define DEBUG_RFX(...) do { } while (0)
Packit 1fb8d4
#endif
Packit 1fb8d4
Packit 1fb8d4
typedef struct _RFX_TILE_COMPOSE_WORK_PARAM RFX_TILE_COMPOSE_WORK_PARAM;
Packit 1fb8d4
Packit 1fb8d4
struct _RFX_CONTEXT_PRIV
Packit 1fb8d4
{
Packit 1fb8d4
	wLog* log;
Packit 1fb8d4
	wObjectPool* TilePool;
Packit 1fb8d4
Packit 1fb8d4
	BOOL UseThreads;
Packit 1fb8d4
	PTP_WORK* workObjects;
Packit 1fb8d4
	RFX_TILE_COMPOSE_WORK_PARAM* tileWorkParams;
Packit 1fb8d4
Packit 1fb8d4
	DWORD MinThreadCount;
Packit 1fb8d4
	DWORD MaxThreadCount;
Packit 1fb8d4
Packit 1fb8d4
	PTP_POOL ThreadPool;
Packit 1fb8d4
	TP_CALLBACK_ENVIRON ThreadPoolEnv;
Packit 1fb8d4
Packit 1fb8d4
	wBufferPool* BufferPool;
Packit 1fb8d4
Packit 1fb8d4
	/* profilers */
Packit 1fb8d4
	PROFILER_DEFINE(prof_rfx_decode_rgb)
Packit 1fb8d4
	PROFILER_DEFINE(prof_rfx_decode_component)
Packit 1fb8d4
	PROFILER_DEFINE(prof_rfx_rlgr_decode)
Packit 1fb8d4
	PROFILER_DEFINE(prof_rfx_differential_decode)
Packit 1fb8d4
	PROFILER_DEFINE(prof_rfx_quantization_decode)
Packit 1fb8d4
	PROFILER_DEFINE(prof_rfx_dwt_2d_decode)
Packit 1fb8d4
	PROFILER_DEFINE(prof_rfx_ycbcr_to_rgb)
Packit 1fb8d4
Packit 1fb8d4
	PROFILER_DEFINE(prof_rfx_encode_rgb)
Packit 1fb8d4
	PROFILER_DEFINE(prof_rfx_encode_component)
Packit 1fb8d4
	PROFILER_DEFINE(prof_rfx_rlgr_encode)
Packit 1fb8d4
	PROFILER_DEFINE(prof_rfx_differential_encode)
Packit 1fb8d4
	PROFILER_DEFINE(prof_rfx_quantization_encode)
Packit 1fb8d4
	PROFILER_DEFINE(prof_rfx_dwt_2d_encode)
Packit 1fb8d4
	PROFILER_DEFINE(prof_rfx_rgb_to_ycbcr)
Packit 1fb8d4
	PROFILER_DEFINE(prof_rfx_encode_format_rgb)
Packit 1fb8d4
};
Packit 1fb8d4
Packit 1fb8d4
#endif /* FREERDP_LIB_CODEC_RFX_TYPES_H */