title: iOS FullScreen AVCaptureSession
body: <p>I am developing a realtime video processing app for iOS 5. The video stream dimensions need to match the screen size of the device. I currently only have a iPhone 4 to develop against. For the iPhone 4 I set the AVCaptureSession preset to AVCaptureSessionPresetMedium:</p>
  
  <pre><code>AVCaptureSession *session = [AVCaptureSession new];
  [session setSessionPreset:AVCaptureSessionPresetMedium];
  </code></pre>
  
  <p>The captured images (via CMSampleBufferRef) have the size of the screen. </p>
  
  <p>My question: Is the assumption correct that the images captured with a session preset of AVCaptureSessionPresetMedium have the full screen device dimensions on iPhone 4s and iPad2 as well? I unfortunately cannot verify that myself. </p>
  
  <p>I looked at the apple documentation:</p>
  
  <p><a href="http://developer.apple.com/library/mac/#documentation/AVFoundation/Reference/AVCaptureSession_Class/Reference/Reference.html#//apple_ref/doc/constant_group/Video_Input_Presets" rel="nofollow">http://developer.apple.com/library/mac/#documentation/AVFoundation/Reference/AVCaptureSession_Class/Reference/Reference.html#//apple_ref/doc/constant_group/Video_Input_Presets</a></p>
  
  <p>but I cannot find a ipad2 dimension preset of 1024/768 and would like to save me the performance penalty of resizing images in real time.</p>
  
  <p>Whats the recommended path to go?</p>