I just made up a quick test to see if I understand how it works (where
p1 and p2 are two different cmyk profiles). Compiled and ran fine.

How is this different than what you're doing?

#include "lcms.h"
#include <stdio.h>

typedef struct _RGB_ {
        BYTE r,g,b;     
} RGB;


int main()
{
        cmsHPROFILE srgb;
        cmsHPROFILE p1,p2;

        srgb = cmsCreate_sRGBProfile();
        p1 = cmsOpenProfileFromFile("p1.icc","r");
        p2 = cmsOpenProfileFromFile("p2.icc","r");


        cmsHPROFILE proof[4];
        proof[0] = srgb;
        proof[1] = p1;
        proof[2] = p2;
        proof[3] = srgb;
                

        cmsHTRANSFORM multi = cmsCreateMultiprofileTransform(proof,4,
                                TYPE_RGB_8,TYPE_RGB_8,
                                INTENT_RELATIVE_COLORIMETRIC,0);
        RGB pix;
        RGB outPix;
        for( int i = 0; i < 256; i++ )
        {
                pix.r = pix.g = pix.b = i;      
                cmsDoTransform(multi,&pix, &outPix,1);
                printf("%d %d %d -> %d %d %d\n", 
                pix.r,pix.g,pix.b,
                outPix.r,outPix.g,outPix.b);
        }
        return 0;
}




Isaac Case
Software Engineer
PCDT Color Workflow Team
Xerox Corporation
 
p 585.265.5472

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:lcms-user-
> [EMAIL PROTECTED] On Behalf Of Steve Mills
> Sent: Wednesday, May 21, 2008 12:17 PM
> To: lcms-user lcms-user
> Subject: Re: [Lcms-user] Confused about cmsCreateMultiprofileTransform
> error
> 
> On May 21, 2008, at 11:10:15, Case, Isaac wrote:
> 
> > Sorry for coming in on this much later, but what exactly are you
> > trying
> > to do?
> >
> > It looks like you're trying to softproof what rgb prints from the
> > proofer would look like, if the proofer was emulating the printer.
> >
> > Is that correct?
> 
> 
> That sounds correct. We soft proof to the screen what the resulting
> document would look like when printed to a proofer, taking the printer
> into account. The input space can be rgb, cmyk, grey, xyz, or Lab.
> 
> _________________________________________________________
> Steve Mills                              Me: 952-401-6255
> Senior Software Architect                         MultiAd
> [EMAIL PROTECTED]                       www.multi-ad.com
> 
> 
> 
>
------------------------------------------------------------------------
-
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Lcms-user mailing list
> Lcms-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lcms-user

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to