Steve Lhomme
cf3eee8f9a
d3d11: fix double resource allocation
The D3D11_AllocateResourceView() is already done in D3D11_AllocPicture().
Fixes a leak when D3D11 filters are used.
6 years ago
Thomas Guillem
c03ab9f575
codec: put hxxx_helper in a static lib
Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
6 years ago
Lionel Landwerlin
3633417edb
vaapi: add support for DRM modifiers
DRM modifiers communicate a description of the data layout in the buffers
exported/imported through various API.
On Intel HW this exports tiling information as well as potential compression.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
6 years ago
Quentin Chateau
288a2e79bb
nvdec: fix segfault in nvdec_gl
interop->priv is only set at the end of the Open function,
Close must not be called before the Open function returned
successfully
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
6 years ago
Quentin Chateau
8fecb68f4b
nvdec: fix opaque output format update
The actual chroma is determined by the decoder and may
not match what we guessed before starting to decode
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
6 years ago
Quentin Chateau
d50d91cc8d
nvdec: move cuda format to chroma mapping
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
6 years ago
Quentin Chateau
dd7c21061f
nvdec: add reference-count to the picture pool
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
6 years ago
Quentin Chateau
4d1baa2216
nvdec: move and rename picture context callback
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
6 years ago
Quentin Chateau
0537a81aad
nvdec: add NVDEC_PICCONTEXT_FROM_PICCTX macro
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
6 years ago
Quentin Chateau
5f2429395a
nvdec: move picture context allocation to pool code
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
6 years ago
Quentin Chateau
c3eafea70d
nvdec: regroup picture-pool related code
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
6 years ago
Quentin Chateau
985a9518bc
nvdec: store pointer instead of index
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
6 years ago
Marvin Scholz
5a41db4531
hw/vdpau: codestyle fixes
6 years ago
Marvin Scholz
893e771b84
hw/vdpau: Add missing define for header include guard
Found by lgtm.com
6 years ago
Marvin Scholz
29e37a8c5c
nvdec: use vlc_align helper
6 years ago
Quentin Chateau
9cebbfcef2
nvdec: wait copies before releasing the CUDA frame
6 years ago
Quentin Chateau
f79d8a5b97
nvdec: added missing CUDA context pop in error path
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
6 years ago
Steve Lhomme
adcc27453b
nvdec: use the CudaFunctions and CUcontext from the decoder device
No need to load the same resources twice. We hold a reference to the decoder
device with these objects.
6 years ago
Steve Lhomme
87c40237d9
nvdec: get the decoder device earlier
If the decoder device doesn't match we shouldn't be using this decoder anyway.
6 years ago
Steve Lhomme
03208617c5
d3d11_surface: fix missing local d3d11_device_t
6 years ago
Quentin Chateau
9984700a27
nvdec: release used video blocks
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
7 years ago
Rémi Denis-Courmont
3906d0e0d7
Remove/substitute useless vlc_atomic.h include
7 years ago
Rémi Denis-Courmont
8d5ec2524e
vdpau/adjust: avoid custom vlc_atomic.h, relax order
7 years ago
Rémi Denis-Courmont
84978d428b
va/filters: avoid custom vlc_atomic.h, relax order
7 years ago
Quentin Chateau
a47ad04997
nvdec: fix use-after free in chroma filter
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
7 years ago
Rémi Denis-Courmont
a18c4d6570
thread: remove vlc_cond_destroy()
7 years ago
Rémi Denis-Courmont
a3226cf890
thread: remove vlc_mutex_destroy()
7 years ago
Quentin Chateau
c6aa2a0b0a
nvdec: fix typo
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
7 years ago
Rémi Denis-Courmont
6d324addef
thread: remove vlc_sem_destroy()
This has become a useless no-op on all platforms.
7 years ago
Steve Lhomme
f2fe1239af
direct3d9: rename the decoder device to "dxva2"
This easier to set by users than "d3d9-device".
It also matches the name better since it can also be used with OpenGL.
7 years ago
Steve Lhomme
ef6e16c80c
direct3d11: rename the decoder device to "d3d11"
This easier to set by users than "d3d11-device".
7 years ago
Steve Lhomme
84e470eae9
nvdec: rename the decoder device to "nvdec"
This is easier to set by users than "nvdec-device".
7 years ago
Steve Lhomme
54ed11669d
mmal: rename the decoder device to "mmal"
This easier to set by users than "mmal-device".
7 years ago
Steve Lhomme
9e19c1acaf
direct3d11: remove the local d3d11_handle_t instances
As long as the decoder device/d3d11_decoder_device_t is alive we hold the DLLs.
7 years ago
Steve Lhomme
c0f1b31f95
direct3d9: move the external device handling in the common code
The D3D9 display module may be used without a decoder device (software decoding)
and we still need to use the device from the host app.
The allocated d3d9_decoder_device_t structure is freed with the object that
created it. But D3D9_ReleaseDevice() still need to be called.
7 years ago
Steve Lhomme
bff7cadc34
direct3d11: move the external device handling in the common code
The D3D11 display module may be used without a decoder device (software decoding)
and we still need to use the device from the host app.
The allocated d3d11_decoder_device_t structure is freed with the object that
created it. But D3D11_ReleaseDevice() still need to be called.
7 years ago
Steve Lhomme
14a91cb619
d3d11_fmt: move the forced check in D3D11_CreateDevice
7 years ago
Steve Lhomme
6bba90162f
libvlc: fix union in output callback device config
For Direct3D9 we actually need both fields
7 years ago
Steve Lhomme
b6b7dcca5a
d3d11_shaders: initialize the shaders loader separately
Only the display module actually needs to get it for now.
7 years ago
Steve Lhomme
885e4eb8f4
d3d11_device: cleanup exit on error
7 years ago
Steve Lhomme
9d42f750f9
libvlc: merge libvlc_video_direct3d_device_cleanup_cb and libvlc_video_output_cleanup_cb
7 years ago
Steve Lhomme
0300747f5a
libvlc: rename libvlc_video_setup_cb to a less generic name
libvlc_video_output_setup_cb to match libvlc_video_output_cleanup_cb.
7 years ago
Steve Lhomme
8cbb0843c9
libvlc: merge libvlc_video_setup_cb and libvlc_video_direct3d_device_setup_cb
For now the OpenGL setup doesn't need to get any adapter or context from the
host app.
7 years ago
Steve Lhomme
2369082c4f
libvlc: rename libvlc_video_direct3d_device_cfg_t / libvlc_video_setup_device_info_t
To more generic names.
No functional changes.
7 years ago
Steve Lhomme
2825a1b17a
direct3d11: create a helper function to create D3D11 video contexts
7 years ago
Steve Lhomme
d585abe375
direct3d11: don't store a d3d11_device_t in the video context
It's already stored in the decoder device that the video context holds.
7 years ago
Steve Lhomme
048cbddb95
direct3d11: store a whole d3d11_device_t in the decoder device
Since it already has one anyway. No need to create external ones as long as you
hold a decoder device (or related video context).
7 years ago
Steve Lhomme
f1f8e1684d
d3d11_filters: reuse the video context d3d11_device_t
No need to create a local copy, we hold a reference to the video context.
7 years ago
Steve Lhomme
b85c41e1cb
d3d11_deinterlace: don't create a local d3d11_device_t
Reuse the one from the video context we hold.
7 years ago
Steve Lhomme
6ef168ee84
d3d11_fmt: allocate D3D11 pictures without passing the d3d11_device_t
It's already part of the vctx that will be set on the picture.
7 years ago