Seungha Yang
59a1897c39
d3d11: Privatize d3d11memory implementation
...
Hide most of symbols of GstD3D11Memory object.
GstD3D11Memory is one of primary resource for imcoming d3d11 library
and it's expected to be a extensible feature.
Hiding implementation detail would be helpful for later use case.
Summary of this commit:
* Now all native Direct3D11 resources are private of GstD3D11Memory.
To access native resources, getter methods need to be used
or generic map (e.g., gst_memory_map) API should be called
apart from some exceptional case such as d3d11decoder case.
* Various helper methods are added for GstBuffer related operations
and in order to remove duplicated code.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1892 >
2020-12-21 01:02:37 +09:00
Seungha Yang
f9a0efe3ed
d3d11h264dec: Add support for interlaced stream
...
Add support for interlaced stream.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1534 >
2020-11-13 15:25:43 +00:00
Seungha Yang
0bb73ec800
d3d11decoder: Get rid of framerate field from pad template
...
Framerate is optional value and we don't have any framerate
related restriction for those elements. This commit is to fix
negotiation failure when upstream doesn't set framerate on caps.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1747 >
2020-11-01 00:51:46 +09:00
Seungha Yang
f615677051
d3d11decoder: Directly access ID3D11VideoDecoderOutputView for decoding
...
Decoder output view is stored in GstD3D11Memory object instead of
wrapper struct now. So qdata is no more required.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1712 >
2020-10-20 17:56:57 +09:00
He Junyan
edc6e0fa1d
d3d11: vp8dec: No need to check show_frame flag when output_picture.
...
The VP8 base class has already handled it for us.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1670 >
2020-10-15 19:01:54 +00:00
Seungha Yang
bb5ef4fd5b
d3d11decoder: Cleanup code
...
* Don't need to set pts/dts/duration on output buffer of frame.
it's handled by baseclass
* Remove meaningless debug output
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1567 >
2020-09-15 15:54:53 +00:00
Seungha Yang
deaa29bd96
codecs: vp8decoder: Sync up with h264decoder implementation
...
Pass GstVideoCodecFrame with GstVp8Picture to new_picture() and
output_picture() methods for subclass to be able to reference
it directly.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1458 >
2020-07-23 15:48:05 -04:00
Seungha Yang
bc99ea1e30
d3d11decoder: Disable zero-copy for blacklisted device
...
Should enable it for verified devices. For now, Xbox is blacklisted
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1339 >
2020-06-16 10:49:02 +00:00
Seungha Yang
d9c552802e
d3d11vp8dec: Remove useless assign operation
...
It's already been done in the line just above.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1246 >
2020-05-05 16:37:14 +00:00
Nicolas Dufresne
ed6236f551
d3d11vp8dec: Remove unused parameters
...
Minor cleanup removing unused picture parameters in two internal functions.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1221 >
2020-04-28 06:21:53 +00:00
Seungha Yang
2fe473fa50
d3d11decoder: Fix wrong return type from output_picture vfunc
...
Return type should be GstFlowReturn, not gboolean
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1213 >
2020-04-23 22:06:24 +00:00
Seungha Yang
15365aba70
d3d11decoder: Add VP8 decoder element
...
New d3d11 VP8 decoder implementation
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1079 >
2020-04-22 23:20:44 +00:00