summaryrefslogtreecommitdiff
path: root/gst-libs
Commit message (Collapse)AuthorAgeFilesLines
* transcoder: Remove un-needed gst_init callPhilippe Normand2021-02-261-2/+0
| | | | | | We can safely assume GStreamer is already initialized from here. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1840>
* transcoder: Port to a GstBus API insteadThibault Saunier2021-02-266-486/+705
| | | | | | | | Following the move made by GstPlayer in: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/35 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1840>
* transcoder: Automatically generate enums GTypesThibault Saunier2021-02-264-27/+21
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1840>
* transcoder: Port to G_DECLAREThibault Saunier2021-02-261-10/+6
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1840>
* codecs: AV1decoder: Add the AV1 decoder base class.He Junyan2021-02-235-0/+1146
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1636>
* d3d11: Add a method for conversion from DXGI format to GstVideoFormatSeungha Yang2021-02-172-0/+44
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2016>
* codecs: mpeg2decoder: Move frame_unref to handle_frame.He Junyan2021-02-111-2/+1
| | | | | | | | | | | | In the current code, we call frame_unref only when the frame is outputted. This is OK for normal playback, but when seek happens, the frames stored in DPB is not outputted and causes some memory leak. The correct way is that we should call frame_unref every time we finish the handle_frame(), which is also the behaviour of H264/H265 decoder. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2014>
* codecs: h265decoder: Add support for interlaced streamSeungha Yang2021-02-093-16/+166
| | | | | | | | | | | * Invoke GstH265DecoderClass::new_sequence() method per interlaced stream status update so that subclass can update caps. * Parse picture timing SEI and set buffer flags on GstH265Picture object. Subclass can refer to it like that of our h264decoder implementation. * Remove pointless GstH265PictureField enum Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2008>
* d3d11memory: Add a method for querying texture array sizeSeungha Yang2021-02-032-0/+53
| | | | | | | | | | ... and the number of textures in use. Direct3D11 texture array is usually used for decoder DPB pool, and d3d11 decoder elements might want to know whether there's available texture resource or not. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2003>
* codecs: h264decoder: Add support for output delaySeungha Yang2021-01-292-7/+92
| | | | | | | | | | | | Some decoding APIs support delayed output or a command for decoding a frame doesn't need to be sequential to corresponding command for getting decoded frame. For instance, subclass might be able to request decoding for multiple frames and then get for one (oldest) decoded frame or so. If aforementioned case is supported by specific decoding API, delayed output might show better throughput performance. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1925>
* d3d11: Suppress some warning debug messagesSeungha Yang2021-01-271-6/+13
| | | | | | | | | | | | | | | * Don't warn for live object, since ID3D11Debug itself seems to be holding refcount of ID3D11Device at the moment we called ID3D11Debug::ReportLiveDeviceObjects(). It would report live object always * Device might not be able to support some formats (e.g., P010) especially in case of WARP device. We don't need to warn about that. * gst_d3d11_device_new() can be used for device enumeration. Don't warn even if we cannot create D3D11 device with given adapter index therefore. * Don't warn for HLSL compiler warning. It's just noise and should not be critical thing at all Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1986>
* codecparsers: av1: Fix a typo in frame_restoration_type setting.He Junyan2021-01-231-3/+3
| | | | | Fixes: #1500 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1974>
* vulkan: remove duplicated checkMatthew Waters2021-01-221-2/+0
| | | | | | | | Checking the same value twice is pointless Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1504 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1977>
* codecparsers: Exclude the size of obu_size when identify OBU.He Junyan2021-01-191-1/+5
| | | | | | | obu->obu_size does not contain the bytes of obu_size itself, we need to exclude it when doing the saint check. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1614>
* codecs: mpeg2decoder: Fix a typo in header file's comment.He Junyan2021-01-201-1/+1
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1963>
* d3d11: Allow building UWP features with Desktop features if possibleSeungha Yang2021-01-192-6/+11
| | | | | | | | WINAPI_PARTITION_DESKTOP and WINAPI_PARTITION_APP can coexist. Although UWP only binaries should be used for production stage, this change will be useful for development stage Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1962>
* webrtc: expose transport property on sender and receiverMathieu Duponchelle2021-01-132-1/+42
| | | | | | | | | | | | As advised by !1366#note_629558 , the nice transport should be accessed through: > transceiver->sender/receiver->transport/rtcp_transport->icetransport All the objects on the path can be accessed through properties except sender/receiver->transport. This patch addresses that. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1952>
* d3d11: Move core methods to gst-libsSeungha Yang2021-01-1317-0/+4767
| | | | | | | | | | | | Move d3d11 device, memory, buffer pool and minimal method to gst-libs so that other plugins can access d3d11 resource. Since Direct3D is primary graphics API on Windows, we need this infrastructure for various plugins can share GPU resource without downloading GPU memory. Note that this implementation is public only for -bad scope for now. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/464>
* codecs: h264picture: Count only complete complementary field pair for dpb ↵Seungha Yang2021-01-101-2/+3
| | | | | | | | | | fullness decision Our DPB implementation was designed as such that allowing temporary DPB overflow in the middle of field picture decoding and incomplete field pair should not trigger DPB bumping. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1947>
* codecs: h264decoder: Add support for field-pair input frameSeungha Yang2021-01-101-2/+30
| | | | | | | | In case that upstream pushed buffer as a frame unit, not picture unit for interlaced stream, baseclass should be able to detect AU boundary (i.e., complementary field pair). Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1947>
* codecs: h264decoder: Remove unused private variablesSeungha Yang2021-01-101-22/+19
| | | | | | ... and reset() method to clear internal status at one place Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1947>
* codecs: mpeg2decoder: decode only if B and not closed gopVíctor Manuel Jáquez Leal2021-01-061-0/+5
| | | | | | | Mark as decode only if picture type is B, without previous picture in DBP and closed_gop is 0 as might be understood in "6.3.8 Group of pictures header". Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1939>
* codecs: mpeg2decoder: rename variablesVíctor Manuel Jáquez Leal2021-01-061-3/+4
| | | | | | | Since prev_picture and next_picture are plain pointers, not pointer to pointers, it's misleading to name them with _ptr suffix. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1939>
* codecs: mpeg2decoder: Creating the field based on its arriving time.He Junyan2021-01-041-16/+5
| | | | | | | | | | | | | | | | Spec says: In a frame picture top_field_first being set to ‘1’ indicates that the top field of the reconstructed frame is the first field output by the decoding process. top_field_first being set to ‘0’ indicates that the bottom field of the reconstructed frame is the first field output by decoding process. Here, the "output" should be interpreted just as the output order, not including the decoding order. The field should be decoded as the order they comes in the stream. Namely, no matter top_field_first is 0 or 1, the first coming field is the first one to be decoded. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1929>
* codecs: Add buffer_flags for mpeg2 picture.He Junyan2021-01-042-0/+8
| | | | | | | | We need to store the buffer flags such as GST_VIDEO_BUFFER_FLAG_INTERLACED and GST_VIDEO_BUFFER_FLAG_TFF for interlaced video. Without these flags, the VPP and display elements can not apply filter correctly. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1929>
* codecs: Reset the quant matrices for each sequence in mpeg2 decoder.He Junyan2021-01-041-1/+5
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1929>
* codecs: Fix a typo in mpeg2 stateless decoder base class.He Junyan2020-12-281-1/+1
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1915>
* codecs: mpeg2decoder: fix documentationVíctor Manuel Jáquez Leal2020-12-284-10/+93
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1798>
* codecs: mpeg2decoder: simplify macrosVíctor Manuel Jáquez Leal2020-12-281-88/+100
| | | | | | | | For constructors, instead of casting to pointers, cast to the structures. For compare, use inlined functions. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1798>
* codecs: Add mpeg2 stateless decoder base class.He Junyan2020-12-285-0/+1807
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1798>
* mpegts: Add support for SIT sectionsEdward Hervey2020-12-145-0/+243
| | | | | | Selection Information Tables (EN 300 468) Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1852>
* mpegts: Update documentationEdward Hervey2020-12-1417-386/+831
| | | | | | | | * Split up into appropriate individual header files * Document more sections and structures * Add well-known list of registration id Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1879>
* player/transcoder: Use bus signal watchThibault Saunier2020-12-142-14/+4
| | | | | | | | | | | Instead of implementing exactly the same thing ourself but making `GstBus` not know that it is the case. Since we are *sure* that the bus can't have been access at the point where we add the watch we are guaranteed that the current thread maincontext is going to be used. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1870>
* gst-libs/gst/wayland: Install "unstable" wayland headerMarius Vlad2020-12-031-1/+2
| | | | | | | | | | Context creation and retrieval is required, the symbols are exported with the header missing. Users most likely define GST_USE_UNSTABLE_API so they're aware of the implications of using a header that might change between releases. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1688>
* adaptivedemux: Don't log with non-GObject objectsSebastian Dröge2020-12-021-5/+7
| | | | | | | | Instead of using the streams, log with the pad of the streams. https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1457 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1844>
* transcoder: Handle the case where several errors are postedThibault Saunier2020-11-301-2/+12
| | | | | There were cases where the loop was already destroyed when we were receiving the following message.
* transcoder: Minor refactoring to output better debug logsThibault Saunier2020-11-301-15/+19
|
* player: Fix get_current_subtitle_track annotationPhilippe Normand2020-11-251-1/+1
| | | | | | | As the info returned is a new object, the annotation should be transfer-full, similarly to the get_current_{audio,video}_track() implementations. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1775>
* webrtc: Also remove rtcp_transport from the structureOlivier Crête2020-11-244-14/+2
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1765>
* webrtc: Remove APIs to set transport on sender/receiverOlivier Crête2020-11-244-36/+0
| | | | | | They're not not used ever. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1765>
* webrtc: Remove non rtcp-mux codeOlivier Crête2020-11-246-48/+6
| | | | | | RTCP mux is now always required by the WebRTC spec Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1765>
* codecs: h264decoder: fix memory leakVíctor Manuel Jáquez Leal2020-11-231-1/+3
| | | | | | | | gst_h264_dbp_get_picture_all() returns a full transfer of the GArray, which needs be unrefed. But it is not unrefed in gst_h264_decoder_find_first_field_picture() leaking it. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1827>
* mpegts: Documentation fixesEdward Hervey2020-11-214-12/+5
| | | | | | gtk-doc was complaining :) Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1825>
* codecparsers: av1: add the set_operating_point() API.He Junyan2020-11-172-2/+35
| | | | | | | | | The av1 can support multi layers when scalability is enabled. We need an API to set the operating point and filter the OBUs just belonging to some layers(the layers are specified by the operating point). Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>
* codecparsers: av1: Add an API to reset the annex_b state only.He Junyan2020-11-172-18/+37
| | | | | | | | | | | | | In practice, we encounter streams that have one or more temporal units error. When that kind of error temporal units is in annex b format, the whole temporal unit should be discarded. But the temporal units before it are correct and can be used. More important, because of the error temporal unit, the parser is in a wrong state and all later temporal unit are also parsed uncorrectly. We need to add this API to reset the annex_b state only when we meet some temporal unit error. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>
* codecparsers: av1: clean the seen_frame_header in parse_tile_group().He Junyan2020-11-171-10/+9
| | | | | | | | The current seen_frame_header is not cleaned correctly. According to the spec, it should be cleaned when tiles are parsed completely. Also delete a verbose seen_frame_header init in reset_state(). Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>
* codecparsers: av1: fix a typo in parse_metadata_scalabilityHe Junyan2020-11-171-1/+1
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>
* codecparsers: av1: Do not assert in identify_one_obu when check annex b size.He Junyan2020-11-171-4/+10
| | | | | | | Some buggy stream just writes the wrong temporal unit and frame size in the stream. We should return failure rather than assert to abort. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>
* codecparsers: av1: Add unknow AV1 profile define for saint check.He Junyan2020-11-171-0/+9
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>
* codecparsers: av1: Improve the parse_tile_info.He Junyan2020-11-172-13/+34
| | | | | | | | | | | | 1. store more tile info when parse tile group. The column, row, tile offset and tile data size are all useful for decoder process, especially for HW kind decoder such as VAAPI dec. Also fix the tile group skip size for each tile data. 2. No min_inner_tile_width requirement in newest spec. 3. Calculate the sbs of each tile for both uniform tile and non-uniformi tile. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>