mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
271 lines
7.8 KiB
C
271 lines
7.8 KiB
C
/*
|
|
* MSCMS - Color Management System for Wine
|
|
*
|
|
* Copyright 2004 Hans Leidekker
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
|
|
#include "config.h"
|
|
#include "wine/debug.h"
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include "windef.h"
|
|
#include "winbase.h"
|
|
#include "wingdi.h"
|
|
#include "winuser.h"
|
|
#include "icm.h"
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(mscms);
|
|
|
|
BOOL WINAPI AssociateColorProfileWithDeviceA( PCSTR machine, PCSTR profile, PCSTR device )
|
|
{
|
|
FIXME( "( %p, %p, %p ) stub\n", machine, profile, device );
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
BOOL WINAPI AssociateColorProfileWithDeviceW( PCWSTR machine, PCWSTR profile, PCWSTR device )
|
|
{
|
|
FIXME( "( %p, %p, %p ) stub\n", machine, profile, device );
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
BOOL WINAPI CheckBitmapBits( HTRANSFORM transform, PVOID srcbits, BMFORMAT format, DWORD width,
|
|
DWORD height, DWORD stride, PBYTE result, PBMCALLBACKFN callback,
|
|
LPARAM data )
|
|
{
|
|
FIXME( "( %p, %p, 0x%08x, 0x%08lx, 0x%08lx, 0x%08lx, %p, %p, 0x%08lx ) stub\n",
|
|
transform, srcbits, format, width, height, stride, result, callback, data );
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL WINAPI CheckColors( HTRANSFORM transform, PCOLOR colors, DWORD number, COLORTYPE type,
|
|
PBYTE result )
|
|
{
|
|
FIXME( "( %p, %p, 0x%08lx, 0x%08x, %p ) stub\n", transform, colors, number, type, result );
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL WINAPI ConvertColorNameToIndex( HPROFILE profile, PCOLOR_NAME name, PDWORD index, DWORD count )
|
|
{
|
|
FIXME( "( %p, %p, %p, 0x%08lx ) stub\n", profile, name, index, count );
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL WINAPI ConvertIndexToColorName( HPROFILE profile, PDWORD index, PCOLOR_NAME name, DWORD count )
|
|
{
|
|
FIXME( "( %p, %p, %p, 0x%08lx ) stub\n", profile, index, name, count );
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
HTRANSFORM WINAPI CreateColorTransformA( LPLOGCOLORSPACEA space, HPROFILE dest, HPROFILE target,
|
|
DWORD flags )
|
|
{
|
|
FIXME( "( %p, %p, %p, 0x%08lx ) stub\n", space, dest, target, flags );
|
|
|
|
return NULL;
|
|
}
|
|
|
|
HTRANSFORM WINAPI CreateColorTransformW( LPLOGCOLORSPACEW space, HPROFILE dest, HPROFILE target,
|
|
DWORD flags )
|
|
{
|
|
FIXME( "( %p, %p, %p, 0x%08lx ) stub\n", space, dest, target, flags );
|
|
|
|
return NULL;
|
|
}
|
|
|
|
BOOL WINAPI CreateDeviceLinkProfile( PHPROFILE profiles, DWORD nprofiles, PDWORD intents,
|
|
DWORD nintents, DWORD flags, PBYTE *data, DWORD index )
|
|
{
|
|
FIXME( "( %p, 0x%08lx, %p, 0x%08lx, 0x%08lx, %p, 0x%08lx ) stub\n",
|
|
profiles, nprofiles, intents, nintents, flags, data, index );
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
HTRANSFORM WINAPI CreateMultiProfileTransform( PHPROFILE profiles, DWORD nprofiles, PDWORD intents,
|
|
DWORD nintents, DWORD flags, DWORD index )
|
|
{
|
|
FIXME( "( %p, 0x%08lx, %p, 0x%08lx, 0x%08lx, 0x%08lx ) stub\n",
|
|
profiles, nprofiles, intents, nintents, flags, index );
|
|
|
|
return NULL;
|
|
}
|
|
|
|
BOOL WINAPI CreateProfileFromLogColorSpaceA( LPLOGCOLORSPACEA space, PBYTE *buffer )
|
|
{
|
|
FIXME( "( %p, %p ) stub\n", space, buffer );
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL WINAPI CreateProfileFromLogColorSpaceW( LPLOGCOLORSPACEW space, PBYTE *buffer )
|
|
{
|
|
FIXME( "( %p, %p ) stub\n", space, buffer );
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL WINAPI DeleteColorTransform( HTRANSFORM transform )
|
|
{
|
|
FIXME( "( %p ) stub\n", transform );
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
BOOL WINAPI DisassociateColorProfileFromDeviceA( PCSTR machine, PCSTR profile, PCSTR device )
|
|
{
|
|
FIXME( "( %p, %p, %p ) stub\n", machine, profile, device );
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
BOOL WINAPI DisassociateColorProfileFromDeviceW( PCWSTR machine, PCWSTR profile, PCWSTR device )
|
|
{
|
|
FIXME( "( %p, %p, %p ) stub\n", machine, profile, device );
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
BOOL WINAPI EnumColorProfilesA( PCSTR machine, PENUMTYPEA record, PBYTE buffer, PDWORD size,
|
|
PDWORD number )
|
|
{
|
|
FIXME( "( %p, %p, %p, %p, %p ) stub\n", machine, record, buffer, size, number );
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL WINAPI EnumColorProfilesW( PCWSTR machine, PENUMTYPEW record, PBYTE buffer, PDWORD size,
|
|
PDWORD number )
|
|
{
|
|
FIXME( "( %p, %p, %p, %p, %p ) stub\n", machine, record, buffer, size, number );
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
DWORD WINAPI GetCMMInfo( HTRANSFORM transform, DWORD info )
|
|
{
|
|
FIXME( "( %p, 0x%08lx ) stub\n", transform, info );
|
|
|
|
return 0;
|
|
}
|
|
|
|
BOOL WINAPI GetNamedProfileInfo( HPROFILE profile, PNAMED_PROFILE_INFO info )
|
|
{
|
|
FIXME( "( %p, %p ) stub\n", profile, info );
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL WINAPI GetPS2ColorRenderingDictionary( HPROFILE profile, DWORD intent, PBYTE buffer,
|
|
PDWORD size, PBOOL binary )
|
|
{
|
|
FIXME( "( %p, 0x%08lx, %p, %p, %p ) stub\n", profile, intent, buffer, size, binary );
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL WINAPI GetPS2ColorRenderingIntent( HPROFILE profile, DWORD intent, PBYTE buffer, PDWORD size )
|
|
{
|
|
FIXME( "( %p, 0x%08lx, %p, %p ) stub\n", profile, intent, buffer, size );
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL WINAPI GetPS2ColorSpaceArray( HPROFILE profile, DWORD intent, DWORD type, PBYTE buffer,
|
|
PDWORD size, PBOOL binary )
|
|
{
|
|
FIXME( "( %p, 0x%08lx, 0x%08lx, %p, %p, %p ) stub\n", profile, intent, type, buffer, size, binary );
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL WINAPI RegisterCMMA( PCSTR machine, DWORD id, PCSTR dll )
|
|
{
|
|
FIXME( "( %p, 0x%08lx, %p ) stub\n", machine, id, dll );
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
BOOL WINAPI RegisterCMMW( PCWSTR machine, DWORD id, PCWSTR dll )
|
|
{
|
|
FIXME( "( %p, 0x%08lx, %p ) stub\n", machine, id, dll );
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
BOOL WINAPI SelectCMM( DWORD id )
|
|
{
|
|
FIXME( "( 0x%08lx ) stub\n", id );
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
BOOL WINAPI SetColorProfileElementReference( HPROFILE profile, TAGTYPE type, TAGTYPE ref )
|
|
{
|
|
FIXME( "( %p, 0x%08lx, 0x%08lx ) stub\n", profile, type, ref );
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
BOOL WINAPI SetColorProfileElementSize( HPROFILE profile, TAGTYPE type, DWORD size )
|
|
{
|
|
FIXME( "( %p, 0x%08lx, 0x%08lx ) stub\n", profile, type, size );
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL WINAPI TranslateBitmapBits( HTRANSFORM transform, PVOID srcbits, BMFORMAT input,
|
|
DWORD width, DWORD height, DWORD inputstride, PVOID destbits,
|
|
BMFORMAT output, DWORD outputstride, PBMCALLBACKFN callback,
|
|
ULONG data )
|
|
{
|
|
FIXME( "( %p, %p, 0x%08x, 0x%08lx, 0x%08lx, 0x%08lx, %p, 0x%08x, 0x%08lx, %p, 0x%08lx ) stub\n",
|
|
transform, srcbits, input, width, height, inputstride, destbits, output, outputstride,
|
|
callback, data );
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL WINAPI TranslateColors( HTRANSFORM transform, PCOLOR inputcolors, DWORD number,
|
|
COLORTYPE input, PCOLOR outputcolors, COLORTYPE output )
|
|
{
|
|
FIXME( "( %p, %p, 0x%08lx, 0x%08x, %p, 0x%08x ) stub\n", transform, inputcolors,
|
|
number, input, outputcolors, output );
|
|
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL WINAPI UnregisterCMMA( PCSTR machine, DWORD id )
|
|
{
|
|
FIXME( "( %p, 0x%08lx ) stub\n", machine, id );
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
BOOL WINAPI UnregisterCMMW( PCWSTR machine, DWORD id )
|
|
{
|
|
FIXME( "( %p, 0x%08lx ) stub\n", machine, id );
|
|
|
|
return TRUE;
|
|
}
|