Commit Graph

67 Commits

Author SHA1 Message Date
Sam Edwards 0cd850fbb4 vision: Allow including from OpenCV's videoio, for 3.x+
This commit doesn't add buildsystem support yet.
2019-01-06 15:33:11 -07:00
rdb 97d4e32a06 general: use nassert_raise instead of nassertv(false) et al
Even a brief error message in the assertion is infinitely more useful to a user who is not at home in the source code, especially for assertions that may reasonably be triggered by honest user mistakes.
2018-11-28 17:35:20 +01:00
Sam Edwards a9dfd8352e general: Distinguish local/system includes
This changes includes so that local includes are consistently
#include "localFile.h"
while system and third-party includes are consistently
#include <systemFile.h>

This commit mostly converts the former to the latter; the two
exceptions are in android_main.cxx and fmodAudioSound.h, where
the reverse was necessary.
2018-11-10 18:00:10 -07:00
Sam Edwards b5bf6cd73c vision: Fix missing includes/declarations 2018-11-03 22:51:28 -06:00
Sam Edwards 4695557a5d general: Don't require BUILDING_* for static builds 2018-08-31 23:54:32 -06:00
rdb c6ed4e1836 general: don't cast to regular pointer when returning a PointerTo
This is inefficient because it induces an unnecessary ref()/unref() pair when we just need to move the pointer out of the function.  Thanks to 23128e4695, we can now move between related pointer types, making the .p() hack unnecessary.
2018-07-08 21:40:58 +02:00
Sam Edwards b2bfb31114 general: Remove `using std::*` from headers
Also remove most `using namespace std;` statements. The only one that remains is in py_panda.h.

Closes #350
Closes #335
2018-06-14 16:04:49 +02:00
Sam Edwards 7790f8429d general: Fully qualify header references into the std namespace
Closes #341
2018-06-07 10:35:12 +02:00
Sam Edwards e2b4353800 general: Replace NULL (and 0 as pointer) with C++11 nullptr
Exceptions to this replacement are:
- .c files
- Headers included by a .c file
- stb_image.h
- dr_flac.h
- Strings
- Comments
2018-06-03 16:35:13 -06:00
rdb 21d8c29645 More warning fixes 2018-06-03 06:45:35 -04:00
rdb 3077316782 general: use proper deleted funcs instead of stubs with asserts
This gives better compile-time diagnostics and saves on code, while also better communicating intent.
2018-05-23 23:35:27 +02:00
Sam Edwards 9dd37e9dbc general: Add guards to ensure proper BUILDING_ macros defined
This is designed to sanity-check the buildsystem, ensuring that the
expected BUILDING_ macros are defined at the expected time. It
also helps catch cases where the wrong BUILDING_/EXPCL_ macros
are used.
2018-03-25 13:17:52 -06:00
rdb e0f8d7885a video4linux: don't block on reading camera frames
Add v4l-blocking variable to enable the old behaviour.
2018-03-11 16:39:00 +01:00
rdb 2563b65249 video4linux: support greyscale pixel format (eg. IR cameras) 2018-03-11 16:33:01 +01:00
rdb d1c34c3360 interrogate: support static properties 2017-08-07 22:04:56 +02:00
rdb ca2e96d296 Fix for certain libjpeg versions that override INLINE macro 2017-06-12 19:46:59 +02:00
rdb ab5b5e7e74 Merge branch 'release/1.9.x' 2016-12-25 22:47:22 +01:00
rdb 92302942fe Changes to build on ancient Linux distributions (CentOS 5 / manylinux) 2016-12-21 17:40:49 +01:00
rdb c410d812ff Remove some settings from dtool_config.h to prevent rebuilds:
- HAVE_OPENCV
 - OPENCV_VER_23
 - HAVE_FFMPEG
 - HAVE_SWSCALE
 - HAVE_SWRESAMPLE
2016-12-05 16:32:13 -05:00
rdb 8381118a97 Assorted tweaks and compile warning fixes 2016-07-14 12:54:39 +02:00
tobspr 0fcfb8e372 New file headers, new comment style 2016-02-17 17:47:48 +01:00
rdb 090e912ce6 Cleanup of comments and whitespace 2016-02-01 22:30:43 +01:00
rdb db3ab953e4 Remove ppremake, genPyCode, and all hacks created to support them 2015-11-09 19:06:49 +01:00
rdb 920210c999 Fix the vast majority of Interrogate parse issues and warnings, add support for inline namespace and constexpr 2015-10-16 14:57:40 +02:00
rdb bd86907181 Fix assortment of compilation issues and annoyances 2015-02-08 23:25:11 +01:00
rdb de95ed855d Support enumeration of different pixel formats in WebcamVideo, support for RGB pixel formats in Video4Linux 2014-09-24 15:33:40 +00:00
rdb 031005d55e Fixes for webcams on Linux with MJPEG streams that omit Huffman tables 2014-09-08 11:14:40 +00:00
rdb 3eefecbd0f Compile fix 2013-09-18 23:25:04 +00:00
rdb aa826304d7 Add missing include 2013-09-03 13:18:23 +00:00
rdb 7346306437 Remove dependency on ATL, and add the fugliest, most horrible hack to keep using the interfaces from the defunct qedit.h header. 2013-08-26 14:33:01 +00:00
rdb 0303166a35 Some ARToolKit bugfixes and cleanup (makes it work on Mac OS X) 2013-01-19 19:32:51 +00:00
David Rose bf03940bcb opencv 2.3 2012-07-08 20:04:33 +00:00
David Rose 0053d01843 ssize_t isn't defined on windows, but we don't need it here 2011-12-20 20:13:29 +00:00
David Rose dfe16c64f6 rename all Panda-built libraries to begin with libp3 or libpanda 2011-12-06 02:39:21 +00:00
David Rose 3d89cef544 Add Texture::set_auto_texture_scale() 2011-11-28 21:42:44 +00:00
David Rose 9f4251397e more fixes for new interface 2011-11-16 03:55:31 +00:00
David Rose 86b8a8dc37 oops, build issue 2011-11-16 03:52:09 +00:00
David Rose b4e931322f use integer frame numbers instead of floating-point time values in ffmpeg movies, for robustness 2011-11-15 22:34:43 +00:00
rdb f50a1895f9 fix typo 2011-11-11 14:23:04 +00:00
rdb 2895c33f42 fix compilation error 2011-11-11 09:24:35 +00:00
David Rose 82e1b6703a support threaded ffmpeg decoding, fix a couple of ffmpeg bugs 2011-11-11 01:42:37 +00:00
David Rose 501470169f stdfloat_double 2011-10-10 05:25:10 +00:00
David Rose 9e22c72bf3 finally, pipelined textures 2011-10-08 21:04:05 +00:00
David Rose 6872488839 stereo/multiview textures 2011-08-08 18:55:26 +00:00
rdb 23e0cb922a fix, part 2 2011-05-24 14:08:55 +00:00
rdb d30f60c70f hopefully remove dependency on v4l 1 2011-05-21 18:59:58 +00:00
rdb 5b74526c15 patch from eryx 2011-05-10 06:19:59 +00:00
rdb 062e90a81a We don't really need jpegint.h 2010-12-02 17:47:28 +00:00
rdb 1bbf9b7782 Don't get OpenCV webcam listing if we already have directcam or video4linux 2010-10-22 13:49:35 +00:00
David Rose 285923e83e WebcamVideoOpenCV 2010-10-20 20:34:18 +00:00