OSDN Git Service

util: add gradient pattern
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 4 Feb 2018 23:39:15 +0000 (18:39 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 22 Jun 2019 17:34:05 +0000 (13:34 -0400)
commite5442195fbe01df92658d7df7030507e3dc6c89e
treecb21fe6397aa491a85ef1dd5832c796acea7503e
parent32401fe5ce2bce0dc38098582c4b06a58a99c930
util: add gradient pattern

The idea is to have a horizontal pattern split into two with the top and
bottom halves having different precision. This allows one to see whether
10bpc support is working properly or not, as there are many pieces to
the puzzle beyond the basic format support (gamma ramps, bpc encodings,
etc).

This is really only useful on 10bpc formats, but we also add support for
8bpc formats to ease testing. In the future, this could be applied to
16bpc formats as well.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
tests/util/pattern.c
tests/util/pattern.h