• 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
invalid conversion from 'void*' to 'CGImage*' (QTMovie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

invalid conversion from 'void*' to 'CGImage*' (QTMovie)


  • Subject: invalid conversion from 'void*' to 'CGImage*' (QTMovie)
  • From: Carles Gutierrez <email@hidden>
  • Date: Fri, 24 Sep 2010 14:13:11 +0200

I'm getting a strange error I cannot fix.
I have declared a QTMovie like this, using an opensource template
(openframeworks):

// It's a Cocoa QTMovie, void*'s so it's C++ compatible
void    *movie;

I have the following code in my project:

NSMutableDictionary *attributes = [NSMutableDictionary dictionary];

   NSSize imageSize = NSMakeSize(95, 120);
   NSValue *sizeValue = [NSValue valueWithSize:imageSize];
   [attributes setObject:sizeValue forKey:QTMovieFrameImageSize];
   [attributes setObject:
QTMovieFrameImageTypeCGImageRef forKey: QTMovieFrameImageType];

QTTime time = [(QTMovie*)movie currentTime];

CGImageRef capturedImage = [(QTMovie*)movie frameImageAtTime:time
withAttributes:attributes error:NULL];

I am getting this error for the last line:
error: invalid conversion from 'void*' to 'CGImage*'

BUT I am NOT getting an error for the line above that...

Given the attributes I have set, particularly [attributes
setObject:QTMovieFrameImageTypeCGImageRef forKey: QTMovieFrameImageType];
Shouldn't frameAtImageTime: return a CGImageRef?

Cheers,
Carles
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: invalid conversion from 'void*' to 'CGImage*' (QTMovie)
      • From: "Sean McBride" <email@hidden>
    • Re: invalid conversion from 'void*' to 'CGImage*' (QTMovie)
      • From: Quincey Morris <email@hidden>
  • Prev by Date: UITableview scrollStyle
  • Next by Date: Re: UITableview scrollStyle
  • Previous by thread: Re: UITableview scrollStyle
  • Next by thread: Re: invalid conversion from 'void*' to 'CGImage*' (QTMovie)
  • Index(es):
    • Date
    • Thread