0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00
obs-studio/libobs/util
jp9000 8770453c09 libobs/util: Make minor optimization to circlebuf pops
If size is 0 after popping data from the front or back, set the
start/end points to 0 as well to ensure that any subsequent buffer
pushes start from the beginning of the buffer rather than the middle of
the buffer.  Reduces potential unnecessary operations in that case.

Additionally, this fixes a bug with circulebuf_pop_back where if start
position was 0, and all the data was popped off the buffer (equal to the
capacity), the end position would be equal to the original size.  As an
example to replicate the bug, push 5, pop 5, then push 10.  The
start/end points will be invalid.

Closes jp9000/obs-studio#954
2017-06-27 21:25:00 -07:00
..
vc Fix various typos across multiple modules 2017-04-25 22:39:42 -04:00
windows libobs: Refactor check for Windows bitness/arch 2016-11-09 12:41:07 -08:00
AlignedNew.hpp add my signal/callback interface from another project, also update license of utility files to ISC 1.3 2013-12-25 22:40:33 -07:00
array-serializer.c libobs/util: Use int64_t as return for serializer 2015-10-04 21:16:24 -07:00
array-serializer.h Improve serializer and add array serializer 2014-04-01 11:27:27 -07:00
base.c Remove duplicate include 2014-07-13 02:59:14 -07:00
base.h Fix various typos across multiple modules 2017-04-25 22:39:42 -04:00
bmem.c libobs/util: Don't perform memalign trick of pointer null 2015-11-18 18:46:21 -08:00
bmem.h Fix b(w)strdup_n returning NULL for empty strings 2014-06-25 23:18:18 +02:00
c99defs.h Fix various typos across multiple modules 2017-04-25 22:39:42 -04:00
cf-lexer.c libobs/plugins/UI: Suppress -Wimplicit-fallthrough introduced by GCC 7 2017-05-29 21:05:18 -03:00
cf-lexer.h Fix various typos across multiple modules 2017-04-25 22:39:42 -04:00
cf-parser.c Give cf_parser functions better naming 2014-03-01 01:25:41 -07:00
cf-parser.h libobs/util: Add func to go to next CF token and copy it 2016-06-28 02:46:35 -07:00
circlebuf.h libobs/util: Make minor optimization to circlebuf pops 2017-06-27 21:25:00 -07:00
config-file.c libobs/util: Use os_safe_replace in safe file writes 2017-05-04 18:23:23 -07:00
config-file.h Fix various typos across multiple modules 2017-04-25 22:39:42 -04:00
crc32.c libobs/util: Add function to calculate CRC32 2015-10-04 21:16:27 -07:00
crc32.h libobs/util: Add function to calculate CRC32 2015-10-04 21:16:27 -07:00
darray.h Fix various typos across multiple modules 2017-04-25 22:39:42 -04:00
dstr.c libobs/util: Also remove CR/LF from dstr_depad 2017-05-20 11:15:00 -07:00
dstr.h libobs/util: Fix possible null pointer dereference 2016-08-08 04:56:26 -07:00
dstr.hpp Add DStr move assignment operator 2014-06-25 17:00:02 +02:00
file-serializer.c libobs: Add file serializers 2015-10-04 21:16:25 -07:00
file-serializer.h libobs: Add file serializers 2015-10-04 21:16:25 -07:00
lexer.c Remove duplicate 'strref_isempty' 2014-08-08 10:50:37 -07:00
lexer.h Remove duplicate 'strref_isempty' 2014-08-08 10:50:37 -07:00
pipe-posix.c libobs: Add return code to process pipe destroy 2015-06-21 22:34:44 -07:00
pipe-windows.c libobs: Rename create_proccess to create_process 2015-11-06 18:25:53 +01:00
pipe.h libobs: Add return code to process pipe destroy 2015-06-21 22:34:44 -07:00
platform-cocoa.m libobs: Add functions to get logical/physical cores 2017-05-06 11:29:27 -07:00
platform-nix-dbus.c libobs/util: Add functions to inhibit sleep 2015-09-12 22:08:05 -07:00
platform-nix.c libobs/util: Add function to get free disk space 2017-05-13 01:21:14 -07:00
platform-windows.c libobs/util: Add function to get free disk space 2017-05-13 01:21:14 -07:00
platform.c libobs/util: Flush text files when writing 2017-05-04 18:24:00 -07:00
platform.h libobs/util: Add function to get free disk space 2017-05-13 01:21:14 -07:00
profiler.c libobs: Use byte sequence for non-breaking spaces 2015-10-15 01:31:07 -07:00
profiler.h libobs/util: Add compressed profiler snapshot saving 2015-08-12 15:30:30 +02:00
profiler.hpp libobs/util: Add profiler 2015-08-12 15:30:28 +02:00
serializer.h libobs/util: Use int64_t as return for serializer 2015-10-04 21:16:24 -07:00
text-lookup.c libobs/util: Add double-quote escape value for text lookup 2016-04-10 02:11:03 -07:00
text-lookup.h Fix various typos across multiple modules 2017-04-25 22:39:42 -04:00
threading-posix.c libobs/util: Make all atomic funcs inline and use intrinsics 2016-01-23 07:17:44 -08:00
threading-posix.h libobs/util: Make all atomic funcs inline and use intrinsics 2016-01-23 07:17:44 -08:00
threading-windows.c libobs/util: Make all atomic funcs inline and use intrinsics 2016-01-23 07:17:44 -08:00
threading-windows.h libobs/util: Make all atomic funcs inline and use intrinsics 2016-01-23 07:17:44 -08:00
threading.h libobs/util: Make all atomic funcs inline and use intrinsics 2016-01-23 07:17:44 -08:00
utf8.c Fix various typos across multiple modules 2017-04-25 22:39:42 -04:00
utf8.h modernize header guards to #pragma once 2013-10-14 13:21:15 +02:00
util_uint128.h libobs/util: Add uint128 structure/functions 2015-12-22 06:18:17 -08:00
util.hpp libobs/util: Add Get function to BPtr<> 2017-05-04 05:46:29 -07:00