summaryrefslogtreecommitdiff
path: root/libavformat/img2dec.c
Commit message (Collapse)AuthorAge
* lavf/img2dec: Reduce the probe score for incomplete jpgs.Carl Eugen Hoyos2017-01-27
| | | | Ensures that probing doesn't finish prematurely for small files.
* lavf/img2dec: Increase detection score of jpgs without EOI.Carl Eugen Hoyos2017-01-01
| | | | | Also increases the score for large jpeg files. Fixes autodetection for the file from mpv issue 3973.
* avformat/img2dec: Remove dead code from psd_probe()Michael Niedermayer2016-12-21
| | | | | | Fixes CID1397124 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavformat : add Photoshop PSD demuxer.Martin Vignali2016-12-14
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/img2dec: Skip DQT segment when auto-detecting jpg.Carl Eugen Hoyos2016-09-03
| | | | DQT segments may contain 0xFFs which break auto-detection.
* lavf/img2dec: Also auto-detect (unusual) uncompressed pcx.Carl Eugen Hoyos2016-07-15
|
* lavf/img2dec: add pnm pipe demuxersClément Bœsch2016-06-22
|
* avformat: Fix max value of AV_OPT_TYPE_VIDEO_RATEMichael Niedermayer2016-06-09
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '9200514ad8717c63f82101dc394f4378854325bf'Derek Buitenhuis2016-04-10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9200514ad8717c63f82101dc394f4378854325bf': lavf: replace AVStream.codec with AVStream.codecpar This has been a HUGE effort from: - Derek Buitenhuis <derek.buitenhuis@gmail.com> - Hendrik Leppkes <h.leppkes@gmail.com> - wm4 <nfxjfg@googlemail.com> - Clément Bœsch <clement@stupeflix.com> - James Almer <jamrial@gmail.com> - Michael Niedermayer <michael@niedermayer.cc> - Rostislav Pehlivanov <atomnuker@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavf: replace AVStream.codec with AVStream.codecparAnton Khirnov2016-02-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, AVStream contains an embedded AVCodecContext instance, which is used by demuxers to export stream parameters to the caller and by muxers to receive stream parameters from the caller. It is also used internally as the codec context that is passed to parsers. In addition, it is also widely used by the callers as the decoding (when demuxer) or encoding (when muxing) context, though this has been officially discouraged since Libav 11. There are multiple important problems with this approach: - the fields in AVCodecContext are in general one of * stream parameters * codec options * codec state However, it's not clear which ones are which. It is consequently unclear which fields are a demuxer allowed to set or a muxer allowed to read. This leads to erratic behaviour depending on whether decoding or encoding is being performed or not (and whether it uses the AVStream embedded codec context). - various synchronization issues arising from the fact that the same context is used by several different APIs (muxers/demuxers, parsers, bitstream filters and encoders/decoders) simultaneously, with there being no clear rules for who can modify what and the different processes being typically delayed with respect to each other. - avformat_find_stream_info() making it necessary to support opening and closing a single codec context multiple times, thus complicating the semantics of freeing various allocated objects in the codec context. Those problems are resolved by replacing the AVStream embedded codec context with a newly added AVCodecParameters instance, which stores only the stream parameters exported by the demuxers or read by the muxers.
* | lavf/img2dec: Skip COM when auto-detecting jpeg.Carl Eugen Hoyos2016-03-22
| | | | | | | | It could theoretically contain invalid data that gets ignored by decoders.
* | lavf/img2dec: Use jpeg constants in jpeg_probe().Carl Eugen Hoyos2016-03-06
| |
* | lavf: Add pcx auto-detection.Carl Eugen Hoyos2016-02-29
| |
* | lavf/img2dec: Skip SOS when auto-detecting jpeg.Carl Eugen Hoyos2016-02-29
| | | | | | | | Improves jpeg auto-detection.
* | lavf/img2dec: Skip SOF size when probing jpeg.Carl Eugen Hoyos2016-02-26
| | | | | | | | | | Fixes auto-detection for some resolutions. Reported-by: Clément Bœsch
* | img2dec: Support Progressive JPEG in jpeg_probeJustin Ruggles2016-02-24
| | | | | | | | | | | | There can be multiple SOS markers, so do not return 0 in that case. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | Merge commit '9f61abc8111c7c43f49ca012e957a108b9cc7610'Derek Buitenhuis2016-02-10
|\| | | | | | | | | | | | | | | | | This also deprecates our old duplicated callbacks. * commit '9f61abc8111c7c43f49ca012e957a108b9cc7610': lavf: allow custom IO for all files Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavf: allow custom IO for all filesAnton Khirnov2016-01-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some (de)muxers open additional files beyond the main IO context. Currently, they call avio_open() directly, which prevents the caller from using custom IO for such streams. This commit adds callbacks to AVFormatContext that default to avio_open2()/avio_close(), but can be overridden by the caller. All muxers and demuxers using AVIO are switched to using those callbacks instead of calling avio_open()/avio_close() directly. (de)muxers that use the URLProtocol layer directly instead of AVIO remain unconverted for now. This should be fixed in later commits.
* | avformat/img2dec: Use AVOpenCallbackMichael Niedermayer2016-01-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/img2dec: do not interpret the filename by default if a IO context ↵Michael Niedermayer2016-01-20
| | | | | | | | | | | | | | | | | | | | | | | | has been opened With this, user applications which use custom IO and have set a IO context will not have their already opened IO context ignored and glob/seq being interpreted Comments and tests from maintainers of user apps are welcome! Liked-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/img2dec: Reuse main IO context instead of reopening a single fileMichael Niedermayer2015-12-26
| | | | | | | | | | | | Fixes part of Ticket4849 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/img2dec: Skip checking the input files existence if it has already ↵Michael Niedermayer2015-12-26
| | | | | | | | | | | | | | | | | | been opened Avoids a unneeded open Fixes part of Ticket4849 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat: use AV_OPT_TYPE_BOOL in a bunch of placesClément Bœsch2015-12-04
| |
* | Merge commit 'ce70f28a1732c74a9cd7fec2d56178750bd6e457'Hendrik Leppkes2015-10-27
|\| | | | | | | | | | | | | * commit 'ce70f28a1732c74a9cd7fec2d56178750bd6e457': avpacket: Replace av_free_packet with av_packet_unref Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * avpacket: Replace av_free_packet with av_packet_unrefLuca Barbato2015-10-26
| | | | | | | | | | | | | | `av_packet_unref` matches the AVFrame ref-counted API and can be used as a drop in replacement. Deprecate `av_free_packet`.
| * avformat: Don't anonymously typedef structsDiego Biurrun2015-02-14
| |
| * img2dec: correctly use the parsed value from -start_numberVittorio Giovara2015-01-14
| | | | | | | | | | | | | | Previously the image sequence was always starting from the minimum number rather than the requested one. CC: libav-stable@libav.org
* | all: add _DEFAULT_SOURCE locally wherever neededGanesh Ajjanagadde2015-10-04
| | | | | | | | | | | | | | | | | | Glibc 2.20 onwards generates a deprecation warning for usage of _BSD_SOURCE and _SVID_SOURCE. The solution from man feature_test_macros is to define both _DEFAULT_SOURCE and the old macros. This solution is on the lines of the one in commit af1818276ef271af98e2e2bbabb4dc875b4fa7d8. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* | lavf/img2dec: Fix memory leakPrzemysław Sobala2015-09-29
| | | | | | | | | | | | Fixes #4886 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavf/img2dec: Improve jpeg auto-detection.Carl Eugen Hoyos2015-09-12
| | | | | | | | Fixes ticket #4841.
* | lavf/img2dec: Improve detection of valid Quickdraw images.Carl Eugen Hoyos2015-06-29
| | | | | | | | | | Detect Quickdraw images without application header with lower score.
* | lavf/img2dec: Autodetect dds frames.Carl Eugen Hoyos2015-06-29
| |
* | lavf/img2dec: add option to disable pattern matchingMarton Balint2015-05-12
| | | | | | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu> Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavf/img2dec: Autodetect qdraw images.Carl Eugen Hoyos2015-05-07
| |
* | avformat/img2dec: do not rewind custom io buffersMichael Niedermayer2015-04-20
| | | | | | | | | | | | | | Fixes double free with some applications Fixes vlc ticket14121 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | img2dec: Remove dead codeTimothy Gu2015-02-06
| | | | | | | | | | | | Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Reviewed-by: Carl Eugen Hoyos <cehoyos@ag.or.at> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat: fix mode of img2dec.c and utils.cMichael Niedermayer2015-02-03
| | | | | | | | | | Found-by: jamrial Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/img2dec: remove the non-negative number requirement for ↵Liviu Oniciuc2015-02-03
| | | | | | | | | | | | | | | | | | start_number option industrial cameras usually mark the trigger frame as frame number 0 all frames saved before trigger frame receive a negative sequence number Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavformat/img2dec: fix warning when !HAVE_GLOBChristophe Gisquet2015-01-21
| | | | | | | | | | | | Variables are unused in this case. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Skip Exif data when auto-detecting jpeg images.Carl Eugen Hoyos2015-01-09
| |
* | avformat/img2dec: Use avio_closep() to avoid leaving stale pointers in memoryMichael Niedermayer2015-01-08
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/img2dec: check w/h in dpx_probeMichael Niedermayer2014-12-21
| | | | | | | | | | | | Fixes probetest failure Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'f1ed83e23add1c26c50b146727e4c2399dfc0b3a'Michael Niedermayer2014-10-25
|\| | | | | | | | | | | | | | | | | | | | | * commit 'f1ed83e23add1c26c50b146727e4c2399dfc0b3a': img2dec: check av_new_packet return value Conflicts: libavformat/img2dec.c See: 3f8148911c6e6e1f2a042bd4ca3ad8516a92130c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * img2dec: check av_new_packet return valueVittorio Giovara2014-10-24
| | | | | | | | | | CC: libav-stable@libav.org Bug-Id: CID 1087077
* | avformat/img2dec: Attempt to detect non-escaped glob patterns too ↵Alexander Strasser2014-10-05
| | | | | | | | | | | | | | | | | | | | (-pattern_type glob) Fixes ticket #3948 Based-on-patch-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Alexander Strasser <eclipse7@gmx.net> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/img2dec: Support -loop with pipesMichael Niedermayer2014-10-05
| | | | | | | | | | | | Fixes Ticket3976 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Revert "avformat/img2dec: reduce bmppipe probe score"Michael Niedermayer2014-10-03
| | | | | | | | | | | | | | | | This seems not needed anymore This reverts commit 321c3cd1a97b9307760c3ebb175296590c382eca. Found-by: carl
* | Autodetect jpg images.Carl Eugen Hoyos2014-09-26
| | | | | | | | | | | | Based on 2d3842f5 by Michael Niedermayer. Fixes ticket #2541.
* | avformat/img2dec: enable generic seeking for image pipesMichael Niedermayer2014-09-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/img2dec: initialize pkt->pos for image pipesMichael Niedermayer2014-09-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>