summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release 1.17.11.17.1Tim-Philipp Müller2020-06-195-1239/+636
|
* docs: Update plugin cache jsonNirbheek Chauhan2020-06-161-2/+3
| | | | | | https://gitlab.freedesktop.org/alatiera/gst-ci/-/jobs/3109574 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-omx/-/merge_requests/68>
* docs: Update documentation cacheThibault Saunier2020-06-031-0/+1
|
* omx: Add latest OMX_ALG_Index's to omx_index_type_to_strDylan Yip2020-05-211-12/+28
| | | | | | | | | | | | Add following indexes to omx_index_type_to_str: OMX_ALG_IndexParamVideoAccessUnitDelimiter OMX_ALG_IndexParamVideoBufferingPeriodSEI OMX_ALG_IndexParamVideoPictureTimingSEI OMX_ALG_IndexParamVideoRecoveryPointSEI OMX_ALG_IndexParamVideoMasteringDisplayColourVolumeSEI OMX_ALG_IndexParamVideoContentLightLevelSEI OMX_ALG_IndexConfigVideoRegionOfInterestByValue OMX_ALG_IndexConfigVideoColorPrimaries
* zynq: change API to use public 2020.01 from vcu-omx-ilStéphane Cerveau2020-05-211-2/+2
| | | | | | | This new release 2020.01 fixes an API typo Change to OMX_ALG_IndexConfigVideoHighDynamicRangeSEI instead of OMX_ALG_IndexConfigVideoHighDynamicRangeSEIs among others.
* omxvideoenc: factor out gst_omx_video_enc_allocate_out_buffers()Guillaume Desmottes2020-05-201-4/+12
| | | | | | No semantic change. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-omx/-/merge_requests/66>
* omxvideoenc: remove unsupported formats from caps templateGuillaume Desmottes2020-04-105-9/+10
| | | | | | | Our encoder implementation actually supports a small subset of the formats supported by the decoder. Those are the formats for which we have a copy path in gst_omx_video_enc_fill_buffer() and which are not filtered out in filter_supported_formats().
* video: remove BGR from supported formatGuillaume Desmottes2020-04-101-1/+1
| | | | | It's not supported by either decoder or encoder and is even not listed in gst_omx_video_get_format_from_omx() so it can't work.
* omxvideoenc: add GRAY8 supportGuillaume Desmottes2020-04-101-0/+18
| | | | | It's supported by Zynq encoder and was already in the sink caps template.
* omxvideoenc: factor out gst_omx_video_enc_copy_plane()Guillaume Desmottes2020-04-101-37/+50
| | | | | No semantic change, I'm going to use it to copy GRAY8 buffers which is actually a single plane 8-bits format.
* omxvideoenc: use gst_video_meta_get_plane_height() to compute slice heightGuillaume Desmottes2020-04-101-1/+9
| | | | | This new API saves us from doing manual computation and actually work with single planar formats, such as GRAY8.
* omxh26xenc: fix coverity with frame testStéphane Cerveau2020-04-084-9/+13
| | | | | | | | | | | | | Coverity was complaining with: Null pointer dereferences (REVERSE_INULL) Null-checking "frame" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. The frame == NULL has been removed as 'frame' is actively used in the code above without any change of dereferencing and setting its value to NULL before the test. CID: 1461287
* gstomxvideoenc: fix subframe output_bufferStéphane Cerveau2020-03-191-1/+1
| | | | | Using more than 1 subframes was failing with frame->output_buffer = NULL
* omxvideodec: add support of alternate interlace mode on zynqGuillaume Desmottes2020-02-271-12/+207
|
* omxvideoenc: add support of alternate interlace mode on zynqGuillaume Desmottes2020-02-272-0/+136
| | | | It's only supported by the Zynq HEVC encoder for now.
* omx: add alternate flags to buffer_flags_mapGuillaume Desmottes2020-02-271-0/+4
| | | | Zynq specific flags used to tag top/bottom fields in alternate mode.
* omxvideo(enc): use GST_VIDEO_INFO_FIELD_RATE_N()Guillaume Desmottes2020-02-272-7/+16
| | | | | | | Does not change anything for now but will be needed when we'll support interlace-mode=alternate as the field rate will be twice the frame rate. Made the code safe from division by 0 while I was on it.
* omxvideo{enc,dec}: use GST_VIDEO_INFO_FIELD_HEIGHT()Guillaume Desmottes2020-02-272-14/+17
| | | | | Does not change anything for now but will be needed when we'll support interlace-mode=alternate as the fields will have half the frame height.
* omx: don't log error when failing to load conf file with generic targetGuillaume Desmottes2020-02-251-8/+17
| | | | | | | | | | | The generic target is meant to only test building gst-omx. It doesn't provide any configuration file and so is not supposed to register any element. I'm not aware of any user building gst-omx with this target and providing their own conf file to actually register elements. But best to not break this use case anyway so let's just downgrade the log message. Fix GST_ERROR in the 'check fedora' CI job.
* meson: add glib project fallbackStéphane Cerveau2020-01-271-3/+3
| | | | | Add a fallback from glib project to provide glib, gio and gmodule dependencies.
* omxvideoenc: fix warningStéphane Cerveau2020-01-161-2/+3
| | | | | Fix warning test when OMX_BUFFERFLAG_ENDOFFRAME is not set.
* omxvideoenc: Add look-ahead property to ZYNQ_USCALE_PLUS encoderVarunkumar Allagadapa2020-01-092-0/+32
| | | | | | | | | This patch adds look-ahead property to encoder The value indicates look ahead size in frames, the number of frames processed ahead of second pass encoding. Dual pass encoding is disabled if look-ahead value is less than 2.
* omxvideoenc: Add long-term-ref support to ZYNQ_USCALE_PLUS encoderVarunkumar Allagadapa2020-01-092-0/+126
| | | | | | | | | | | | | | | | | | | | | | | Custom API that upstream elements can use to notify encoders about marking longterm ref. pictures or using longterm ref. pictures in encoding process. This patch adds below properties: long-term-ref: Enable/Disable dynamically marking long-term reference pictures in encoding process long-term-freq: Periodicity of long-term reference picture marking in encoding process. If a picture is marked as long-term reference picture then it remains in the DPB list for ever unless it overrides with new long-term pitcure with same index. Encoder can use this long-term picture as refence for encoding. This feature is mostly useful to avoid visual artifacts propagation in streaming use cases when packet loss happens. Instead of requesting for IDR, client can request for use long-term reference picture for encoding.
* meson: display OMX target when configuringGuillaume Desmottes2020-01-071-0/+2
| | | | | | I'm adding more gst-omx CI ( https://gitlab.freedesktop.org/gstreamer/gst-ci/issues/20 ) having the OMX targets displayed in the logs makes things clearer.
* omx: remove useless double negationsGuillaume Desmottes2020-01-071-2/+2
| | | | flush and port->flushing are both gboolean.
* meson: fix tizonia buildJulien Isorce2019-12-221-1/+5
| | | | | | | | | meson.build was both using path to gst-omx/openmax/OMX* headers and path to OMX headers provided by tizilheaders.pc so this patch makes sure we only use the later. Also bump tizonia minimum version to 0.19.0 which is the latest release.
* omxh265enc: handle CODECCONFIG buffersGuillaume Desmottes2019-12-222-0/+78
| | | | Exact same code as omxh264enc.
* omxh264enc: send codec data downstreamGuillaume Desmottes2019-12-221-2/+7
| | | | | | | | | | | We are operating in stream-format=byte-stream so the codec data buffer is meant to be part of the buffer flow. The base class will push it when a key frame is requested (as we stored it with gst_video_encoder_set_headers()) but we still have to push it right away as part of the normal buffer flow. Also set the HEADER flag on this buffer.
* omxh264enc: no need to check if codeconfig has startcodeGuillaume Desmottes2019-12-221-18/+14
| | | | | We currently only support stream-format=byte-stream so there is no point re-checking for it when handling CODECCONFIG buffer.
* omxh26xenc: Negotiate subframe modeNicolas Dufresne2019-12-222-7/+45
| | | | | | | | We now negotiate subframe mode through the caps. To enabled subframe mode, the caps need to specify alignment=nal: ... ! omxh264enc ! video/x-h264,alignment=nal ! ... ... ! omxh265enc ! video/x-h265,alignment=nal ! ...
* omxvideoenc: use subframe base class APIGuillaume Desmottes2019-12-221-3/+13
| | | | Use subframe base class support.
* omx: Add helper to enable/disable/read subframe modeNicolas Dufresne2019-12-222-0/+57
|
* zynq: add mapping for latest custom indexesGuillaume Desmottes2019-12-191-0/+30
| | | | Fix warning when building using version 2019.2 of OMX headers.
* omxvideoenc: update qp-mode settingsVarunkumar Allagadapa2019-12-191-9/+67
| | | | Adds load-qp-absolute and load-qp-relative qp-modes
* omxvideoenc: Add stride check for input buffer extractionShinya Saito2019-12-111-2/+5
| | | | | Stride of input buffer may be different from that of omx input port even if both sizes are the same.
* omxvideoenc: pass padding requirements to ALLOCATION queryGuillaume Desmottes2019-11-051-1/+25
| | | | | | | | | | By passing the expected video buffer layout, the upstream producer may be able to produce buffers fitting those requierements allowing gst-omx to use dynamic buffer mode rather than having to copy each input buffer. This is particularly useful with v4l2src as it can request the capture driver to produce buffers with the required paddings.
* omxbufferpool: use gst_video_meta_set_alignment()Guillaume Desmottes2019-11-053-1/+105
| | | | | | | Tell buffer consumer about our paddings. v4l2src can now uses these paddings information when trying to import buffers to configure the v4l2 driver accordingly.
* omxvideoenc: fix buffer size in debug logGuillaume Desmottes2019-11-021-2/+2
| | | | | Use the actual OMX buffer size rather than the info.size as OMX may require larger buffer if the port requires some padding.
* Remove autotools buildTim-Philipp Müller2019-10-1420-920/+0
|
* omxallocator: fix leak with a proper chaining finalizeStéphane Cerveau2019-10-071-0/+2
|
* omxvideoenc: revert draining on ALLOCATION and DRAIN queryGuillaume Desmottes2019-09-231-27/+0
| | | | | My latest patch introduces some regressions which I have no time to debug properly at the moment so just revert it for now.
* omxvideoenc: let encoder base class handle ALLOCATION queryGuillaume Desmottes2019-09-171-1/+0
| | | | | | | | | Fixing a regression introduced in my previous patch (7c40a91c31aa4bcbb191f7c6a5d222edf9dfd9d1). The ALLOCATION query needs to be handled by GstVideoEncoder (to call propose_allocation()) so chain up the query handling rather than early returning.
* omxvideoenc: drain encoder on ALLOCATION and DRAIN queriesGuillaume Desmottes2019-09-051-0/+28
| | | | | | | | | | | | | Ensure that the encoder releases all its input buffers when requested by upstream. Encoder input buffers may be shared with downstreaming (when using dmabuf), upstream may then request the encoder to drain when reconfiguring before destroying its buffers. Also drain on ALLOCATION query as we already do in kmssink as that notify of a format change. Fix "decoder ! encoder" pipeline when decoding a file with different resolutions on Zynq.
* omx: log the number of pending buffers when port is EOSGuillaume Desmottes2019-09-041-1/+2
|
* omx: log when an output port is eosGuillaume Desmottes2019-09-041-2/+8
|
* omxvideoenc: log the full input formatGuillaume Desmottes2019-09-041-2/+4
| | | | Make it easier to debug dynamic format changes.
* omxvideodec: fix dmabuf importGuillaume Desmottes2019-09-021-2/+12
| | | | | When importing dmabuf, UseBuffer() has to be called with the fd as pBuffer rather than the mapped address of the buffer.
* omxbufferpool: fix dmabuf importGuillaume Desmottes2019-09-021-3/+6
| | | | | | | When importing dmabuf from downstream, we want the allocator to be in OTHER_POOL mode despite output_mode being DMABUF. So check first if other_pool is set before checking for pool's output_mode.
* omxvideoenc: Remove unnecessary gst_video_frame_unmap()Shinya Saito2019-08-221-1/+0
|
* omxvideodec: log supported caps by the decoderGuillaume Desmottes2019-08-051-0/+3
| | | | | Can be useful when debugging to check the caps supported by the decoder before filtering.