• 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
Application Design Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Application Design Question


  • Subject: Application Design Question
  • From: Marek Kozubal <email@hidden>
  • Date: Fri, 4 Sep 2009 19:55:34 -0400 (EDT)


Hello everyone.

I have a DVR (digital video recorder) program I wrote in Windows that I want to re-write on the Mac. And I wanted to get some ideas about how best to use Cocoa objects to make this program work as I'm still relatively new to Cocoa programming.

The application has 2 modes, one is capturing video from a camera of any sort, a NTSC capture card, usb, ethernet, etc, that isn't a big deal since that'd just be its own thread. However I want to display the incoming video live on screen with the minimum of CPU loading as well as being able to scale the data and do some basic manipulations on it, perhaps including whats in Core Image. The incoming data is often >8-bit monochrome and needs to be scaled to 8-bit grey for screen display.

The other mode is playing back a file, either frame by frame or playing back the video at a user settable frame rate.

I'd like to be able to have multiple sets of both open at once.

Another question related to this is what API set provides the fastest disk IO under Mac OS X? On the windows side I used FILE_FLAG_NO_BUFFERING and FILE_FLAG_WRITE_THROUGH flags with the ReadFile/WriteFile API.

My thoughts are perhaps NSDocument with NSView's that use Core Animation for displaying everything assuming there is a way to sequence bitmaps into Core Animation. But perhaps there is a better way? Also I might want to do secondary floating windows that display histograms or camera controls, etc.

The file formats are a proprietary format and not related to Quicktime or Windows Media, etc.

Thanks
-Marek
_______________________________________________

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: Application Design Question
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Termination notifications in foundation tool?
  • Next by Date: Re: Termination notifications in foundation tool?
  • Previous by thread: Re: Termination notifications in foundation tool?
  • Next by thread: Re: Application Design Question
  • Index(es):
    • Date
    • Thread