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
sudden6
e97a870c0f
Merge pull request #3392
...
Diadlo (12):
refactor(avform): Extracted functions with best mode search and combo box filling
refactor(avform): Replace `bestModeInds` on videoMode index and video height as quality name
refactor(avform): Separeted search of preferred index in function
fix(avform): Took default resolution from middle of list
feat(videomode): Added possible video shift
feat(cameradevice, avform): Added ability of screen selection
feat(avform, screenshotgrabber): Added custom screen region selection
style(corevideosource): Small style fixes
fix(videoframe): Added correct image copy
fix(avform): Added restoring selected region
feat(camerasource): Change default video mode to preferred
fix(directshow): Fixed problem with crosses initialization
2016-07-12 19:56:41 +02:00
Diadlo
f8a45b4051
fix(video): Changed minimum window size with video
...
Fix #3396 .
2016-07-09 22:15:04 +03:00
Diadlo
c3de6238ca
feat(camerasource): Change default video mode to preferred
2016-06-25 14:20:13 +03:00
Diadlo
1ddc1371a0
fix(videoframe): Added correct image copy
2016-06-25 14:20:13 +03:00
Diadlo
ef641ce6d3
style(corevideosource): Small style fixes
2016-06-25 14:20:13 +03:00
Diadlo
d781a4f762
feat(cameradevice, avform): Added ability of screen selection
2016-06-25 14:20:08 +03:00
Diadlo
fd701df101
feat(videomode): Added possible video shift
2016-06-25 14:19:46 +03:00
Polshakov Dmitry
343568339f
style(constructors): Constructors are explicit now
2016-04-20 22:53:27 +03:00
Polshakov Dmitry
910c41f4fa
perf(camerasource): Passed parameter by reference
2016-04-20 22:53:27 +03:00
Diadlo
082fb4c056
refactor(videoframe, camerasource, corevideosource): Change calls deprecated functions
2016-04-20 13:17:19 +03:00
initramfs
00947bc7ad
refactor(video): simplifies retrieval of primary screen
...
This commit reduces primary screen retrieval to a single static field
access as opposed to obtaining a runtime instance of the QApplication
object
2016-04-04 23:02:54 -04:00
initramfs
d2189f3891
fix(video): uses explicit default screen from QGuiApplication
...
This commit changes the method used to obtain the active screen from
simply selecting the first screen in the list to using the explicit
default screen from QGuiApplication::primaryScreen() function
2016-04-04 09:06:16 -04:00
initramfs
75b40d0a6f
fix(video): incorrect desktop video resolution when using HiDPI
...
Fixes desktop sharing region being clipped when DPI scaling is being
used.
2016-04-03 10:17:25 -04:00
sudden6
a770b9be20
fix build on mac
2016-03-22 15:44:50 +01:00
Sean
f595f4f817
camera res option reduction
2016-03-21 21:17:21 -05:00
Sean
ffa312b91b
tabs to spaces
2016-01-26 13:34:29 -06:00
Sean
ded8d87ba8
generic pixel format selection
2016-01-26 13:14:58 -06:00
tux3
aef447d7c7
Have v4l2 read MJPEG video by default
...
Fixes #2826
Thanks to @seanlaguna for finding a fix
2016-01-20 00:00:03 +01:00
Andrew Novikov
985def25ff
Implemented screen capturing support for Mac OS X
2015-12-23 15:31:28 +03:00
Andrew Novikov
cc64db3f27
Implemented listing and setting video modes on Mac OS X
2015-12-21 01:27:38 +01:00
Andrew Novikov
9d43062639
Changed the type of VideoMode::FPS to float: this is necessary for Mac OS X which uses frame rates like 29.97
2015-12-21 01:27:01 +01:00
Andrew Novikov
cf6623cfc8
Implemented enumeration of video devices.
2015-12-21 01:26:18 +01:00
tux3
e286f9673c
Fix use after free of NetCamView
...
Someone was connecting a singal to a lambda capturing this, and never disconnecting it in the destructor. Capturing this is DANGEROUS, kids, don't do this at home.
2015-12-15 21:19:18 +01:00
tux3
25ed3d4fba
Fix avatars for encrypted profiles
...
WARNING: Note that avatars for encrypted profiles are currently stored unencrypted!
2015-12-05 19:08:28 +01:00
tux3
b1f8d3f912
Fix attempt for #2438
2015-12-04 20:35:50 +01:00
tux3
104095c6be
Fix video starting with bad resolution
...
The netcamview has no business trying to open the video source, especially in the wrong video mode
2015-12-04 13:56:42 +01:00
tux3
bf8bdaf619
Improve perf of opening/closing AV tab
...
Should help with #2424
2015-11-07 18:30:09 +01:00
tux3
71e26fb15b
List video devices using v4l2 directly, not ffmpeg
...
Turns out, FFmpeg is annoyingly unreliable when it comes to this. It ignores uvcvideo devices for example
2015-11-07 01:34:07 +01:00
tux3
50006a9a32
Faster video device opening
2015-10-24 05:20:49 +02:00
tux3
e1c61cd207
CoreVideoSource: Replace insane spinlock by QMutex
...
What was I thinking.
2015-10-24 04:38:00 +02:00
tux3
c0d8703368
Properly signal when we stop sending video
...
And properly handle toxav happily delivering things out of order,
like firing a video frame callback right after a callback setting the bitrate to 0,
when the peer sent these commands in the right order
2015-10-24 04:26:39 +02:00
tux3
8ebf07762f
VideoSurface: Release null frames
2015-10-24 03:30:42 +02:00
tux3
aaf04a80db
Remove some debug output
2015-10-24 02:46:34 +02:00
tux3
51ffd94e68
Fix possible nullptr deref in ~CameraSource
2015-10-23 20:30:22 +02:00
tux3
6dc91b156a
Use actual mutexes for CameraSource
...
That homemade spinlock thing was insane, VTune says we were spending 1.5s spinning for no reason when openning a device for example
2015-10-23 17:52:46 +02:00
tux3
f45256baf1
Implement group calls
2015-10-23 17:52:45 +02:00
tux3
69b8a90277
Implement video calls
2015-10-23 17:39:08 +02:00
tux3
512dc8de2d
Implement basic call logic
...
We can now make New AV calls, but without any audio/video. Just opening a link.
2015-10-23 17:09:53 +02:00
tux3
dbbc702c60
Strip out old AV code
2015-10-23 17:02:01 +02:00
tux3
1f61534841
Merge branch 'pr2343'
2015-10-23 15:20:58 +02:00
agilob
ecbda91764
Merge remote-tracking branch 'bitok/fix_performance_issues'
2015-10-21 19:12:15 +01:00
Nils Fenner
1fc703c281
fix warnings
2015-10-18 22:20:16 +02:00
Zetok Zalbavar
d60cfe07b6
Remove an empty line and unneeded slash
2015-10-18 17:04:49 +01:00
agilob
cde9721600
qunused on event
2015-10-18 10:18:13 +01:00
agilob
d2e09ead7a
one more line to remove
2015-10-18 10:18:13 +01:00
agilob
d875221e53
remove unused code, removed unused checks
2015-10-18 10:18:06 +01:00
bitok
d6ff67893f
Fix performance issues detected with static analyze
2015-10-13 23:21:20 +03:00
agilob
7c6ac40d21
add debugging messages to camerasource, code reformatting to make it more readable and ogranized better
2015-10-11 07:38:44 +01:00
agilob
266c0fb989
Merge branch TheSpiritXIII:video
2015-10-10 13:49:30 +01:00
Dmytro Shynkevych
901befb270
cameradevice: fixed a double free
...
Introduced by c491f79077
2015-10-09 19:10:43 -04:00
Dmytro Shynkevych
c491f79077
cameradevice: fixed a regression
...
Memory would sometimes not be freed.
Caused by 8776682d44
2015-10-05 21:21:12 -04:00
Dmytro Shynkevych
8776682d44
cameradevice: fixed a major leak: avformat_context not always freed
2015-10-04 17:21:52 -04:00
Zetok Zalbavar
6998c2c757
Make 'None' and 'Desktop' camera device names translatable
...
fixes #2252
2015-09-18 19:12:10 +01:00
TheSpiritXIII
7f5a95a599
Video: Cleanup
2015-08-19 19:13:45 -04:00
TheSpiritXIII
7886fdcb69
Video: resizable group avatar, synchronize avatar
2015-08-19 12:42:54 -04:00
TheSpiritXIII
50041a3140
Video: Initial video when call starts
2015-08-18 17:44:34 -04:00
TheSpiritXIII
814bd922ca
Video: Group audio view avatars
2015-08-18 13:40:11 -04:00
TheSpiritXIII
1522d3848c
Video: Show avatar, clean ups
2015-08-13 09:31:15 -04:00
TheSpiritXIII
9d12c295be
Keep aspect ratio of inner video
2015-08-11 14:01:49 -04:00
TheSpiritXIII
cd90d8d34b
Video: Add collapse/expand button, expand all the way, better self video output location
2015-07-22 14:50:39 -04:00
TheSpiritXIII
4c493b85a0
Video: View self video during video call
2015-07-21 14:38:43 -04:00
TheSpiritXIII
1b10672179
Video: Embed video into chat
2015-07-20 17:57:46 -04:00
Yuri
0895b89794
Prevent crashed when default video format not found.
2015-07-15 01:46:23 -07:00
tux3
9e55c77849
Better freeing of CameraSource
2015-06-26 19:04:53 +02:00
tux3
2ab55568f2
Make the video code a singleton, fix multithreading bugs
...
There can now only be one CameraSource running.
Video frames are decoded in their own thread, and then converted by users in the user's threads.
The CameraSource API is entirely thread-safe and controls the video decoding thread.
The video device only stays open as long as there are users subscribed to the CameraSource.
We use a dangerous combination of spinlocks and memory fences to keep things synchronized.
2015-06-26 18:34:48 +02:00
tux3
9c87d5ed2e
Add 'None' video device
...
Fixes #1825
2015-06-22 14:59:55 +02:00
tux3
36fcb5cb62
Add final/override specifiers
...
We get more compile time checking, and it's always good for performance to help the compiler
2015-06-08 20:08:24 +02:00
Zetok Zalbavar
67e9aeec63
Fix incorrect copyright headers
...
The qTox Project is not associated with the Tox Project in any way, with the
exception of "qTox" using the Tox Projet's "toxcore" collection of libraries.
In particular, the Tox Projet does not own copyright over the qTox Project's
"qTox" collection of software, source code, and assets.
The qTox Project's assets are under the sole copyright of the qTox
contributors, and no partiular rights are granted to the Tox Project.
2015-06-06 14:51:28 +01:00
tux3
20f254651d
Reorganize files
2015-06-06 01:44:47 +02:00
tux3
31f7ded768
Fix #1794
2015-06-05 03:07:42 +02:00
tux3
e3dd2dc9e1
Limit desktop streamins FPS
...
Otherwise we get overwhelmed and start dropping frames
2015-06-04 23:34:17 +02:00
tux3
862ad154fc
Fix crash if avdevice_list_devices fails
2015-06-04 17:22:58 +02:00
Tux3 / Mlkj / !Lev.uXFMLA
44628373cd
Windows desktop capture (gdigrab)
2015-06-03 11:47:19 +02:00
tux3
37a3a8d9d6
Properly set desktop capture region
...
We now capture the full screen by default, with code to handle modesetting, instead of always the FFmpeg default region of 1024x768
2015-06-03 02:10:53 +02:00
tux3
8ad0f6c573
X11 dekstop streaming
2015-06-03 02:10:53 +02:00
tux3
fe4838bb83
Video modesetting for v4l2
2015-06-03 02:10:53 +02:00
tux3
bf3b9239b5
Never resize frames with Qt, use sws_scale
...
If we're going to convert between pixel formats with sws_scale, we might as well do the rescaling in the same step.
Giving a potentially hueg fram to Qt and having it rescale in a separate step is wasted cycles.
2015-06-03 02:10:52 +02:00
tux3
db7d86ae50
Ifdef some dshow code on win only
2015-06-03 02:10:52 +02:00
Tux3 / Mlkj / !Lev.uXFMLA
27bb71f195
Implement video modesetting for dshow
2015-06-03 02:10:52 +02:00
Tux3 / Mlkj / !Lev.uXFMLA
b463028536
Released frames are out of the freelist
...
So they shouldn't call the freelistCallback. VideoFrame now forgets
about the callback when it is being released.
2015-06-03 02:10:52 +02:00
Tux3 / Mlkj / !Lev.uXFMLA
f0f069114c
Implement DirectShow video dev listing
...
We can now get the list of video devices with the dshow ffmpeg device
(so, on Windows). Most of this patch is adapted from libavdevice's dshow
private internal interface, which retrieves useful info but is only
designed to log it to stdout. We reimplement that to get an actual list
of devices names/descriptions, that we can then open with ffmpeg the
refular way.
2015-06-03 02:10:52 +02:00
tux3
8568a6b94e
More compatibility with older libavdevice
...
By not using avdevice_list_input_sources
2015-06-03 02:10:52 +02:00
tux3
95e4a20f05
Compatibility with older libavdevice
...
By not using avdevice_list_input_sources
2015-06-03 02:10:52 +02:00
tux3
d53b426750
Replace OpenCV with FFmpeg
2015-06-03 02:10:52 +02:00
tux3
2505c01cdd
Invert U and V video planes back
...
We now correctly send YUV420P and not YV12 to keep matching uTox bug-for-bug.
2015-05-14 22:36:17 +02:00
tux3
76cbaf18f1
Fix incorrect copyright headers
...
The qTox Project is not associated with the Tox Project in any ways, with the exception of "qTox" using the Tox Projet's "toxcore" collection of libraries.
In particular, the Tox Projet does not own copyright over the qTox Project's "qTox" collection of software, source code, and assets.
The qTox Project's assets are under the sole copyright of the qTox contributors, and no partiular rights are granted to the Tox Project.
2015-05-12 04:12:53 +02:00