tux3
f07daaf159
fix: Stop using deprecated avcodec_decode_video2
2017-03-20 21:10:27 +03:00
tux3
91414b4fce
fix: Remove unnecessary calls to av_frame_unref
...
If we immediately free it, the refcount goes to zero!
2017-03-20 21:10:27 +03:00
tux3
9674bff0cf
fix: Stop using deprecated AVStream::codec
...
We now use the AVCodecParameters instead, as recommended
2017-03-20 21:10:27 +03:00
Zetok Zalbavar
80f5de31b3
style: reformat current C++ codebase using clang-format
2017-02-26 11:52:45 +00:00
sudden6
39b473cc86
Merge pull request #3309
...
Nils Fenner (1):
refactor(audio): remove obsolete signal "groupAudioPlayed"
2017-02-08 13:32:47 +01:00
Yuri
2340a7491a
style(video): Simplified ifdefs, made them USING_V4L to be explicit.
...
Changed complex ifdef statements into simpler ones using the easy to
read token USING_V4L.
2017-02-05 10:44:58 -08:00
Diadlo
fcd8eed7cd
style: Fix style of a lot of pointers
2017-01-06 23:03:58 +03:00
sudden6
e07d8d358f
feat(toxid): reduce passing Tox IDs around
...
reasons:
- most of the time we don't even know the Tox ID but only the Public Key
- use well defined objects instead of strings that could be anything
2017-01-04 00:20:24 +01:00
Zetok Zalbavar
d4ac13dbf4
revert: "refactor: Added to include path and exclude it from all includes"
...
Revert needed, since otherwise there is no way to do automatic sorting
of includes.
Also reverted change to the docs, as leaving it would make incorrect
docs.
In case of conflicts, includes were sorted according to the coding
standards from #3839 .
This reverts commit b4a9f04f92
.
This reverts commit 5921122960
.
2016-12-29 16:10:53 +00:00
sudden6
8d320ca3be
chore: Make building for FreeBSD easier
...
Add some patches from https://svnweb.freebsd.org/ports/head/net-im/qTox/
and make some things more platform independent.
2016-12-28 22:15:16 +01:00
Diadlo
3c304c50bc
refactor(core): Added error handling
2016-12-19 00:42:54 +03:00
Zetok Zalbavar
7b60a5dd36
chore: explicitly mention that copyright belongs to qTox contributors
2016-11-29 11:12:06 +00:00
Diadlo
b4a9f04f92
refactor: Added to include path and exclude it from all includes
2016-11-28 23:28:42 +03:00
Zetok Zalbavar
64bbc6cfbb
style: change postfix increment to prefix increment
2016-11-03 07:57:14 +00:00
Diadlo
26a27cf3f8
fix(videomode): Added ability to store negative coordinates
2016-08-24 22:35:31 +03:00
Diadlo
672744de96
docs(audio, video): Added leading stars
2016-08-19 00:20:23 +03:00
initramfs
ef157ca8af
fix(video): fix scaling issues under HiDPI displays with desktop video
...
This commit fixes missing scaling factors with desktop video to allow
desktop video under HiDPI scaling to work as intended. Also removes a
few obsolete lines of scaling that that was required for older Qt
versions.
2016-08-16 14:27:56 +08:00
Zetok Zalbavar
79c249be55
fix: use qAbs()
instead of abs()
for better platform compatibility
...
Apparently FreeBSD doesn't include by default `stdlib.h` that provides
`abs()`.
Fix suggested by @antis81.
Fixes #3613 .
2016-08-15 23:27:44 +01:00
Nils Fenner
018360887e
refactor(audio): remove obsolete signal "groupAudioPlayed"
2016-08-08 14:22:02 +02:00
initramfs
3e7d55e833
feat(video): add a isValid() function to ToxTUVFrame
2016-08-06 22:12:32 +08:00
initramfs
5b31b5db72
fix(video): guard storeVideoFrame() against freeing in-use memory
...
This commit fixes an issue where storeVideoFrame() can in rare cases
free memory that is still in use. Also adds extra documentation
documenting it's precise usage.
2016-08-05 10:42:07 +08:00
initramfs
f6a698bec5
refactor(videoframe): move all inline/template functions into source
2016-08-05 09:20:21 +08:00
initramfs
07f5cf3a65
refactor(video): update code and documentation to honour QSize validity
2016-08-05 09:16:31 +08:00
initramfs
df3345dce5
fix(video): force the use of non-deprecated pixel formats for YUV
2016-08-04 23:46:37 +08:00
initramfs
de6475f3d3
fix(video): use a QReadWriteLock to manage camera access
...
This commit changes the mutex-memfence combination to a pure-mutex
implementation within CameraSource. This should prevent a lot of
pre-existing race conditions from happening.
2016-08-04 23:18:37 +08:00
initramfs
00270ee4d2
fix(video): specify color ranges for pixel formats that are not YUV
2016-08-04 23:16:46 +08:00
initramfs
707f7af29a
fix(video): fix invalid VideoSource ID allocation
...
This commit fixes the an invalid ID allocation by VideoSource, before
this commit all VideoSources receives the same ID causing VideoFrame to
believe all frames belong to the same video source.
Additionally, this commit addresses issues with deprecated pixel
formats and silences libswscale warnings.
2016-08-04 19:51:15 +08:00
initramfs
c4f88df7c9
fix(video): added declaration for missing biglock in CameraSource
2016-08-04 06:33:40 +08:00
initramfs
8487dcecf8
fix(video): fix a use-after-free with VideoFrame
2016-08-04 06:33:40 +08:00
initramfs
8ef89a267e
refactor(videoframe): correct mistakes in commit documentation format
2016-08-04 06:33:40 +08:00
initramfs
8d3aef9269
refactor(video): update documentation to match new format (issue #3559 )
2016-08-04 06:33:40 +08:00
initramfs
f85a299e75
refactor(video): rename ToxAVFrame to ToxYUVFrame and add documentation
2016-08-04 06:33:40 +08:00
initramfs
6d18c109e8
refactor(video): use generics to simply VideoFrame conversion functions
...
This commit replaces the contents of toQImage(), toToxAVFrame() and
getAVFrame() with speciailized calls to a generic toGenericObject()
function for better code clarity.
2016-08-04 06:33:40 +08:00
initramfs
897cec4e75
refactor(video): make type aliases public
...
This allows other classes to use the type aliases defined in the
respective classes within their own code.
2016-08-04 06:33:40 +08:00
initramfs
8952208e8a
feat(video): add accessor functions for sourceID and frameID
...
Additionally refactors some code to be more optimized.
2016-08-04 06:33:40 +08:00
initramfs
80a776475c
refactor(video): internalize frame reference counting
...
This commit takes the frame tracking code and internalizes it into the
VideoFrame class itself for better reusability. The code in
CameraSource has since been removed.
2016-08-04 06:33:40 +08:00
initramfs
4ac20c7b46
feat(video): adds an ID parameter to the VideoSource class
2016-08-04 06:33:40 +08:00
initramfs
57f38e281b
refactor(video): static cast video dimensions to suppress warnings
2016-08-04 06:33:40 +08:00
initramfs
8bfbae1b47
refactor(video): use a new ToxAVFrame structure instead of vpx_image
...
Instead of misusing an existing structure from another library, defines
a new simpler structure that reflects the capabilities of the ToxAV
transport mechanism.
2016-08-04 06:33:40 +08:00
initramfs
904495d2bf
fix(video): fix slanted video when video size is not divisible by 8
2016-08-04 06:33:40 +08:00
initramfs
3df6b990ae
fix(video): fix memory leak caused by unfreed buffers in CoreVideoSource
...
Fixes a memory leak caused by old code within CoreVideoSource in the
way AVFrame buffers are allocated.
2016-08-04 06:33:40 +08:00
initramfs
50f67b3cef
refactor(video): rename and make the frame alignment propety public
...
Making the frame alignment property public allows for a standardized
parameter for frame alignment, usable by other code that allocates
frame buffers.
2016-08-04 06:33:40 +08:00
initramfs
277ddc3d2f
fix(video): fix CoreAV and VideoSurface to conform to new VideoFrame
2016-08-04 06:33:40 +08:00
initramfs
38b1a9b63d
feat(video): redesign and improve VideoFrame class
...
This commit redesigns the VideoFrame class to be more robust,
documented and performant
2016-08-04 06:33:40 +08:00
Diadlo
29443040fb
docs(audio, video): Change comment style
2016-07-27 01:23:27 +03:00
Diadlo
3edd84c4d8
refactor(videomode): Move implementation in cpp file
2016-07-27 00:40:15 +03:00
Diadlo
b1adef2fd0
fix(corevideosource): Partial revert of ef641ce6d3
...
Fixes crash, during video call with "None" video device.
Fixes #3527 .
2016-07-23 11:01:23 +03:00
sudden6
b5c8c60d81
Merge pull request #3505
...
Colomban Wendling (1):
fix(x11grab): try and use the current display
2016-07-16 23:50:12 +02:00
Diadlo
2258748d28
style(audio, video): Style fixes
2016-07-13 01:54:37 +03:00
Colomban Wendling
294bdab77f
fix(x11grab): try and use the current display
...
Don't hard-code ":0" as the display and try and use the DISPLAY
environment variable instead.
This fixes screen grabbing under X11 when the user is not on screen 0.
Fix #3500 .
2016-07-12 21:31:33 +02:00