Skip to content

Commit 1400dd8

Browse files
committed
ffv1enc: add a Vulkan encoder
1 parent ac51dbd commit 1400dd8

File tree

13 files changed

+1885
-5
lines changed

13 files changed

+1885
-5
lines changed

configure

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2951,6 +2951,7 @@ exr_decoder_deps="zlib"
29512951
exr_encoder_deps="zlib"
29522952
ffv1_decoder_select="rangecoder"
29532953
ffv1_encoder_select="rangecoder"
2954+
ffv1_vulkan_encoder_select="vulkan spirv_compiler"
29542955
ffvhuff_decoder_select="huffyuv_decoder"
29552956
ffvhuff_encoder_select="huffyuv_encoder"
29562957
fic_decoder_select="golomb"

libavcodec/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ OBJS-$(CONFIG_EXR_ENCODER) += exrenc.o float2half.o
370370
OBJS-$(CONFIG_FASTAUDIO_DECODER) += fastaudio.o
371371
OBJS-$(CONFIG_FFV1_DECODER) += ffv1dec.o ffv1.o
372372
OBJS-$(CONFIG_FFV1_ENCODER) += ffv1enc.o ffv1.o
373+
OBJS-$(CONFIG_FFV1_VULKAN_ENCODER) += ffv1enc.o ffv1.o ffv1enc_vulkan.o
373374
OBJS-$(CONFIG_FFWAVESYNTH_DECODER) += ffwavesynth.o
374375
OBJS-$(CONFIG_FIC_DECODER) += fic.o
375376
OBJS-$(CONFIG_FITS_DECODER) += fitsdec.o fits.o

libavcodec/allcodecs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ extern const FFCodec ff_escape130_decoder;
116116
extern const FFCodec ff_exr_encoder;
117117
extern const FFCodec ff_exr_decoder;
118118
extern const FFCodec ff_ffv1_encoder;
119+
extern const FFCodec ff_ffv1_vulkan_encoder;
119120
extern const FFCodec ff_ffv1_decoder;
120121
extern const FFCodec ff_ffvhuff_encoder;
121122
extern const FFCodec ff_ffvhuff_decoder;

libavcodec/ffv1.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ typedef struct PlaneContext {
7070

7171
#define MAX_SLICES 1024
7272

73+
/* Note - this structure's layout is assumed to stay the same by the
74+
* Vulkan encoder. Do not change without updating it. */
7375
DECLARE_ALIGNED(16, typedef, struct) {
7476
PlaneContext plane[MAX_PLANES];
7577

0 commit comments

Comments
 (0)