Skip to content

Commit efc91e0

Browse files
committed
Commit before upgrade: save pending changes
1 parent 1189306 commit efc91e0

103 files changed

Lines changed: 4122 additions & 4222 deletions

File tree

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>7.1.1.0</Version>
4+
<Version>8.0.0.0</Version>
55
<Authors>Ruslan Balanukhin</Authors>
66
<Company>Rationale One</Company>
77
<Product>FFmpeg.AutoGen</Product>

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

Lines changed: 22 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,28 @@ public void UpdateFrom(AVRational[] array)
2424
public static implicit operator AVRational[](AVRational2 @struct) => @struct.ToArray();
2525
}
2626

27+
public unsafe struct double2 : IFixedArray<double>
28+
{
29+
public static readonly int ArrayLength = 2;
30+
public int Length => 2;
31+
fixed double _[2];
32+
33+
public double this[uint i]
34+
{
35+
get => _[i];
36+
set => _[i] = value;
37+
}
38+
public double[] ToArray()
39+
{
40+
var a = new double[2]; for (uint i = 0; i < 2; i++) a[i] = _[i]; return a;
41+
}
42+
public void UpdateFrom(double[] array)
43+
{
44+
uint i = 0; foreach(var value in array) { _[i++] = value; if (i >= 2) return; }
45+
}
46+
public static implicit operator double[](double2 @struct) => @struct.ToArray();
47+
}
48+
2749
public unsafe struct short2 : IFixedArray<short>
2850
{
2951
public static readonly int ArrayLength = 2;
@@ -134,50 +156,6 @@ public void UpdateFrom(AVRational2[] array)
134156
public static implicit operator AVRational2[](AVRational3x2 @struct) => @struct.ToArray();
135157
}
136158

137-
public unsafe struct byte_ptr3 : IFixedArray
138-
{
139-
public static readonly int ArrayLength = 3;
140-
public int Length => 3;
141-
byte* _0; byte* _1; byte* _2;
142-
143-
public byte* this[uint i]
144-
{
145-
get { if (i >= 3) throw new ArgumentOutOfRangeException(); fixed (byte** p0 = &_0) { return *(p0 + i); } }
146-
set { if (i >= 3) throw new ArgumentOutOfRangeException(); fixed (byte** p0 = &_0) { *(p0 + i) = value; } }
147-
}
148-
public byte*[] ToArray()
149-
{
150-
fixed (byte** p0 = &_0) { var a = new byte*[3]; for (uint i = 0; i < 3; i++) a[i] = *(p0 + i); return a; }
151-
}
152-
public void UpdateFrom(byte*[] array)
153-
{
154-
fixed (byte** p0 = &_0) { uint i = 0; foreach(var value in array) { *(p0 + i++) = value; if (i >= 3) return; } }
155-
}
156-
public static implicit operator byte*[](byte_ptr3 @struct) => @struct.ToArray();
157-
}
158-
159-
public unsafe struct int3 : IFixedArray<int>
160-
{
161-
public static readonly int ArrayLength = 3;
162-
public int Length => 3;
163-
fixed int _[3];
164-
165-
public int this[uint i]
166-
{
167-
get => _[i];
168-
set => _[i] = value;
169-
}
170-
public int[] ToArray()
171-
{
172-
var a = new int[3]; for (uint i = 0; i < 3; i++) a[i] = _[i]; return a;
173-
}
174-
public void UpdateFrom(int[] array)
175-
{
176-
uint i = 0; foreach(var value in array) { _[i++] = value; if (i >= 3) return; }
177-
}
178-
public static implicit operator int[](int3 @struct) => @struct.ToArray();
179-
}
180-
181159
public unsafe struct short3x2 : IFixedArray<short2>
182160
{
183161
public static readonly int ArrayLength = 3;

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

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,6 @@
33

44
namespace FFmpeg.AutoGen.Abstractions;
55

6-
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
7-
public unsafe delegate int _query_func (AVFilterContext* @p0);
8-
public unsafe struct _query_func_func
9-
{
10-
public IntPtr Pointer;
11-
public static implicit operator _query_func_func(_query_func func) => new _query_func_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
12-
}
13-
14-
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
15-
public unsafe delegate int _query_func2 (AVFilterContext* @p0, AVFilterFormatsConfig** @cfg_in, AVFilterFormatsConfig** @cfg_out);
16-
public unsafe struct _query_func2_func
17-
{
18-
public IntPtr Pointer;
19-
public static implicit operator _query_func2_func(_query_func2 func) => new _query_func2_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
20-
}
21-
226
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
237
public unsafe delegate void av_buffer_create_free (void* @opaque, byte* @data);
248
public unsafe struct av_buffer_create_free_func
@@ -255,58 +239,6 @@ public unsafe struct AVD3D11VADeviceContext_unlock_func
255239
public static implicit operator AVD3D11VADeviceContext_unlock_func(AVD3D11VADeviceContext_unlock func) => new AVD3D11VADeviceContext_unlock_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
256240
}
257241

258-
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
259-
public unsafe delegate int AVFilter_activate (AVFilterContext* @ctx);
260-
public unsafe struct AVFilter_activate_func
261-
{
262-
public IntPtr Pointer;
263-
public static implicit operator AVFilter_activate_func(AVFilter_activate func) => new AVFilter_activate_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
264-
}
265-
266-
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
267-
public unsafe delegate int AVFilter_init (AVFilterContext* @ctx);
268-
public unsafe struct AVFilter_init_func
269-
{
270-
public IntPtr Pointer;
271-
public static implicit operator AVFilter_init_func(AVFilter_init func) => new AVFilter_init_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
272-
}
273-
274-
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
275-
public unsafe delegate int AVFilter_preinit (AVFilterContext* @ctx);
276-
public unsafe struct AVFilter_preinit_func
277-
{
278-
public IntPtr Pointer;
279-
public static implicit operator AVFilter_preinit_func(AVFilter_preinit func) => new AVFilter_preinit_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
280-
}
281-
282-
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
283-
public unsafe delegate int AVFilter_process_command (AVFilterContext* @p0,
284-
#if NETSTANDARD2_1_OR_GREATER
285-
[MarshalAs(UnmanagedType.LPUTF8Str)]
286-
#else
287-
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(UTF8Marshaler))]
288-
#endif
289-
string @cmd,
290-
#if NETSTANDARD2_1_OR_GREATER
291-
[MarshalAs(UnmanagedType.LPUTF8Str)]
292-
#else
293-
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(UTF8Marshaler))]
294-
#endif
295-
string @arg, byte* @res, int @res_len, int @flags);
296-
public unsafe struct AVFilter_process_command_func
297-
{
298-
public IntPtr Pointer;
299-
public static implicit operator AVFilter_process_command_func(AVFilter_process_command func) => new AVFilter_process_command_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
300-
}
301-
302-
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
303-
public unsafe delegate void AVFilter_uninit (AVFilterContext* @ctx);
304-
public unsafe struct AVFilter_uninit_func
305-
{
306-
public IntPtr Pointer;
307-
public static implicit operator AVFilter_uninit_func(AVFilter_uninit func) => new AVFilter_uninit_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
308-
}
309-
310242
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
311243
public unsafe delegate int AVFilterGraph_execute (AVFilterContext* @ctx, func_func @func, void* @arg, int* @ret, int @nb_jobs);
312244
public unsafe struct AVFilterGraph_execute_func

0 commit comments

Comments
 (0)