MCPcopy Create free account
hub / github.com/cinder/Cinder / finalize

Method finalize

src/cinder/qtime/QuickTimeUtils.cpp:507–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507void ImageTargetCvPixelBuffer::finalize()
508{
509 switch( ::CVPixelBufferGetPixelFormatType( mPixelBufferRef ) ) {
510 case 'v408':/*k4444YpCbCrA8PixelFormat:*/
511 convertDataToAYpCbCr();
512 ::CVBufferSetAttachment( mPixelBufferRef, kCVImageBufferYCbCrMatrixKey, kCVImageBufferYCbCrMatrix_ITU_R_601_4, kCVAttachmentMode_ShouldPropagate );
513 break;
514 case 'v308':/*k444YpCbCr8CodecType:*/
515 convertDataToYpCbCr();
516 ::CVBufferSetAttachment( mPixelBufferRef, kCVImageBufferYCbCrMatrixKey, kCVImageBufferYCbCrMatrix_ITU_R_601_4, kCVAttachmentMode_ShouldPropagate );
517 break;
518 }
519}
520
521// Assumes RGB order 8 bit unsinged input, results in Rec. 601 YpCbCr
522void ImageTargetCvPixelBuffer::convertDataToYpCbCr()

Callers 2

createCvPixelBufferFunction · 0.45
createGWorldFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected