Skip to content

Commit 05b4a81

Browse files
committed
Bindings for 6.1
1 parent fd01e3c commit 05b4a81

69 files changed

Lines changed: 2534 additions & 555 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<PackageId>$(AssemblyName)</PackageId>
4-
<Version>6.0.0.2</Version>
4+
<Version>6.1.0</Version>
55
<Authors>Ruslan Balanukhin</Authors>
66
<Company>Rationale One</Company>
77
<Product>FFmpeg.AutoGen</Product>

FFmpeg.AutoGen.Abstractions/generated/Delegates.g.cs

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -345,70 +345,6 @@ public unsafe struct AVFormatContext_io_open_func
345345
public static implicit operator AVFormatContext_io_open_func(AVFormatContext_io_open func) => new AVFormatContext_io_open_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
346346
}
347347

348-
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
349-
public unsafe delegate int AVHWAccel_alloc_frame (AVCodecContext* @avctx, AVFrame* @frame);
350-
public unsafe struct AVHWAccel_alloc_frame_func
351-
{
352-
public IntPtr Pointer;
353-
public static implicit operator AVHWAccel_alloc_frame_func(AVHWAccel_alloc_frame func) => new AVHWAccel_alloc_frame_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
354-
}
355-
356-
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
357-
public unsafe delegate int AVHWAccel_decode_params (AVCodecContext* @avctx, int @type, byte* @buf, uint @buf_size);
358-
public unsafe struct AVHWAccel_decode_params_func
359-
{
360-
public IntPtr Pointer;
361-
public static implicit operator AVHWAccel_decode_params_func(AVHWAccel_decode_params func) => new AVHWAccel_decode_params_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
362-
}
363-
364-
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
365-
public unsafe delegate int AVHWAccel_decode_slice (AVCodecContext* @avctx, byte* @buf, uint @buf_size);
366-
public unsafe struct AVHWAccel_decode_slice_func
367-
{
368-
public IntPtr Pointer;
369-
public static implicit operator AVHWAccel_decode_slice_func(AVHWAccel_decode_slice func) => new AVHWAccel_decode_slice_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
370-
}
371-
372-
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
373-
public unsafe delegate int AVHWAccel_end_frame (AVCodecContext* @avctx);
374-
public unsafe struct AVHWAccel_end_frame_func
375-
{
376-
public IntPtr Pointer;
377-
public static implicit operator AVHWAccel_end_frame_func(AVHWAccel_end_frame func) => new AVHWAccel_end_frame_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
378-
}
379-
380-
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
381-
public unsafe delegate int AVHWAccel_frame_params (AVCodecContext* @avctx, AVBufferRef* @hw_frames_ctx);
382-
public unsafe struct AVHWAccel_frame_params_func
383-
{
384-
public IntPtr Pointer;
385-
public static implicit operator AVHWAccel_frame_params_func(AVHWAccel_frame_params func) => new AVHWAccel_frame_params_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
386-
}
387-
388-
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
389-
public unsafe delegate int AVHWAccel_init (AVCodecContext* @avctx);
390-
public unsafe struct AVHWAccel_init_func
391-
{
392-
public IntPtr Pointer;
393-
public static implicit operator AVHWAccel_init_func(AVHWAccel_init func) => new AVHWAccel_init_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
394-
}
395-
396-
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
397-
public unsafe delegate int AVHWAccel_start_frame (AVCodecContext* @avctx, byte* @buf, uint @buf_size);
398-
public unsafe struct AVHWAccel_start_frame_func
399-
{
400-
public IntPtr Pointer;
401-
public static implicit operator AVHWAccel_start_frame_func(AVHWAccel_start_frame func) => new AVHWAccel_start_frame_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
402-
}
403-
404-
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
405-
public unsafe delegate int AVHWAccel_uninit (AVCodecContext* @avctx);
406-
public unsafe struct AVHWAccel_uninit_func
407-
{
408-
public IntPtr Pointer;
409-
public static implicit operator AVHWAccel_uninit_func(AVHWAccel_uninit func) => new AVHWAccel_uninit_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
410-
}
411-
412348
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
413349
public unsafe delegate void AVHWDeviceContext_free (AVHWDeviceContext* @ctx);
414350
public unsafe struct AVHWDeviceContext_free_func

FFmpeg.AutoGen.Abstractions/generated/Enums.g.cs

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,10 @@ public enum AVCodecID : int
433433
@AV_CODEC_ID_WBMP = 263,
434434
@AV_CODEC_ID_MEDIA100 = 264,
435435
@AV_CODEC_ID_VQC = 265,
436+
@AV_CODEC_ID_PDV = 266,
437+
@AV_CODEC_ID_EVC = 267,
438+
@AV_CODEC_ID_RTV1 = 268,
439+
@AV_CODEC_ID_VMIX = 269,
436440
/// <summary>A dummy id pointing at the start of audio codecs</summary>
437441
@AV_CODEC_ID_FIRST_AUDIO = 65536,
438442
@AV_CODEC_ID_PCM_S16LE = 65536,
@@ -642,6 +646,8 @@ public enum AVCodecID : int
642646
@AV_CODEC_ID_FTR = 86116,
643647
@AV_CODEC_ID_WAVARC = 86117,
644648
@AV_CODEC_ID_RKA = 86118,
649+
@AV_CODEC_ID_AC4 = 86119,
650+
@AV_CODEC_ID_OSQ = 86120,
645651
/// <summary>A dummy ID pointing at the start of subtitle codecs.</summary>
646652
@AV_CODEC_ID_FIRST_SUBTITLE = 94208,
647653
@AV_CODEC_ID_DVD_SUBTITLE = 94208,
@@ -685,6 +691,7 @@ public enum AVCodecID : int
685691
@AV_CODEC_ID_DVD_NAV = 98312,
686692
@AV_CODEC_ID_TIMED_ID3 = 98313,
687693
@AV_CODEC_ID_BIN_DATA = 98314,
694+
@AV_CODEC_ID_SMPTE_2038 = 98315,
688695
/// <summary>codec_id is not known (like AV_CODEC_ID_NONE) but lavf should attempt to identify it</summary>
689696
@AV_CODEC_ID_PROBE = 102400,
690697
/// <summary>_FAKE_ codec to indicate a raw MPEG-2 TS stream (only used by libavformat)</summary>
@@ -883,7 +890,6 @@ public enum AVDurationEstimationMethod : int
883890
@AVFMT_DURATION_FROM_BITRATE = 2,
884891
}
885892

886-
/// <summary>@{</summary>
887893
public enum AVFieldOrder : int
888894
{
889895
@AV_FIELD_UNKNOWN = 0,
@@ -966,6 +972,8 @@ public enum AVFrameSideDataType : int
966972
@AV_FRAME_DATA_DYNAMIC_HDR_VIVID = 25,
967973
/// <summary>Ambient viewing environment metadata, as defined by H.274.</summary>
968974
@AV_FRAME_DATA_AMBIENT_VIEWING_ENVIRONMENT = 26,
975+
/// <summary>Provide encoder-specific hinting information about changed/unchanged portions of a frame. It can be used to pass information about which macroblocks can be skipped because they didn&apos;t change from the corresponding ones in the previous frame. This could be useful for applications which know this information in advance to speed up encoding.</summary>
976+
@AV_FRAME_DATA_VIDEO_HINT = 27,
969977
}
970978

971979
/// <summary>Option for overlapping elliptical pixel selectors in an image.</summary>
@@ -1087,7 +1095,7 @@ public enum AVOptionType : int
10871095
@AV_OPT_TYPE_CHLAYOUT = 19,
10881096
}
10891097

1090-
/// <summary>Types and functions for working with AVPacket. @{</summary>
1098+
/// <summary>Types and functions for working with AVPacketSideData. @{</summary>
10911099
public enum AVPacketSideDataType : int
10921100
{
10931101
/// <summary>An AV_PKT_DATA_PALETTE side data packet contains exactly AVPALETTE_SIZE bytes worth of palette. This side data signals that a new palette is present.</summary>
@@ -1645,8 +1653,20 @@ public enum AVPixelFormat : int
16451653
@AV_PIX_FMT_RGBAF32BE = 220,
16461654
/// <summary>IEEE-754 single precision packed RGBA 32:32:32:32, 128bpp, RGBARGBA..., little-endian</summary>
16471655
@AV_PIX_FMT_RGBAF32LE = 221,
1656+
/// <summary>interleaved chroma YUV 4:2:2, 24bpp, data in the high bits, big-endian</summary>
1657+
@AV_PIX_FMT_P212BE = 222,
1658+
/// <summary>interleaved chroma YUV 4:2:2, 24bpp, data in the high bits, little-endian</summary>
1659+
@AV_PIX_FMT_P212LE = 223,
1660+
/// <summary>interleaved chroma YUV 4:4:4, 36bpp, data in the high bits, big-endian</summary>
1661+
@AV_PIX_FMT_P412BE = 224,
1662+
/// <summary>interleaved chroma YUV 4:4:4, 36bpp, data in the high bits, little-endian</summary>
1663+
@AV_PIX_FMT_P412LE = 225,
1664+
/// <summary>planar GBR 4:4:4:4 56bpp, big-endian</summary>
1665+
@AV_PIX_FMT_GBRAP14BE = 226,
1666+
/// <summary>planar GBR 4:4:4:4 56bpp, little-endian</summary>
1667+
@AV_PIX_FMT_GBRAP14LE = 227,
16481668
/// <summary>number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of formats might differ between versions</summary>
1649-
@AV_PIX_FMT_NB = 222,
1669+
@AV_PIX_FMT_NB = 228,
16501670
}
16511671

16521672
/// <summary>Rounding methods.</summary>

0 commit comments

Comments
 (0)