1. 05 6月, 2018 1 次提交
  2. 04 6月, 2018 8 次提交
  3. 03 6月, 2018 1 次提交
  4. 10 1月, 2018 1 次提交
    • J
      libobs: Fix audio issue with scene items · a79992ea
      jp9000 提交于
      When a scene is added as a scene item with the same audio sources that
      are already in the current scene, it would cause the current scene to no
      longer output audio due to audio.
      
      To replicate the issue, you would create two separate audio device
      captures in scene 1, use add existing in scene 2 and add one of those
      audio sources, then go back to scene 1, add scene 2 as a source, then
      make scene 1 invisible.
      a79992ea
  5. 05 1月, 2018 1 次提交
  6. 30 11月, 2017 1 次提交
  7. 14 9月, 2017 1 次提交
  8. 11 8月, 2017 1 次提交
  9. 21 7月, 2017 2 次提交
    • D
      libobs: Fix item copying during scene duplication · 2a53d03d
      Dmitry Odintsov 提交于
      When item in the old scene had only Scale Filter, texture renderer
      was not created for an item in the new scene. However if the item also
      had Crop set, the texture renderer was created.
      
      Now after copying the data, texture renderer is created for the item in
      the new scene when needed.
      
      Closes jp9000/obs-studio#969
      2a53d03d
    • M
      libobs: Ensure scene items don't have pre-multiplied alpha · f8b14bdb
      Michael Fabian Dirks 提交于
      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
      f8b14bdb
  10. 28 6月, 2017 1 次提交
  11. 15 5月, 2017 1 次提交
    • J
      libobs: Add scene item IDs · 2c74fc36
      jp9000 提交于
      Adds a method of uniquely identifying scene items, as well as finding
      those scene items via that unique ID.
      2c74fc36
  12. 27 2月, 2017 1 次提交
  13. 25 2月, 2017 1 次提交
  14. 17 1月, 2017 1 次提交
  15. 16 1月, 2017 1 次提交
  16. 22 12月, 2016 1 次提交
    • J
      libobs: Process all scene audio actions if no audio playing · e7113753
      jp9000 提交于
      When there are audio sources in a scene and they've all stopped playing
      their audio (audio is pending), all scene item audio actions (volume
      changes, toggling visibility) will perpetually buffer and no longer be
      processed until audio plays again.
      
      So instead of that, if all audio sources have stopped playing in the
      scene, just process all pending scene item audio actions immediately to
      prevent them from never being processed while waiting for a scene item
      to start playing audio.
      e7113753
  17. 09 7月, 2016 1 次提交
  18. 02 7月, 2016 1 次提交
  19. 29 6月, 2016 2 次提交
    • J
      libobs: Use strings instead of enums when saving scale data · 364cb9fb
      jp9000 提交于
      Saves the scene item scale filters as strings instead of enums.  It's
      important to save data in a form that won't break if an API enum
      changes.
      364cb9fb
    • J
      libobs: Add ability to use scale filters on scene items · d4983383
      jp9000 提交于
      Allows the ability to use scale filters such as point, bicubic, lanczos
      on specific scene items, disabled by default.  When using one of the
      latter two options, if the item's scale is under half of the source's
      original size, it uses the bilinear low resolution downscale shader
      instead.
      d4983383
  20. 01 4月, 2016 1 次提交
  21. 31 3月, 2016 2 次提交
  22. 05 2月, 2016 1 次提交
  23. 27 1月, 2016 8 次提交
    • J
      libobs: Use calldata with stack for simple signals · 6f98bd9f
      jp9000 提交于
      Makes signals use stack memory rather than allocate memory each time.
      Most likely a completely insignificant and pointless optimization.
      6f98bd9f
    • J
      libobs: Add comment warning about scene mutex lock ordering · 91ebb5c5
      jp9000 提交于
      A comment that serves as a reminder to anyone who might need to edit the
      scene code.  If the graphics mutex must be locked, it must be locked
      first before entering the scene mutexes, or outside of the scene
      mutexes.
      91ebb5c5
    • J
      (API Change) libobs: Add 'type' to obs_scene_duplicate · a61933dd
      jp9000 提交于
      (Note: This commit also modifies the UI)
      
      Allows the ability to duplicate sources fully copied, and/or have the
      scene and its duplicates be private sources
      a61933dd
    • J
      libobs: Add obs_scene_create_private function · 6824910f
      jp9000 提交于
      Creates a scene marked as a private source
      6824910f
    • J
      libobs: Release scene items outside of scene mutexes · 234cb580
      jp9000 提交于
      Prevents a mutual lock with the scene mutex and graphics mutex.  In
      libobs/obs-video.c, the graphics mutex could be locked first, then the
      scene mutexes second, while in the UI thread, the scene mutexes could be
      locked first, then when a scene item is being destroyed, a source could
      be destroyed, and sometimes sources would lock the graphics mutex
      second.
      
      A possible additional solution is to defer source destroys to the video
      thread.
      234cb580
    • J
      ed10b1ab
    • J
      libobs: Add source type OBS_SOURCE_TYPE_SCENE · e68331e9
      jp9000 提交于
      Helps identify a scene without having to compare its type name to
      "scene".
      e68331e9
    • J
      (API Change) libobs: Remove source_type param from functions · b0104fce
      jp9000 提交于
      (Note: test and UI are also modified by this commit)
      
      API Changed (removed "enum obs_source_type type" parameter):
      -------------------------
      obs_source_get_display_name
      obs_source_create
      obs_get_source_output_flags
      obs_get_source_defaults
      obs_get_source_properties
      
      Removes the "type" parameter from these functions.  The "type" parameter
      really doesn't serve much of a purpose being a parameter in any of these
      cases, the type is just to indicate what it's used for.
      b0104fce