diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-08-05 00:03:44 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-08-05 00:03:44 +0200 |
| commit | ba67e5506bd93eef064d72883ff94dbadee14082 (patch) | |
| tree | 2c3c77cc1d9e951d8f59f778e1c3f9226ed03f56 /src/util | |
| parent | fix typo and alphabetical order of commands (diff) | |
| download | blind-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/util')
| -rw-r--r-- | src/util/endian.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/util/endian.h b/src/util/endian.h index dfe9e77..1ec9d66 100644 --- a/src/util/endian.h +++ b/src/util/endian.h @@ -9,6 +9,31 @@ #if !defined(HAVE_ENDIAN_H) && !defined(HAVE_SYS_ENDIAN_H) +# if defined(HOST_ENDIAN_IS_LITTLE_ENDIAN_16) +# if !defined(htole16) +# define htole16(x) (x) +# endif +# if !defined(htole16) +# define letoh16(x) (x) +# endif +# endif +# if defined(HOST_ENDIAN_IS_LITTLE_ENDIAN_32) +# if !defined(htole32) +# define htole32(x) (x) +# endif +# if !defined(htole32) +# define letoh32(x) (x) +# endif +# endif +# if defined(HOST_ENDIAN_IS_LITTLE_ENDIAN_64) +# if !defined(htole64) +# define htole16(x) (x) +# endif +# if !defined(htole64) +# define letoh16(x) (x) +# endif +# endif + # if !defined(htole16) # define htole16 blind_htole16 static inline uint16_t |
