1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-16 16:02:54 +02:00
Commit Graph

3845 Commits

Author SHA1 Message Date
Steve Lhomme
472f20695a direct3d11: move the windowed/windowless output format selection in a functions 2019-01-22 13:21:19 +01:00
Steve Lhomme
5b6a6ca961 direct3d11: don't use the winstore swapchain if not in windowless mode
the winstore build doesn't work in windowed mode
2019-01-22 13:17:59 +01:00
Steve Lhomme
0ee25b9228 direct3d1: don't use the module in winstore builds if there's no context
It only works in windowless mode
2019-01-22 13:10:34 +01:00
Steve Lhomme
265c8d7ab4 direct3d11: fix warnings
COLOR_RANGE_STUDIO is now defined in vlc_es
hr is shadowing the other HRESULT
2019-01-22 13:10:33 +01:00
Steve Lhomme
9828378c85 direct3d11: move some code 2019-01-22 13:10:33 +01:00
Marvin Scholz
4d5f4b1ccb vout/ios: Fix crash due to unexpected _eaglEnabled state
Fix videolan/VLCKit#221

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2019-01-21 14:31:40 +01:00
Marvin Scholz
89f6b1902f vout/ios: Fix leaks on initialization failure
Failing to initialize would not release the allocated self instance,
causing it to leak. Instead of the super dealloc just call release
on ourselves, this simplifies error handling too as dealloc takes
care of destroying the mutex and condition variables.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2019-01-21 14:31:40 +01:00
Marvin Scholz
405780b018 vout/ios: Remove unnecessary nil check
Sending a message to nil is valid, which makes this check
unnecessary.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2019-01-21 14:31:40 +01:00
Marvin Scholz
565d3e9c8e vout/ios: Rename confusingly named methods
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2019-01-21 14:31:40 +01:00
Marvin Scholz
f9c4af6e89 vout/ios: Simplify makeCurrentWithGL:withGL:
Return early when setCurrentContext fails, this simplifies
the following code and makes it much easier to read.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2019-01-21 14:31:40 +01:00
Steve Lhomme
ea5d602326 direct3d11: fix the first call to D3D11_SetupQuad()
It doesn't have the proper dimensions set in rect_src_clipped.
2019-01-18 14:46:09 +01:00
Steve Lhomme
cc5b976e2a direct3d9: add an option callback to be signaled when the scene/source size changes
To be used for "window less" rendering
2019-01-18 11:32:58 +01:00
Steve Lhomme
78d3d6a3c6 remove stray $Id 2019-01-17 15:37:36 +01:00
Steve Lhomme
5363279805 remove the $Id$ in the source code 2019-01-17 12:21:18 +01:00
Steve Lhomme
b7cdab4473 direct3d9: simplify the desktop mode update logic
Now the callback writes in an atomic bool which is then used in Manage(). No
need for a lock anymore or an extra boolean.
2019-01-17 12:21:16 +01:00
Steve Lhomme
6871e31ebe direct3d9: update the desktop mode synchronously in manage
No need to reopen the device for that.

Fixes #21733
2019-01-17 12:21:16 +01:00
Steve Lhomme
f936c43087 direct3d9: split the reopen function
Move the desktop mode handling out of it.
2019-01-17 12:21:16 +01:00
Steve Lhomme
c060c44a64 direct3d9: remove unused cfg_saved 2019-01-17 12:21:16 +01:00
Rémi Denis-Courmont
dbd5d0ad3c xcb/xvideo: attempt to create window just once
If it failed the first time, it won't work the second time.
2019-01-16 18:21:25 +02:00
Rémi Denis-Courmont
ab49223804 xcb/xvideo: drop port grabbing
Grabbing a port probably would make sense if using PutVideo.
But VLC only ever used PutImage.
2019-01-16 18:21:25 +02:00
Rémi Denis-Courmont
fa7a4ef1a7 xcb/xvideo: rationalize format detection 2019-01-16 18:21:25 +02:00
Rémi Denis-Courmont
87b5e58e1e xcb/xvideo: remove old OMAP3xxx hack 2019-01-16 18:21:25 +02:00
Steve Lhomme
e02f6758fe direct3d11: don't pretend we can handle RESET_PICTURES
The test for direct rendering in vout_wrapper will not be affected as it tests
has_pictures_invalid the same way it tests is_slow.
2019-01-16 13:40:02 +01:00
Steve Lhomme
dad77ea95c libvlc: remove the _gl_ from the video output callbacks API
And rename the matching variables to "vout-cb-*"
2019-01-16 13:02:48 +01:00
Steve Lhomme
7700a8f262 libvlc: rename libvlc_gl_resize_cb to libvlc_update_output_cb
And rename the internal variable to "vout-cb-update-output"
2019-01-16 13:02:33 +01:00
Steve Lhomme
230a6befa1 direct3d11: use the windowless mode when using an external ID3D11DeviceContext 2019-01-16 09:58:42 +01:00
Steve Lhomme
05059dafb0 direct3d11: read "winrt-swapchain" at the same place we create the swapchain
For winstore apps.

Reorder some code to do only the things we need to do per target.
2019-01-16 09:58:41 +01:00
Steve Lhomme
3352635d72 direct3d11: use D3D11_CreateDeviceExternal() with the winrt provided context 2019-01-16 09:58:41 +01:00
Steve Lhomme
93240e5e59 direct3d11: move some of the rendering calls into callbacks 2019-01-16 09:58:41 +01:00
Steve Lhomme
748ca739be direct3d9: allow using an external D3D9 device 2019-01-16 09:58:41 +01:00
Steve Lhomme
f19bef67c3 direct3d9: move some of the rendering calls into callbacks 2019-01-16 09:58:41 +01:00
Rémi Denis-Courmont
e0f9c5f77f xcb/xvideo: do not set the back and border pixmaps
This is overriden by the back and border pixels.
2019-01-15 21:24:08 +02:00
Rémi Denis-Courmont
aed152e5f8 xcb/x11: do not set the back and border pixmaps
This is overriden by the back and border pixels.
2019-01-15 21:24:08 +02:00
Rémi Denis-Courmont
8f7271ed9b xcb: drop dead code 2019-01-15 19:37:12 +02:00
Rémi Denis-Courmont
e523190a7c xcb/xvideo: drop visibility support
This ensures that the frame is up-to-date when the player becomes
visible - at least if a compositor is present (which is usually true).
2019-01-15 19:34:56 +02:00
Rémi Denis-Courmont
c750c9b1a5 xcb/x11: drop visibility support 2019-01-15 19:33:55 +02:00
Rémi Denis-Courmont
cf485c26dc x11: return an error if resize needed 2019-01-15 19:17:29 +02:00
Rémi Denis-Courmont
3287bd3b4e wayland/shm: return an error if resize needed 2019-01-15 19:17:29 +02:00
Rémi Denis-Courmont
c84850f73a vaapi: fix invalid function pointer conversion 2019-01-15 18:41:44 +02:00
Rémi Denis-Courmont
985c331294 kms: remove bogus window event
This is a display, not a window.
2019-01-14 21:38:17 +02:00
Rémi Denis-Courmont
1921811cf8 splitter: handle key press events 2019-01-13 15:54:59 +02:00
Rémi Denis-Courmont
99cb2bf5cb splitter: handle mouse events 2019-01-13 15:54:57 +02:00
Rémi Denis-Courmont
f9796a7ad1 splitter: partially handle close event 2019-01-13 15:54:55 +02:00
Rémi Denis-Courmont
2129e26189 splitter: track window separately from display 2019-01-13 15:11:27 +02:00
Rémi Denis-Courmont
bba54c1201 splitter: implement window size event (fixes #21604) 2019-01-12 16:46:06 +02:00
Rémi Denis-Courmont
3f8852823e splitter: lock display while in use (refs #21604) 2019-01-12 16:46:03 +02:00
Rémi Denis-Courmont
fc2b0fa126 splitter: add a lock per display (refs #21604) 2019-01-12 16:46:03 +02:00
Rémi Denis-Courmont
5c18cff8d8 splitter: add a display plugin for splitter functionality 2019-01-12 16:08:41 +02:00
Rémi Denis-Courmont
b41b469a3f xcb/xv: drop RGB support
The RENDER output supports RGB chroma better in all respects. Besides,
I have not seen an X server supporting RGB XVideo formats in a decade.
2019-01-03 20:21:32 +02:00
KO Myung-Hun
a6b24f7ac6 kva: report mouse position in window coordinates
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2019-01-03 19:42:32 +02:00