obs-studio/libobs/graphics
jpark37 abe1cb1425 libobs: Support premultiplying images on load
Add gs_image_alpha_mode enum for requested alpha handling: straight,
premultiplied with SRGB conversion, and just premultiplied. Both
premultiplied settings behave the same if the image is not SRGB, linear
is assumed.

Add gs_image_file3_t to store the alpha mode.

Add srgb.h file with helper functions.

Clean up vec4.h to use helpers, and remove unused functionality.

Update FFmpeg image loader to perform premultiplication on load.
2021-05-11 03:44:02 -07:00
..
libnsgif docs/sphinx: Fix various typos 2019-10-14 17:19:38 -07:00
axisang.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
axisang.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
basemath.hpp first commit 2013-09-30 19:37:13 -07:00
bounds.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
bounds.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
device-exports.h libobs, libobs-opengl: add drm format param 2021-03-29 17:00:31 -03:00
effect-parser.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
effect-parser.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
effect.c libobs: Add dormant SRGB format support 2021-01-21 07:42:13 -08:00
effect.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
graphics-ffmpeg.c libobs: Support premultiplying images on load 2021-05-11 03:44:02 -07:00
graphics-imports.c libobs: Add function to count GPU adapters 2021-03-12 20:59:31 -08:00
graphics-internal.h libobs, libobs-opengl: add drm format param 2021-03-29 17:00:31 -03:00
graphics-magick.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
graphics.c libobs, libobs-opengl: add drm format param 2021-03-29 17:00:31 -03:00
graphics.h libobs: Support premultiplying images on load 2021-05-11 03:44:02 -07:00
half.h libobs: Fix Mac linker error 2020-02-06 12:51:20 -08:00
image-file.c libobs: Support premultiplying images on load 2021-05-11 03:44:02 -07:00
image-file.h libobs: Support premultiplying images on load 2021-05-11 03:44:02 -07:00
input.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
math-defs.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
math-extra.c libobs: Return target vec not current when within EPSILON 2021-04-13 05:31:00 -07:00
math-extra.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
matrix3.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
matrix3.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
matrix4.c libobs: Supress clang-tidy warning clang-tidy-cert-flp30-c 2019-07-24 18:26:43 +02:00
matrix4.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
plane.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
plane.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
quat.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
quat.h libobs: fix building modules once installed 2019-11-27 14:00:15 -05:00
shader-parser.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
shader-parser.h libobs: Default sampler sometimes unset for GL 2019-07-25 21:54:23 -07:00
srgb.h libobs: Support premultiplying images on load 2021-05-11 03:44:02 -07:00
texture-render.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
vec2.c With the permission of my fellow contributors, I'm switching obs-studio back to GPL v2+ to prevent issues between this project and the original OBS project, and for personal reasons to avoid legal ambiguity (not political reasons, I admittedly would prefer GPL v3+) 2013-12-02 22:24:38 -07:00
vec2.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
vec3.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
vec3.h libobs: fix building modules once installed 2019-11-27 14:00:15 -05:00
vec4.c clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
vec4.h libobs: Support premultiplying images on load 2021-05-11 03:44:02 -07:00