Skip to content
Snippets Groups Projects
Commit 759751a7 authored by Yann Roberge's avatar Yann Roberge
Browse files

Séparé les champs configurables dans un fichier à part

parent 933b324d
No related branches found
No related tags found
No related merge requests found
config.h 0 → 100644
/*********************************************************
* Config des images à corriger, leur emplacement
* et la correction à appliquer
* Date: 29-Mai-2021
* Auteur: Yann Roberge
*********************************************************/
#ifndef CONFIG_H
#define CONFIG_H
// Image definition
#define N_IMAGES 5
#define IMG_WIDTH 640
#define IMG_HEIGHT 360
#define IMG_AREA (IMG_WIDTH * IMG_HEIGHT)
#define IMG_DEPTH 8 // bits
#define IMG_N_CHANNELS 3 // RGB
#define BYTES_PER_PIXEL (IMG_N_CHANNELS * IMG_DEPTH / 8)
#define FRAME_BUF_SIZE (IMG_AREA * BYTES_PER_PIXEL)
// Files and directories
#define FRAME_IN_DIRECTORY "/run/user/1000/gvfs/sftp:host=odroid,user=nas/media/raid/frames/"
#define FRAME_OUT_DIRECTORY "/run/user/1000/gvfs/sftp:host=odroid,user=nas/media/raid/frames_out/"
#define FRAME_IN_FILENAME "frame"
#define FRAME_OUT_FILENAME "frameout"
// Corrections to apply
#define DELTA_HUE 60
#define DELTA_SATURATION 0.2
#define DELTA_VALUE 0
#endif
......@@ -9,32 +9,7 @@
#include <stdint.h>
// Image definition
#define N_IMAGES 1
#define IMG_WIDTH 15
#define IMG_HEIGHT 11
//#define IMG_WIDTH 640
//#define IMG_HEIGHT 360
#define IMG_AREA (IMG_WIDTH * IMG_HEIGHT)
#define IMG_DEPTH 8 // bits
#define IMG_N_CHANNELS 3 // RGB
#define BYTES_PER_PIXEL (IMG_N_CHANNELS * IMG_DEPTH / 8)
#define FRAME_BUF_SIZE (IMG_AREA * BYTES_PER_PIXEL)
// Files and directories
#define FRAME_IN_DIRECTORY "/run/user/1000/gvfs/sftp:host=odroid,user=nas/media/raid/frames/"
#define FRAME_OUT_DIRECTORY "/run/user/1000/gvfs/sftp:host=odroid,user=nas/media/raid/frames_out/"
//#define FRAME_IN_FILENAME "frame"
#define FRAME_IN_FILENAME "color_test_pattern"
#define FRAME_OUT_FILENAME "color_test_pattern_out"
// Corrections to apply
#define DELTA_HUE 50
#define DELTA_SATURATION 0.2
#define DELTA_VALUE 50
#include "config.h"
// Pixel struct unpacked for processing
typedef struct {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment