Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libplacebo
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llyyr
libplacebo
Commits
3b5fd083
Commit
3b5fd083
authored
7 years ago
by
Niklas Haas
Browse files
Options
Downloads
Patches
Plain Diff
dither: improve documentation
parent
64a57a42
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+2
-0
2 additions, 0 deletions
README.md
src/include/libplacebo/dither.h
+3
-0
3 additions, 0 deletions
src/include/libplacebo/dither.h
with
5 additions
and
0 deletions
README.md
+
2
−
0
View file @
3b5fd083
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
src/include/libplacebo/dither.h
+
3
−
0
View file @
3b5fd083
...
...
@@ -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_
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment