summaryrefslogtreecommitdiff
path: root/gst-libs
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* codecparsers: av1: Fix a tile info read typo in frame header.He Junyan2020-11-171-1/+1
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>
* codecparsers: av1: Fix a typo when get value of segmentation params.He Junyan2020-11-171-1/+2
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>
* codecparsers: av1: add valid check for global motion params.He Junyan2020-11-172-0/+162
| | | | | | | | The global motion params and its matrix values need to be verified before we use them. If it is invalid, we should notify the decoder that it should not be used. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>
* codecparsers: av1: uint8 range is not enough for av1_bitstreamfn_nsHe Junyan2020-11-171-2/+2
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>
* codecparsers: av1: delete duplicated GST_AV1_GM_ABS_ALPHA_BITS define.He Junyan2020-11-171-1/+0
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>
* codecparsers: av1: Improve the loop filter setting.He Junyan2020-11-172-65/+54
| | | | | | | | | 1. loop_filter_ref_deltas should be int because it needs to compare with 0. 2. Move the loop filter init logic to setup_past_independence() and load_previous(), which make it more precise with the spec. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>
* codecparsers: av1: Fix a error report for metadata obu.He Junyan2020-11-171-1/+7
| | | | | | | | | The metadata OBUs, for example, ITUT_T35 has an undefined payload such as itu_t_t35_payload_bytes field in AV1 spec, which may cause the failure of parsing the trailings bits. We can give a warning and ignore this kind of errors. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>
* codecparsers: av1: Fix a level index bug in sequence.He Junyan2020-11-171-1/+1
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>
* codecparsers: av1: all ref idx should be gint8.He Junyan2020-11-172-4/+9
| | | | | | | All the ref index need to compare with 0 in reference index decision algorithm. We also need to init them to -1. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>
* codecs: h264decoder: Add support for field ref picture list modificationSeungha Yang2020-11-172-2/+275
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1812>
* codecs: h264decoder: Add more option arguments for reference picture getterSeungha Yang2020-11-173-17/+53
| | | | | | | | | | In case that "pic_order_cnt_type" is equal to zero, ref picture list for B slice should not include non-existing picture as per spec 8.2.4.2.3. And, the second field is not needed for the process of frame picture reference list construction since it needs to be frame unit, not field picture in that case. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1812>
* codecs: h264decoder: Split gap picture as well if neededSeungha Yang2020-11-172-34/+62
| | | | | | | field pair pictures might be required for reference list depending on context. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1812>
* h264dec: Fix POC calculation for type 0Nicolas Dufresne2020-11-171-8/+14
| | | | | | | This is mostly for future use as it only fixes the caclulation for interlaced cases, the case of frame seemed correct already. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1812>
* codecs: h264decoder: Don't try to construct RefPicList0 and RefPicList1 if ↵Seungha Yang2020-11-171-2/+31
| | | | | | | | | | | not required We were trying to construct reference picture list even for I slice before this commit. Reference list is required only for P, SP and B slices. Also, if all existing reference pictures are gap pictures, we don't need to construct lists. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1812>
* codecs: h264decoder: Fix MMCO type 1 for interlaced streamSeungha Yang2020-11-161-1/+1
| | | | | | | | If field_pic_flag of current picture is equal to zero, both field of reference field pair should be marked as "unused for reference" Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1810>
* codecs: h264decoder: Fix MMCO type 3 for interlaced streamSeungha Yang2020-11-161-25/+69
| | | | | | | | Depending on short-ref picture corresponding to picNumX value, there's a condition that only one field should be updated to be non-reference picture. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1810>
* codecs: h264decoder: Split frame picture into field pictures if neededSeungha Yang2020-11-161-6/+46
| | | | | | | In case of interlaced stream, frame pictures need to be splitted into field for reference marking process. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1810>
* codecs: h264decoder: Add util macro for frame/field picture identificationSeungha Yang2020-11-163-13/+21
| | | | | | | Add a macro to check whether given GstH264Picture is for frame or field decoding. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1810>
* codecs: h264decoder: Don't give up to decode due to missing reference pictureSeungha Yang2020-11-141-2/+2
| | | | | | | Missing reference picture is very common thing for broken/malformed stream. Decoder should be able to keep decoding if it's not a very critical error. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1809>
* codecs: h264decoder: Add support for interlaced streamSeungha Yang2020-11-133-50/+342
| | | | | | | | | | | | | | | | Initial support for interlaced stream. Subclass should implement new_field_picture() vfunc. Otherwise, baseclass will assume that subclass doesn't support interlaced stream. Restrictions: * Reference picture modification process for interlaced stream is not implemented yet * PAFF (Picture Adaptive Frame Field) is not properly implemented. * Field display ordering (e.g., top-field-first) decision should be enhanced via picture timing SEI parsing * Gap in field picture should be handled Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1534>
* codecs: h264decoder: Rename DPB methodsSeungha Yang2020-11-133-25/+31
| | | | | | | | Clarify wheter it's for picture(field) or frame in order to support interlaced stream, because DPB size is frame unit, not picture in case of interlaced stream. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1534>
* codecs: h264decoder: Remove interlaced stream related constraintsSeungha Yang2020-11-132-12/+29
| | | | | | | | ... and add new_field_picture() vfunc so that ensure interlaced decoding support by subclass. The method will be used later with interlaced stream support. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1534>
* codecs: h264decoder: Move to inline GstH264DecoderClass documentationSeungha Yang2020-11-131-21/+52
| | | | | | | Don't duplicate documentation for class vfunc. Hotdoc doesn't seem to be happy with duplicated documentation. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1534>
* codecs: h264decoder: Store reference picture type using enum valueSeungha Yang2020-11-133-38/+106
| | | | | | | | | | | | | Managing reference picture type by using two variables (ref and long_term) seems to be redundant and that can be represented by using a single enum value. This is to sync this implementation with gstreamer-vaapi so that make comparison between this and gstreamer-vaapi easier and also in order to minimize the change required for subclass to be able to support interlaced. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1534>
* codecs: h264decoder: Minor documentation fixSeungha Yang2020-11-131-2/+2
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1534>
* codecs: h264decoder: Remove DPB size related spammy debug messageSeungha Yang2020-11-131-2/+0
| | | | | | | It's not informative at all if SPS wasn't updated. Also we are printing DPB size related debug message in another place already. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1806>
* codecs: h264decoder: Don't fill gap picture if it's not allowedSeungha Yang2020-11-121-1/+4
| | | | | | | We should fill gap picture only if sps->gaps_in_frame_num_value_allowed_flag is set. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1801>
* adaptivedemux: Don't calculate bitrate for header/index fragmentsEdward Hervey2020-11-111-6/+12
| | | | | | | | | | They are generally substantially smaller than regular fragments, and therefore we end up pushing totally wrong bitrates downstream. Fixes erratic buffering issues with DASH introduced by 66f5e874352016e29f555e3ce693b23474e476db Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1021>
* adaptivedemux: Store QoS values on the elementEdward Hervey2020-11-112-23/+41
| | | | | | | | | | | Storing it per-stream requires taking the manifest lock which can apparenly be hold for aeons. And since the QoS event comes from the video rendering thread we *really* do not want to do that. Storing it as-is in the element is fine, the important part is knowing the earliest time downstream. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1021>
* adaptivedemux: Don't calculate bitrate for header/index fragmentsEdward Hervey2020-11-111-1/+2
| | | | | | | | | | They are generally substantially smaller than regular fragments, and therefore we end up pushing totally wrong bitrates downstream. Fixes erratic buffering issues with DASH introduced by 66f5e874352016e29f555e3ce693b23474e476db Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1786>
* codecs: vp8decoder: Fix two typo of struct name.He Junyan2020-11-112-2/+2
| | | | Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1797>