Blame libfreerdp/codec/rfx_types.h

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