Browse Source

making the doc

master
tTh 3 years ago
parent
commit
5b3381c7b3
  1. 31
      doc/the_floatimg_hack.tex
  2. 4
      floatimg.h
  3. 15
      funcs/filtrage.c

31
doc/the_floatimg_hack.tex

@ -0,0 +1,31 @@ @@ -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}

4
floatimg.h

@ -2,7 +2,7 @@ @@ -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); @@ -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);

15
funcs/filtrage.c

@ -9,7 +9,22 @@ @@ -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…
Cancel
Save