• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Motion bug in 32 bit on MacIntel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Motion bug in 32 bit on MacIntel?


  • Subject: Motion bug in 32 bit on MacIntel?
  • From: Micah Sharp <email@hidden>
  • Date: Mon, 21 Jan 2008 18:22:14 -0800

Hi, is this a known bug?  Do a simple temporal call in 32 bit mode and the returned buffer is junk (black with some channel swapped data near the bottom).   As far as I can see this is only on Mac Intel machines, PPC seems fine.

This is the code I used:

id getAPI;
getAPI = [_apiManager apiForProtocol:@protocol(FxParameterRetrievalAPI)];

id temporalAPI;
temporalAPI = [_apiManager apiForProtocol:@protocol(FxTemporalImageAPI)];

if ( getAPI != NULL )
{
if( renderInfo.depth == kFxDepth_FLOAT32 )
{
FxBitmap *inputImage = NULL;
[temporalAPI getInputBitmap:(FxBitmap **)&inputImage
  withInfo: renderInfo
atTime:(double)(renderInfo.frame + 1)];
if(!inputImage)
return NULL;

FxBitmap* outImage = outputImage;

void* srcBase = (void*)[inputImage dataPtr];
void* dstBase = (void*)[outImage dataPtr];
int rowbytes = [outImage rowBytes];
int height = [outImage height];

for( int row = 0; row < height; ++row )
{
void* s = (void*)((char*)srcBase + ( rowbytes * row ));
void* d = (void*)((char*)dstBase + ( rowbytes * row ));


memcpy( d, s, rowbytes );
}


return YES;
}
}


Thanks,

Micah Sharp
Red Giant Software
www.redgiantsoftware.com

Sign up for our newsletter!
http://redgiantsoftware.com/newslettersignup.html



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Motion bug in 32 bit on MacIntel?
      • From: Darrin Cardani <email@hidden>
  • Prev by Date: Re: Newbie FxPlugins question
  • Next by Date: Re: Motion bug in 32 bit on MacIntel?
  • Previous by thread: Re: Newbie FxPlugins question
  • Next by thread: Re: Motion bug in 32 bit on MacIntel?
  • Index(es):
    • Date
    • Thread