James Almer
fe21944656
avutil/hwcontext_d3d11va: drop duplicate pixfmt entry
...
Added by accident in ca71b0b807
.
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
ca71b0b807
libavutil/hwcontext_d3d11va: use the XV48 pixel format
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
dad3d9800d
libavutil/hwcontext_dxva2: use the XV48 pixel format
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
e02a3b40a5
avutil/pixfmt: add XV48 pixel format
...
Much like XV30 and XV36 in d75c4693fe
,
XV48 is added to support 16bit 4:4:4 as defined by Microsoft.
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
e1bacfb523
libavutil/hwcontext_d3d11va: use the Y216 pixel format
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
c76d92b2e0
libavutil/hwcontext_dxva2: use the Y216 pixel format
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
5c622d4cc1
avutil/hwcontext_vulkan: add support for AV_PIX_FMT_Y216
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
f462ba05f5
avutil/pixfmt: add Y216 pixel format
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
Lynne
9eb7e8d2a4
vulkan: move alignment of host-visible allocations outside of ff_vk_alloc_mem
...
The issue is that if dedicated allocation is used, VkBufferCreateInfo.size
and the actual allocated size mismatched, which is a validation error.
3 months ago
James Almer
8d940a07d1
avutil/pixdesc: fix alpha offset for X2{RGB,BGR}10BE
...
fixes fate-pixelutils
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
8f1de9ccd9
avutil/pixdesc: add alpha component information to pixfmts with reserved but undefined alpha bits
...
This can be useful to simplify certain processes that need to know how many
reserved bits there are and where they are placed, even if they are ultimately
unused, as will be shown in the next commit.
For any other case where the user simply looks at nb_components components, it
will make no difference.
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
72f8f76d45
avutil/pixdesc: ensure the component being read or writen to is valid
...
If depth is 0, then the component is invalid/unset.
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
Lynne
dfaade76db
vulkan: move buffer allocation av_log message
...
Its more useful when buffers are allocated, not in the
pool.
3 months ago
Anton Khirnov
31b5b3badc
lavu/opt: deprecate av_opt_ptr()
...
It has no more internal callers, and we do not want to support direct
pointer access via AVOptions, as that constrains AVOption API
extensions.
3 months ago
Lynne
931d45d4d6
vulkan: do not create imageviews with video encode/decode usage
...
This function is only used for filtering and generic compute.
The issue is that a view inherits the usage flags from the image
by default, and the spec says the view format must be compatible
with the usage. VkImageViewUsageCreateInfo allows us to filter out
the indeded uses of the imageview.
Pffff.
3 months ago
Lynne
4b128de44a
vulkan: enable selecting a compatible representation of format
...
When using **integer** images inside shaders, it turns out
that conversion doesn't automatically happen, but we need to
explicitly use the imageviews to get the image exposed as
a suitable representation for the shader.
Finally enables bitexact image representations.
3 months ago
Lynne
76e8afa8a6
hwcontext_vulkan: always enable MUTABLE creation flag
...
We need it even for something as simple as bitexact opening
of images.
3 months ago
Lynne
98f6d43146
vulkan: keep track of mapped memory in the buffer structure
...
Can/could be useful to know which buffers are mapped.
3 months ago
Lynne
3afdfe830f
vulkan: add support for AV_PIX_FMT_RGB96
3 months ago
Lynne
903f7f053a
vulkan: add support for AV_PIX_FMT_RGBA128
3 months ago
Lynne
2336e68565
lavu: bump minor and add APIChanges entries for new 32bpc pixfmts
3 months ago
Lynne
4f387a1c4e
lavu/pixfmt: add AV_PIX_FMT_RGB96
3 months ago
Lynne
281bba1d26
lavu/pixfmt: add AV_PIX_FMT_RGBA128
...
This format is useful for doing certain lossless transforms on images,
RCT in particular, which require you to escalate the size from 16 to
32 bits to avoid overflows.
APIchanges will be done alongside when comitting.
3 months ago
Martin Schitter
c993a91bea
avutil: add RGBF16 pix_fmt
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 months ago
James Almer
fd8b0dcfed
avutil/hwcontext_vulkan: add proper maps for XV3{0,6}
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
d41e5b0fc7
avutil/hwcontext_videotoolbox: add support for AYUV pixel format
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
Lynne
0e19b05375
vulkan: fix layout qualifiers for 32-bit RGBA float storage reps
...
r8
r16/r16f
r32f
Sure, GLSL. Makes sense.
3 months ago
Lynne
8c47cf9eea
hwcontext_vulkan: enable shaderBufferInt64Atomics if supported
3 months ago
Lynne
168e8ae9bf
hwcontext_vulkan: add support for AV_PIX_FMT_RGBF32
3 months ago
Lynne
d55a351741
hwcontext_vulkan: add support for AV_PIX_FMT_RGBAF32
3 months ago
Lynne
1addd0fdca
vulkan: use correct signed image type for storage images
...
Using signed or unsigned integer formats/layouts requires that
"uimage" or "iimage" are used.
3 months ago
Lynne
c982376076
vulkan: extend ff_vk_shader_rep_fmt to be useful for bitexactness
...
The original either reported 8 or 16-bit conversion from the
original, rather than being able to return the actual original.
This makes it usable in a situation where preserving exactness
is required.
3 months ago
James Almer
1cead90292
avutil/pixdesc: use a bigger variable type when writing bitstream formats
...
Fixes fate-imgutils and fate-pixelutils under gcc-usan after
29ea34728f
.
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
Lynne
80a0567a2f
vulkan: fix ImageView flexible array struct allocation
...
Same as the previous commit, the compiler may insert padding.
Thanks to Marvin Scholz for pointing this out.
3 months ago
Marvin Scholz
f5e2914a89
libavutil/vulkan: fix flexible array struct allocation
...
The flexible array member struct can have padding added by
the compiler which was not taken into account properly, which
could lead to a heap buffer overflow.
3 months ago
Lynne
4ad4f8101a
hwcontext_vulkan: set hwctx->device_features
...
This was forgotten during the recent device feature refactor.
3 months ago
Lynne
31def0c3ce
hwcontext_vulkan: remove redundant hostQueryReset setting
...
Its set just a few lines earlier.
3 months ago
Lynne
b8d1b4358b
vulkan: add a #define when printf debugging is enabled
3 months ago
James Almer
29ea34728f
avutil/pixfmt: add V30X pixel format
...
This maps to the 444YpCbCr10 pixel format as defined by Apple.
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
1f9424e0b1
avutil/pixfmt: add VYU444 pixel format
...
This maps to the 444YpCbCr8 pixel format as defined by Apple, which is ordered
Cr Y' Cb.
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
dc3ef53819
avutil/pixfmt: add UYVA pixel format
...
This maps to the 4444YpCbCrA8 pixel format as defined by Apple, which is ordered
Cb Y' Cr A.
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
263108a504
avutil/pixfmt: add AYUV pixel format
...
This maps to the 4444AYpCbCr8 pixel format as defined by Apple, which is ordered
A Y’ Cb Cr.
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
James Almer
2e79690a70
avutil/pixfmt: extend the VUY{A,X} description
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 months ago
Lynne
6871fd3170
vulkan: always enable GL_EXT_control_flow_attributes
3 months ago
Lynne
8c250da8f3
vulkan: always enable GL_EXT_shader_explicit_arithmetic_types
...
Implicit types were a mistake.
lowp/mediump/highp was a sin.
3 months ago
Lynne
9391d4ccc5
lavu/vulkan_spirv: use correct inclusion guards
...
Forgot to change them after moving the file over from libavfilter.
3 months ago
IndecisiveTurtle
d80676117a
libavutil/vulkan: Prevent crash on shaders with no descriptors
...
Needed to prevent crashes on vc2 vulkan encoder patch
3 months ago
Lynne
892f64ad9b
x86/tx_float: remove HAVE_AVX2_EXTERNAL checks
...
It'll always be enabled.
Thanks, nasm.
3 months ago
Lynne
b17a240c8d
Revert "x86/tx_float: set all operands for shufps"
...
This reverts commit 74f5fb6db8
.
3 months ago
Lynne
24c5a58e55
Revert "x86/tx_float: add missing check for AVX2"
...
This reverts commit f4097e4c1f
.
3 months ago