making the doc
This commit is contained in:
parent
5564b24c54
commit
5b3381c7b3
31
doc/the_floatimg_hack.tex
Normal file
31
doc/the_floatimg_hack.tex
Normal file
@ -0,0 +1,31 @@
|
||||
\documentclass[a4paper,11pt]{article}
|
||||
|
||||
% \listfiles % pour le debug
|
||||
|
||||
\usepackage[french]{babel}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage[T1]{fontenc}
|
||||
% XXX \usepackage{lipsum}
|
||||
\usepackage{makeidx}
|
||||
\usepackage{listings}
|
||||
% \usepackage{color}
|
||||
% \usepackage{url}
|
||||
\usepackage{xspace}
|
||||
\usepackage[verbose]{layout}
|
||||
|
||||
\makeindex
|
||||
% -------------------------------------------------------------------
|
||||
\title{DD2 Monitoring}
|
||||
\author{tTh}
|
||||
|
||||
\begin{document}
|
||||
\maketitle
|
||||
\tableofcontents
|
||||
|
||||
|
||||
|
||||
% -------------------------------------------------------------------
|
||||
|
||||
\printindex
|
||||
|
||||
\end{document}
|
@ -2,7 +2,7 @@
|
||||
* floatimg.h
|
||||
*/
|
||||
|
||||
#define FIMG_VERSION 58
|
||||
#define FIMG_VERSION 60
|
||||
|
||||
/*
|
||||
* in memory descriptor
|
||||
@ -60,7 +60,7 @@ int fimg_to_gray(FloatImg *head);
|
||||
void fimg_add_cste(FloatImg *fi, float value);
|
||||
void fimg_drand48(FloatImg *fi, float kmul);
|
||||
|
||||
/* variuos funcs modules */
|
||||
/* various funcs modules */
|
||||
int fimg_load_from_png(char *filename, FloatImg *fimg);
|
||||
int fimg_create_from_png(char *filename, FloatImg *fimg);
|
||||
int fimg_save_as_png(FloatImg *src, char *outname, int flags);
|
||||
|
@ -9,7 +9,22 @@
|
||||
/* -------------------------------------------------------------------- */
|
||||
int fimg_lissage_2x2(FloatImg *img)
|
||||
{
|
||||
int x, y, offset;
|
||||
|
||||
#if DEBUG_LEVEL
|
||||
fprintf(stderr, ">>> %s ( %p )\n", __func__, img);
|
||||
fprintf(stderr," type %s size %dx%d\n", img->type,
|
||||
img->width, img->height);
|
||||
#endif
|
||||
|
||||
for (y=1; y<img->height; y++) {
|
||||
|
||||
for (x=1; x<img->width; x++) {
|
||||
|
||||
offset = x + (y * img->width);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user