Commit Graph

16 Commits

Author SHA1 Message Date
Martin Pulec
94bb693c8e dump disp.: check export_init return value 2022-05-02 16:12:31 +02:00
Martin Pulec
67c443c785 dump disp.: small refactor
+ do not export discarded frame
+ assure that the exported frame is ours (otherwise the lifetime is
  uncertain eg. if we decide to write the frame in thread)
2022-05-02 16:12:29 +02:00
Martin Pulec
e9f8a95ea1 dump display: fixed a crash
For opaque codecs (H.264), the allocated size was actually smaller than
(maximal) data len set. That is usually not an issue, but when
destroying, the invalid maximum is exported (because PUTF_DISCARD with
unmodified frame). Steps to reproduce:

    uv -t testcard:size=1280x128 -c libavcodec:codec=H.264 -d dump
2022-05-02 16:12:29 +02:00
Martin Pulec
6651695c1e Video display: added needs_mainloop callback
This allows more fine-grained evaluation if the display really needs to
be run in the main thread or not (eg. for multiplier)
2020-07-22 15:45:10 +02:00
Martin Pulec
88f6ebc6f2 Dump: do not override data_len if known
The metadata overriding is a bit broken in decoder for line-decoders.
2020-07-17 16:35:48 +02:00
Martin Pulec
03715ce4f6 Dump: option to specify output dir
+ added usage
2020-07-14 11:49:11 +02:00
Martin Pulec
25a8555258 Dump: fixes 2020-07-13 13:52:09 +02:00
Martin Pulec
fe7cd6b64e Dump: do not create a dir (created by export) 2020-07-09 13:34:12 +02:00
Martin Pulec
31d80b34b9 Video display: run mainloop only if needed
Do not run the display worker in the main thread if not needed.

This would allow to run a custom mainloop (eg. from Syphon) while being able
to run a display that doesn't need to be run in the main thread.
2020-04-14 10:52:54 +02:00
Martin Pulec
31d9809fcd Updated documentation
Updated authors, copyright to 3-clause BSD (where possible) and file-level Doxygen
2019-11-09 13:47:11 +01:00
Martin Piatka
25e6f31662 video_display_info: probe: pass function ptr to deleter func 2019-03-15 13:00:59 +01:00
Martin Piatka
1e2f38c97c Rewrite video_frame callbacks to be set by decoders 2018-09-12 23:29:08 +02:00
Martin Pulec
e299219167 Export: allow runtime enable/disable recording 2017-05-11 13:53:26 +02:00
Martin Pulec
29fec0d9c9 Export: created umbrella for audio and video 2017-05-11 13:53:26 +02:00
Martin Pulec
892883df02 Fixed some Coverity bugs 2016-06-28 17:33:24 +02:00
Martin Pulec
2af71bdab1 Added dump video display 2016-02-29 17:10:54 +01:00