Wednesday, 15 April 2015

ios - How to change bit color in AVAssetReaderTrackOutput? -


I used to read AVAssetReaderTrackOutput video

"kCVPixelBufferPixelFormatTypeKey" installation -! "KCVPixelFormatType_32BGRA" work

but I need a 16 bit video.

If the setting setting value "kCVPixelFormatType_16 ...." is not working. [asset_reader_output copyNextSampleBuffer] - Always Nile = (

Why is this happening?

How do I change a little color?

UPD : `Code: <> Video Instruction Request MediaData Blocked using ONUUU: Block: ^ {While [VideoViewInput Hiredfremoradiadata]) {CMS ample buffer sample buffer = [video_sat_product copy copyupportance buffer]; If (Sample Buffer) {NSLog (@ "writes video"); [AppendSampleBuffer videoWriterInput: sampleBuffer]; CFRelease (sampleBuffer);} else {[videoWriterInput markAsFinished]; Dispatch_release (queueVideo); VideoFinished = yes; the break;}}}]; Text after "<

`

`

Core Video does not support all pixel formats . BGRA is guaranteed to work however you have Have to do your own conversion. What buffer are you using?

UPDATE : To access the pixels, use something like this:

  cvmffarff pixelbuffer = cms ample buffer image buff er (sampleBuffer); CVPixelBufferLockBaseAddress (pixelbuffer, 0); Zero * buffer feeder = CVP filterBuger badger (pixelbuffer); Size_t width = CVPixelBufferGetWidth (pixel buffer); Size_t height = cvpxbuffergatehite (pixelbuffer); Size_t byte paro = cvpx buffergatebitspiro (pixelbuffer); // Read / Modify pixel data with bufferAdmission, height & amp; BytesPerRow // For the BGRA format, it is that order CVPixelBufferUnlockBaseAddress has 4 bytes per pixel (pixelBuffer, 0),    

No comments:

Post a Comment