This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit cfcf52a08c8aa46b79384c06ff296c0f8522adf4 Author: Lynne <[email protected]> AuthorDate: Mon Dec 22 16:37:29 2025 +0100 Commit: Lynne <[email protected]> CommitDate: Mon Dec 22 19:46:27 2025 +0100 vulkan: deduplicate shorthand casting defines to common.comp --- libavcodec/vulkan/common.comp | 10 ++++++++++ libavcodec/vulkan/prores_raw_decode.comp | 3 --- libavcodec/vulkan/prores_vld.comp | 3 --- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/libavcodec/vulkan/common.comp b/libavcodec/vulkan/common.comp index 77839d6758..3538aeacd1 100644 --- a/libavcodec/vulkan/common.comp +++ b/libavcodec/vulkan/common.comp @@ -50,6 +50,16 @@ layout(buffer_reference, buffer_reference_align = 8) buffer u64buf { uint64_t v; }; +#define U8(x) uint8_t(x) +#define U16(x) uint16_t(x) +#define U32(x) uint32_t(x) +#define U64(x) uint64_t(x) + +#define I8(x) int8_t(x) +#define I16(x) int16_t(x) +#define I32(x) int32_t(x) +#define I64(x) int64_t(x) + #define OFFBUF(type, b, l) \ type(uint64_t(b) + uint64_t(l)) diff --git a/libavcodec/vulkan/prores_raw_decode.comp b/libavcodec/vulkan/prores_raw_decode.comp index 809d787466..384046f891 100644 --- a/libavcodec/vulkan/prores_raw_decode.comp +++ b/libavcodec/vulkan/prores_raw_decode.comp @@ -20,9 +20,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#define U8(x) (uint8_t(x)) -#define I16(x) (int16_t(x)) - #define COMP_ID (gl_LocalInvocationID.x) GetBitContext gb; diff --git a/libavcodec/vulkan/prores_vld.comp b/libavcodec/vulkan/prores_vld.comp index 4b486fe2b4..ab0dbf0116 100644 --- a/libavcodec/vulkan/prores_vld.comp +++ b/libavcodec/vulkan/prores_vld.comp @@ -16,9 +16,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#define U8(x) (uint8_t (x)) -#define U16(x) (uint16_t(x)) - /** * Table 9, encoded as (last_rice_q << 0) | (krice or kexp << 4) | ((kexp or kexp + 1) << 8) * According to the SMPTE document, abs(prev_dc_diff) should be used _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
