update SVT-AV1 to latest version of 2.3.0 from 2.2.1
[goodguy/cinelerra.git] / cinelerra-5.1 / thirdparty / src / ffmpeg-6.1.patchZ1
1 --- a/libavcodec/wrapped_avframe.c
2 +++ b/libavcodec/wrapped_avframe.c
3 @@ -33,6 +33,38 @@
4  #include "libavutil/buffer.h"
5  #include "libavutil/pixdesc.h"
6  
7 +
8 +
9 +static const enum AVPixelFormat pix_fmts_all[] = {
10 +    AV_PIX_FMT_YUV411P,
11 +    AV_PIX_FMT_YUV420P,
12 +    AV_PIX_FMT_YUVJ420P,
13 +    AV_PIX_FMT_YUV422P,
14 +    AV_PIX_FMT_YUVJ422P,
15 +    AV_PIX_FMT_YUV444P,
16 +    AV_PIX_FMT_YUVJ444P,
17 +    AV_PIX_FMT_YUV420P10,
18 +    AV_PIX_FMT_YUV422P10,
19 +    AV_PIX_FMT_YUV444P10,
20 +    AV_PIX_FMT_YUV420P12,
21 +    AV_PIX_FMT_YUV422P12,
22 +    AV_PIX_FMT_YUV444P12,
23 +    AV_PIX_FMT_YUV420P14,
24 +    AV_PIX_FMT_YUV422P14,
25 +    AV_PIX_FMT_YUV444P14,
26 +    AV_PIX_FMT_YUV420P16,
27 +    AV_PIX_FMT_YUV422P16,
28 +    AV_PIX_FMT_YUV444P16,
29 +    AV_PIX_FMT_GRAY8,
30 +    AV_PIX_FMT_GRAY9,
31 +    AV_PIX_FMT_GRAY10,
32 +    AV_PIX_FMT_GRAY12,
33 +    AV_PIX_FMT_GRAY16,
34 +    AV_PIX_FMT_NONE
35 +};
36 +
37 +
38 +
39  static void wrapped_avframe_release_buffer(void *unused, uint8_t *data)
40  {
41      AVFrame *frame = (AVFrame *)data;
42 @@ -111,6 +143,7 @@
43      .p.id           = AV_CODEC_ID_WRAPPED_AVFRAME,
44      .p.capabilities = AV_CODEC_CAP_ENCODER_REORDERED_OPAQUE,
45      FF_CODEC_ENCODE_CB(wrapped_avframe_encode),
46 +    .p.pix_fmts       = pix_fmts_all,
47  };
48  
49  const FFCodec ff_wrapped_avframe_decoder = {