Commit 3b5fd083 authored by Niklas Haas's avatar Niklas Haas
Browse files

dither: improve documentation

parent 64a57a42
......@@ -71,6 +71,8 @@ libplacebo to take care of everything.
- `config.h`: Macros defining information about the way libplacebo was built,
including the version strings and compiled-in features/dependencies. Usually
does not need to be included directly. May be useful for feature tests.
- `dither.h`: Some helper functions for generating various noise and dithering
matrices. Might be useful for somebody else.
- `filters.h`: A collection of reusable reconstruction filter kernels, which
can be used for scaling. The generated weights arrays are semi-tailored to
the needs of libplacebo, but may be useful to somebody else regardless. Also
......
......@@ -26,6 +26,9 @@ void pl_generate_bayer_matrix(float *data, int size);
// Generates a random NxN blue noise texture. storing the result in `data`.
// `size` must be a positive power of two no larger than 256. The resulting
// texture will be roughly uniformly distributed within the range [0,1).
//
// Note: This function is very, *very* slow for large sizes. Generating a
// dither matrix with size 256 can take several seconds on a modern processor.
void pl_generate_blue_noise(float *data, int size);
#endif // LIBPLACEBO_DITHER_H_
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment