Vittorio Giovara
6f15f1cdc8
pixdesc: Add API to map color property names to enum values
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
7 years ago
Mark Thompson
9cb23cd9fe
lavu: Add DRM hwcontext
7 years ago
Vittorio Giovara
1460408703
Add single precision planar RGB pixel formats
...
Add a pixel format flag to identify this family.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
7 years ago
Vittorio Giovara
f357104866
pixfmt: Support chroma-derived and ictcp color matrices
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
7 years ago
Paul B Mahol
ab6d89d7ee
libavutil: add GRAY9 pixel format
7 years ago
Mark Thompson
f2c11b9337
pixdesc: Reindent after previous commit
7 years ago
Mark Thompson
f48efb14f9
pixdesc: Explicitly handle invalid arguments to av_find_best_pix_fmt_of_2()
7 years ago
Mark Thompson
8a442d7a8a
pixdesc: Improve scoring for opaque/unknown pixel formats
...
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.
7 years ago
wm4
3303511f33
lavu: add new D3D11 pixfmt and hwcontext
...
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 fff90422d1
.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years ago
Clément Bœsch
9c2436e1e7
lavu: add AV_PIX_FMT_FLAG_BAYER
8 years ago
Anton Khirnov
fd9212f2ed
Mark some arrays that never change as const.
8 years ago
Philip Langdale
237421f149
avutil: add P016 pixel format
...
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.
8 years ago
Carl Eugen Hoyos
3f1b5ca22e
lavu/pixfmt: Add GRAY10
...
Based on 7471352f
by Luca Barbato.
8 years ago
Luca Barbato
638b216d4f
pixfmt: Add GRAY12
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Vittorio Giovara
17dac56b8f
lavu: Rename ycgco color space appropriately
...
Planes are ordered as the name suggests now.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Luca Barbato
7471352f19
pixfmt: Add GRAY12
8 years ago
Vittorio Giovara
0d9b9bd37f
lavu: Add JEDEC P22 color primaries
8 years ago
Kieran Kunhya
81f1f6c3f6
Add GBRAP12 pixel format support
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
8 years ago
Michael Niedermayer
1e93aa69a6
Add GBRP12 pixel format support
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Luca Barbato
9bd6ea5695
pixfmt: Add yuv444p12 pixel format
8 years ago
Luca Barbato
0aebbbd024
pixfmt: Add yuv422p12 pixel format
8 years ago
Luca Barbato
85406e7a8d
pixfmt: Add yuv420p12 pixel format
8 years ago
Matthieu Bouron
0f2654c9a3
lavc: add mediacodec hwaccel support
8 years ago
Hendrik Leppkes
b7c5f88523
pixfmt: add P010 pixel format
...
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>
9 years ago
Vittorio Giovara
444a36269f
pixdesc: Fix AVCOL_TRC_BT2020_12 name
9 years ago
Vittorio Giovara
f172e22d6a
pixdesc: Add aliases to SMPTE color properties
...
Drop ST from names and symbols, it does not add anything distinctive or
descriptive.
9 years ago
Vittorio Giovara
a816432337
pixdesc: Add new SMPTE 431, 432, and 2085 color properties
...
Appeared in H.264 2016/02.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Neil Birkbeck
5d560d38de
pixfmt: Add ARIB STD-B76 color transfer characteristic
...
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>
9 years ago
Vittorio Giovara
bcc07e2576
pixdesc: Use C99 array to list color properties names
9 years ago
Paul B Mahol
8100426fe4
avutil: add 10-bit planar RGB with alpha
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Neil Birkbeck
785038c92c
lavu: Adding ARIB STD-B67 (hybrid log-gamma) enum value and transfer function.
...
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>
9 years ago
Mark Thompson
d264c720f7
lavu: deprecate AV_PIX_FMT_VAAPI_*, replace with AV_PIX_FMT_VAAPI
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Kieran Kunhya
4170a44bbc
Add GBRAP12 pixel format
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
1ec7a70380
avutil/pixdesc: Make get_color_type() aware of CIE XYZ formats
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Anton Khirnov
7bc780cd44
pixfmt: add a CUDA hwaccelled format
9 years ago
Hendrik Leppkes
c2869b4640
avutil: add P010 pixel format
...
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.
9 years ago
Vittorio Giovara
1546a41ada
pixdesc: Drop unneeded deprecation warning guards
9 years ago
Kevin Wheatley
4a66422450
pixfmt: Add new SMPTE color primaries and transfer characteristic values
...
Appeared in ITU-T Rec H.265 10/2014.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Michael Niedermayer
b5939ba09c
avutil/pixdesc: Use "-" in color_primaries_names to be consistent with color_transfer_names
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Kevin Wheatley
6d4b394b5d
avutil/pixdesc: Add SMPTE ST 2084 and ST 428-1 pixel descriptions
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Hendrik Leppkes
c7ed26ad60
pixdesc: Add missing alpha flag for yuva420p9be
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 years ago
Hendrik Leppkes
e336c51e6f
pixdesc: Consistently order components
...
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>
9 years ago
Hendrik Leppkes
5d8e836d0e
Replace all remaining occurances of step/depth_minus1 and offset_plus1
9 years ago
Vittorio Giovara
2268db2cd0
lavu: Drop the {minus,plus}1 suffix from AVComponentDescriptor fields
...
The new fields can be accessed directly and are more intelligible.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Vittorio Giovara
2f8cbbc962
lavu: Drop deprecated external access to AVPixFmtDescriptor table
...
Deprecated in 10/2012.
9 years ago
Gwenole Beauchesne
9f8e57efe4
vaapi: define a unique pixel format for VA-API (AV_PIX_FMT_VAAPI).
...
Deprecate older VA pixel formats (MOCO, IDCT) as it is now very unlikely
to ever be useful in the future. Only keep plain AV_PIX_FMT_VAAPI format
that is aliased to the older VLD variant.
This is an API change.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
9 years ago
Sebastien Zwickert
11d923d414
avcodec: add new Videotoolbox hwaccel.
9 years ago
Paul B Mahol
f0489a35c0
avutil: add ayuv64le and ayuv64be packed pixel format
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Steve Lhomme
d8039ef8d2
D3D11va: add a Direct3D11 video decoder similar to DXVA2
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Ronald S. Bultje
98f7f0f7e8
lavu: add yuv440p10/12 pixfmts.
10 years ago