Compare commits
No commits in common. "414bff491be07bbcc782d2cef835b9f10b347f19" and "aa42aa99fb386314ea75c19ee1bfb6cc13b82367" have entirely different histories.
414bff491b
...
aa42aa99fb
@ -58,16 +58,16 @@ int x, y, szimg;
|
||||
pix *ppix, *ptr;
|
||||
float rgb[3];
|
||||
|
||||
#if DEBUG_LEVEL
|
||||
// #if DEBUG_LEVEL
|
||||
fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, psrc, pdst, notused);
|
||||
#endif
|
||||
// #endif
|
||||
|
||||
szimg = pdst->width * pdst->height;
|
||||
fprintf(stderr, "%s : %d pixels\n", __func__, szimg);
|
||||
|
||||
ppix = calloc(szimg, sizeof(pix));
|
||||
|
||||
ptr = ppix; /* mobile pointer */
|
||||
ptr = ppix; /* mobile pointer */
|
||||
for (y=0; y<psrc->height; y++) {
|
||||
for (x=0; x<psrc->width; x++) {
|
||||
|
||||
@ -84,7 +84,7 @@ for (y=0; y<psrc->height; y++) {
|
||||
|
||||
qsort(ppix, szimg, sizeof(pix), compare_b);
|
||||
|
||||
ptr = ppix; /* mobile pointer */
|
||||
ptr = ppix; /* mobile pointer */
|
||||
for (y=0; y<psrc->height; y++) {
|
||||
for (x=0; x<psrc->width; x++) {
|
||||
|
||||
|
@ -19,6 +19,8 @@ float global_fvalue;
|
||||
* nouveau 7 octobre 2020 pendant sonoptic
|
||||
*/
|
||||
|
||||
//
|
||||
|
||||
int essai_qsort_rgb(char *infile)
|
||||
{
|
||||
FloatImg src, dst;
|
||||
|
@ -6,7 +6,7 @@ out=out.fimg
|
||||
maxi=99
|
||||
W="640"
|
||||
H="480"
|
||||
grabopt=" -s 640x480 -v -p 0 -n 500 -c cos01 "
|
||||
grabopt=" -s 640x480 -v -p 0 -n 100 -c cos01 "
|
||||
|
||||
mkdir /tmp/V
|
||||
|
||||
@ -15,12 +15,12 @@ G=$(printf "%dx%d+0+0" $W $H)
|
||||
for foo in $(seq 0 $maxi)
|
||||
do
|
||||
|
||||
echo ; echo
|
||||
echo
|
||||
|
||||
grabvidseq -$grabopt -o $src
|
||||
|
||||
fval=$(echo "$foo / $maxi" | bc -l)
|
||||
./t -k $fval qsortrgb $src
|
||||
./t -k $fval -v qsortrgb $src
|
||||
echo $foo ' = ' $fval
|
||||
|
||||
dst=$(printf "/tmp/V/%03d.png" $foo)
|
||||
@ -29,4 +29,4 @@ do
|
||||
|
||||
done
|
||||
|
||||
convert -delay 20 /tmp/V/*.png foo.gif
|
||||
convert -delay 10 V/*.png foo.gif
|
||||
|
Loading…
Reference in New Issue
Block a user