My Project
Loading...
Searching...
No Matches
solution
include
_context.h
1
#ifndef CONTEXT_H
2
#define CONTEXT_H
3
4
#include "_cmd.h"
5
#include "
image.h
"
6
#include "
image_io.h
"
7
16
typedef
struct
{
17
ArgsParseResult
args
;
18
ImageOpenResult
read_result
;
19
ImageSaveResult
write_result
;
20
MaybeImage
rotated_img
;
21
Image
source_img
;
22
}
Context
;
23
27
#define CONTEXT_FMT \
28
"{\n args: %d\n read: %d\n write: %d\n rotated: %p\n source: " \
29
"%p\n}\n"
30
34
#define CONTEXT_FMT_ARGS(context) \
35
(context).args.status, (context).read_result.status, \
36
(context).write_result.status, (void *)(context).rotated_img._.pixels, \
37
(void *)(context).source_img.pixels
38
#endif
/* CONTEXT_H */
image.h
Image handling functions.
image_io.h
Image input/output functions.
Context
Application execution context.
Definition
_context.h:16
Context::args
ArgsParseResult args
Definition
_context.h:17
Context::write_result
ImageSaveResult write_result
Definition
_context.h:19
Context::read_result
ImageOpenResult read_result
Definition
_context.h:18
Context::rotated_img
MaybeImage rotated_img
Definition
_context.h:20
Context::source_img
Image source_img
Definition
_context.h:21
Image
RGB image.
Definition
image.h:39
Generated by
1.9.8