• 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
Re: completely mad caused by CIImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: completely mad caused by CIImage


  • Subject: Re: completely mad caused by CIImage
  • From: Erik Buck <email@hidden>
  • Date: Sun, 18 Mar 2007 23:33:45 -0400

I almost didn't answer you question for at least one of the reasons often sited for not answering questions in http://www.cocoadev.com/ index.pl?HowToAskQuestions and http://www.mikeash.com/ getting_answers.html. I mention this just in case you are actually interested in encouraging answers to your questions but don't know how.

You say you searched and then basically dared me to repeat your search. So what is wrong with this rather obvious search ? http:// developer.apple.com/cgi-bin/search.pl? q=imageWithTexture&num=10&site=default_collection

Is there some problem with the sample code provided in the third result of the search ?

Maybe you like this sample code taken from http://developer.apple.com/ documentation/GraphicsImaging/Conceptual/CoreVideo/CVProg_Tasks/ chapter_3_section_3.html

- (void)renderCurrentFrame
{
    NSRect      frame = [self frame];

    if(currentFrame)
    {
        CGRect      imageRect;
        CIImage     *inputImage;

inputImage = [CIImage imageWithCVImageBuffer:currentFrame];
// 1
imageRect = [inputImage extent];
// 2
[ciContext drawImage:InputImage
// 3
atPoint:CGPointMake(
(int)((frame.size.width - imageRect.size.width) * 0.5),
(int)((frame.size.height - imageRect.size.height) * 0.5))
fromRect:imageRect];
}
QTVisualContextTask(qtVisualContext);
// 4
}


How about the example here: http://developer.apple.com/documentation/ GraphicsImaging/Conceptual/CoreImaging/ci_tasks/chapter_3_section_7.html

I like this one: http://developer.apple.com/samplecode/QTCoreImage101/ listing5.html

Then there are these two:
http://developer.apple.com/samplecode/CIVideoDemoGL/listing7.html
http://developer.apple.com/samplecode/WhackedTV/listing17.html

Finally, is it not obvious to you that it works because you can do it using no code at all via Quartz Composer ?

I am genuinely fascinated by your question and seeming certainty that "You can also try to search some sample code: it will be effortless for you to do so because there is nothing." What made you so certain that typing either one of the method names in you rant/question into the search field at http://developer.apple.com would produce no answer ?



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Prev by Date: Re: Setting focus at runtime to a specific control?
  • Next by Date: Re: Completely mad caused by CIImage
  • Previous by thread: Completely mad caused by CIImage
  • Next by thread: Re: Completely mad caused by CIImage
  • Index(es):
    • Date
    • Thread