Steve Lhomme
5363279805
remove the $Id$ in the source code
2019-01-17 12:21:18 +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
Hugo Beauzée-Luyssen
a2c8b82b69
chroma: d3d11: Silence unused parameters warnings
2019-01-10 10:01:37 +01:00
Hugo Beauzée-Luyssen
50e84bf3b9
chroma: d3d11: Fix winstore build
2019-01-10 10:01:03 +01:00
Steve Lhomme
f5d0efb65c
d3d11: cleaner split of the (non)winstore code
2019-01-08 10:46:09 +01:00
Steve Lhomme
bfeb80d647
d3d11: log possible failures to read the driver version
2019-01-08 10:46:09 +01:00
Rémi Denis-Courmont
2d41a0b746
yuvp: addd support for BGRA
2018-12-20 18:41:21 +02:00
Rémi Denis-Courmont
392c7c8968
gettext: use American spelling for neighbor
...
British spelling shall be in po/en_UK.po.
2018-12-19 21:10:29 +02:00
Steve Lhomme
a787b06f83
d3d11_fmt: remove useless else after return
2018-12-19 16:43:40 +01:00
Rémi Denis-Courmont
109db26541
i420_rgb: recompute shifts from masks
2018-12-17 19:43:27 +02:00
Rémi Denis-Courmont
94926d9899
i420_rgb: use unsigned index
...
This avoids overflowing into the sign bit when shifting to left.
Also stop caring about alleged GCC 3.4 bugs.
2018-12-17 19:43:27 +02:00
Rémi Denis-Courmont
3678525fa2
i420_rgb: expand constant table values
2018-12-17 19:43:27 +02:00
Rémi Denis-Courmont
de5e7b5f1e
i420_rgb: expand constant parameter
2018-12-17 19:43:27 +02:00
Martin Storsjö
0d26efa13d
direct3d11: Fix operator precedence
...
This was broken since 1088780784
.
2018-12-17 16:21:00 +02:00
Rémi Denis-Courmont
e6f89b02c7
picture: factor freeing picture_t
...
Due to private members, manually allocating a picture has not been
possible for a while. So we can assume that all picture_t are allocated
with either picture_NewFromResource() or picture_NewFromFormat().
And we can then just factor the final free() call.
2018-12-12 19:56:02 +02:00
Steve Lhomme
22c46739c5
video: don't do else after a return
2018-12-11 16:18:06 +01:00
Steve Lhomme
732e5cbfdf
d3d9: make sure external devices also set the adapterId and device caps
2018-12-07 16:49:42 +01:00
Steve Lhomme
1088780784
d3d11: allow creating a device for a specific adapter
...
Not used for now but it works.
2018-11-30 11:54:19 +01:00
Rémi Denis-Courmont
f11e4fcf9b
omxdl: avoid integer to pointer conversion
2018-11-20 21:59:00 +02:00
Steve Lhomme
ce5f4d712f
d3d11: add a way to create a d3d11_device_t from an external ID3D11DeviceContext
2018-11-20 09:15:29 +01:00
Steve Lhomme
c59315fdce
d3d9: add a way to create d3d9_handle_t and d3d9_device_t from external resources
2018-11-15 13:51:46 +01:00
Steve Lhomme
70b401cbbc
direct3d9: use the class names rather than all-capital names
...
It matches the API calls better and is more readable.
2018-11-15 13:17:01 +01:00
Steve Lhomme
f6a25bd66d
direct3d11: pick the output format based on chroma subsampling
...
Don't subsample if we don't have to.
In any case we can display in YUVA or RGBA that have no subsampling.
Fixes #20421
2018-10-15 14:28:53 +02:00
Steve Lhomme
30b8c2f7e2
d3d9_fmt: log some device values as hexadecimal
...
it's more readable this way
2018-10-09 14:55:13 +02:00
Francois Cartegnie
cff37e0913
video_converter: i420_rgb: handle missing RGB masks
2018-09-25 16:22:15 +02:00
Francois Cartegnie
b3c301b615
video_converter: i420_rgb: lazy alloc conversion buffer
...
Quote from A heap overflow world
"4K ought to be enough for anybody"
2018-09-25 16:20:08 +02:00
Francois Cartegnie
5162799228
vfilter: swswale: improve error message
2018-09-04 11:57:25 +02:00
Thomas Guillem
d0de1ecd59
chroma: cvpx: fix possible buffer overflow
...
cf. https://code.videolan.org/videolan/vlc-ios/issues/261
A lot of crashes happen when doing the CVPX HW -> SW conversion. Unfortunately,
I was unable to reproduce it.
My best guess is that this buffer overflow is caused by the i_visible_height
that is too big. This value should be correct since it comes from the hxxx
packetizer, but it may be different from the actual height of the cvpx buffer.
2018-08-09 13:30:13 +02:00
Steve Lhomme
ef69fb83f6
d3d11: test if a texture format can be used before deciding to use it
...
Some formats are not handled properly by drivers and so we should fallback
to working ones when looking for a display format.
Ref #19162
Ref #20681 (work around the conversion issue which I can't reproduce)
2018-08-07 13:43:43 +02:00
Steve Lhomme
58739768a0
d3d11_fmt: pass an object and a d3d11_device_t to FindD3D11Format()
...
So we can test for more errors and log them.
2018-08-07 13:43:43 +02:00
Steve Lhomme
24a7b990be
direct3d11: support RGBA64 playback
...
This is the best option to display software RGB sources above 8 bits.
Ref #19563 which wouldn't play on 4.0 otherwise
2018-08-03 08:30:35 +02:00
Steve Lhomme
cba3f79cd3
direct3d11: rename resourceView to renderSrc
...
and D3D11_AllocateShaderView() to D3D11_AllocateResourceView()
2018-08-02 13:05:23 +02:00
Hugo Beauzée-Luyssen
0d7d3f6e7a
d3d11: Store context_mutex in the DeviceContext private data
...
And create it as soon as the DeviceContext is created so they have the same
lifetime.
2018-08-02 13:05:19 +02:00
A. Wilcox
1139dbe59f
video_chroma: test properly on big-endian
...
Close #20937
Signed-off-by: Filip Roséen <filip@atch.se>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2018-08-01 15:17:57 +02:00
Thomas Guillem
09d421a208
copy: do not copy more than the cache width on cache
2018-07-24 11:40:03 +02:00
Steve Lhomme
3123b0e915
copy: do not copy more than the destination pitch on split planes
...
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
2018-07-24 11:39:48 +02:00
Zhao Zhili
a3d8e30b56
d3d9_fmt and d3d11_fmt: inline ActivePictureSys()
...
Fix static build.
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
2018-07-12 09:13:09 +02:00
Steve Lhomme
6dd231f7e0
d3d11_fmt: keep the modified build number once and for all
2018-06-25 17:55:51 +02:00
Rémi Denis-Courmont
537ef170ca
filter: use constant callback structures
2018-06-10 15:37:00 +03:00
Steve Lhomme
6cca704dc7
d3d11_fmt: always show the driver found
...
Even in release builds to fix debugging issues
2018-06-04 17:21:50 +02:00
Steve Lhomme
f745b07ac9
dxgi_fmt: add DxgiFourccFormat()
2018-05-28 13:24:20 +02:00
Steve Lhomme
fdcd44202a
d3d11_fmt: simplify AllocateTextures() calls
2018-05-28 13:24:20 +02:00
Steve Lhomme
97db6a846b
d3d11_fmt: only list the remaining objects before unloading the DLLs
2018-05-28 13:24:20 +02:00
Steve Lhomme
ce51968ce0
d3d11_shaders: add support for DXGI_FORMAT_AYUV rendering
2018-05-28 13:24:20 +02:00
Steve Lhomme
6270679d7b
direct3d11: move the shader DLL loading in libd3d11_common
2018-05-28 13:24:17 +02:00
Steve Lhomme
1378baeb5c
hw:d3d11: rename AllocateShaderView() to D3D11_AllocateShaderView()
2018-05-28 13:24:16 +02:00
Steve Lhomme
64add10dc1
hw:d3d11: make the VideoProcessor logging local to D3D11_CreateProcessor
2018-05-28 13:24:15 +02:00
Steve Lhomme
717daca1c6
d3d11_fmt: add helpers to lock/unlock the D3D11VideoContext
2018-05-28 13:24:13 +02:00
Steve Lhomme
369cf77c1f
d3d11: move the D3D11DeviceContext mutex storage in d3d11_device_t
2018-05-28 13:24:13 +02:00
Romain Vimont
35dd7a8f18
core: remove global picture_sys_t typedef
...
Replace picture_sys_t* by void* in picture_resource_t, and remove its
typedef in vlc_common.h (for ODR).
This implies to use void* for private data in the vaapi.
See #17078 and #18033
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2018-04-30 17:10:14 +02:00