How to get the Y component from CMSampleBuffer resulted from the AVCaptureSession?
Hey there, I am trying to access raw data from iphone camera using AVCaptureSession. I follow the guide provided by Apple ( link here ). The raw data from the samplebuffer is in YUV format ( Am I correct here about the raw video frame format?? ), how to directly obtain the data for Y component out of the raw data stored in the samplebuffer. When setting up the AVCaptureVideoDataOutput that returns the raw camera frames, you can set the format of the frames using code like the following: [videoOutput setVideoSettings:[NSDictionary dictionaryWithObject:[NSNumber numberWithInt:kCVPixelFormatType