aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-08-05 00:03:44 +0200
committerMattias Andrée <maandree@kth.se>2017-08-05 00:03:44 +0200
commitba67e5506bd93eef064d72883ff94dbadee14082 (patch)
tree2c3c77cc1d9e951d8f59f778e1c3f9226ed03f56 /src/stream.h
parentfix typo and alphabetical order of commands (diff)
downloadblind-ba67e5506bd93eef064d72883ff94dbadee14082.tar.gz
blind-ba67e5506bd93eef064d72883ff94dbadee14082.tar.bz2
blind-ba67e5506bd93eef064d72883ff94dbadee14082.tar.xz
Add support for skipping conversion to CIEXYZ (not complete)
Some tools are colour space agnostic or even encoding agnostic, by skipping conversion to CIEXYZ when these tools are used, the rendering time can be significantly reduced. The video can also be split horizontally and vertically, and latted merged back, so it is not necessary to convert the entire video if only parts of it actually need it. Because some tools are less agnostic than other tools, partial conversion to CIEXYZ is also added. blind-convert must be updated, and all tools most be test Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/stream.h')
-rw-r--r--src/stream.h26
1 files changed, 23 insertions, 3 deletions
diff --git a/src/stream.h b/src/stream.h
index b85c6c6..2d27cba 100644
--- a/src/stream.h
+++ b/src/stream.h
@@ -64,16 +64,33 @@ enum dimension {
};
enum colour_space {
- CIEXYZ
+ CIEXYZ,
+ CIEXYZ_NONLINEAR,
+ YUV_NONLINEAR,
+ SRGB_NONLINEAR,
+ SRGB
};
enum alpha {
- UNPREMULTIPLIED
+ NO_ALPHA,
+ UNPREMULTIPLIED,
+ PREMULTIPLIED /* not used */
};
enum encoding {
FLOAT,
- DOUBLE
+ DOUBLE,
+ LONG_DOUBLE, /* not used */
+ UINT8, /* not used */
+ UINT16,
+ UINT32, /* not used */
+ UINT64 /* not used */
+};
+
+enum endian {
+ HOST_ENDIAN,
+ LITTLE_ENDIAN,
+ BIG_ENDIAN /* not used */
};
struct stream {
@@ -87,6 +104,9 @@ struct stream {
enum colour_space space;
enum alpha alpha;
enum encoding encoding;
+ enum endian endian;
+ short int alpha_chan;
+ short int luma_chan;
int fd;
size_t ptr;
size_t xptr;