iphone Programming Glossary: cmsamplebufferinvalidate
Hardware accelerated h.264 decoding to texture, overlay or similar in iOS http://stackoverflow.com/questions/10646657/hardware-accelerated-h-264-decoding-to-texture-overlay-or-similar-in-ios copyNextSampleBuffer if sampleBufferRef runOnMainQueueWithoutDeadlocking ^ self processMovieFrame sampleBufferRef CMSampleBufferInvalidate sampleBufferRef CFRelease sampleBufferRef else videoEncodingIsFinished YES self endProcessing else if synchronizedMovieWriter..
Extract iPod Library raw PCM samples and play with sound effects http://stackoverflow.com/questions/4796643/extract-ipod-library-raw-pcm-samples-and-play-with-sound-effects length buffer NSData data NSData alloc initWithBytes buffer length length fullSongData appendData data data release CMSampleBufferInvalidate sampleBufferRef CFRelease sampleBufferRef if reader.status AVAssetReaderStatusFailed reader.status AVAssetReaderStatusUnknown..
Help Fix Memory Leak release http://stackoverflow.com/questions/4914853/help-fix-memory-leak-release with the following lines in the while loop after the if else statement to ensure that nextBuffer is really released. CMSampleBufferInvalidate nextBuffer CFRelease nextBuffer nextBuffer nil NULL I do not see any details in the docs on CMSampleBufferInvalidate but.. CMSampleBufferInvalidate nextBuffer CFRelease nextBuffer nextBuffer nil NULL I do not see any details in the docs on CMSampleBufferInvalidate but I found it referenced elsewhere and it does seem to help. I also call CFRelease and finally set it to nil. Setting it..
Drawing waveform with AVAssetReader http://stackoverflow.com/questions/5032775/drawing-waveform-with-avassetreader fix fullSongData appendBytes right length sizeof right totalLeft 0 totalRight 0 sampleTally 0 wader drain CMSampleBufferInvalidate sampleBufferRef CFRelease sampleBufferRef NSData finalData nil if reader.status AVAssetReaderStatusFailed reader.status.. right fullSongData appendBytes right length sizeof right totalLeft 0 totalRight 0 sampleTally 0 wader drain CMSampleBufferInvalidate sampleBufferRef CFRelease sampleBufferRef NSData finalData nil if reader.status AVAssetReaderStatusFailed reader.status..
|