summaryrefslogtreecommitdiff
path: root/libavcodec/imgconvert.c
Commit message (Collapse)AuthorAge
* 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>
* | Merge commit '7d42fd6bb9df99a20cf2d0d0e3b166a83a649d08'Michael Niedermayer2013-03-12
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '7d42fd6bb9df99a20cf2d0d0e3b166a83a649d08': lavc: remove disabled FF_API_FIND_BEST_PIX_FMT cruft Conflicts: libavcodec/avcodec.h libavcodec/imgconvert.c libavcodec/version.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavc: remove disabled FF_API_FIND_BEST_PIX_FMT cruftAnton Khirnov2013-03-09
| |
| * lavc: Deprecate the deinterlace functions in libavcodecRonald S. Bultje2013-03-07
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Deprecate deinterlaced in libavcodec.Ronald S. Bultje2013-03-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | imgconvert: use get_pix_fmt_score in avcodec_find_best_pix_fmt_of_2()Michael Niedermayer2013-02-10
| | | | | | | | | | | | This fixes various poorly choosen pixel format cases. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | imgconvert: add get_pix_fmt_score()Michael Niedermayer2013-02-10
| | | | | | | | | | | | | | get_pix_fmt_score() returns a score representing the amount of loss when converting a pixel format Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '35685a3c2a1ec09f3c62dcfc4368fe9e92bcddf6'Michael Niedermayer2013-02-09
|\| | | | | | | | | | | | | | | * commit '35685a3c2a1ec09f3c62dcfc4368fe9e92bcddf6': dsputil: Move ff_shrink* function declarations to separate header dsputil: Move ff_svq3 function declarations to a separate header Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * dsputil: Move ff_shrink* function declarations to separate headerDiego Biurrun2013-02-07
| |
* | imgconvert: fix 2 "discards const qualifier from pointer target type"Michael Niedermayer2012-12-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | imgconvert: dont depend on default return type for get_color_type()Michael Niedermayer2012-12-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | replace av_log(0, by av_log(NULL,Michael Niedermayer2012-11-23
| | | | | | | | | | | | The first parameter is a pointer and NULL is more correct Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | imgconvert-test: count the number of unused pixel format values.Michael Niedermayer2012-11-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | imgconvert-test: skip pix formats without nameMichael Niedermayer2012-11-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | imgconvert-test: test alpha flagsMichael Niedermayer2012-11-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | imgconvert: remove avg_bits_per_pixel(), its redundantMichael Niedermayer2012-11-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'ae3822bca16f1cdb2460a35b16f8ef636a04314e'Michael Niedermayer2012-11-21
|\| | | | | | | | | | | | | | | | | | | * commit 'ae3822bca16f1cdb2460a35b16f8ef636a04314e': imgconvert: remove PixFmtInfo Conflicts: libavcodec/imgconvert.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * imgconvert: remove PixFmtInfoLuca Barbato2012-11-20
| | | | | | | | It is pleonastic and was used in stale functions pending replacement.
* | imgconvert: fix color type for non normal pix_fmts like HW stuff and unused ↵Michael Niedermayer2012-11-21
| | | | | | | | | | | | entries. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec_get_pix_fmt_loss: remove PixFmtInfo useMichael Niedermayer2012-11-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | imgconvert: print color type tooMichael Niedermayer2012-11-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | imgconvert: remove PixFmtInfo use from avg_bits_per_pixel()Michael Niedermayer2012-11-21
| | | | | | | | | | | | | | This fixes several inconsistencies with YUV >8bit formats caused due to missing information in the PixFmtInfo table. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec_find_best_pix_fmt_of_2: favor formats with fewer components if it ↵Michael Niedermayer2012-11-21
| | | | | | | | | | | | does not incur a loss. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | imgconvert-test: add avg bits per pixelMichael Niedermayer2012-11-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | is_yuv_planar: remove use of PixFmtInfoMichael Niedermayer2012-11-21
| | | | | | | | | | | | This fixes the behavior for a few yuva 16bit formats Signed-off-by: Michael Niedermayer <michaelni@gmx.at>