1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
Commit Graph

180 Commits

Author SHA1 Message Date
Diadlo
91dabf11d3
fix: Use epsilon to compare float
Fix #2394 (5)
2017-11-27 01:20:09 +03:00
sudden6
5d6ae9ae37
fix(video): don't use pointers to temporary objects
fixes #4764
2017-11-12 13:10:35 +01:00
Diadlo
bc05d531a3
refactor(video): Add video settings interface 2017-11-10 23:27:06 +03:00
sudden6
fed7060270
fix(video): prevent segfault when ending videocall 2017-10-26 12:32:35 +02:00
Diadlo
92def839d0
fix(cameradevice): Save string in local variable to avoid errors 2017-10-23 21:04:34 +03:00
sudden6
2f13796acc
fix(ffmpeg): don't use deprecated features 2017-10-19 00:41:57 +02:00
sudden6
f82f57ec91
refactor: don't pass ToxPk as QString 2017-10-06 23:57:55 +02:00
Yuri
8522141b1e fix(threads): Always stop the camera device thread 2017-09-26 22:42:48 -07:00
Diadlo
017653470d
refactor: Move friend and group in model directory 2017-08-06 13:55:02 +03:00
Diadlo
d704f5d21d
perf: Optimize open/close device
Because while device thread wait for a freeing 'streamMutex', in another
thread someone can subscribe or unsubscribe => it will require useless
pair (close + open) or (open + close)
2017-07-05 23:53:17 +03:00
Diadlo
d86912eacd
fix: Invoke device methods in deviceThread
Fix #2058
2017-07-05 23:53:17 +03:00
Diadlo
d720cca969
refactor: Split device and stream mutexes 2017-07-05 23:53:17 +03:00
Diadlo
50eaea8f8e
refactor: Add deviceThread 2017-07-05 23:53:17 +03:00
Diadlo
60dc4b34a4
refactor: Remove extra checks in [un]subscribe 2017-07-05 23:53:17 +03:00
Diadlo
a22694c9e8
refactor: Remove unused bool result 2017-07-05 23:53:17 +03:00
Diadlo
b562b31413
refactor: Remove unused functions 2017-07-05 23:53:17 +03:00
Diadlo
3b2352a0ee
refactor: Rename methods in CameraSource
To make the method more correctly reflect the essence
2017-07-05 23:53:17 +03:00
Diadlo
dd9b324ec3
chore(qt): Remove old qt code 2017-06-26 23:06:55 +03:00
Diadlo
6045e57829
refactor: Make constructor with one argument explicit 2017-06-12 13:46:43 +03:00
Diadlo
6e697053a7
refactor: Reorder FrameBufferKey
Reordered to be same with docs and prototype.
2017-06-12 13:46:43 +03:00
Diadlo
365d703e8a
perf: Pass std::function by reference 2017-06-12 13:46:38 +03:00
sudden6
a3b234e6dd
chore(formatting): run clang-format 2017-06-01 09:50:59 +02:00
sudden6
a1181e10f2
chore(formatting): disable clang-format for certain code sections 2017-06-01 09:49:32 +02:00
Diadlo
65b1463933
refactor(core): Move setAvatar to profile from core 2017-05-24 19:43:47 +03:00
Yuri
dd59f5ee90 fix(macro): Fixed clang warning about USING_V4L
Clang produced this warning:
"macro expansion producing 'defined' has undefined behavior"
2017-05-08 09:28:29 -07:00
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