Commit Graph

2386 Commits

Author SHA1 Message Date
Martin Pulec
dc733d0fb0 SDL2: added nodecorate option 2019-07-24 10:57:06 +02:00
Martin Pulec
ab9add0799 Fixed further warnings 2019-07-24 10:57:06 +02:00
Martin Pulec
b9b80fae91 Fixed few warnings (and small errror in NDI) 2019-07-24 10:57:06 +02:00
Martin Pulec
7ce60447b5 Key control: initial support for special keys in Win 2019-07-24 10:57:06 +02:00
Martin Pulec
d8dcede2a4 Removed standalone import_control_keyboard
No longer needed - functionality is integrated directly to UltraGrid.

+ removed dependency on ncurses/pdcurses
2019-07-24 10:57:06 +02:00
Martin Pulec
25bcb2df97 Import: added possibility to control from terminal
Replaces old import_control_keyboard.
2019-07-24 10:57:06 +02:00
Martin Pulec
47c0a0d926 Import: removed custom control thread
Removed custom control thread and replaced with standard UG control.

+ fixed wrong free (state was allocated with the new operator)
2019-07-24 10:57:06 +02:00
Martin Pulec
a601ef9f5e Added crop postprocess filter 2019-07-24 10:57:06 +02:00
Martin Pulec
34cd7d272a Key control: handle some ANSI sequences 2019-07-24 10:56:57 +02:00
Martin Pulec
8129b6ac48 Key control: highlighted output 2019-07-24 10:56:57 +02:00
Martin Pulec
bf664d1eee Key control: allow naming of custom keybindings
+ some small fixes
2019-07-24 10:56:56 +02:00
Martin Pulec
42b1ad9a79 Allow video switching from UG terminal
+ removed standalone switcher
2019-07-24 10:56:56 +02:00
Martin Pulec
1ab1b18fb7 Key control: option to execute command with message
This allows dynamically adding key-bindings from other modules.
2019-07-24 10:56:56 +02:00
Lukas Rucka
babdb79239 COMPAT: compile even with antique version of ffmpeg/libavcodec 2019-07-23 16:01:01 +02:00
Martin Pulec
d1ece6fcec JACK cap.: option to pass client name 2019-07-23 15:46:22 +02:00
Martin Pulec
6d702ae40c JACK cap.: don't convert from float in a callback
Convert to int in a _read() function to minimize callback duration to
avoid disruptions.

Closes #27
2019-07-23 15:46:13 +02:00
Martin Pulec
7f88dc930f Key control: allow user defined key-bindings 2019-06-26 16:25:49 +02:00
Martin Pulec
822e8bf226 Print control help 2019-06-26 16:25:49 +02:00
Martin Pulec
f4c391ee60 Key control: allow multiple commands
+ option to pause/resume output
2019-06-26 16:25:49 +02:00
Martin Pulec
6af07ef3e1 Allow control commands from UG terminal 2019-06-26 16:25:49 +02:00
Martin Pulec
ba632fe791 Main: improved help printing 2019-06-26 16:25:49 +02:00
Martin Pulec
0371cfe3fd Removed scale capture filter 2019-06-26 16:25:49 +02:00
Martin Pulec
de996f3c24 Renamed tiled-4k to tiled-2x2 2019-06-26 16:25:49 +02:00
Martin Pulec
61e57c9d08 Video frames: tiles are now a flexible array member 2019-06-26 16:25:49 +02:00
Martin Pulec
d00639aea6 libavcodec_common.h: removed no longer used items 2019-06-26 16:25:49 +02:00
Martin Pulec
6efc5c334f Pbuf: print lost count + dups
* fixed out-of-order packets - duplicate packet is not considered
  out-of-order
2019-06-26 16:25:49 +02:00
Martin Pulec
6ef9969abc Use logger again
Use logger again where there is output printed in a color or highlighted.
2019-06-26 16:25:49 +02:00
Martin Pulec
5027f4ecc4 Logger: moved most of the logic to C++ stream
Most of the logic was moved to the C++ implementation, log_msg() is now
using the ostream.

This allows use of colors from rang.hpp also in log messages.
2019-06-26 16:25:49 +02:00
Martin Pulec
e49d4a3e8b basename is in libgen.h also in MinGW 2019-06-26 16:25:22 +02:00
Martin Pulec
0884709c2a Missing header in utils/thread.c
Caused crash in macOS because of implicit function declaration.

+ added -Werror for this warning
2019-06-26 13:53:12 +02:00
Martin Pulec
087d9242cd Control socked: fixed socklen 2019-06-26 13:27:41 +02:00
Martin Piatka
55bc7d3f82 lavc: Add r10k to yuv422p10le conversion 2019-06-20 12:17:37 +02:00
Martin Piatka
929e1f8fc2 lavc: swscale support 2019-06-20 12:17:37 +02:00
Martin Piatka
114de14720 lavc: Replace assert with error message.
In some cases (forcing pix_fmt using lavc-use-codec) it was possible to reach
the assert.
2019-06-20 12:17:37 +02:00
Martin Pulec
50a6fe615f Missing sstring includes 2019-06-19 16:44:20 +02:00
Martin Pulec
c29a3cbe82 Video decoder: typo 2019-06-19 16:44:20 +02:00
Martin Pulec
41bd8c580a Video codec: Cineform isn't inter-frame, AV1 is 2019-06-19 16:44:20 +02:00
Martin Pulec
997862ad3e Optimalizations for video_codec.c
- compile with -Ofast
- use restricted pointers for vc_copyline functions
- use a vectorizable for-loop
- small fixes - in vc_copylineR12LtoRGB was not decoded last few pixels
  and in copylineYUVtoRGB was out-of-bound access (not likely, only if
  output dst_len was not divisible by 6)
2019-06-19 16:43:11 +02:00
Martin Pulec
79e90e6501 Libavcodec: toggle optimalizations + params restrict
Note: C99 restrict cannot be used because restrict is not a keyword in
C++. __restrict__ or __restrict can be used (the later is supported also
by MSVC).

+ rename min/max macro
2019-06-18 14:59:20 +02:00
Martin Pulec
6b1cf9c2b5 Libavcodec conversions: rename 2019-06-18 14:59:20 +02:00
Martin Pulec
81f7b632d6 Libavcodec: moved conversions to a separate file 2019-06-18 14:59:20 +02:00
Martin Pulec
4423ea6a03 Lavc: rename conversion functions 2019-06-18 14:59:20 +02:00
Martin Pulec
4b7ea06328 GPUJPEG: Fixed decoding to RGBA 2019-06-18 14:59:04 +02:00
Martin Pulec
81ee60e056 CMPTO J2K: fixed RGBA with non-standard comp shifts 2019-06-18 14:46:03 +02:00
Martin Pulec
ca5354e1f3 CMPTO J2K: added/fixed BGR
RGB with {r,g,b}shift doesn't make sense, use BGR instead.
2019-06-18 14:45:58 +02:00
Martin Pulec
f05667c79d CMPTO_J2K: Fixed decoder returning NULL if error
When J2K decoder returned NULL and sets error, the error was processed
first while the NULL might have still been a poison pill.
2019-06-18 14:45:50 +02:00
Martin Pulec
c45924eb8a Every cap. filter: fixed wrong command order 2019-06-17 10:56:37 +02:00
Martin Pulec
1c8e70e93e DeckLink disp.: improved help 2019-06-14 08:55:07 +02:00
Martin Pulec
9438d20181 DeckLink: multiple changes
* replaced the duplex option with the profile
* half-duplex remains to allow user to use a profile with the maximal
  number of independent IOs
* prefixed DEFAULT and KEEP macros with BMD_OPT_ + moved to common hearder
* added bmd_read_fourcc() and use wherever possible (some of previous
  implementations had incorrectly used max instead of min for memcpy and
  didn't zero-initialized the union)
2019-06-14 08:55:07 +02:00
Martin Pulec
f625f8529f DeckLink: correctly set duplex mode for quad-link
Correctly set the duplex mode for quad-link (implies
bmdProfileOneSubDevicesHalfDuplex).

* changed the duplex options
+ slightly modified usage
2019-06-14 08:55:07 +02:00