jp9000
b067440f73
Use bzalloc instead of bmalloc then memset
...
Reduces needless code repetition and still allows for proper memory
alignment. Cleans up the code a bit.
2014-02-09 12:34:07 -07:00
jp9000
e4921074c1
Fix texture_setimage
...
Was mapping the data without unmapping the data, causing the data to
become locked
2014-02-09 06:24:21 -07:00
jp9000
6c92cf5841
Implement output, improve video/audio subsystems
...
- 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)
2014-02-09 05:51:06 -07:00
Christoph Hohmann
1a928f638c
Don't close module if opening failed during graphics initialization
2014-01-03 18:15:50 +01:00
Palana
74aa1c466b
add osx iosurface opengl integration
2013-12-23 16:35:14 +01:00
jp9000
0781670ba2
add handling of GL_TEXTURE_RECTANGLE target, and add automatic handling if using it as a sprite
2013-12-20 12:36:38 -07:00
jp9000
8298fa4dc7
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
jp9000
58810f9806
changed gs_draw_sprite to allow custom sizes, added output textures to the core, and adjusted the test code to accommodate the changes
2013-11-26 22:26:14 -07:00
jp9000
d2ba08e46b
add frame flipping code
2013-10-26 15:05:51 -07:00
jp9000
a43e291577
fill in the texture_setimage function, fill in a few other functions, and change certain names to be a little more consistent
2013-10-25 10:25:28 -07:00
jp9000
ae3cecf09f
make data access in the threads a bit more safe (note: probably will need some more safety measures later on)
2013-10-18 20:25:13 -07:00
jp9000
18834c6a45
some static analysis cleanup
2013-10-17 17:21:42 -07:00
jp9000
dfa2dc6eab
fix up the rest of the GL code, add glew to project, add makefiles for opengl, fix makefiles so that it can be built with gcc, update project files to automatically output to the build directory
2013-10-16 23:31:18 -07:00
jp9000
9570f0b8d7
change names, fix some bugs, minor GL/D3D fixes, update tests, fix effect files, output a little more debug information
2013-10-14 12:37:52 -07:00
jp9000
9577ddcf9b
fill in the rest of the GL functions. finally
2013-10-12 20:18:05 -07:00
jp9000
543d2481f1
move around some graphics stuff and put in copyright comments
2013-10-04 12:13:59 -07:00
jp9000
75262e6e0b
update graphics subsystem code to add mipmap support and also add initial GL texture stuff and helper functions
2013-10-04 08:55:33 -07:00
jp9000
817044721b
made better checks when shutting down graphics subsystem
2013-10-02 23:13:26 -07:00
jp9000
b44ba06543
fixed the alignment issues for good
2013-10-01 07:24:59 -07:00
jp9000
7f8a2890a1
...and should have probably compiled it first
2013-10-01 06:19:11 -07:00
jp9000
493537d7bc
forgot one more alignment call
2013-10-01 06:18:29 -07:00
jp9000
658a27362d
fixed some more alignment issues for SSE usage (maybe I should cut donw the size of the align function)
2013-10-01 06:16:40 -07:00
jp9000
f255ae1922
first commit
2013-09-30 19:37:13 -07:00