Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Example code alternative to "GraphicsExportDoStandaloneExport"?



Howdy all!

I've run into a mystery bug with the GraphicsExportDoStandaloneExport function in my graphics export component. In essence, when 64bit pixel data is used, I get an error. If it is 32bit data, it works fine.
I am stumped. 
(I've posted an message, with the problem, but here it is, again..)

-- snip --

I am getting a really weird error in my graphics component.
(I am trying to get this to work...)

err = QTNewGWorld(&gw, store->pixelFormat, &bounds, NULL, NULL, kICMTempThenAppMemory); 
if (err) goto bail;


hPixMap = GetGWorldPixMap(gw);
if (err) goto bail;
LockPixels(hPixMap);
if (err) goto bail;

err = GraphicsExportDrawInputImage(store->parent, gw, NULL, NULL, &bounds);
if (err) goto bail;

The pixel format is b64a, and when I get to the GraphicsExportDrawInputImage, I get an error: -157

Any ideas??

Thanks!

bob..

--

So, instead, I am going to try to create a "proper" compression codec, with both compression and decompression, and an "proper" exporter that pulls data from the codec, and writes out an image file.

Is there any docs on what needs to be done? ElectricImage example only shows a "GraphicsExportDoStandaloneExport" process, but examples of doing an export the long way, is pretty scarce.

Any info would be appreciated!

Thanks!

bob..

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.