making the doc

This commit is contained in:
tTh 2019-05-20 08:47:13 +02:00
parent 5564b24c54
commit 5b3381c7b3
3 changed files with 48 additions and 2 deletions

31
doc/the_floatimg_hack.tex Normal file
View 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}

View File

@ -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);

View File

@ -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;
}