http://digitalpbk.blogspot.com/2009/01/code-libjpeg-converting-jpeg-to-bmp.html
_image+(x+line*width)*bytes_per_pixel+2); *(linebuf+x*bytes_per_pixel+1) = *(raw_image+(x+line*width)*bytes_per_pixel+1); *(linebuf+x*bytes_per_pixel+2) = *(raw_image+(x+line*width)*bytes_per_pixel+0); } /* remember that the order is BGR and if width is not a
multiple of 4 then the last few bytes may be unused */ fwrite(linebuf, 1, bytesPerLine, bmpfile); } free(linebuf); fclose(bmpfile);}/** * read_jpeg_file Reads from a jpeg file on disk specified by filename and saves into the * raw_image buffer ...
Published 3 years ago
http://digitalpbk.blogspot.com/2008/05/bash-mp3-player-mpg123-sed-playlist.html
"$filename"fidoneecho "OveR"; #doesnt reachUpdates+ Added
multiple search and concatenation+ Queue more than one mp3v1.1Source#!/bin/bash# v 1.1if [ ! -e mp3list.txt ]; then echo "Listing all mp3 on your / " find / -name *.mp3 > mp3list.txtfi`cat mp3list.txt | grep -i $1 > tpl.tmp`sed = tpl.tmp | sed 'N;s/\n/\t/;s/\/.*\///g;s/.mp3//' | more # number lines and strip of directories and extensions.max=`wc -l tpl.tmp | cut -d" " -f1`if [ ! "$max" -eq 0 ...
Published 3 years, 8 months ago
http://digitalpbk.blogspot.com/2007/06/orkut-mass-scrapper-scrap-all-friends.html
Published 4 years, 7 months ago