There are no reviews yet. Be the first to send feedback to the community and the maintainers!
This directory contains the LZMA SDK customized for an embedded system (iPhone/iOS) Only the file extraction logic was included, all code related to creating compressed streams was removed. CRC validation was removed to improve performance. In addition, large file support was added so that iOS is able to decompress files as large as 650 megs using memory mapped IO. This code is based on lzma release 9.22 beta. Note that when incorporating the code into a new project, copy only the LZMASDK directory in the Classes subdir into your iOS project. All of the other files in this example iOS app exist just to illustrate how to use the SDK code in the LZMASDK directory. The code was modified as follows: Embedded version does not need exe branch predictors. Bra.c Bcj2.c Bra86.c File List: 7zBuf.c 7zCrc.c 7zFile.c 7zStream.c LzHash.h LzmaDec.h 7zBuf.h 7zCrc.h 7zFile.h 7zVersion.h CpuArch.h LzmaDec.c Types.h Removed: (XZ file format support) Xz.* MtCoder.c Ppmd7Enc.c Sha256.* lzma Search (encode) functions rm LzFind* rm Threads.* rm Bra* rm Bcj2.* rm lzmaEnc* lzma2Enc.* The 7z.h and 7zIn.c files were modified to support memory mapping the dictionary cache file so that large files can be decompressed without having to break archives up into blocks. While splitting into blocks makes it possible to create an archive with lots of little files in different blocks, it makes compression much worse. Large file support makes it possible to get maximum compression by putting all the files into 1 block, but the downside is that the decode process is slower due to the use of memory mapped IO writes. See the k7zUnpackMapDictionaryInMemoryMaxNumBytes define in 7z.h if you want to change the size at which memory mapped IO kicks in, currently archives larger than 1 meg will use memory mapped IO. To update to a new version of the LZMA SDK, use the update.tcl to copy over those files that were used in this version. Note that updating is not trivial since files that have been modified would need to be merged. The example iOS application shows how to decode a small file and how some very large files can be decoded without using up all the memory in an iOS application. Previously, an archive with a dictionary around 30 to 40 megs would crash an iOS device, with the mmap logic files as large as 650 megs can be decoded without going over the virtual memory limits on iOS. Note that this large file support depends on how large a memory space a single process can map under iOS, so keeping a very large single archive under 400 megs is likely to be a good idea. See LICENSE.txt for license details.
AVAnimator
AVAnimator is an iOS library that makes it easy to implement non-trivial animated/video content in iOSMetalBT709Decoder
Proper rendering of BT.709 encoded H.264 image using MetalH264SeamlessLooping
Demo of seamless looping of HD video content using VideoToolboxMetalHuffman
A GPU huffman decoder for iOS on top of MetalAlphaOverVideo
iOS alpha channel video player library implemented on top of MetalFireworks
Fireworks is an AVAnimator demo that displays apha channel fireworks animationsAVRenderExample
AVRenderExample is an AVAnimator demo of offline video compositionMvidMovieMaker
MvidMovieMakerH264AlphaPlayer
Demo of iOS client that plays alpha channel video using h264 hardware and OpenGLSunSpot
SunSpot is an iOS 8 app that demonstrates playback with AVKit with a 1080p videoKittyBoom
KittyBoom is an AVAnimator demo that shows encoding an alpha channel video using two H.264 videosAVSync
AVSync is an AVAnimator example that demonstrates audio/video syncMetalPrefixSum
A GPU based parallel prefix sum implementation that operates on byte values. Supports both inclusive scan and exclusive scan.MarioJump
MarioJump compares decoded alpha channel vs green screen video qualityStreetFighter
StreetFighter is an AVAnimator demo of AV sync, composition, and seamless loopingAdaptiveLosslessPrediction
C++ impl of Adaptive Lossless Prediction based Image Compression (paper by Jovanovic and Lorentz)SeedsCombined
Two examples of image segmentation based on OpenCV for Xcode on MacOSXARMTimingTests
ARM ASM timing framework for iOSSKRepeatShader
SpriteKit impl of repeated tile rendering using a shaderLZ4Decompression
Decompression Speed test for iOS devicesSKShaderBWWindow
Example of SpriteKit shader that works with OpenGL or MetalCarSpin
CarSpin is an AVAnimator example of decoding an alpha channel video encoded with mixed h.264 framesDivQuantCluster
Clustering using divisive split and k-meansGvmCpp
C++ impl of GVM clusteringMetalElias
A Metal implementation of Elias gamma encoding/decodingRGBAShader
Example of OpenGLES shader using a 256 entry lookup tableCoreImageMetalFilter
A simple iOS example in Objective-C that demonstrates a Metal compute kernel CoreImage filterLadybugZap
AVAnimator demo of seamless looping, GIF decoding, and CoreAnimation integrationSKEffectNodeFiltered
Example of SKEffectNode with a CIFilterMetalRice
A GPU based rice decoder for iOS on top of MetalPNGExampleXcode
Example Xcode project that builds libpng and implements read/write of PNG image fileClusteringSegmentation
A unsupervised image segmentation approach using clustering with OpenCVLove Open Source and this site? Check out how you can help us