summaryrefslogtreecommitdiff
path: root/libavcodec/imgconvert.c
Commit message (Collapse)AuthorAge
* avcodec/imgconvert: fix possible null pointer dereferenceSimon Thelen2018-04-03
| | | | regression since 354b26a3945eadd4ed8fcd801dfefad2566241de
* avcodec/imgconvert: Fix loss mask bug in avcodec_find_best_pix_fmt_of_list()heimdallr2018-04-01
| | | | | | | | | | | | example: AVPixelFormat pixFmts[] = { AV_PIX_FMT_RGB24, AV_PIX_FMT_RGBA }; int loss = 0; AVPixelFormat best = avcodec_find_best_pix_fmt_of_list(pixFmts, AV_PIX_FMT_BGRA, 1, &loss); best is AV_PIX_FMT_RGB24. But AV_PIX_FMT_RGBA is better. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec: remove missing incompatible_libav_abi referencesJames Almer2016-10-26
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* Merge commit 'd12b5b2f135aade4099f4b26b0fe678656158c13'Derek Buitenhuis2016-05-11
|\ | | | | | | | | | | | | | | * commit 'd12b5b2f135aade4099f4b26b0fe678656158c13': build: Split test programs off into separate files Some conversions done by: James Almer <jamrial@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | Merge commit 'd43a165bda0eae95f4c7a168c7d13d94966c1a09'Derek Buitenhuis2016-01-27
|\| | | | | | | | | | | | | * commit 'd43a165bda0eae95f4c7a168c7d13d94966c1a09': imgconvert: Add the proper API guards to a deprecated function Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * imgconvert: Add the proper API guards to a deprecated functionVittorio Giovara2016-01-21
| |
* | Merge commit 'f7168d7016f7d1034ec90223fa91a90711704e11'Derek Buitenhuis2016-01-27
|\| | | | | | | | | | | | | * commit 'f7168d7016f7d1034ec90223fa91a90711704e11': imgconvert: Move AVPicture-related static function to the deprecated section Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * imgconvert: Move AVPicture-related static function to the deprecated sectionVittorio Giovara2016-01-21
| |
* | Merge commit '892f037c55d86ce36f8705fbeab052189312a13e'Derek Buitenhuis2016-01-27
|\| | | | | | | | | | | | | * commit '892f037c55d86ce36f8705fbeab052189312a13e': imgconvert: Move the shrink functions only where needed Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * imgconvert: Move the shrink functions only where neededVittorio Giovara2016-01-21
| |
* | Merge commit '9d3ea5cbf57e30bf2717a9ce64e858dad8a02aa6'Derek Buitenhuis2016-01-27
|\| | | | | | | | | | | | | * commit '9d3ea5cbf57e30bf2717a9ce64e858dad8a02aa6': imgconvert: Drop outdated comment block Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * imgconvert: Drop outdated comment blockVittorio Giovara2016-01-21
| |
* | Merge commit '7d36474d1908d6267d4e11d4d9909f9604bd0c81'Hendrik Leppkes2015-12-08
|\| | | | | | | | | | | | | * commit '7d36474d1908d6267d4e11d4d9909f9604bd0c81': imgconvert: Re-enable the deprecation warnings Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * imgconvert: Re-enable the deprecation warningsLuca Barbato2015-12-05
| | | | | | | | | | | | The end-marked was typoed in f7edcac040f73635fc1127489c9bb29ca8b43532
* | Merge commit 'f7edcac040f73635fc1127489c9bb29ca8b43532'Hendrik Leppkes2015-12-08
|\| | | | | | | | | | | | | * commit 'f7edcac040f73635fc1127489c9bb29ca8b43532': avpicture: Suppress warning from deprecated code Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * avpicture: Suppress warning from deprecated codeLuca Barbato2015-12-05
| |
* | Merge commit 'dca23ffbc7568c9af5c5fbaa86e6a0761ecae50c'Hendrik Leppkes2015-10-27
|\| | | | | | | | | | | | | | | | | | | * commit 'dca23ffbc7568c9af5c5fbaa86e6a0761ecae50c': lavc: Deprecate AVPicture structure and related functions Deprecation flag on AVPicture struct replaced by a comment, as it causes excess deprecation warnings for every include of avcodec.h Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * lavc: Deprecate AVPicture structure and related functionsVittorio Giovara2015-10-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This structure served as a bridge between data pointers and frames, but it suffers from several limitations: - it is not refcounted and data must be copied to every time - it cannot be expanded without ABI break due to being used on the stack - its functions are just wrappers to imgutils which add a layer of unneeded indirection, and maintenance burden - it allows hacks like embedding uncompressed data in packets - its use is often confusing to our users AVFrame provides a much better API, and, if a full blown frame is not needed, it is just as simple and more straightfoward to use data and linesize arrays directly. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * lavu: Drop the {minus,plus}1 suffix from AVComponentDescriptor fieldsVittorio Giovara2015-09-07
| | | | | | | | | | | | The new fields can be accessed directly and are more intelligible. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | avcodec/imgconvert: Support non-planar colorspaces while paddingPrzemysław Sobala2015-09-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit 'cad40a3833ad81a352e7657ec6f7d637cea3b798'Hendrik Leppkes2015-09-05
|\| | | | | | | | | | | | | * commit 'cad40a3833ad81a352e7657ec6f7d637cea3b798': lavc: Drop deprecated deinterlace module Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * lavc: Drop deprecated deinterlace moduleVittorio Giovara2015-08-28
| | | | | | | | Deprecated in 03/2013.
| * imgutils: Fix a typo in avcodec_get_pix_fmt_lossLuca Barbato2015-08-21
| | | | | | | | | | | | | | If the candidate does not have alpha and the source does have alpha report the loss of alpha. CC: libav-stable@libav.org
* | libavcodec/imgconvert.c: support left band while croppingPrzemysław Sobala2015-06-12
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '210461c0a83a5625560fa1d92229200dc7fb869b'Michael Niedermayer2014-12-19
|\| | | | | | | | | | | | | * commit '210461c0a83a5625560fa1d92229200dc7fb869b': imgconvert: check memory allocations and propagate errors Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * imgconvert: check memory allocations and propagate errorsVittorio Giovara2014-12-18
| |
* | Merge commit '78670fbf07bd03479073d4218440de4914304680'Michael Niedermayer2014-07-22
|\| | | | | | | | | | | | | * commit '78670fbf07bd03479073d4218440de4914304680': imgconvert: cosmetics: Reshuffle defines to reduce ifdeffery Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * imgconvert: cosmetics: Reshuffle defines to reduce ifdefferyDiego Biurrun2014-07-21
| |
* | Move av_find_best_pix_fmt_of_2() from avcodec to avutilMichael Niedermayer2014-04-30
| | | | | | | | | | | | | | | | | | This avoids a dependancy of libavfilter on libavcodec See Ticket 3592 Fixes Ticket2784 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/imgconvert: fix nb_components and depth for PAL8 in get_pix_fmt_score()Michael Niedermayer2014-04-10
| | | | | | | | | | | | | | | | | | This causes us to favor RGB8 over PAL8 when FF_LOSS_COLORQUANT is used It probably makes sense to reinvestigate the exact scoring of pal8 when our pal8 support improves to be supperior to rgb8 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'f9279ee74936b4990fc46287c27816ef828cc06c'Michael Niedermayer2014-03-22
|\| | | | | | | | | | | | | | | | | | | * commit 'f9279ee74936b4990fc46287c27816ef828cc06c': dsputil: Move ff_zigzag_direct and ff_crop_tab declarations to mathops.h Conflicts: libavcodec/imgconvert.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * dsputil: Move ff_zigzag_direct and ff_crop_tab declarations to mathops.hDiego Biurrun2014-03-22
| |
* | Merge commit '600b854ad8173995518bd917e7f86120b5505088'Michael Niedermayer2014-03-22
|\| | | | | | | | | | | | | | | | | | | | | * commit '600b854ad8173995518bd917e7f86120b5505088': imgconvert: Move ff_deinterlace_line_*_mmx declarations out of dsputil Conflicts: libavcodec/imgconvert.c libavcodec/x86/dsputil_x86.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * imgconvert: Move ff_deinterlace_line_*_mmx declarations out of dsputilDiego Biurrun2014-03-22
| |
* | Merge commit '05563ccacc98fd185affdbf8cbaf094caf36b852'Michael Niedermayer2014-03-14
|\| | | | | | | | | | | | | | | | | | | | | * commit '05563ccacc98fd185affdbf8cbaf094caf36b852': dsputil: cosmetics: Lose camelCase on ff_cropTbl and ff_squareTbl names Conflicts: libavcodec/bit_depth_template.c libavcodec/motionpixels_tablegen.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * dsputil: cosmetics: Lose camelCase on ff_cropTbl and ff_squareTbl namesDiego Biurrun2014-03-13
| | | | | | | | Also switch from "tbl" to "tab" name suffixes.
* | avcodec/imgconvert/get_color_type: fix type for PAL8Michael Niedermayer2013-10-02
| | | | | | | | | | | | | | | | Fixes Ticket3008 Fate changes as PAL8 gets used instead of BGR8 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec: add const qualifier to avcodec_find_best_pix_fmt2 argsDylan Alex Simon2013-09-11
| | | | | | | | | | | | | | | | avcodec_find_best_pix_fmt2 does not modify its first argument so may be marked const. This avoids a warning when passing in AVCodec.pix_fmts. Signed-off-by: Dylan Simon <dylan@dylex.net> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Make avcodec_find_best_pix_fmt_of_list const-correctMichael Bradshaw2013-09-10
| | | | | | | | | | Signed-off-by: Michael Bradshaw <mjbshaw@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | configure: rename have_incompatible_fork_abi -> have_incompatible_libav_abiStefano Sabatini2013-07-03
| | | | | | | | | | | | | | | | | | "Fork" is an ambiguous term, since there may be more than one fork, also "fork" could be confused with the corresponding function. Also it seems important to point the name of the referenced fork in the symbol. Note: the old --enable-incompatible-fork-abi command is retained for compatibility, although it should be considered deprecated.
* | get_pix_fmt_score: favor equal formats if all else equalMichael Niedermayer2013-06-29
| | | | | | | | | | | | Fixes Ticket2578 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cosmetics: Fix "dont" "wont" "doesnt" typosTimothy Gu2013-06-29
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | replace remaining PIX_FMT_* flags with AV_PIX_FMT_FLAG_*Michael Niedermayer2013-05-15
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-05-15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_* Conflicts: doc/APIchanges libavcodec/avpicture.c libavcodec/ffv1dec.c libavcodec/ffv1enc.c libavcodec/imgconvert.c libavcodec/tiffenc.c libavfilter/vf_pixdesctest.c libavfilter/vf_scale.c libavutil/imgutils.c libavutil/pixdesc.c libavutil/version.h libswscale/swscale_internal.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*Anton Khirnov2013-05-15
| |
* | Merge commit '1399931d07f0f37ef4526eb8d39d33c64e09618a'Michael Niedermayer2013-05-14
|\| | | | | | | | | | | | | | | | | | | * commit '1399931d07f0f37ef4526eb8d39d33c64e09618a': x86: dsputil: Rename dsputil_mmx.h --> dsputil_x86.h Conflicts: libavcodec/x86/dsputil_mmx.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * x86: dsputil: Rename dsputil_mmx.h --> dsputil_x86.hDiego Biurrun2013-05-12
| | | | | | | | The header is not (anymore) MMX-specific.
* | imgconvert: silence "incompatible pointer type" warningPaul B Mahol2013-05-13
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Merge commit '9e0f14f16cfc9456a691655fda7d01090bffe47e'Michael Niedermayer2013-04-08
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '9e0f14f16cfc9456a691655fda7d01090bffe47e': lavc: Make pointers to ff_cropTbl const vp3: Embed idct_permutation array directly in VP3DecoderContext Conflicts: libavcodec/bit_depth_template.c libavcodec/vp3.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: Make pointers to ff_cropTbl constMartin Storsjö2013-04-08
| | | | | | | | | | | | There's no point in these pointers not being const. Signed-off-by: Martin Storsjö <martin@martin.st>