1. 27 2月, 2014 1 次提交
    • J
      Add mac audio capture · 33dc028c
      jp9000 提交于
       - Add CoreAudio device input capture for mac audio capturing.  The code
         should cover just about everything for capturing mac input device
         audio.  Because of the way mac audio is designed, users may have no
         choice but to obtain the open source soundflower software to capture
         their mac's desktop audio.  It may be necessary for us to distribute
         it with the program as well.
      
       - Hide event backend
      
       - Use win32 events for windows
      
       - Allow timed waits for events
      
       - Fix a few warnings
      33dc028c
  2. 24 2月, 2014 1 次提交
  3. 19 2月, 2014 1 次提交
    • J
      Implement automatic video scaling (if requested) · f2d4de3c
      jp9000 提交于
      Add a scaler interface (defaults to swscale), and if a separate output
      wants to use a different scale or format than the default output format,
      allow a scaler instance to be created automatically for that output,
      which will then receive the new scaled output.
      f2d4de3c
  4. 17 2月, 2014 2 次提交
    • J
      Remove redundant constant from conversion shader · f5fc9e7d
      jp9000 提交于
      f5fc9e7d
    • J
      Make a number of key optimizations · 2dbbffe4
      jp9000 提交于
       - Changed glMapBuffer to glMapBufferRange to allow invalidation.  Using
         just glMapBuffer alone was causing some unacceptable stalls.
      
       - Changed dynamic buffers from GL_DYNAMIC_WRITE to GL_STREAM_WRITE
         because I had misunderstood the OpenGL specification
      
       - Added _OPENGL and _D3D11 builtin preprocessor macros to effects to
         allow special processing if needed
      
       - Added fmod support to shaders (NOTE: D3D and GL do not function
         identically with negative numbers when using this.  Positive numbers
         however function identically)
      
       - Created a planar conversion shader that converts from packed YUV to
         planar 420 right on the GPU without any CPU processing.  Reduces
         required GPU download size to approximately 37.5% of its normal rate
         as well.  GPU usage down by 10 entire percentage points despite the
         extra required pass.
      2dbbffe4
  5. 15 2月, 2014 1 次提交
    • J
      Remove majority of warnings · 966b943d
      jp9000 提交于
      There were a *lot* of warnings, managed to remove most of them.
      
      Also, put warning flags before C_FLAGS and CXX_FLAGS, rather than after,
      as -Wall -Wextra was overwriting flags that came before it.
      966b943d
  6. 14 2月, 2014 1 次提交
    • J
      Rename obs_viewport to obs_view · 4bc282f5
      jp9000 提交于
      I felt like the name could cause a bit of confusion with typical
      graphics viewports, so I just changed it to view instead.
      4bc282f5
  7. 13 2月, 2014 1 次提交
    • J
      Revamp rendering system to allow custom rendering · 515f44be
      jp9000 提交于
      Originally, the rendering system was designed to only display sources
      and such, but I realized there would be a flaw; if you wanted to render
      the main viewport in a custom way, or maybe even the entire application
      as a graphics-based front end, you wouldn't have been able to do that.
      
      Displays have now been separated in to viewports and displays.  A
      viewport is used to store and draw sources, a display is used to handle
      draw callbacks.  You can even use displays without using viewports to
      draw custom render displays containing graphics calls if you wish, but
      usually they would be used in combination with source viewports at
      least.
      
      This requires a tiny bit more work to create simple source displays, but
      in the end its worth it for the added flexibility and options it brings.
      515f44be
  8. 12 2月, 2014 1 次提交
    • J
      Revamp API and start using doxygen · 8e81d8be
      jp9000 提交于
      The API used to be designed in such a way to where it would expect
      exports for each individual source/output/encoder/etc.  You would export
      functions for each and it would automatically load those functions based
      on a specific naming scheme from the module.
      
      The idea behind this was that I wanted to limit the usage of structures
      in the API so only functions could be used.  It was an interesting idea
      in theory, but this idea turned out to be flawed in a number of ways:
      
       1.) Requiring exports to create sources/outputs/encoders/etc meant that
           you could not create them by any other means, which meant that
           things like faruton's .net plugin would become difficult.
      
       2.) Export function declarations could not be checked, therefore if you
           created a function with the wrong parameters and parameter types,
           the compiler wouldn't know how to check for that.
      
       3.) Required overly complex load functions in libobs just to handle it.
           It makes much more sense to just have a load function that you call
           manually.  Complexity is the bane of all good programs.
      
       4.) It required that you have functions of specific names, which looked
           and felt somewhat unsightly.
      
      So, to fix these issues, I replaced it with a more commonly used API
      scheme, seen commonly in places like kernels and typical C libraries
      with abstraction.  You simply create a structure that contains the
      callback definitions, and you pass it to a function to register that
      definition (such as obs_register_source), which you call in the
      obs_module_load of the module.
      
      It will also automatically check the structure size and ensure that it
      only loads the required values if the structure happened to add new
      values in an API change.
      
      The "main" source file for each module must include obs-module.h, and
      must use OBS_DECLARE_MODULE() within that source file.
      
      Also, started writing some doxygen documentation in to the main library
      headers.  Will add more detailed documentation as I go.
      8e81d8be
  9. 09 2月, 2014 1 次提交
    • J
      Implement output, improve video/audio subsystems · 6c92cf58
      jp9000 提交于
       - Fill in the rest of the FFmpeg test output code for testing so it
         actually properly outputs data.
      
       - Improve the main video subsystem to be a bit more optimal and
         automatically output I420 or NV12 if needed.
      
       - Fix audio subsystem insertation and byte calculation.  Now it will
         seamlessly insert new audio data in to the audio stream based upon
         its timestamp value.  (Be extremely cautious when using floating
         point calculations for important things like this, and always round
         your values and check your values)
      
       - Use 32 byte alignment in case of future optimizations and export a
         function to get the current alignment.
      
       - Make os_sleepto_ns return true if slept, false if the time has
         already been passed before the call.
      
       - Fix sinewave output so that it actually properly calculates a middle
         C sinewave.
      
       - Change the use of row_bytes to linesize (also makes it a bit more
         consistent with FFmpeg's naming as well)
      6c92cf58
  10. 07 2月, 2014 1 次提交
    • J
      Add planar audio support, improve test output · 3d6d4322
      jp9000 提交于
      - Add planar audio support.  FFmpeg and libav use planar audio for many
        encoders, so it was somewhat necessary to add support in libobs
        itself.
      
      - Improve/adjust FFmpeg test output plugin.  The exports were somewhat
        messed up (making me rethink how exports should be done).  Not yet
        functional; it handles video properly, but it still does not handle
        audio properly.
      
      - Improve planar video code.  The planar video code was not properly
        accounting for row sizes for each plane.  Specifying row sizes for
        each plane has now been added.  This will also make it more compatible
        with FFmpeg/libav.
      
      - Fixed a bug where callbacks wouldn't create properly in audio-io and
        video-io code.
      
      - Implement 'blogva' function to allow for va_list usage with libobs
        logging.
      3d6d4322
  11. 06 2月, 2014 2 次提交
    • J
      Improve naming scheme of libobs core structures · 89cfbdc0
      jp9000 提交于
      89cfbdc0
    • J
      Implement output scaling/conversion/downloading · ab4ab957
      jp9000 提交于
      - Implement texture scaling/conversion/downloading for the main view so
        we can finally start getting data to output.
      
        Also, redesign how it works a bit, it will now properly wait one full
        frame for each step in the process:  rendering the main texture,
        scaling the main texture to an output texture, staging/downloading the
        ouput texture, and then outputting that staged data.  This way, the
        GPU will have more than enough time to fully complete each step.
      
      - Fix a bug with OpenGL plugin's texture staging function.  Was using
        glBindBuffer instead of what should have been used:  glBindTexture.
      
      - Change the naming scheme of the variables in default.effect.  It's now
        named with the idea of just "color matrix" in mind instead of "yuv
        matrix", and instead of DrawRGBToYUV, it's now just DrawMatrix.
      ab4ab957
  12. 27 1月, 2014 1 次提交
  13. 24 1月, 2014 1 次提交
    • J
      Fix render issues with main preview widget · 4cba9d33
      jp9000 提交于
       - I seem to have fixed ths issues with the main preview widget.  It
         seems you just need to set the right window attributes to stop it from
         breaking.  Though when opengl is enabled, there appears to be a weird
         background glitch in the Qt stuff -- I'm not entirely sure what's
         going on.  Bug in Qt?
      
         Also fixed the layout issues, and the widget now properly resizes and
         centers in to its parent widget.
      
       - Prevent the render loop from accessing data if the data isn't valid.
         Because obs->data is freed before the graphics stuff, it can cause
         the graphics to keep trying to query the obs->data.displays_mutex
         after it had already been destroyed.
      4cba9d33
  14. 05 1月, 2014 1 次提交
    • J
      Added add/remove signals to scenes · a2a8a5f1
      jp9000 提交于
        Scenes will now signal via their source when an item has been added
      or removed from them.
      
        "add" - Item added to the scene.
        Parameters:  "scene": Scene that the item was added to.
                     "item":  Item that was added.
      
        "remove" - Item removed from the scene.
        Parameters:  "scene": Scene that the item was removed from.
                     "item":  Item that was removed.
      a2a8a5f1
  15. 19 12月, 2013 1 次提交
  16. 03 12月, 2013 1 次提交
  17. 21 11月, 2013 1 次提交
  18. 19 10月, 2013 1 次提交
  19. 18 10月, 2013 1 次提交
  20. 17 10月, 2013 1 次提交
  21. 15 10月, 2013 1 次提交
  22. 01 10月, 2013 1 次提交