vlc.git
4 years agomacOS: Change MediaInfo panel xib target to 10.7
Marvin Scholz [Sat, 17 Jun 2017 00:30:26 +0000 (02:30 +0200)]
macOS: Change MediaInfo panel xib target to 10.7

4 years agomacOS: Change label font on MediaInfo panel
Marvin Scholz [Sat, 17 Jun 2017 00:29:42 +0000 (02:29 +0200)]
macOS: Change label font on MediaInfo panel

4 years agomacOS: Use VLCHUDButtonCell on MediaInfo panel
Marvin Scholz [Sat, 17 Jun 2017 00:27:40 +0000 (02:27 +0200)]
macOS: Use VLCHUDButtonCell on MediaInfo panel

4 years agomacOS: Fix copy/paste mistake in license header
Marvin Scholz [Sat, 17 Jun 2017 00:24:55 +0000 (02:24 +0200)]
macOS: Fix copy/paste mistake in license header

4 years agomacOS: Do not draw custom VLCHUDTextFieldCell on 10.10+
Marvin Scholz [Sat, 17 Jun 2017 00:23:17 +0000 (02:23 +0200)]
macOS: Do not draw custom VLCHUDTextFieldCell on 10.10+

4 years agomacOS: Fix drawing of VLCHUDTextFieldCell
Marvin Scholz [Sat, 17 Jun 2017 00:17:16 +0000 (02:17 +0200)]
macOS: Fix drawing of VLCHUDTextFieldCell

This fixes drawing of VLCHUDTextFieldCell by using the code from
BGHUDAppKit.

4 years agohw: vaapi: chroma: fix uninitialized var usage
Thomas Guillem [Fri, 16 Jun 2017 16:08:36 +0000 (18:08 +0200)]
hw: vaapi: chroma: fix uninitialized var usage

4 years agoavcodec: vaapi: fix invalid release in case of failure
Thomas Guillem [Fri, 16 Jun 2017 15:37:40 +0000 (17:37 +0200)]
avcodec: vaapi: fix invalid release in case of failure

4 years agoavcodec: va: disable VAAPI 10bits for now
Thomas Guillem [Fri, 16 Jun 2017 15:36:42 +0000 (17:36 +0200)]
avcodec: va: disable VAAPI 10bits for now

4 years agoSCTE-27: simplify fmt codec definition and avoid crash
Jean-Baptiste Kempf [Fri, 16 Jun 2017 14:25:50 +0000 (16:25 +0200)]
SCTE-27: simplify fmt codec definition and avoid crash

4 years agoavcodec: vaapi: add direct rendering support
Thomas Guillem [Fri, 19 May 2017 15:08:40 +0000 (17:08 +0200)]
avcodec: vaapi: add direct rendering support

4 years agoopengl: add converter_vaapi
Thomas Guillem [Fri, 10 Feb 2017 10:10:23 +0000 (11:10 +0100)]
opengl: add converter_vaapi

This converter allow to render a va_surface directly to a GL surface via EGL
(X11/WAYLAND and EXT_image_dma_buf_import[1]).

[1]: https://www.khronos.org/registry/EGL/extensions/EXT/EGL_EXT_image_dma_buf_import.txt.

4 years agoconfigure: add HAVE_VAAPI_X11 check
Thomas Guillem [Fri, 16 Jun 2017 14:16:55 +0000 (16:16 +0200)]
configure: add HAVE_VAAPI_X11 check

4 years agoavcodec: vaapi: use vlc_vaapi helpers
Thomas Guillem [Thu, 15 Jun 2017 15:56:25 +0000 (17:56 +0200)]
avcodec: vaapi: use vlc_vaapi helpers

This module will now always output opaque VLC_CODEC_VAAPI_420 pictures.
For cpu rendering, we now use the vaapi chroma filter.
Remove the Extract implementation.

4 years agoavcodec: vaapi: refactor
Thomas Guillem [Tue, 25 Apr 2017 16:21:31 +0000 (18:21 +0200)]
avcodec: vaapi: refactor

4 years agohw: vaapi: add chroma conversion GPU <=> CPU
Victorien Le Couviour--Tuffet [Fri, 19 May 2017 14:29:32 +0000 (16:29 +0200)]
hw: vaapi: add chroma conversion GPU <=> CPU

VA_OPAQUE(NV12) <=> I420
VA_OPAQUE(P010) <=> I420_10b (not implemented yet, but planned where the code will
                              take place)

4 years agohw: vaapi: add pictures and pool helpers
Thomas Guillem [Fri, 16 Jun 2017 10:01:29 +0000 (12:01 +0200)]
hw: vaapi: add pictures and pool helpers

4 years agohw: vaapi: add wrappers functions
Victorien Le Couviour--Tuffet [Fri, 16 Jun 2017 09:14:45 +0000 (11:14 +0200)]
hw: vaapi: add wrappers functions

4 years agohw: vaapi: add instance dynamic library
Victorien Le Couviour--Tuffet [Tue, 23 Aug 2016 09:50:49 +0000 (12:50 +0300)]
hw: vaapi: add instance dynamic library

This dynamic library holds the current VADisplay instance.

4 years agoconfigure: add HAVE_VAAPI check
Thomas Guillem [Fri, 10 Feb 2017 10:06:21 +0000 (11:06 +0100)]
configure: add HAVE_VAAPI check

4 years agofourcc: add VAAPI opaque chroma
Thomas Guillem [Tue, 23 Aug 2016 09:50:30 +0000 (12:50 +0300)]
fourcc: add VAAPI opaque chroma

4 years agozvbi: Simplify fmt_out initialization
Hugo Beauzée-Luyssen [Fri, 16 Jun 2017 13:27:29 +0000 (15:27 +0200)]
zvbi: Simplify fmt_out initialization

4 years agozvbi: Remove trailing whitespaces
Hugo Beauzée-Luyssen [Fri, 16 Jun 2017 13:22:28 +0000 (15:22 +0200)]
zvbi: Remove trailing whitespaces

4 years agozvbi: Don't write in es_format_t::video_format_t when i_cat is SPU
Hugo Beauzée-Luyssen [Fri, 16 Jun 2017 13:20:14 +0000 (15:20 +0200)]
zvbi: Don't write in es_format_t::video_format_t when i_cat is SPU

This fixes a crash where we would end up passing VLC_CODEC_TEXT or
VLC_CODEC_RGBA to free()

4 years agomacosx: Fix frame of main window gradient view
David Fuhrmann [Fri, 16 Jun 2017 09:07:32 +0000 (11:07 +0200)]
macosx: Fix frame of main window gradient view

4 years agointerrupt: inline one function
Rémi Denis-Courmont [Thu, 15 Jun 2017 19:31:04 +0000 (22:31 +0300)]
interrupt: inline one function

4 years agointerrupt: simplify using thread_local
Rémi Denis-Courmont [Thu, 15 Jun 2017 19:30:02 +0000 (22:30 +0300)]
interrupt: simplify using thread_local

4 years agointerrupt: remove debug flag
Rémi Denis-Courmont [Thu, 15 Jun 2017 19:27:29 +0000 (22:27 +0300)]
interrupt: remove debug flag

4 years agointerrupt: extend test cases
Rémi Denis-Courmont [Thu, 15 Jun 2017 19:27:19 +0000 (22:27 +0300)]
interrupt: extend test cases

4 years agomacosx: Fix controls bar state for playlist toggling
David Fuhrmann [Thu, 15 Jun 2017 19:03:38 +0000 (21:03 +0200)]
macosx: Fix controls bar state for playlist toggling

In enabled native fullscreen, fix playlist toggling (this is
possible via main menu).

4 years agomacosx: Fix hiding of controls bar in native fullscreen
David Fuhrmann [Thu, 15 Jun 2017 18:32:55 +0000 (20:32 +0200)]
macosx: Fix hiding of controls bar in native fullscreen

Introduce helper methods to hide and unhide the controls bar
correctly in all cases.

4 years agomacOS: Fix drawing of VLCHUDSliderCell track
Marvin Scholz [Thu, 15 Jun 2017 11:37:27 +0000 (13:37 +0200)]
macOS: Fix drawing of VLCHUDSliderCell track

4 years agomacOS: Don't draw custom VLCHUDSegmentedCell on 10.10+
Marvin Scholz [Thu, 15 Jun 2017 10:23:01 +0000 (12:23 +0200)]
macOS: Don't draw custom VLCHUDSegmentedCell on 10.10+

On 10.10 and higher the appearance the system uses for the
VLCHUDSegmentedCell is already adapted for HUD panels, no need
for this replacement.

4 years agomacOS: Draw dividers for VLCHUDSegmentedCell
Marvin Scholz [Thu, 15 Jun 2017 10:16:27 +0000 (12:16 +0200)]
macOS: Draw dividers for VLCHUDSegmentedCell

4 years agomacOS: Use VLCHUDSegmentedCell in MediaInfo panel
Marvin Scholz [Thu, 15 Jun 2017 00:32:22 +0000 (02:32 +0200)]
macOS: Use VLCHUDSegmentedCell in MediaInfo panel

4 years agomacOS: Fix VLCHUDSegmentedCell text drawing
Marvin Scholz [Thu, 15 Jun 2017 00:31:56 +0000 (02:31 +0200)]
macOS: Fix VLCHUDSegmentedCell text drawing

The custom cell would draw the text at the wrong location, this is
fixed by this commit. Additionally a lot of cleanup and restructuring
was done.

4 years agoRevert "hotkeys: Reset scale to screen when zooming"
Hugo Beauzée-Luyssen [Thu, 15 Jun 2017 09:25:27 +0000 (11:25 +0200)]
Revert "hotkeys: Reset scale to screen when zooming"

This reverts commit e287366ad9d6d9b85e913b03be54ac15f4e8873a.
This was an invalid way of fixing #18258
Having the fullscreen state properly propagated to the vout_display
fixes the issue in a more proper way

4 years agovideo_output: display: Don't ignore fullscreen state changes
Thomas Guillem [Thu, 15 Jun 2017 12:52:28 +0000 (14:52 +0200)]
video_output: display: Don't ignore fullscreen state changes

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
4 years agovariables: Use thread_local
Hugo Beauzée-Luyssen [Thu, 15 Jun 2017 14:17:47 +0000 (16:17 +0200)]
variables: Use thread_local

4 years agovlc_fixup: Provide a thread_local macro
Hugo Beauzée-Luyssen [Thu, 15 Jun 2017 14:17:06 +0000 (16:17 +0200)]
vlc_fixup: Provide a thread_local macro

4 years agovideo_output: Use the appropriate vout_display_ event wrappers
Hugo Beauzée-Luyssen [Thu, 15 Jun 2017 12:43:39 +0000 (14:43 +0200)]
video_output: Use the appropriate vout_display_ event wrappers

4 years agoqt: Remove unused include
Hugo Beauzée-Luyssen [Wed, 14 Jun 2017 15:55:48 +0000 (17:55 +0200)]
qt: Remove unused include

4 years agocontrib: libarchive: don't force a path with windows.h on other targets than Android
Steve Lhomme [Wed, 14 Jun 2017 12:02:00 +0000 (14:02 +0200)]
contrib: libarchive: don't force a path with windows.h on other targets than Android

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
4 years agomediacodec: fix WMV3
Thomas Guillem [Wed, 14 Jun 2017 14:56:27 +0000 (16:56 +0200)]
mediacodec: fix WMV3

WMV3 blocks don't need to be pre-processed like VC1 ones.
This fixes a regression introduced by 8ca8549c38ed9376534e579a21a66f70c91dff6e.

4 years agocontrib: only force CMAKE_RC_COMPILER when cross compiling
Steve Lhomme [Wed, 14 Jun 2017 12:01:53 +0000 (14:01 +0200)]
contrib: only force CMAKE_RC_COMPILER when cross compiling

The default rule (does) work on mingw

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
4 years agocontrib: cmake: set the Debug/Release target depending on the bootstrap flags
Steve Lhomme [Wed, 14 Jun 2017 12:01:52 +0000 (14:01 +0200)]
contrib: cmake: set the Debug/Release target depending on the bootstrap flags

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
4 years agodirect3d9: picture->p_sys is never NULL
Steve Lhomme [Wed, 14 Jun 2017 13:48:51 +0000 (15:48 +0200)]
direct3d9: picture->p_sys is never NULL

CID #1444702

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
4 years agodxa9: fix hd3d_dll leaking
Steve Lhomme [Wed, 14 Jun 2017 13:48:50 +0000 (15:48 +0200)]
dxa9: fix hd3d_dll leaking

CID #1444701

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
4 years agodirect3d11: fix dxgiadapter error test
Steve Lhomme [Wed, 14 Jun 2017 13:48:49 +0000 (15:48 +0200)]
direct3d11: fix dxgiadapter error test

CID #1444700

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
4 years agod3d11va: don't go further if we don't know the format to decode to
Steve Lhomme [Wed, 14 Jun 2017 13:48:48 +0000 (15:48 +0200)]
d3d11va: don't go further if we don't know the format to decode to

CID #1444698

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
4 years agodirect3d11: make sur we have a picture->context with D3D11 opaque input
Steve Lhomme [Wed, 14 Jun 2017 13:48:47 +0000 (15:48 +0200)]
direct3d11: make sur we have a picture->context with D3D11 opaque input

CID #1444697

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
4 years agod3d11_deinterlace: fix p_sys test
Steve Lhomme [Wed, 14 Jun 2017 13:48:46 +0000 (15:48 +0200)]
d3d11_deinterlace: fix p_sys test

It's the output picture coming from the vout, it should not have a picture->context

CID #1444696

Signed-off-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
4 years agocontrib: bluray: Bump to 1.0.1
Hugo Beauzée-Luyssen [Wed, 14 Jun 2017 14:31:56 +0000 (16:31 +0200)]
contrib: bluray: Bump to 1.0.1

4 years agoogg: Add missing return value
Hugo Beauzée-Luyssen [Wed, 14 Jun 2017 13:06:02 +0000 (15:06 +0200)]
ogg: Add missing return value

CID #1412639

4 years agodirect3d11: Simplify
Hugo Beauzée-Luyssen [Wed, 14 Jun 2017 13:02:50 +0000 (15:02 +0200)]
direct3d11: Simplify

4 years agodirect3d11: Fix resize detection
Hugo Beauzée-Luyssen [Wed, 14 Jun 2017 09:34:00 +0000 (11:34 +0200)]
direct3d11: Fix resize detection

Fix #18394

4 years agowin32 vout: Don't account for a container when computing full screen size
Hugo Beauzée-Luyssen [Tue, 13 Jun 2017 16:29:30 +0000 (18:29 +0200)]
win32 vout: Don't account for a container when computing full screen size

This fixes toggling fullscreen when video isn't embedded on a multi
monitor setup

4 years agodemux: ogg: fix GET_TIME/POSITION on chained streams gap
Francois Cartegnie [Tue, 13 Jun 2017 15:57:35 +0000 (17:57 +0200)]
demux: ogg: fix GET_TIME/POSITION on chained streams gap

4 years agodemux: ogg: don't trigger preroll state from chained content
Francois Cartegnie [Tue, 13 Jun 2017 15:56:09 +0000 (17:56 +0200)]
demux: ogg: don't trigger preroll state from chained content

avoids audio cut/rebuffering
invalid stamps still cause minor glitch

4 years agodemux: ogg: fix chained offset on continued pages
Francois Cartegnie [Tue, 13 Jun 2017 15:44:47 +0000 (17:44 +0200)]
demux: ogg: fix chained offset on continued pages

4 years agomacOS: Add VLCHUDSegmentedCell
Marvin Scholz [Tue, 13 Jun 2017 21:26:55 +0000 (23:26 +0200)]
macOS: Add VLCHUDSegmentedCell

4 years agomacOS: Use VLCHUDOutlineView in MediaInfo panel
Marvin Scholz [Tue, 13 Jun 2017 10:51:14 +0000 (12:51 +0200)]
macOS: Use VLCHUDOutlineView in MediaInfo panel

4 years agomacOS: Add VLCHUDOutlineView
Marvin Scholz [Tue, 13 Jun 2017 10:51:01 +0000 (12:51 +0200)]
macOS: Add VLCHUDOutlineView

4 years agomacOS: Use VLCHUDScroller in MediaInfo panel
Marvin Scholz [Tue, 13 Jun 2017 09:32:22 +0000 (11:32 +0200)]
macOS: Use VLCHUDScroller in MediaInfo panel

4 years agomacOS: Add VLCHUDScroller
Marvin Scholz [Tue, 13 Jun 2017 09:31:38 +0000 (11:31 +0200)]
macOS: Add VLCHUDScroller

4 years agoRevert "macOS: Set correct fullscreen window level"
Marvin Scholz [Mon, 12 Jun 2017 20:56:05 +0000 (22:56 +0200)]
Revert "macOS: Set correct fullscreen window level"

This reverts commit 6aa13aa2e52633e453ddae2e6c09a3c3c4d94e0a.
It was intended to fix #18117 (Menubar visible in fullscreen)
but broke different things and additonally changed behaviour
in ways that might be confusing for some users.

4 years agomisc: ensure vlc_object_t is correctly aligned
Rémi Denis-Courmont [Tue, 13 Jun 2017 19:31:50 +0000 (22:31 +0300)]
misc: ensure vlc_object_t is correctly aligned

To hide private data before (and/or after) public data, we normally
embed the public data within the private data structure. This ensures
proper alignment.

For VLC objects, that was unfortunately not an option, since the type of
the public data varies with the VLC object sub-classes. Thus the size,
and potentially the alignment, also vary.

This change ensures that the private data have the maximum possible
normal alignment. That will be adequate regardless of the public data
type.

4 years agodirect3d11: fix the staging texture dimensions
Steve Lhomme [Thu, 8 Jun 2017 15:12:26 +0000 (17:12 +0200)]
direct3d11: fix the staging texture dimensions

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodirectx_va: destroy the decoder at the same time as its surfaces
Steve Lhomme [Fri, 2 Jun 2017 09:00:12 +0000 (11:00 +0200)]
directx_va: destroy the decoder at the same time as its surfaces

The interface release is also strongly typed

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodirectx_va: no need to allocate dummy pictures anymore
Steve Lhomme [Tue, 6 Jun 2017 16:55:10 +0000 (18:55 +0200)]
directx_va: no need to allocate dummy pictures anymore

We don't use their local picture_sys_t anymore

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agovideo_chroma:d3d9: add a module to convert from CPU to GPU textures
Steve Lhomme [Tue, 6 Jun 2017 14:49:59 +0000 (16:49 +0200)]
video_chroma:d3d9: add a module to convert from CPU to GPU textures

And set a picture->context as if it's coming from the decoder, otherwise
snapshots won't work.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agovideo_chroma:d3d11: add a module to convert from CPU to GPU textures
Steve Lhomme [Tue, 6 Jun 2017 14:27:08 +0000 (16:27 +0200)]
video_chroma:d3d11: add a module to convert from CPU to GPU textures

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agod3d11va: fix crash on copy
Steve Lhomme [Wed, 7 Jun 2017 15:17:47 +0000 (17:17 +0200)]
d3d11va: fix crash on copy

following f7084c0f5a8ed40bbdb53184df42b5335abc86fd

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodxgi_fmt: test the resource format in FindD3D11Format if formatTexture is unknown
Steve Lhomme [Thu, 8 Jun 2017 13:05:39 +0000 (15:05 +0200)]
dxgi_fmt: test the resource format in FindD3D11Format if formatTexture is unknown

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agod3d11_fmt: pass the whole texture array to AllocateShaderView()
Steve Lhomme [Thu, 8 Jun 2017 12:48:51 +0000 (14:48 +0200)]
d3d11_fmt: pass the whole texture array to AllocateShaderView()

For CPU formats mapped to GPU each texture of the array may be different.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agod3d_fmt: add a function to acquire the resources used in the picture_sys_t
Steve Lhomme [Wed, 7 Jun 2017 09:53:26 +0000 (11:53 +0200)]
d3d_fmt: add a function to acquire the resources used in the picture_sys_t

This is the reverse of ReleasePictureSys

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agovout: win32: move the GPU to CPU picture buffer mapping in copy
Steve Lhomme [Tue, 6 Jun 2017 15:15:24 +0000 (17:15 +0200)]
vout: win32: move the GPU to CPU picture buffer mapping in copy

It may be used by other modules, even though it seems Windows is the only one
to provide a pitch for the main plane.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodxva2: the decoder sets the surface in the picture->context, not picture_sys_t
Steve Lhomme [Mon, 29 May 2017 14:23:13 +0000 (16:23 +0200)]
dxva2: the decoder sets the surface in the picture->context, not picture_sys_t

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agod3d11va: the decoder sets the surface in the picture->context, not picture_sys_t
Steve Lhomme [Mon, 29 May 2017 14:34:57 +0000 (16:34 +0200)]
d3d11va: the decoder sets the surface in the picture->context, not picture_sys_t

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodirect3d11: move AllocateShaderView() in d3d11_fmt.h
Steve Lhomme [Mon, 29 May 2017 11:45:30 +0000 (13:45 +0200)]
direct3d11: move AllocateShaderView() in d3d11_fmt.h

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodirect3d11: make AllocateShaderView() more generic
Steve Lhomme [Mon, 29 May 2017 11:36:24 +0000 (13:36 +0200)]
direct3d11: make AllocateShaderView() more generic

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodirectx_va: stronger typing of va_surface in picture_sys_t
Steve Lhomme [Tue, 6 Jun 2017 16:48:26 +0000 (18:48 +0200)]
directx_va: stronger typing of va_surface in picture_sys_t

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodirectx_va: let the surface deal with releasing its memory
Steve Lhomme [Mon, 29 May 2017 14:02:50 +0000 (16:02 +0200)]
directx_va: let the surface deal with releasing its memory

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodirectx_va: remove the unused lock
Steve Lhomme [Mon, 29 May 2017 13:16:46 +0000 (15:16 +0200)]
directx_va: remove the unused lock

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodirectx_va: rework the picture picking algorithm
Steve Lhomme [Tue, 6 Jun 2017 16:23:03 +0000 (18:23 +0200)]
directx_va: rework the picture picking algorithm

Just rely on an available atomic value to find a usable picture or wait for
the vout to release some pictures.
Similar to the algorithm found in avcodec/VDPAU.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodirectx_va: replace the internal reference counter by an atomic value
Steve Lhomme [Mon, 29 May 2017 13:11:58 +0000 (15:11 +0200)]
directx_va: replace the internal reference counter by an atomic value

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agod3d11va: do not use the vlc_va_surface_t picture anymore
Steve Lhomme [Mon, 29 May 2017 13:00:56 +0000 (15:00 +0200)]
d3d11va: do not use the vlc_va_surface_t picture anymore

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agod3d11va: make the internal pool usable with the pixel shader
Steve Lhomme [Mon, 29 May 2017 12:46:39 +0000 (14:46 +0200)]
d3d11va: make the internal pool usable with the pixel shader

That will save a copy later.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodirectx_va: pass the decoder surface via the returned vlc_va_surface_t
Steve Lhomme [Mon, 29 May 2017 12:40:37 +0000 (14:40 +0200)]
directx_va: pass the decoder surface via the returned vlc_va_surface_t

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodirectx_va: make each vlc_va_surface_t more independent
Steve Lhomme [Mon, 29 May 2017 12:28:17 +0000 (14:28 +0200)]
directx_va: make each vlc_va_surface_t more independent

Can be free'd independently

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodirectx_va: cleaning
Steve Lhomme [Mon, 29 May 2017 12:13:42 +0000 (14:13 +0200)]
directx_va: cleaning

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodirectx_va: merge local functions only called once
Steve Lhomme [Mon, 29 May 2017 12:12:36 +0000 (14:12 +0200)]
directx_va: merge local functions only called once

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodirectx_va: no need to store temporarily the number of threads
Steve Lhomme [Mon, 29 May 2017 12:01:34 +0000 (14:01 +0200)]
directx_va: no need to store temporarily the number of threads

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodirect3d11: do the D3D11_OPAQUE -> NV12 conversion outside of the decoder
Steve Lhomme [Mon, 29 May 2017 11:25:26 +0000 (13:25 +0200)]
direct3d11: do the D3D11_OPAQUE -> NV12 conversion outside of the decoder

d3d11_surface is automatically added since D3D11 forces NV12 input for
DXGI_FORMAT_420_OPAQUE decoding.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodirect3d11: detect early if DXGI_FORMAT_420_OPAQUE will be used by the decoder
Steve Lhomme [Mon, 29 May 2017 11:01:16 +0000 (13:01 +0200)]
direct3d11: detect early if DXGI_FORMAT_420_OPAQUE will be used by the decoder

We can't display it but we still need a proper texture format to display.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agod3d11va: don't use the external pool for NVIDIA hardware with too many slices
Steve Lhomme [Mon, 29 May 2017 10:48:17 +0000 (12:48 +0200)]
d3d11va: don't use the external pool for NVIDIA hardware with too many slices

Drivers crash during ID3D11VideoDevice::CreateVideoDecoderOutputView() if a
texture has more than 30 slices.

Fixes #18261

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agod3d11va: no need to type the intermediate recipient of QueryInterface results
Steve Lhomme [Mon, 29 May 2017 11:29:56 +0000 (13:29 +0200)]
d3d11va: no need to type the intermediate recipient of QueryInterface results

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agovideo_chroma:direct3d: only copy the visible lines to the CPU planes
Steve Lhomme [Fri, 2 Jun 2017 08:24:18 +0000 (10:24 +0200)]
video_chroma:direct3d: only copy the visible lines to the CPU planes

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agod3d11_surface: no matter what the texture height is given by the texture description
Steve Lhomme [Tue, 23 May 2017 11:47:08 +0000 (13:47 +0200)]
d3d11_surface: no matter what the texture height is given by the texture description

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
4 years agodxa9: the texture height is given by the texture description
Steve Lhomme [Wed, 24 May 2017 13:19:01 +0000 (15:19 +0200)]
dxa9: the texture height is given by the texture description

it doesn't matter what the format says

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>