0
QTCaptureDecompressedVideoOutput
을 통해 카메라 (Macbook Air, OSX 10.9.5)에서 비디오를 캡쳐하고 처리 중이지만 들어오는 이미지의 크기를 조정해야합니다. 어떤 이유로 든 나에게 전달 된 이미지는 설정시 요청한 크기가 아닙니다. 픽셀 버퍼 속성 :CVImageBufferRef에서 크기를 조정하는 방법 - 또는 - setPixelBufferAttributes가 작동하지 않는 이유는 무엇입니까?
[mVideoOutput setPixelBufferAttributes:
[NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithDouble:width], (id)kCVPixelBufferWidthKey,
[NSNumber numberWithDouble:height], (id)kCVPixelBufferHeightKey,
[NSNumber numberWithUnsignedInt:kCVPixelFormatType_32ARGB], (id)kCVPixelBufferPixelFormatTypeKey,
nil]];
요청한 크기의 두 배가되는 이미지가 다시 나타납니다.
이미지를 절반 크기로 조정하는 가장 효율적인 방법은 무엇입니까?
또는 더 나은 ....
왜 setPixelBufferAttributes가 정상적으로 작동하지 않습니다?