Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yann Roberge
Projet 3 Traitement Image C
Commits
759751a7
Commit
759751a7
authored
May 29, 2021
by
Yann Roberge
Browse files
Séparé les champs configurables dans un fichier à part
parent
933b324d
Changes
2
Hide whitespace changes
Inline
Side-by-side
config.h
0 → 100644
View file @
759751a7
/*********************************************************
* 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
main.h
View file @
759751a7
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment