summaryrefslogtreecommitdiff
path: root/libavutil/pixdesc.c
Commit message (Collapse)AuthorAge
* Add single precision planar RGB pixel formatsVittorio Giovara2017-08-15
| | | | | | Add a pixel format flag to identify this family. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* pixfmt: Support chroma-derived and ictcp color matricesVittorio Giovara2017-08-10
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* libavutil: add GRAY9 pixel formatPaul B Mahol2017-08-07
|
* pixdesc: Reindent after previous commitMark Thompson2017-07-22
|
* pixdesc: Explicitly handle invalid arguments to av_find_best_pix_fmt_of_2()Mark Thompson2017-07-22
|
* pixdesc: Improve scoring for opaque/unknown pixel formatsMark Thompson2017-07-18
| | | | | | | | | | | | | Hardware pixel formats do not tell you anything about their actual contents, but should still score higher than formats with completely unknown properties, which in turn should score higher than invalid formats. Do not return an AVERROR code as a score. Fixes a hang in libavfilter where format negotiation gets stuck in a loop because AV_PIX_FMT_NONE scores more highly than all other possibilities.
* lavu: add new D3D11 pixfmt and hwcontextwm42017-06-27
| | | | | | | | | | | | | | | | | | | | | | To be used with the new d3d11 hwaccel decode API. With the new hwaccel API, we don't want surfaces to depend on the decoder (other than the required dimension and format). The old D3D11VA pixfmt uses ID3D11VideoDecoderOutputView pointers, which include the decoder configuration, and thus is incompatible with the new hwaccel API. This patch introduces AV_PIX_FMT_D3D11, which uses ID3D11Texture2D and an index. It's simpler and compatible with the new hwaccel API. The introduced hwcontext supports only the new pixfmt. Frame upload code untested. Significantly based on work by Steve Lhomme <robux4@gmail.com>, but with heavy changes/rewrites. Merges Libav commit fff90422d181744cd75dbf011687ee7095f02875. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Merge commit '17dac56b8fdd80c594c39b76de3f27a7949afbde'Clément Bœsch2017-03-31
|\ | | | | | | | | | | | | * commit '17dac56b8fdd80c594c39b76de3f27a7949afbde': lavu: Rename ycgco color space appropriately Merged-by: Clément Bœsch <cboesch@gopro.com>
| * lavu: Rename ycgco color space appropriatelyVittorio Giovara2016-11-08
| | | | | | | | | | | | Planes are ordered as the name suggests now. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * pixfmt: Add GRAY12Luca Barbato2016-11-07
| |
* | Merge commit '0d9b9bd37f43ee29ad9f709d85c8f3be9db71104'Clément Bœsch2017-03-24
|\| | | | | | | | | | | | | * commit '0d9b9bd37f43ee29ad9f709d85c8f3be9db71104': lavu: Add JEDEC P22 color primaries Merged-by: Clément Bœsch <u@pkh.me>
| * lavu: Add JEDEC P22 color primariesVittorio Giovara2016-10-21
| |
| * Add GBRAP12 pixel format supportKieran Kunhya2016-10-12
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * Add GBRP12 pixel format supportMichael Niedermayer2016-10-12
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * pixfmt: Add yuv444p12 pixel formatLuca Barbato2016-09-27
| |
| * pixfmt: Add yuv422p12 pixel formatLuca Barbato2016-09-27
| |
| * pixfmt: Add yuv420p12 pixel formatLuca Barbato2016-09-27
| |
| * pixfmt: add P010 pixel formatHendrik Leppkes2016-07-02
| | | | | | | | | | | | | | P010 is the 10-bit variant of NV12 (planar luma, packed chroma), using two bytes per component to store 10-bit data plus 6-bit zeroes in the LSBs. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | lavu: add AV_PIX_FMT_FLAG_BAYERClément Bœsch2017-03-20
| |
* | avutil: add P016 pixel formatPhilip Langdale2016-11-22
| | | | | | | | | | | | | | | | | | P016 is the 16-bit variant of NV12 (planar luma, packed chroma), using two bytes per component. It may, and in fact is most likely to, be used in situations where there are less than 16 bits of data. It is the responsibility of the writer to zero out any unused LSBs.
* | lavu/pixfmt: Add GRAY10Carl Eugen Hoyos2016-11-14
| | | | | | | | Based on 7471352f by Luca Barbato.
* | Merge commit '444a36269f853844369af0a9836507e5a2780323'Hendrik Leppkes2016-11-13
|\| | | | | | | | | | | | | * commit '444a36269f853844369af0a9836507e5a2780323': pixdesc: Fix AVCOL_TRC_BT2020_12 name Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * pixdesc: Fix AVCOL_TRC_BT2020_12 nameVittorio Giovara2016-06-27
| |
* | Merge commit 'f172e22d6aed0bff36e975bafb0183b6779f9444'Hendrik Leppkes2016-11-13
|\| | | | | | | | | | | | | * commit 'f172e22d6aed0bff36e975bafb0183b6779f9444': pixdesc: Add aliases to SMPTE color properties Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * pixdesc: Add aliases to SMPTE color propertiesVittorio Giovara2016-06-27
| | | | | | | | | | Drop ST from names and symbols, it does not add anything distinctive or descriptive.
* | pixfmt: Add GRAY12Luca Barbato2016-11-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit 'a8164323374e86ce5f93759230868c98356833a2'James Almer2016-09-28
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'a8164323374e86ce5f93759230868c98356833a2': pixdesc: Add new SMPTE 431, 432, and 2085 color properties Conflicts: libavcodec/options_table.h libavcodec/version.h libavutil/pixdesc.c libavutil/pixfmt.h libavutil/version.h Merged-by: James Almer <jamrial@gmail.com>
| * pixdesc: Add new SMPTE 431, 432, and 2085 color propertiesVittorio Giovara2016-06-21
| | | | | | | | | | | | Appeared in H.264 2016/02. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * pixfmt: Add ARIB STD-B76 color transfer characteristicNeil Birkbeck2016-06-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding hybrid log-gamma (https://en.wikipedia.org/wiki/Hybrid_Log-Gamma) based on the standardization in ARIB STD-B67: http://www.arib.or.jp/english/html/overview/doc/2-STD-B67v1_0.pdf The choice of enum value of 18 is consistent with HEVC: http://phenix.it-sudparis.eu/jct/doc_end_user/current_document.php?id=10481 And also with latest proposal for color format in mkv: https://mailarchive.ietf.org/arch/search/?email_list=cellar&gbt=1&q=Colour+Format+proposal Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit 'bcc07e2576cb723007bea1238afd019ae2d1b005'Clément Bœsch2016-07-09
|\| | | | | | | | | | | | | * commit 'bcc07e2576cb723007bea1238afd019ae2d1b005': pixdesc: Use C99 array to list color properties names Merged-by: Clément Bœsch <u@pkh.me>
| * pixdesc: Use C99 array to list color properties namesVittorio Giovara2016-06-13
| |
* | lavc: add mediacodec hwaccel supportMatthieu Bouron2016-07-08
| |
* | avutil: add 10-bit planar RGB with alphaPaul B Mahol2016-06-10
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | lavu: Adding ARIB STD-B67 (hybrid log-gamma) enum value and transfer function.Neil Birkbeck2016-06-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding hybrid log-gamma (https://en.wikipedia.org/wiki/Hybrid_Log-Gamma) based on the standardization in ARIB STD-B67: http://www.arib.or.jp/english/html/overview/doc/2-STD-B67v1_0.pdf The choice of enum value of 18 is consistent with HEVC: http://phenix.it-sudparis.eu/jct/doc_end_user/current_document.php?id=10481 And also with latest proposal for color format in mkv: https://mailarchive.ietf.org/arch/search/?email_list=cellar&gbt=1&q=Colour+Format+proposal The implementation assumes a nominal input range of [0, 1], which is consistent with HEVC. Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | 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 'd264c720f7b74286840719e506daba39f83b438b'Derek Buitenhuis2016-04-14
|\| | | | | | | | | | | | | * commit 'd264c720f7b74286840719e506daba39f83b438b': lavu: deprecate AV_PIX_FMT_VAAPI_*, replace with AV_PIX_FMT_VAAPI Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavu: deprecate AV_PIX_FMT_VAAPI_*, replace with AV_PIX_FMT_VAAPIMark Thompson2016-03-19
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit '7bc780cd4413f688d3b834037b0f9ddfd6948140'Derek Buitenhuis2016-02-24
|\| | | | | | | | | | | | | * commit '7bc780cd4413f688d3b834037b0f9ddfd6948140': pixfmt: add a CUDA hwaccelled format Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * pixfmt: add a CUDA hwaccelled formatAnton Khirnov2016-02-14
| |
* | Add GBRAP12 pixel formatKieran Kunhya2016-02-24
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/pixdesc: Make get_color_type() aware of CIE XYZ formatsMichael Niedermayer2016-02-22
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit '1546a41adae818b340acdd9b5dacd6d0a92b6507'Derek Buitenhuis2016-02-16
|\| | | | | | | | | | | | | * commit '1546a41adae818b340acdd9b5dacd6d0a92b6507': pixdesc: Drop unneeded deprecation warning guards Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * pixdesc: Drop unneeded deprecation warning guardsVittorio Giovara2016-01-25
| |
| * pixfmt: Add new SMPTE color primaries and transfer characteristic valuesKevin Wheatley2015-09-17
| | | | | | | | | | | | Appeared in ITU-T Rec H.265 10/2014. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * pixdesc: Add missing alpha flag for yuva420p9beHendrik Leppkes2015-09-10
| | | | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | avutil: add P010 pixel formatHendrik Leppkes2016-01-26
| | | | | | | | | | P010 is the 10-bit variant of NV12 (planar luma, packed chroma), using two bytes per component to store 10-bit data plus 6-bit zeroes in the LSBs.
* | Merge commit 'e336c51e6ffcdb93fbcf3c6153d378400608526b'Hendrik Leppkes2015-09-12
|\| | | | | | | | | | | | | * commit 'e336c51e6ffcdb93fbcf3c6153d378400608526b': pixdesc: Consistently order components Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * pixdesc: Consistently order componentsHendrik Leppkes2015-09-10
| | | | | | | | | | | | | | | | Ensure that the components are ordered consistently, ie. always RGB(A) and YUV(A). This allows to identify a specific plane on a given pixel format without hard-coding knowledge of the plane order. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | avutil/pixdesc: Use "-" in color_primaries_names to be consistent with ↵Michael Niedermayer2015-09-10
| | | | | | | | | | | | color_transfer_names Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/pixdesc: Add SMPTE ST 2084 and ST 428-1 pixel descriptionsKevin Wheatley2015-09-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>