¡@

Home 

2014/10/15 ¤U¤È 10:03:45

iphone Programming Glossary: append_ok

Make movie file with picture Array and song file, using AVAsset

http://stackoverflow.com/questions/6061092/make-movie-file-with-picture-array-and-song-file-using-avasset

0 i 20 i buffer self pixelBufferFromCGImage m_PictArray objectAtIndex i CGImage andSize size BOOL append_ok NO int j 0 while append_ok j 30 if adaptor.assetWriterInput.readyForMoreMediaData printf appending.. m_PictArray objectAtIndex i CGImage andSize size BOOL append_ok NO int j 0 while append_ok j 30 if adaptor.assetWriterInput.readyForMoreMediaData printf appending d attemp d n frameCount j.. int32_t 10 CVPixelBufferPoolCreatePixelBuffer kCFAllocatorDefault adaptor.pixelBufferPool buffer append_ok adaptor appendPixelBuffer buffer withPresentationTime frameTime CVPixelBufferPoolRef bufferPool adaptor.pixelBufferPool..

Make movie file with picture Array and song file, using AVAsset

http://stackoverflow.com/questions/6061092/make-movie-file-with-picture-array-and-song-file-using-avasset

NULL convert uiimage to CGImage. int frameCount 0 for int i 0 i 20 i buffer self pixelBufferFromCGImage m_PictArray objectAtIndex i CGImage andSize size BOOL append_ok NO int j 0 while append_ok j 30 if adaptor.assetWriterInput.readyForMoreMediaData printf appending d attemp d n frameCount j CMTime frameTime CMTimeMake frameCount.. int frameCount 0 for int i 0 i 20 i buffer self pixelBufferFromCGImage m_PictArray objectAtIndex i CGImage andSize size BOOL append_ok NO int j 0 while append_ok j 30 if adaptor.assetWriterInput.readyForMoreMediaData printf appending d attemp d n frameCount j CMTime frameTime CMTimeMake frameCount int32_t 10 CVPixelBufferPoolCreatePixelBuffer.. d n frameCount j CMTime frameTime CMTimeMake frameCount int32_t 10 CVPixelBufferPoolCreatePixelBuffer kCFAllocatorDefault adaptor.pixelBufferPool buffer append_ok adaptor appendPixelBuffer buffer withPresentationTime frameTime CVPixelBufferPoolRef bufferPool adaptor.pixelBufferPool NSParameterAssert bufferPool NULL NSThread..

AVFoundation + AssetWriter: Generate Movie With Images and Audio

http://stackoverflow.com/questions/5640657/avfoundation-assetwriter-generate-movie-with-images-and-audio

int frameCount 0 for UIImage img in imageArray buffer self pixelBufferFromCGImage img CGImage andSize size BOOL append_ok NO int j 0 while append_ok j 30 if adaptor.assetWriterInput.readyForMoreMediaData printf appending d attemp d n frameCount.. UIImage img in imageArray buffer self pixelBufferFromCGImage img CGImage andSize size BOOL append_ok NO int j 0 while append_ok j 30 if adaptor.assetWriterInput.readyForMoreMediaData printf appending d attemp d n frameCount j CMTime frameTime.. printf appending d attemp d n frameCount j CMTime frameTime CMTimeMake frameCount int32_t kRecordingFPS append_ok adaptor appendPixelBuffer buffer withPresentationTime frameTime if buffer CVBufferRelease buffer NSThread sleepForTimeInterval..

Make movie file with picture Array and song file, using AVAsset

http://stackoverflow.com/questions/6061092/make-movie-file-with-picture-array-and-song-file-using-avasset

0 for int i 0 i 20 i buffer self pixelBufferFromCGImage m_PictArray objectAtIndex i CGImage andSize size BOOL append_ok NO int j 0 while append_ok j 30 if adaptor.assetWriterInput.readyForMoreMediaData printf appending d attemp d n frameCount.. i buffer self pixelBufferFromCGImage m_PictArray objectAtIndex i CGImage andSize size BOOL append_ok NO int j 0 while append_ok j 30 if adaptor.assetWriterInput.readyForMoreMediaData printf appending d attemp d n frameCount j CMTime frameTime CMTimeMake.. frameCount int32_t 10 CVPixelBufferPoolCreatePixelBuffer kCFAllocatorDefault adaptor.pixelBufferPool buffer append_ok adaptor appendPixelBuffer buffer withPresentationTime frameTime CVPixelBufferPoolRef bufferPool adaptor.pixelBufferPool..