compression

AS3 Video Encoding at runtime with high compression (H.264?)

I need to compress video image data (lets say a display object) in AS3 to a Byte Array with high compression at runtime. Framerate only needs to be around 5 but 1024x768 video needs to go to < 40 Kilobyte per Second without the quality beeing tooo bad. I wrote a custom encoder and got it to around 80-100 Kilobyte per Second for 1024*768 ...

IIS dynamic compression and HttpHandlers

Does anyone know if it's possible to use IIS Dynamic Content Compression to compress the output of an HttpHandler (.ashx) ? ...

Does Google Closure support multiple "packages" of Javascript files?

Say I had 1 MB of compressed Javascript, all combined into one file using Google Closure. Now 500 KB of it is only needed for one section of the site. So I want to combine & compress the Javascript, but separate it into two packages: Package A - 500 KB - used across the site Package B - 500 KB - used only in one section of the site ...

Compressing data coming out of WCF

I would like to compress the data coming out of WCF on a basicHttpBinding. I am trying to produce a new version of a system originally written as SOAP web services. In that we returned a GZipStream when we received a request. Is there any way to do the same with WCF? I am using VS2010, currently against .Net 3.5 but that's flexible. ...

Parallelizeable jpeg like compression using only DCT, run length encoding stages, what sort of compression/performance possible?

We have to compress a ton o' (monochrome) image data and move it quickly. If one were to just use the parallelizeable stages of jpeg compression (DCT and run length encoding of the quantized results) and run it on a GPU so each block is compressed in parallel I am hoping that would be very fast and still yeild a very significant compress...

Image and audio lossless file format

Hello, I know that JPG and MP3 always apply some kind of compression which losses data. Then I have to questions: - Which are the lossless file formats for image, audio and video? - Why, as far as I know, any photocamera does not offer the possibility to store images in a lossless file format? - I know that the data lost is really small...

Why compress this javascript file cause error

I use Jquery , and change many compress tool but still cause error "it dont know function I created in this file" http://gist.github.com/586338 help me !!! This file run fine , dont have a error if it dont compress ...

what is the effect of the file size and file type on the ratio of compressed file size to original file size?

i want to comper original file size and file type with the copmpressed file size and file type ...could you help me how can i come up with this problem ?! ...

Best way to create moving map

I'm looking for a good way to create a moving map app on an semi-embedded device, comparable to a netbook. The source images are 400MB tiff files with associated world and projection files. The current approach I've taken is to create a tiled dataset for the desired zoomlevels in OSM map format. It works, but uses up way too much disks...

yui css compiler - accept input from php file

I'm trying to pipe all the content from a PHP generated file to YUI CSS compressor. // this command works great for Google Closure Javascript Compiler php jscompressor.php | java -jar compiler.jar --js_output_file compressed.js php jscompressor.php pulls up a PHP file that has a lot of generated JS. I was hopping I could do exactly t...

iphone: coding a data compression or zipping agent ?

I'm creating a simple service for uploading photographs from an iphone to a web server. However, before the requests is sent, I want the app to compress the pictures (custom format or otherwise) in the background before sending it. Any pointers on how I could go about doing this? ...

Compact decompression library for embedded use

We're currently creating a device for a customer that will get a block of data (like, say, 5-10KB) from a PC application. This is a bit simplified, so assume that the data must be passed and uncompressed a lot, not just once a year. The communication channel is really, really slow, so we'd like to compress the data beforehand, pass to th...

PHP - compress static css file with GZIP

Hi so I have a css file, style.css. in the same directory I have the images/ folder. How can I make a script that compresses style.css, but from another folder? Right now I have this: <?php if(isset($_GET['css'])) $file = array('url' => htmlspecialchars($_GET['css']), 'type' => 'text/css'); if(isset($_GET['js'])) $file = array('ur...

What common texture compression, if any, is available on the Android platform?

In simplest terms, I feel that these texture compression schemes should be available on all android devices, but I'm not sure about 2, and even then, I'm not so sure about 1. compressed paletted texture ETC1 (RGB 8 bit) I can't seem to find the docs on this at developer.android.com. :( If anyone just knows this info off the top of t...

Compression support in AS3 / AIR?

Is there a way to open RAR / zip / 7z in AS3? Thanks. Is it easy to use compression library in C with Alchemy? ...

Is there a way to compress small string ( 100 char ) to about ( 20 char ) BY C# ?

I search for a way to compress small string ( 100 char ) to a string in about (15-25) char that allow me to decompress it again ? UPDATE: string is just a text and i'll not store it I just want to pass a string of about 100 char from asp.net web page to another web page in a query string so i want to compress it first before pass it in ...

Black-box counting to 19 with only 2 bits, and only toggleable?

Some student asked this on another site, but got no answers. I had a few stabs at it, but found it pretty tricky. Doing it with just the switches would require a 9:1 compression ratio, so I guess the trick is very much in the rules you assign to students. Perhaps every student needs a different set of rules? I've thought about allowin...

High Performance File Manipulation & I/O completion threads

Two questions: I need to make a server that handles potentially thousands of simultaneous requests for: Hashing of files Compression of files Decompression of files Possibly some file copy / moves as well I can't control a customer's hardware (RAID configurations, etc) so I assume all I can do is request hundreds of file operations,...

Tomcat compression is disabled when custom filters are used

I have a question regarding the use of Tomcat 6.0.14, and the interaction between the Tomcat built in compression, and custom filters. I am just using Tomcat - with no http server in front. My problem is that when I enable my filter, the compression seems to be disabled. This is observed by examining the output from a Fiddler trace. An...

Compressing web pages with php, javascript, html, and css in them

I have found utilities that can compress html, javascript, and css files individually. However, lets say I have a file called homepage.php with php at the top of the page, css and javascript in the header, html in the body along with more php code and perhaps some more javascript. Sometimes, the chunks with javascript may also have php i...