Compare commits
No commits in common. "32fc223f2c783f3af12793555de70b4dae237b50" and "56250127bc6673a29e8de49a47c7516775fc2ae9" have entirely different histories.
32fc223f2c
...
56250127bc
@ -165,9 +165,6 @@ int rp, gp, bp;
|
|||||||
int x2, y2;
|
int x2, y2;
|
||||||
uint16_t mask;
|
uint16_t mask;
|
||||||
|
|
||||||
RGBA blanc = { 255, 255, 255, 255, 0, 0 },
|
|
||||||
noir = { 0, 0, 0, 64, 0, 0 };
|
|
||||||
|
|
||||||
if (flags) {
|
if (flags) {
|
||||||
fprintf(stderr, "in %s, useless flags 0x%x is useless\n",
|
fprintf(stderr, "in %s, useless flags 0x%x is useless\n",
|
||||||
__func__, flags);
|
__func__, flags);
|
||||||
@ -178,15 +175,11 @@ fprintf(stderr, "%s: ltr %3d '%c' %4d %4d\n", __func__, lettre,
|
|||||||
isprint(lettre) ? lettre : ' ', xpos, ypos);
|
isprint(lettre) ? lettre : ' ', xpos, ypos);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* use default if not provided my caller
|
|
||||||
*/
|
|
||||||
if (NULL==pap) pap = &blanc;
|
|
||||||
if (NULL==ink) ink = &noir;
|
|
||||||
|
|
||||||
/* +-------------------------------+
|
/* +-------------------------------+
|
||||||
| WTF ? no boundary check ? |
|
| WTF ? no boundary check ? |
|
||||||
+-------------------------------+ */
|
+-------------------------------+ */
|
||||||
|
|
||||||
|
|
||||||
for (y=0; y<24; y++) {
|
for (y=0; y<24; y++) {
|
||||||
mask = 0x8000;
|
mask = 0x8000;
|
||||||
y2 = y + ypos;
|
y2 = y + ypos;
|
||||||
|
62
Lib/warp3.c
Normal file
62
Lib/warp3.c
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
/*
|
||||||
|
warp3.c
|
||||||
|
---------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <math.h>
|
||||||
|
#include "../tthimage.h"
|
||||||
|
|
||||||
|
/*::------------------------------------------------------------------::*/
|
||||||
|
/*
|
||||||
|
* travail basé sur un PDF dont l'URL a été postée dans la
|
||||||
|
* tribune de la buvette.
|
||||||
|
*
|
||||||
|
* L'auteur est Gernot Hoffmann.
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
Image_interpolate_0(Image_Desc *src, Image_Desc *dst, int ox, int oy)
|
||||||
|
{
|
||||||
|
int x, y;
|
||||||
|
int x2, y2, foo;
|
||||||
|
|
||||||
|
fprintf(stderr, "*** Image_interpolate_0: work in progress...\n");
|
||||||
|
|
||||||
|
if ( src == dst )
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Image interpolate_0: can't overwrite, sorry\n");
|
||||||
|
return IMG_OVERWRITE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
@@@@@@@@@@@@@@
|
||||||
|
PUTAIN SA RACE
|
||||||
|
La police du PDF est pas sortie à l'impression :(
|
||||||
|
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
Et comme le code est incomplet et en Pascal, je ne
|
||||||
|
sais pas trop quoi en faire. Beueueueh.
|
||||||
|
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
return FUNC_NOT_FINISH;
|
||||||
|
}
|
||||||
|
/*::------------------------------------------------------------------::*/
|
||||||
|
/* new 11 janvier 2009 - avenue St Exupery */
|
||||||
|
int
|
||||||
|
Image_interpolate_2(Image_Desc *src, Image_Desc *dst, RGBA *rgba)
|
||||||
|
{
|
||||||
|
int x, y;
|
||||||
|
|
||||||
|
if (NULL==rgba)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "Using default RGBA in %s...\n", __func__);
|
||||||
|
}
|
||||||
|
|
||||||
|
return FULL_NUCKED;
|
||||||
|
}
|
||||||
|
/*::------------------------------------------------------------------::*/
|
||||||
|
/*
|
||||||
|
* voir aussi les modules scale.c, zoom.c et warp[0|1|2].c
|
||||||
|
*/
|
||||||
|
/*::------------------------------------------------------------------::*/
|
17
tthimage.h
17
tthimage.h
@ -4,7 +4,7 @@
|
|||||||
http://la.buvette.org/devel/libimage/
|
http://la.buvette.org/devel/libimage/
|
||||||
*/
|
*/
|
||||||
#ifndef IMAGE_VERSION_STRING
|
#ifndef IMAGE_VERSION_STRING
|
||||||
#define IMAGE_VERSION_STRING "0.4.51 pl 62"
|
#define IMAGE_VERSION_STRING "0.4.51 pl 59"
|
||||||
|
|
||||||
/*::------------------------------------------------------------------::*/
|
/*::------------------------------------------------------------------::*/
|
||||||
/*
|
/*
|
||||||
@ -609,16 +609,6 @@ int Image_quelques_calculs(Image_Desc *image);
|
|||||||
|
|
||||||
int Image_histo_RGB(Image_Desc *im, long *hr, long *hg, long *hb);
|
int Image_histo_RGB(Image_Desc *im, long *hr, long *hg, long *hb);
|
||||||
|
|
||||||
/* XXX may be we need a struct for RGB luts ? */
|
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
unsigned int magic;
|
|
||||||
uint8_t R[256];
|
|
||||||
uint8_t G[256];
|
|
||||||
uint8_t B[256];
|
|
||||||
int flags;
|
|
||||||
} Image_LUTs;
|
|
||||||
|
|
||||||
int Image_LUT_RGB(Image_Desc *, Image_Desc *, int *, int *, int *);
|
int Image_LUT_RGB(Image_Desc *, Image_Desc *, int *, int *, int *);
|
||||||
int Image_LUT_mono(Image_Desc *src, Image_Desc *dst, int *lut);
|
int Image_LUT_mono(Image_Desc *src, Image_Desc *dst, int *lut);
|
||||||
|
|
||||||
@ -1324,6 +1314,11 @@ int Image_center_rotate_xy(Image_Desc *src, Image_Desc *dst, double angle,
|
|||||||
double x, double y);
|
double x, double y);
|
||||||
|
|
||||||
/*::------------------------------------------------------------------::*/
|
/*::------------------------------------------------------------------::*/
|
||||||
|
|
||||||
|
int Image_interpolate_0(Image_Desc *src, Image_Desc *dst, int ox, int oy);
|
||||||
|
int Image_interpolate_1(Image_Desc *src, Image_Desc *dst, int ox, int oy);
|
||||||
|
int Image_interpolate_2(Image_Desc *src, Image_Desc *dst, RGBA *rgba);
|
||||||
|
|
||||||
/*::------------------------------------------------------------------::*/
|
/*::------------------------------------------------------------------::*/
|
||||||
/* anamorphose.c */
|
/* anamorphose.c */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user