0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00
obs-studio/libobs
Michael Fabian Dirks f8b14bdb46 libobs: Ensure scene items don't have pre-multiplied alpha
Scene items would incorrectly have pre-multiplied alpha when they were
scaled with different scale filtering, when they were cropped, or when
the item itself was a scene.  This happens because the scene renders the
items to a texture in those cases, and when they are rendered to a
texture the blend function would be the default srcalpha/invsrcalpha
blend function, which would cause alpha to become pre-multiplied in the
texture's result rather than straight alpha.

This changes the behavior to directly copy the color/alpha to the
texture using the one/zero blend function instead, which makes the
resulting texture straight alpha.  (Note that you do not want to turn
off the blend mode for the same result because certain sources can have
custom drawing that may rely on blending being available)

Related Issue: https://obsproject.com/mantis/view.php?id=954

Closes jp9000/obs-studio#966
2017-07-21 08:30:14 -07:00
..
audio-monitoring Various: Don't use boolean bitfields 2017-05-10 23:28:46 +02:00
callback Fix various typos across multiple modules 2017-04-25 22:39:42 -04:00
data libobs: Add random shader 2017-05-06 11:29:24 -07:00
graphics libobs/plugins/UI: Suppress -Wimplicit-fallthrough introduced by GCC 7 2017-05-29 21:05:18 -03:00
media-io libobs: Don't allow lagged frames to be counted as skipped 2017-05-06 11:29:32 -07:00
util libobs/util: Make minor optimization to circlebuf pops 2017-06-27 21:25:00 -07:00
CMakeLists.txt libobs: Implement audio monitoring 2017-02-06 11:44:02 -08:00
LibObsConfig.cmake.in cmake: Export plugin data destination 2014-09-27 09:41:32 -07:00
LibObsConfigVersion.cmake.in Export libobs cmake target, so external plugins can be built without ugly hacks 2014-05-08 14:43:16 +02:00
obs-audio-controls.c libobs: Add obs_volmeter_get_cur_db function 2017-07-01 19:06:58 -07:00
obs-audio-controls.h libobs: Add obs_volmeter_get_cur_db function 2017-07-01 19:06:58 -07:00
obs-audio.c Fix various typos across multiple modules 2017-04-25 22:39:42 -04:00
obs-avc.c libobs: Fix bug in AVC encoder packet allocation 2016-12-24 03:44:13 -08:00
obs-avc.h libobs: Add function to extract AVC header/sei 2016-04-19 08:29:24 -07:00
obs-cocoa.c libobs: Add functions to get logical/physical cores 2017-05-06 11:29:27 -07:00
obs-config.h libobs: Update version to 19.0.3 2017-06-21 00:13:33 -07:00
obs-data.c libobs: Fix bug where obs_data default might not be set 2017-06-26 17:10:20 -07:00
obs-data.h libobs: Add obs_data_item_get_name function 2016-06-28 02:52:15 -07:00
obs-defs.h libobs: Add output stop error for "no space left" 2015-09-18 22:04:23 -07:00
obs-display.c Fix various null pointer issues detected by Coverity 2017-02-25 16:45:45 +01:00
obs-encoder.c libobs: Use reference counting for encoder packets 2016-12-08 03:27:39 -08:00
obs-encoder.h Fix various typos across multiple modules 2017-04-25 22:39:42 -04:00
obs-ffmpeg-compat.h Use propper ffmpeg compatiblity instead of relying on deprecated functions 2014-06-28 20:54:14 +02:00
obs-hotkey-name-map.c libobs: Fix warning from mingw 2015-07-11 14:26:48 -07:00
obs-hotkey.c libobs: Do not save hotkeys for private sources 2017-07-19 16:23:06 -07:00
obs-hotkey.h Fix various typos across multiple modules 2017-04-25 22:39:42 -04:00
obs-hotkeys.h libobs: Add <> or \| on RT 102-key as hotkey 2017-06-27 21:35:52 -07:00
obs-interaction.h Add interaction support to libobs 2014-09-15 17:19:37 -05:00
obs-internal.h libobs: Add post-load module callback 2017-07-21 08:27:31 -07:00
obs-module.c libobs: Add post-load module callback 2017-07-21 08:27:31 -07:00
obs-module.h libobs: Add post-load module callback 2017-07-21 08:27:31 -07:00
obs-nix.c libobs: Fix mouse button hotkeys on linux 2015-05-16 20:10:49 -07:00
obs-output-delay.c libobs: Use reference counting for encoder packets 2016-12-08 03:27:39 -08:00
obs-output.c libobs: Add API to specify codec support on encoded outputs 2017-07-14 08:15:16 -07:00
obs-output.h libobs: Add API to specify codec support on encoded outputs 2017-07-14 08:15:16 -07:00
obs-properties.c Fix various null pointer issues detected by Coverity 2017-02-25 16:45:45 +01:00
obs-properties.h libobs: Add property functions to mod. int/double limits 2016-09-19 07:04:00 -07:00
obs-scene.c libobs: Ensure scene items don't have pre-multiplied alpha 2017-07-21 08:30:14 -07:00
obs-scene.h UI, libobs: Add ability to lock individual scene items 2017-06-27 10:27:57 -07:00
obs-service.c libobs: Add ability for service to specify its output type 2017-07-14 12:38:46 -07:00
obs-service.h libobs: Add ability for service to specify its output type 2017-07-14 12:38:46 -07:00
obs-source-deinterlace.c libobs: Don't use source flags for async buffering 2017-05-13 23:32:40 -07:00
obs-source-transition.c libobs: Add ability for transitions to render sources directly 2017-07-19 16:23:06 -07:00
obs-source.c libobs/plugins/UI: Suppress unused variables warnings 2017-06-27 21:55:37 -07:00
obs-source.h libobs: Add transition callbacks for starting/stopping 2017-07-19 16:23:06 -07:00
obs-ui.h Fix various typos across multiple modules 2017-04-25 22:39:42 -04:00
obs-video.c libobs: Add function to get average render time 2017-05-13 01:21:16 -07:00
obs-view.c libobs: Hide sources when an obs_view is destroyed 2015-03-02 12:23:25 -08:00
obs-win-crash-handler.c libobs: Add Windows bitness/arch to crash handler 2016-11-09 12:44:10 -08:00
obs-windows.c libobs: Add <> or \| on RT 102-key as hotkey 2017-06-27 21:35:52 -07:00
obs.c Revert "libobs: Allow source to fully control source flags (for now)" 2017-05-13 23:30:36 -07:00
obs.h libobs: Add post-load module callback 2017-07-21 08:27:31 -07:00
obs.hpp (API Change) libobs: Add global module config path 2015-08-19 12:16:20 -07:00
obsconfig.h.in libobs: Add ability to insert captions into frames 2016-12-23 10:37:09 -08:00