Víctor Manuel Jáquez Leal
060c54ab07
codecs: mpeg2decoder: fix documentation
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1798 >
2020-12-28 13:15:50 +08:00
Víctor Manuel Jáquez Leal
5243048cb0
codecs: mpeg2decoder: simplify macros
...
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 >
2020-12-28 13:14:51 +08:00
He Junyan
0e161dd363
codecs: Add mpeg2 stateless decoder base class.
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1798 >
2020-12-28 13:05:29 +08:00
Edward Hervey
3cb32df838
mpegts: Add support for SIT sections
...
Selection Information Tables (EN 300 468)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1852 >
2020-12-14 16:37:29 +01:00
Edward Hervey
5d3a0ca6a9
mpegts: Update documentation
...
* 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 >
2020-12-14 14:48:03 +00:00
Thibault Saunier
76bc578bae
player/transcoder: Use bus signal watch
...
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 >
2020-12-14 12:30:14 +00:00
Marius Vlad
aa68d03013
gst-libs/gst/wayland: Install "unstable" wayland header
...
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 >
2020-12-03 14:54:47 +00:00
Sebastian Dröge
2f3e245426
adaptivedemux: Don't log with non-GObject objects
...
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 >
2020-12-02 12:03:36 +00:00
Thibault Saunier
b3544e24ba
transcoder: Handle the case where several errors are posted
...
There were cases where the loop was already destroyed when we were
receiving the following message.
2020-11-30 15:16:01 -03:00
Thibault Saunier
9d890c152e
transcoder: Minor refactoring to output better debug logs
2020-11-30 15:16:01 -03:00
Philippe Normand
d4df91cd9b
player: Fix get_current_subtitle_track annotation
...
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 >
2020-11-25 11:30:16 +00:00
Olivier Crête
52c676546d
webrtc: Also remove rtcp_transport from the structure
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1765 >
2020-11-24 01:59:55 +00:00
Olivier Crête
c5d76d944e
webrtc: Remove APIs to set transport on sender/receiver
...
They're not not used ever.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1765 >
2020-11-24 01:59:55 +00:00
Olivier Crête
5d5417f271
webrtc: Remove non rtcp-mux code
...
RTCP mux is now always required by the WebRTC spec
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1765 >
2020-11-24 01:59:55 +00:00
Víctor Manuel Jáquez Leal
1a5862dd39
codecs: h264decoder: fix memory leak
...
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 >
2020-11-23 15:23:35 +01:00
Edward Hervey
1749dc66c5
mpegts: Documentation fixes
...
gtk-doc was complaining :)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1825 >
2020-11-21 08:58:43 +00:00
He Junyan
33fcb0faf0
codecparsers: av1: add the set_operating_point() API.
...
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 >
2020-11-17 19:31:09 +00:00
He Junyan
c4aaeb0509
codecparsers: av1: Add an API to reset the annex_b state only.
...
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 >
2020-11-17 19:31:09 +00:00
He Junyan
a4f459fe21
codecparsers: av1: clean the seen_frame_header in parse_tile_group().
...
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 >
2020-11-17 19:31:09 +00:00
He Junyan
6dedbc30c5
codecparsers: av1: fix a typo in parse_metadata_scalability
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464 >
2020-11-17 19:31:09 +00:00
He Junyan
227d7a9327
codecparsers: av1: Do not assert in identify_one_obu when check annex b size.
...
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 >
2020-11-17 19:31:09 +00:00
He Junyan
b511761f70
codecparsers: av1: Add unknow AV1 profile define for saint check.
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464 >
2020-11-17 19:31:09 +00:00
He Junyan
0d4982a3d5
codecparsers: av1: Improve the parse_tile_info.
...
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 >
2020-11-17 19:31:09 +00:00
He Junyan
da0584010c
codecparsers: av1: Fix a tile info read typo in frame header.
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464 >
2020-11-17 19:31:09 +00:00
He Junyan
26567354b9
codecparsers: av1: Fix a typo when get value of segmentation params.
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464 >
2020-11-17 19:31:09 +00:00
He Junyan
2fd1da60ea
codecparsers: av1: add valid check for global motion params.
...
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 >
2020-11-17 19:31:09 +00:00
He Junyan
8f55c9d6d2
codecparsers: av1: uint8 range is not enough for av1_bitstreamfn_ns
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464 >
2020-11-17 19:31:09 +00:00
He Junyan
900bd06939
codecparsers: av1: delete duplicated GST_AV1_GM_ABS_ALPHA_BITS define.
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464 >
2020-11-17 19:31:09 +00:00
He Junyan
fce380ec40
codecparsers: av1: Improve the loop filter setting.
...
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 >
2020-11-17 19:31:09 +00:00
He Junyan
f20798a1db
codecparsers: av1: Fix a error report for metadata obu.
...
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 >
2020-11-17 19:31:09 +00:00
He Junyan
2c3a33eeab
codecparsers: av1: Fix a level index bug in sequence.
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464 >
2020-11-17 19:31:09 +00:00
He Junyan
7e33863b10
codecparsers: av1: all ref idx should be gint8.
...
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 >
2020-11-17 19:31:09 +00:00
Seungha Yang
64ea751cd2
codecs: h264decoder: Add support for field ref picture list modification
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1812 >
2020-11-17 19:57:30 +09:00
Seungha Yang
88ebe8031a
codecs: h264decoder: Add more option arguments for reference picture getter
...
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 >
2020-11-17 19:44:04 +09:00
Seungha Yang
e1adc572a7
codecs: h264decoder: Split gap picture as well if needed
...
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 >
2020-11-17 19:08:47 +09:00
Nicolas Dufresne
4ee6167616
h264dec: Fix POC calculation for type 0
...
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 >
2020-11-17 19:00:39 +09:00
Seungha Yang
11509fded1
codecs: h264decoder: Don't try to construct RefPicList0 and RefPicList1 if 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 >
2020-11-17 18:29:54 +09:00
Seungha Yang
fec686145e
codecs: h264decoder: Fix MMCO type 1 for interlaced stream
...
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 >
2020-11-16 14:25:36 +00:00
Seungha Yang
b83d452cc2
codecs: h264decoder: Fix MMCO type 3 for interlaced stream
...
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 >
2020-11-16 14:25:36 +00:00
Seungha Yang
caa5eb65d1
codecs: h264decoder: Split frame picture into field pictures if needed
...
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 >
2020-11-16 14:25:36 +00:00
Seungha Yang
7b42b1f9fb
codecs: h264decoder: Add util macro for frame/field picture identification
...
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 >
2020-11-16 14:25:36 +00:00
Seungha Yang
f9af93d841
codecs: h264decoder: Don't give up to decode due to missing reference picture
...
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 >
2020-11-14 16:17:18 +00:00
Seungha Yang
0b9f975b36
codecs: h264decoder: Add support for interlaced stream
...
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 >
2020-11-13 15:25:43 +00:00
Seungha Yang
52a8864076
codecs: h264decoder: Rename DPB methods
...
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 >
2020-11-13 15:25:42 +00:00
Seungha Yang
9bd6b5f0b4
codecs: h264decoder: Remove interlaced stream related constraints
...
... 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 >
2020-11-13 15:25:42 +00:00
Seungha Yang
5585314b56
codecs: h264decoder: Move to inline GstH264DecoderClass documentation
...
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 >
2020-11-13 15:25:42 +00:00
Seungha Yang
7a53d7a4aa
codecs: h264decoder: Store reference picture type using enum value
...
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 >
2020-11-13 15:25:42 +00:00
Seungha Yang
157210eb19
codecs: h264decoder: Minor documentation fix
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1534 >
2020-11-13 15:25:42 +00:00
Seungha Yang
227456d240
codecs: h264decoder: Remove DPB size related spammy debug message
...
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 >
2020-11-13 14:50:09 +00:00
Seungha Yang
6a6f8c967c
codecs: h264decoder: Don't fill gap picture if it's not allowed
...
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 >
2020-11-12 14:38:56 +00:00