video plugins
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b493b78c71ed7fe49951c8084f0f8b2a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,629 @@
|
||||
/*----------------------------------------------------------------
|
||||
// Copyright (C) 2025 Beijing All rights reserved.
|
||||
//
|
||||
// Author: huachangmiao
|
||||
// Create Date: 2025/04/11
|
||||
// Module Describe:
|
||||
//----------------------------------------------------------------*/
|
||||
using System;
|
||||
|
||||
namespace LeviathanVideo.Abstractions
|
||||
{
|
||||
|
||||
public unsafe struct AVRational2 : IFixedArray<AVRational>
|
||||
{
|
||||
public static readonly int ArrayLength = 2;
|
||||
public int Length => 2;
|
||||
AVRational _0; AVRational _1;
|
||||
|
||||
public AVRational this[uint i]
|
||||
{
|
||||
get { if (i >= 2) throw new ArgumentOutOfRangeException(); fixed (AVRational* p0 = &_0) { return *(p0 + i); } }
|
||||
set { if (i >= 2) throw new ArgumentOutOfRangeException(); fixed (AVRational* p0 = &_0) { *(p0 + i) = value; } }
|
||||
}
|
||||
public AVRational[] ToArray()
|
||||
{
|
||||
fixed (AVRational* p0 = &_0) { var a = new AVRational[2]; for (uint i = 0; i < 2; i++) a[i] = *(p0 + i); return a; }
|
||||
}
|
||||
public void UpdateFrom(AVRational[] array)
|
||||
{
|
||||
fixed (AVRational* p0 = &_0) { uint i = 0; foreach (var value in array) { *(p0 + i++) = value; if (i >= 2) return; } }
|
||||
}
|
||||
public static implicit operator AVRational[](AVRational2 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct short2 : IFixedArray<short>
|
||||
{
|
||||
public static readonly int ArrayLength = 2;
|
||||
public int Length => 2;
|
||||
fixed short _[2];
|
||||
|
||||
public short this[uint i]
|
||||
{
|
||||
get => _[i];
|
||||
set => _[i] = value;
|
||||
}
|
||||
public short[] ToArray()
|
||||
{
|
||||
var a = new short[2]; for (uint i = 0; i < 2; i++) a[i] = _[i]; return a;
|
||||
}
|
||||
public void UpdateFrom(short[] array)
|
||||
{
|
||||
uint i = 0; foreach (var value in array) { _[i++] = value; if (i >= 2) return; }
|
||||
}
|
||||
public static implicit operator short[](short2 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct void_ptr2 : IFixedArray
|
||||
{
|
||||
public static readonly int ArrayLength = 2;
|
||||
public int Length => 2;
|
||||
void* _0; void* _1;
|
||||
|
||||
public void* this[uint i]
|
||||
{
|
||||
get { if (i >= 2) throw new ArgumentOutOfRangeException(); fixed (void** p0 = &_0) { return *(p0 + i); } }
|
||||
set { if (i >= 2) throw new ArgumentOutOfRangeException(); fixed (void** p0 = &_0) { *(p0 + i) = value; } }
|
||||
}
|
||||
public void*[] ToArray()
|
||||
{
|
||||
fixed (void** p0 = &_0) { var a = new void*[2]; for (uint i = 0; i < 2; i++) a[i] = *(p0 + i); return a; }
|
||||
}
|
||||
public void UpdateFrom(void*[] array)
|
||||
{
|
||||
fixed (void** p0 = &_0) { uint i = 0; foreach (var value in array) { *(p0 + i++) = value; if (i >= 2) return; } }
|
||||
}
|
||||
public static implicit operator void*[](void_ptr2 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct AVHDRPlusColorTransformParams3 : IFixedArray<AVHDRPlusColorTransformParams>
|
||||
{
|
||||
public static readonly int ArrayLength = 3;
|
||||
public int Length => 3;
|
||||
AVHDRPlusColorTransformParams _0; AVHDRPlusColorTransformParams _1; AVHDRPlusColorTransformParams _2;
|
||||
|
||||
public AVHDRPlusColorTransformParams this[uint i]
|
||||
{
|
||||
get { if (i >= 3) throw new ArgumentOutOfRangeException(); fixed (AVHDRPlusColorTransformParams* p0 = &_0) { return *(p0 + i); } }
|
||||
set { if (i >= 3) throw new ArgumentOutOfRangeException(); fixed (AVHDRPlusColorTransformParams* p0 = &_0) { *(p0 + i) = value; } }
|
||||
}
|
||||
public AVHDRPlusColorTransformParams[] ToArray()
|
||||
{
|
||||
fixed (AVHDRPlusColorTransformParams* p0 = &_0) { var a = new AVHDRPlusColorTransformParams[3]; for (uint i = 0; i < 3; i++) a[i] = *(p0 + i); return a; }
|
||||
}
|
||||
public void UpdateFrom(AVHDRPlusColorTransformParams[] array)
|
||||
{
|
||||
fixed (AVHDRPlusColorTransformParams* p0 = &_0) { uint i = 0; foreach (var value in array) { *(p0 + i++) = value; if (i >= 3) return; } }
|
||||
}
|
||||
public static implicit operator AVHDRPlusColorTransformParams[](AVHDRPlusColorTransformParams3 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct AVRational3 : IFixedArray<AVRational>
|
||||
{
|
||||
public static readonly int ArrayLength = 3;
|
||||
public int Length => 3;
|
||||
AVRational _0; AVRational _1; AVRational _2;
|
||||
|
||||
public AVRational this[uint i]
|
||||
{
|
||||
get { if (i >= 3) throw new ArgumentOutOfRangeException(); fixed (AVRational* p0 = &_0) { return *(p0 + i); } }
|
||||
set { if (i >= 3) throw new ArgumentOutOfRangeException(); fixed (AVRational* p0 = &_0) { *(p0 + i) = value; } }
|
||||
}
|
||||
public AVRational[] ToArray()
|
||||
{
|
||||
fixed (AVRational* p0 = &_0) { var a = new AVRational[3]; for (uint i = 0; i < 3; i++) a[i] = *(p0 + i); return a; }
|
||||
}
|
||||
public void UpdateFrom(AVRational[] array)
|
||||
{
|
||||
fixed (AVRational* p0 = &_0) { uint i = 0; foreach (var value in array) { *(p0 + i++) = value; if (i >= 3) return; } }
|
||||
}
|
||||
public static implicit operator AVRational[](AVRational3 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct AVRational3x2 : IFixedArray<AVRational2>
|
||||
{
|
||||
public static readonly int ArrayLength = 3;
|
||||
public int Length => 3;
|
||||
AVRational2 _0; AVRational2 _1; AVRational2 _2;
|
||||
|
||||
public AVRational2 this[uint i]
|
||||
{
|
||||
get { if (i >= 3) throw new ArgumentOutOfRangeException(); fixed (AVRational2* p0 = &_0) { return *(p0 + i); } }
|
||||
set { if (i >= 3) throw new ArgumentOutOfRangeException(); fixed (AVRational2* p0 = &_0) { *(p0 + i) = value; } }
|
||||
}
|
||||
public AVRational2[] ToArray()
|
||||
{
|
||||
fixed (AVRational2* p0 = &_0) { var a = new AVRational2[3]; for (uint i = 0; i < 3; i++) a[i] = *(p0 + i); return a; }
|
||||
}
|
||||
public void UpdateFrom(AVRational2[] array)
|
||||
{
|
||||
fixed (AVRational2* p0 = &_0) { uint i = 0; foreach (var value in array) { *(p0 + i++) = value; if (i >= 3) return; } }
|
||||
}
|
||||
public static implicit operator AVRational2[](AVRational3x2 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct byte_ptr3 : IFixedArray
|
||||
{
|
||||
public static readonly int ArrayLength = 3;
|
||||
public int Length => 3;
|
||||
byte* _0; byte* _1; byte* _2;
|
||||
|
||||
public byte* this[uint i]
|
||||
{
|
||||
get { if (i >= 3) throw new ArgumentOutOfRangeException(); fixed (byte** p0 = &_0) { return *(p0 + i); } }
|
||||
set { if (i >= 3) throw new ArgumentOutOfRangeException(); fixed (byte** p0 = &_0) { *(p0 + i) = value; } }
|
||||
}
|
||||
public byte*[] ToArray()
|
||||
{
|
||||
fixed (byte** p0 = &_0) { var a = new byte*[3]; for (uint i = 0; i < 3; i++) a[i] = *(p0 + i); return a; }
|
||||
}
|
||||
public void UpdateFrom(byte*[] array)
|
||||
{
|
||||
fixed (byte** p0 = &_0) { uint i = 0; foreach (var value in array) { *(p0 + i++) = value; if (i >= 3) return; } }
|
||||
}
|
||||
public static implicit operator byte*[](byte_ptr3 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct int3 : IFixedArray<int>
|
||||
{
|
||||
public static readonly int ArrayLength = 3;
|
||||
public int Length => 3;
|
||||
fixed int _[3];
|
||||
|
||||
public int this[uint i]
|
||||
{
|
||||
get => _[i];
|
||||
set => _[i] = value;
|
||||
}
|
||||
public int[] ToArray()
|
||||
{
|
||||
var a = new int[3]; for (uint i = 0; i < 3; i++) a[i] = _[i]; return a;
|
||||
}
|
||||
public void UpdateFrom(int[] array)
|
||||
{
|
||||
uint i = 0; foreach (var value in array) { _[i++] = value; if (i >= 3) return; }
|
||||
}
|
||||
public static implicit operator int[](int3 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct short3x2 : IFixedArray<short2>
|
||||
{
|
||||
public static readonly int ArrayLength = 3;
|
||||
public int Length => 3;
|
||||
short2 _0; short2 _1; short2 _2;
|
||||
|
||||
public short2 this[uint i]
|
||||
{
|
||||
get { if (i >= 3) throw new ArgumentOutOfRangeException(); fixed (short2* p0 = &_0) { return *(p0 + i); } }
|
||||
set { if (i >= 3) throw new ArgumentOutOfRangeException(); fixed (short2* p0 = &_0) { *(p0 + i) = value; } }
|
||||
}
|
||||
public short2[] ToArray()
|
||||
{
|
||||
fixed (short2* p0 = &_0) { var a = new short2[3]; for (uint i = 0; i < 3; i++) a[i] = *(p0 + i); return a; }
|
||||
}
|
||||
public void UpdateFrom(short2[] array)
|
||||
{
|
||||
fixed (short2* p0 = &_0) { uint i = 0; foreach (var value in array) { *(p0 + i++) = value; if (i >= 3) return; } }
|
||||
}
|
||||
public static implicit operator short2[](short3x2 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct AVComponentDescriptor4 : IFixedArray<AVComponentDescriptor>
|
||||
{
|
||||
public static readonly int ArrayLength = 4;
|
||||
public int Length => 4;
|
||||
AVComponentDescriptor _0; AVComponentDescriptor _1; AVComponentDescriptor _2; AVComponentDescriptor _3;
|
||||
|
||||
public AVComponentDescriptor this[uint i]
|
||||
{
|
||||
get { if (i >= 4) throw new ArgumentOutOfRangeException(); fixed (AVComponentDescriptor* p0 = &_0) { return *(p0 + i); } }
|
||||
set { if (i >= 4) throw new ArgumentOutOfRangeException(); fixed (AVComponentDescriptor* p0 = &_0) { *(p0 + i) = value; } }
|
||||
}
|
||||
public AVComponentDescriptor[] ToArray()
|
||||
{
|
||||
fixed (AVComponentDescriptor* p0 = &_0) { var a = new AVComponentDescriptor[4]; for (uint i = 0; i < 4; i++) a[i] = *(p0 + i); return a; }
|
||||
}
|
||||
public void UpdateFrom(AVComponentDescriptor[] array)
|
||||
{
|
||||
fixed (AVComponentDescriptor* p0 = &_0) { uint i = 0; foreach (var value in array) { *(p0 + i++) = value; if (i >= 4) return; } }
|
||||
}
|
||||
public static implicit operator AVComponentDescriptor[](AVComponentDescriptor4 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct byte_ptr4 : IFixedArray
|
||||
{
|
||||
public static readonly int ArrayLength = 4;
|
||||
public int Length => 4;
|
||||
byte* _0; byte* _1; byte* _2; byte* _3;
|
||||
|
||||
public byte* this[uint i]
|
||||
{
|
||||
get { if (i >= 4) throw new ArgumentOutOfRangeException(); fixed (byte** p0 = &_0) { return *(p0 + i); } }
|
||||
set { if (i >= 4) throw new ArgumentOutOfRangeException(); fixed (byte** p0 = &_0) { *(p0 + i) = value; } }
|
||||
}
|
||||
public byte*[] ToArray()
|
||||
{
|
||||
fixed (byte** p0 = &_0) { var a = new byte*[4]; for (uint i = 0; i < 4; i++) a[i] = *(p0 + i); return a; }
|
||||
}
|
||||
public void UpdateFrom(byte*[] array)
|
||||
{
|
||||
fixed (byte** p0 = &_0) { uint i = 0; foreach (var value in array) { *(p0 + i++) = value; if (i >= 4) return; } }
|
||||
}
|
||||
public static implicit operator byte*[](byte_ptr4 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct byte4 : IFixedArray<byte>
|
||||
{
|
||||
public static readonly int ArrayLength = 4;
|
||||
public int Length => 4;
|
||||
fixed byte _[4];
|
||||
|
||||
public byte this[uint i]
|
||||
{
|
||||
get => _[i];
|
||||
set => _[i] = value;
|
||||
}
|
||||
public byte[] ToArray()
|
||||
{
|
||||
var a = new byte[4]; for (uint i = 0; i < 4; i++) a[i] = _[i]; return a;
|
||||
}
|
||||
public void UpdateFrom(byte[] array)
|
||||
{
|
||||
uint i = 0; foreach (var value in array) { _[i++] = value; if (i >= 4) return; }
|
||||
}
|
||||
public static implicit operator byte[](byte4 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct int4 : IFixedArray<int>
|
||||
{
|
||||
public static readonly int ArrayLength = 4;
|
||||
public int Length => 4;
|
||||
fixed int _[4];
|
||||
|
||||
public int this[uint i]
|
||||
{
|
||||
get => _[i];
|
||||
set => _[i] = value;
|
||||
}
|
||||
public int[] ToArray()
|
||||
{
|
||||
var a = new int[4]; for (uint i = 0; i < 4; i++) a[i] = _[i]; return a;
|
||||
}
|
||||
public void UpdateFrom(int[] array)
|
||||
{
|
||||
uint i = 0; foreach (var value in array) { _[i++] = value; if (i >= 4) return; }
|
||||
}
|
||||
public static implicit operator int[](int4 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct long4 : IFixedArray<long>
|
||||
{
|
||||
public static readonly int ArrayLength = 4;
|
||||
public int Length => 4;
|
||||
fixed long _[4];
|
||||
|
||||
public long this[uint i]
|
||||
{
|
||||
get => _[i];
|
||||
set => _[i] = value;
|
||||
}
|
||||
public long[] ToArray()
|
||||
{
|
||||
var a = new long[4]; for (uint i = 0; i < 4; i++) a[i] = _[i]; return a;
|
||||
}
|
||||
public void UpdateFrom(long[] array)
|
||||
{
|
||||
uint i = 0; foreach (var value in array) { _[i++] = value; if (i >= 4) return; }
|
||||
}
|
||||
public static implicit operator long[](long4 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct uint4 : IFixedArray<uint>
|
||||
{
|
||||
public static readonly int ArrayLength = 4;
|
||||
public int Length => 4;
|
||||
fixed uint _[4];
|
||||
|
||||
public uint this[uint i]
|
||||
{
|
||||
get => _[i];
|
||||
set => _[i] = value;
|
||||
}
|
||||
public uint[] ToArray()
|
||||
{
|
||||
var a = new uint[4]; for (uint i = 0; i < 4; i++) a[i] = _[i]; return a;
|
||||
}
|
||||
public void UpdateFrom(uint[] array)
|
||||
{
|
||||
uint i = 0; foreach (var value in array) { _[i++] = value; if (i >= 4) return; }
|
||||
}
|
||||
public static implicit operator uint[](uint4 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct ulong4 : IFixedArray<ulong>
|
||||
{
|
||||
public static readonly int ArrayLength = 4;
|
||||
public int Length => 4;
|
||||
fixed ulong _[4];
|
||||
|
||||
public ulong this[uint i]
|
||||
{
|
||||
get => _[i];
|
||||
set => _[i] = value;
|
||||
}
|
||||
public ulong[] ToArray()
|
||||
{
|
||||
var a = new ulong[4]; for (uint i = 0; i < 4; i++) a[i] = _[i]; return a;
|
||||
}
|
||||
public void UpdateFrom(ulong[] array)
|
||||
{
|
||||
uint i = 0; foreach (var value in array) { _[i++] = value; if (i >= 4) return; }
|
||||
}
|
||||
public static implicit operator ulong[](ulong4 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct int7 : IFixedArray<int>
|
||||
{
|
||||
public static readonly int ArrayLength = 7;
|
||||
public int Length => 7;
|
||||
fixed int _[7];
|
||||
|
||||
public int this[uint i]
|
||||
{
|
||||
get => _[i];
|
||||
set => _[i] = value;
|
||||
}
|
||||
public int[] ToArray()
|
||||
{
|
||||
var a = new int[7]; for (uint i = 0; i < 7; i++) a[i] = _[i]; return a;
|
||||
}
|
||||
public void UpdateFrom(int[] array)
|
||||
{
|
||||
uint i = 0; foreach (var value in array) { _[i++] = value; if (i >= 7) return; }
|
||||
}
|
||||
public static implicit operator int[](int7 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct AVBufferRef_ptr8 : IFixedArray
|
||||
{
|
||||
public static readonly int ArrayLength = 8;
|
||||
public int Length => 8;
|
||||
AVBufferRef* _0; AVBufferRef* _1; AVBufferRef* _2; AVBufferRef* _3; AVBufferRef* _4; AVBufferRef* _5; AVBufferRef* _6; AVBufferRef* _7;
|
||||
|
||||
public AVBufferRef* this[uint i]
|
||||
{
|
||||
get { if (i >= 8) throw new ArgumentOutOfRangeException(); fixed (AVBufferRef** p0 = &_0) { return *(p0 + i); } }
|
||||
set { if (i >= 8) throw new ArgumentOutOfRangeException(); fixed (AVBufferRef** p0 = &_0) { *(p0 + i) = value; } }
|
||||
}
|
||||
public AVBufferRef*[] ToArray()
|
||||
{
|
||||
fixed (AVBufferRef** p0 = &_0) { var a = new AVBufferRef*[8]; for (uint i = 0; i < 8; i++) a[i] = *(p0 + i); return a; }
|
||||
}
|
||||
public void UpdateFrom(AVBufferRef*[] array)
|
||||
{
|
||||
fixed (AVBufferRef** p0 = &_0) { uint i = 0; foreach (var value in array) { *(p0 + i++) = value; if (i >= 8) return; } }
|
||||
}
|
||||
public static implicit operator AVBufferRef*[](AVBufferRef_ptr8 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct byte_ptr8 : IFixedArray
|
||||
{
|
||||
public static readonly int ArrayLength = 8;
|
||||
public int Length => 8;
|
||||
byte* _0; byte* _1; byte* _2; byte* _3; byte* _4; byte* _5; byte* _6; byte* _7;
|
||||
|
||||
public byte* this[uint i]
|
||||
{
|
||||
get { if (i >= 8) throw new ArgumentOutOfRangeException(); fixed (byte** p0 = &_0) { return *(p0 + i); } }
|
||||
set { if (i >= 8) throw new ArgumentOutOfRangeException(); fixed (byte** p0 = &_0) { *(p0 + i) = value; } }
|
||||
}
|
||||
public byte*[] ToArray()
|
||||
{
|
||||
fixed (byte** p0 = &_0) { var a = new byte*[8]; for (uint i = 0; i < 8; i++) a[i] = *(p0 + i); return a; }
|
||||
}
|
||||
public void UpdateFrom(byte*[] array)
|
||||
{
|
||||
fixed (byte** p0 = &_0) { uint i = 0; foreach (var value in array) { *(p0 + i++) = value; if (i >= 8) return; } }
|
||||
}
|
||||
public static implicit operator byte*[](byte_ptr8 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct byte8 : IFixedArray<byte>
|
||||
{
|
||||
public static readonly int ArrayLength = 8;
|
||||
public int Length => 8;
|
||||
fixed byte _[8];
|
||||
|
||||
public byte this[uint i]
|
||||
{
|
||||
get => _[i];
|
||||
set => _[i] = value;
|
||||
}
|
||||
public byte[] ToArray()
|
||||
{
|
||||
var a = new byte[8]; for (uint i = 0; i < 8; i++) a[i] = _[i]; return a;
|
||||
}
|
||||
public void UpdateFrom(byte[] array)
|
||||
{
|
||||
uint i = 0; foreach (var value in array) { _[i++] = value; if (i >= 8) return; }
|
||||
}
|
||||
public static implicit operator byte[](byte8 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct int8 : IFixedArray<int>
|
||||
{
|
||||
public static readonly int ArrayLength = 8;
|
||||
public int Length => 8;
|
||||
fixed int _[8];
|
||||
|
||||
public int this[uint i]
|
||||
{
|
||||
get => _[i];
|
||||
set => _[i] = value;
|
||||
}
|
||||
public int[] ToArray()
|
||||
{
|
||||
var a = new int[8]; for (uint i = 0; i < 8; i++) a[i] = _[i]; return a;
|
||||
}
|
||||
public void UpdateFrom(int[] array)
|
||||
{
|
||||
uint i = 0; foreach (var value in array) { _[i++] = value; if (i >= 8) return; }
|
||||
}
|
||||
public static implicit operator int[](int8 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct ulong8 : IFixedArray<ulong>
|
||||
{
|
||||
public static readonly int ArrayLength = 8;
|
||||
public int Length => 8;
|
||||
fixed ulong _[8];
|
||||
|
||||
public ulong this[uint i]
|
||||
{
|
||||
get => _[i];
|
||||
set => _[i] = value;
|
||||
}
|
||||
public ulong[] ToArray()
|
||||
{
|
||||
var a = new ulong[8]; for (uint i = 0; i < 8; i++) a[i] = _[i]; return a;
|
||||
}
|
||||
public void UpdateFrom(ulong[] array)
|
||||
{
|
||||
uint i = 0; foreach (var value in array) { _[i++] = value; if (i >= 8) return; }
|
||||
}
|
||||
public static implicit operator ulong[](ulong8 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct int9 : IFixedArray<int>
|
||||
{
|
||||
public static readonly int ArrayLength = 9;
|
||||
public int Length => 9;
|
||||
fixed int _[9];
|
||||
|
||||
public int this[uint i]
|
||||
{
|
||||
get => _[i];
|
||||
set => _[i] = value;
|
||||
}
|
||||
public int[] ToArray()
|
||||
{
|
||||
var a = new int[9]; for (uint i = 0; i < 9; i++) a[i] = _[i]; return a;
|
||||
}
|
||||
public void UpdateFrom(int[] array)
|
||||
{
|
||||
uint i = 0; foreach (var value in array) { _[i++] = value; if (i >= 9) return; }
|
||||
}
|
||||
public static implicit operator int[](int9 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct AVHDRPlusPercentile15 : IFixedArray<AVHDRPlusPercentile>
|
||||
{
|
||||
public static readonly int ArrayLength = 15;
|
||||
public int Length => 15;
|
||||
AVHDRPlusPercentile _0; AVHDRPlusPercentile _1; AVHDRPlusPercentile _2; AVHDRPlusPercentile _3; AVHDRPlusPercentile _4; AVHDRPlusPercentile _5; AVHDRPlusPercentile _6; AVHDRPlusPercentile _7; AVHDRPlusPercentile _8; AVHDRPlusPercentile _9; AVHDRPlusPercentile _10; AVHDRPlusPercentile _11; AVHDRPlusPercentile _12; AVHDRPlusPercentile _13; AVHDRPlusPercentile _14;
|
||||
|
||||
public AVHDRPlusPercentile this[uint i]
|
||||
{
|
||||
get { if (i >= 15) throw new ArgumentOutOfRangeException(); fixed (AVHDRPlusPercentile* p0 = &_0) { return *(p0 + i); } }
|
||||
set { if (i >= 15) throw new ArgumentOutOfRangeException(); fixed (AVHDRPlusPercentile* p0 = &_0) { *(p0 + i) = value; } }
|
||||
}
|
||||
public AVHDRPlusPercentile[] ToArray()
|
||||
{
|
||||
fixed (AVHDRPlusPercentile* p0 = &_0) { var a = new AVHDRPlusPercentile[15]; for (uint i = 0; i < 15; i++) a[i] = *(p0 + i); return a; }
|
||||
}
|
||||
public void UpdateFrom(AVHDRPlusPercentile[] array)
|
||||
{
|
||||
fixed (AVHDRPlusPercentile* p0 = &_0) { uint i = 0; foreach (var value in array) { *(p0 + i++) = value; if (i >= 15) return; } }
|
||||
}
|
||||
public static implicit operator AVHDRPlusPercentile[](AVHDRPlusPercentile15 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct AVRational15 : IFixedArray<AVRational>
|
||||
{
|
||||
public static readonly int ArrayLength = 15;
|
||||
public int Length => 15;
|
||||
AVRational _0; AVRational _1; AVRational _2; AVRational _3; AVRational _4; AVRational _5; AVRational _6; AVRational _7; AVRational _8; AVRational _9; AVRational _10; AVRational _11; AVRational _12; AVRational _13; AVRational _14;
|
||||
|
||||
public AVRational this[uint i]
|
||||
{
|
||||
get { if (i >= 15) throw new ArgumentOutOfRangeException(); fixed (AVRational* p0 = &_0) { return *(p0 + i); } }
|
||||
set { if (i >= 15) throw new ArgumentOutOfRangeException(); fixed (AVRational* p0 = &_0) { *(p0 + i) = value; } }
|
||||
}
|
||||
public AVRational[] ToArray()
|
||||
{
|
||||
fixed (AVRational* p0 = &_0) { var a = new AVRational[15]; for (uint i = 0; i < 15; i++) a[i] = *(p0 + i); return a; }
|
||||
}
|
||||
public void UpdateFrom(AVRational[] array)
|
||||
{
|
||||
fixed (AVRational* p0 = &_0) { uint i = 0; foreach (var value in array) { *(p0 + i++) = value; if (i >= 15) return; } }
|
||||
}
|
||||
public static implicit operator AVRational[](AVRational15 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct byte16 : IFixedArray<byte>
|
||||
{
|
||||
public static readonly int ArrayLength = 16;
|
||||
public int Length => 16;
|
||||
fixed byte _[16];
|
||||
|
||||
public byte this[uint i]
|
||||
{
|
||||
get => _[i];
|
||||
set => _[i] = value;
|
||||
}
|
||||
public byte[] ToArray()
|
||||
{
|
||||
var a = new byte[16]; for (uint i = 0; i < 16; i++) a[i] = _[i]; return a;
|
||||
}
|
||||
public void UpdateFrom(byte[] array)
|
||||
{
|
||||
uint i = 0; foreach (var value in array) { _[i++] = value; if (i >= 16) return; }
|
||||
}
|
||||
public static implicit operator byte[](byte16 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct AVRational25 : IFixedArray<AVRational>
|
||||
{
|
||||
public static readonly int ArrayLength = 25;
|
||||
public int Length => 25;
|
||||
AVRational _0; AVRational _1; AVRational _2; AVRational _3; AVRational _4; AVRational _5; AVRational _6; AVRational _7; AVRational _8; AVRational _9; AVRational _10; AVRational _11; AVRational _12; AVRational _13; AVRational _14; AVRational _15; AVRational _16; AVRational _17; AVRational _18; AVRational _19; AVRational _20; AVRational _21; AVRational _22; AVRational _23; AVRational _24;
|
||||
|
||||
public AVRational this[uint i]
|
||||
{
|
||||
get { if (i >= 25) throw new ArgumentOutOfRangeException(); fixed (AVRational* p0 = &_0) { return *(p0 + i); } }
|
||||
set { if (i >= 25) throw new ArgumentOutOfRangeException(); fixed (AVRational* p0 = &_0) { *(p0 + i) = value; } }
|
||||
}
|
||||
public AVRational[] ToArray()
|
||||
{
|
||||
fixed (AVRational* p0 = &_0) { var a = new AVRational[25]; for (uint i = 0; i < 25; i++) a[i] = *(p0 + i); return a; }
|
||||
}
|
||||
public void UpdateFrom(AVRational[] array)
|
||||
{
|
||||
fixed (AVRational* p0 = &_0) { uint i = 0; foreach (var value in array) { *(p0 + i++) = value; if (i >= 25) return; } }
|
||||
}
|
||||
public static implicit operator AVRational[](AVRational25 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
public unsafe struct AVRational25x25 : IFixedArray<AVRational25>
|
||||
{
|
||||
public static readonly int ArrayLength = 25;
|
||||
public int Length => 25;
|
||||
AVRational25 _0; AVRational25 _1; AVRational25 _2; AVRational25 _3; AVRational25 _4; AVRational25 _5; AVRational25 _6; AVRational25 _7; AVRational25 _8; AVRational25 _9; AVRational25 _10; AVRational25 _11; AVRational25 _12; AVRational25 _13; AVRational25 _14; AVRational25 _15; AVRational25 _16; AVRational25 _17; AVRational25 _18; AVRational25 _19; AVRational25 _20; AVRational25 _21; AVRational25 _22; AVRational25 _23; AVRational25 _24;
|
||||
|
||||
public AVRational25 this[uint i]
|
||||
{
|
||||
get { if (i >= 25) throw new ArgumentOutOfRangeException(); fixed (AVRational25* p0 = &_0) { return *(p0 + i); } }
|
||||
set { if (i >= 25) throw new ArgumentOutOfRangeException(); fixed (AVRational25* p0 = &_0) { *(p0 + i) = value; } }
|
||||
}
|
||||
public AVRational25[] ToArray()
|
||||
{
|
||||
fixed (AVRational25* p0 = &_0) { var a = new AVRational25[25]; for (uint i = 0; i < 25; i++) a[i] = *(p0 + i); return a; }
|
||||
}
|
||||
public void UpdateFrom(AVRational25[] array)
|
||||
{
|
||||
fixed (AVRational25* p0 = &_0) { uint i = 0; foreach (var value in array) { *(p0 + i++) = value; if (i >= 25) return; } }
|
||||
}
|
||||
public static implicit operator AVRational25[](AVRational25x25 @struct) => @struct.ToArray();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8672a701b738a1c409125f98c38b79d7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,33 @@
|
||||
/*----------------------------------------------------------------
|
||||
// Copyright (C) 2025 Beijing All rights reserved.
|
||||
//
|
||||
// Author: huachangmiao
|
||||
// Create Date: 2025/04/11
|
||||
// Module Describe:
|
||||
//----------------------------------------------------------------*/
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace LeviathanVideo.Abstractions
|
||||
{
|
||||
|
||||
public class ConstCharPtrMarshaler : ICustomMarshaler
|
||||
{
|
||||
private static readonly ConstCharPtrMarshaler Instance = new ConstCharPtrMarshaler();
|
||||
public object MarshalNativeToManaged(IntPtr pNativeData) => Marshal.PtrToStringAnsi(pNativeData);
|
||||
|
||||
public IntPtr MarshalManagedToNative(object managedObj) => IntPtr.Zero;
|
||||
|
||||
public void CleanUpNativeData(IntPtr pNativeData)
|
||||
{
|
||||
}
|
||||
|
||||
public void CleanUpManagedData(object managedObj)
|
||||
{
|
||||
}
|
||||
|
||||
public int GetNativeDataSize() => IntPtr.Size;
|
||||
|
||||
public static ICustomMarshaler GetInstance(string cookie) => Instance;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a6182afb215f53b409c298aeb135d0a9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,460 @@
|
||||
/*----------------------------------------------------------------
|
||||
// Copyright (C) 2025 Beijing All rights reserved.
|
||||
//
|
||||
// Author: huachangmiao
|
||||
// Create Date: 2025/04/11
|
||||
// Module Describe:
|
||||
//----------------------------------------------------------------*/
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace LeviathanVideo.Abstractions
|
||||
{
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int _query_func(AVFilterContext* @p0);
|
||||
public unsafe struct _query_func_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator _query_func_func(_query_func func) => new _query_func_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate void av_buffer_create_free(void* @opaque, byte* @data);
|
||||
public unsafe struct av_buffer_create_free_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator av_buffer_create_free_func(av_buffer_create_free func) => new av_buffer_create_free_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate AVBufferRef* av_buffer_pool_init_alloc(ulong @size);
|
||||
public unsafe struct av_buffer_pool_init_alloc_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator av_buffer_pool_init_alloc_func(av_buffer_pool_init_alloc func) => new av_buffer_pool_init_alloc_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate AVBufferRef* av_buffer_pool_init2_alloc(void* @opaque, ulong @size);
|
||||
public unsafe struct av_buffer_pool_init2_alloc_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator av_buffer_pool_init2_alloc_func(av_buffer_pool_init2_alloc func) => new av_buffer_pool_init2_alloc_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate void av_buffer_pool_init2_pool_free(void* @opaque);
|
||||
public unsafe struct av_buffer_pool_init2_pool_free_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator av_buffer_pool_init2_pool_free_func(av_buffer_pool_init2_pool_free func) => new av_buffer_pool_init2_pool_free_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate void av_log_set_callback_callback(void* @p0, int @p1,
|
||||
#if NETSTANDARD2_1_OR_GREATER
|
||||
[MarshalAs(UnmanagedType.LPUTF8Str)]
|
||||
#else
|
||||
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(UTF8Marshaler))]
|
||||
#endif
|
||||
string @p2, byte* @p3);
|
||||
public unsafe struct av_log_set_callback_callback_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator av_log_set_callback_callback_func(av_log_set_callback_callback func) => new av_log_set_callback_callback_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int av_tree_enumerate_cmp(void* @opaque, void* @elem);
|
||||
public unsafe struct av_tree_enumerate_cmp_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator av_tree_enumerate_cmp_func(av_tree_enumerate_cmp func) => new av_tree_enumerate_cmp_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int av_tree_enumerate_enu(void* @opaque, void* @elem);
|
||||
public unsafe struct av_tree_enumerate_enu_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator av_tree_enumerate_enu_func(av_tree_enumerate_enu func) => new av_tree_enumerate_enu_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int av_tree_find_cmp(void* @key, void* @b);
|
||||
public unsafe struct av_tree_find_cmp_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator av_tree_find_cmp_func(av_tree_find_cmp func) => new av_tree_find_cmp_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int av_tree_insert_cmp(void* @key, void* @b);
|
||||
public unsafe struct av_tree_insert_cmp_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator av_tree_insert_cmp_func(av_tree_insert_cmp func) => new av_tree_insert_cmp_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate AVClass* AVClass_child_class_iterate(void** @iter);
|
||||
public unsafe struct AVClass_child_class_iterate_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVClass_child_class_iterate_func(AVClass_child_class_iterate func) => new AVClass_child_class_iterate_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate void* AVClass_child_next(void* @obj, void* @prev);
|
||||
public unsafe struct AVClass_child_next_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVClass_child_next_func(AVClass_child_next func) => new AVClass_child_next_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate AVClassCategory AVClass_get_category(void* @ctx);
|
||||
public unsafe struct AVClass_get_category_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVClass_get_category_func(AVClass_get_category func) => new AVClass_get_category_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate string AVClass_item_name(void* @ctx);
|
||||
public unsafe struct AVClass_item_name_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVClass_item_name_func(AVClass_item_name func) => new AVClass_item_name_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVClass_query_ranges(AVOptionRanges** @p0, void* @obj,
|
||||
#if NETSTANDARD2_1_OR_GREATER
|
||||
[MarshalAs(UnmanagedType.LPUTF8Str)]
|
||||
#else
|
||||
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(UTF8Marshaler))]
|
||||
#endif
|
||||
string @key, int @flags);
|
||||
public unsafe struct AVClass_query_ranges_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVClass_query_ranges_func(AVClass_query_ranges func) => new AVClass_query_ranges_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int avcodec_default_execute_func(AVCodecContext* @c2, void* @arg2);
|
||||
public unsafe struct avcodec_default_execute_func_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator avcodec_default_execute_func_func(avcodec_default_execute_func func) => new avcodec_default_execute_func_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int avcodec_default_execute2_func(AVCodecContext* @c2, void* @arg2, int @p2, int @p3);
|
||||
public unsafe struct avcodec_default_execute2_func_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator avcodec_default_execute2_func_func(avcodec_default_execute2_func func) => new avcodec_default_execute2_func_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate void AVCodecContext_draw_horiz_band(AVCodecContext* @s, AVFrame* @src, ref int8 @offset, int @y, int @type, int @height);
|
||||
public unsafe struct AVCodecContext_draw_horiz_band_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVCodecContext_draw_horiz_band_func(AVCodecContext_draw_horiz_band func) => new AVCodecContext_draw_horiz_band_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVCodecContext_execute(AVCodecContext* @c, func_func @func, void* @arg2, int* @ret, int @count, int @size);
|
||||
public unsafe struct AVCodecContext_execute_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVCodecContext_execute_func(AVCodecContext_execute func) => new AVCodecContext_execute_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVCodecContext_execute2(AVCodecContext* @c, func_func @func, void* @arg2, int* @ret, int @count);
|
||||
public unsafe struct AVCodecContext_execute2_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVCodecContext_execute2_func(AVCodecContext_execute2 func) => new AVCodecContext_execute2_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVCodecContext_get_buffer2(AVCodecContext* @s, AVFrame* @frame, int @flags);
|
||||
public unsafe struct AVCodecContext_get_buffer2_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVCodecContext_get_buffer2_func(AVCodecContext_get_buffer2 func) => new AVCodecContext_get_buffer2_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVCodecContext_get_encode_buffer(AVCodecContext* @s, AVPacket* @pkt, int @flags);
|
||||
public unsafe struct AVCodecContext_get_encode_buffer_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVCodecContext_get_encode_buffer_func(AVCodecContext_get_encode_buffer func) => new AVCodecContext_get_encode_buffer_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate AVPixelFormat AVCodecContext_get_format(AVCodecContext* @s, AVPixelFormat* @fmt);
|
||||
public unsafe struct AVCodecContext_get_format_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVCodecContext_get_format_func(AVCodecContext_get_format func) => new AVCodecContext_get_format_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate void AVCodecParser_parser_close(AVCodecParserContext* @s);
|
||||
public unsafe struct AVCodecParser_parser_close_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVCodecParser_parser_close_func(AVCodecParser_parser_close func) => new AVCodecParser_parser_close_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVCodecParser_parser_init(AVCodecParserContext* @s);
|
||||
public unsafe struct AVCodecParser_parser_init_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVCodecParser_parser_init_func(AVCodecParser_parser_init func) => new AVCodecParser_parser_init_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVCodecParser_parser_parse(AVCodecParserContext* @s, AVCodecContext* @avctx, byte** @poutbuf, int* @poutbuf_size, byte* @buf, int @buf_size);
|
||||
public unsafe struct AVCodecParser_parser_parse_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVCodecParser_parser_parse_func(AVCodecParser_parser_parse func) => new AVCodecParser_parser_parse_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVCodecParser_split(AVCodecContext* @avctx, byte* @buf, int @buf_size);
|
||||
public unsafe struct AVCodecParser_split_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVCodecParser_split_func(AVCodecParser_split func) => new AVCodecParser_split_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate void AVD3D11VADeviceContext_lock(void* @lock_ctx);
|
||||
public unsafe struct AVD3D11VADeviceContext_lock_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVD3D11VADeviceContext_lock_func(AVD3D11VADeviceContext_lock func) => new AVD3D11VADeviceContext_lock_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate void AVD3D11VADeviceContext_unlock(void* @lock_ctx);
|
||||
public unsafe struct AVD3D11VADeviceContext_unlock_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVD3D11VADeviceContext_unlock_func(AVD3D11VADeviceContext_unlock func) => new AVD3D11VADeviceContext_unlock_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVFilter_activate(AVFilterContext* @ctx);
|
||||
public unsafe struct AVFilter_activate_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVFilter_activate_func(AVFilter_activate func) => new AVFilter_activate_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVFilter_init(AVFilterContext* @ctx);
|
||||
public unsafe struct AVFilter_init_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVFilter_init_func(AVFilter_init func) => new AVFilter_init_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVFilter_preinit(AVFilterContext* @ctx);
|
||||
public unsafe struct AVFilter_preinit_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVFilter_preinit_func(AVFilter_preinit func) => new AVFilter_preinit_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVFilter_process_command(AVFilterContext* @p0,
|
||||
#if NETSTANDARD2_1_OR_GREATER
|
||||
[MarshalAs(UnmanagedType.LPUTF8Str)]
|
||||
#else
|
||||
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(UTF8Marshaler))]
|
||||
#endif
|
||||
string @cmd,
|
||||
#if NETSTANDARD2_1_OR_GREATER
|
||||
[MarshalAs(UnmanagedType.LPUTF8Str)]
|
||||
#else
|
||||
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(UTF8Marshaler))]
|
||||
#endif
|
||||
string @arg, byte* @res, int @res_len, int @flags);
|
||||
public unsafe struct AVFilter_process_command_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
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) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate void AVFilter_uninit(AVFilterContext* @ctx);
|
||||
public unsafe struct AVFilter_uninit_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVFilter_uninit_func(AVFilter_uninit func) => new AVFilter_uninit_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVFilterGraph_execute(AVFilterContext* @ctx, func_func @func, void* @arg, int* @ret, int @nb_jobs);
|
||||
public unsafe struct AVFilterGraph_execute_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVFilterGraph_execute_func(AVFilterGraph_execute func) => new AVFilterGraph_execute_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVFormatContext_control_message_cb(AVFormatContext* @s, int @type, void* @data, ulong @data_size);
|
||||
public unsafe struct AVFormatContext_control_message_cb_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVFormatContext_control_message_cb_func(AVFormatContext_control_message_cb func) => new AVFormatContext_control_message_cb_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVFormatContext_io_close2(AVFormatContext* @s, AVIOContext* @pb);
|
||||
public unsafe struct AVFormatContext_io_close2_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVFormatContext_io_close2_func(AVFormatContext_io_close2 func) => new AVFormatContext_io_close2_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVFormatContext_io_open(AVFormatContext* @s, AVIOContext** @pb,
|
||||
#if NETSTANDARD2_1_OR_GREATER
|
||||
[MarshalAs(UnmanagedType.LPUTF8Str)]
|
||||
#else
|
||||
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(UTF8Marshaler))]
|
||||
#endif
|
||||
string @url, int @flags, AVDictionary** @options);
|
||||
public unsafe struct AVFormatContext_io_open_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
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) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate void AVHWDeviceContext_free(AVHWDeviceContext* @ctx);
|
||||
public unsafe struct AVHWDeviceContext_free_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVHWDeviceContext_free_func(AVHWDeviceContext_free func) => new AVHWDeviceContext_free_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate void AVHWFramesContext_free(AVHWFramesContext* @ctx);
|
||||
public unsafe struct AVHWFramesContext_free_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVHWFramesContext_free_func(AVHWFramesContext_free func) => new AVHWFramesContext_free_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int avio_alloc_context_read_packet(void* @opaque, byte* @buf, int @buf_size);
|
||||
public unsafe struct avio_alloc_context_read_packet_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator avio_alloc_context_read_packet_func(avio_alloc_context_read_packet func) => new avio_alloc_context_read_packet_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate long avio_alloc_context_seek(void* @opaque, long @offset, int @whence);
|
||||
public unsafe struct avio_alloc_context_seek_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator avio_alloc_context_seek_func(avio_alloc_context_seek func) => new avio_alloc_context_seek_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int avio_alloc_context_write_packet(void* @opaque, byte* @buf, int @buf_size);
|
||||
public unsafe struct avio_alloc_context_write_packet_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator avio_alloc_context_write_packet_func(avio_alloc_context_write_packet func) => new avio_alloc_context_write_packet_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVIOContext_read_packet(void* @opaque, byte* @buf, int @buf_size);
|
||||
public unsafe struct AVIOContext_read_packet_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVIOContext_read_packet_func(AVIOContext_read_packet func) => new AVIOContext_read_packet_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVIOContext_read_pause(void* @opaque, int @pause);
|
||||
public unsafe struct AVIOContext_read_pause_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVIOContext_read_pause_func(AVIOContext_read_pause func) => new AVIOContext_read_pause_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate long AVIOContext_read_seek(void* @opaque, int @stream_index, long @timestamp, int @flags);
|
||||
public unsafe struct AVIOContext_read_seek_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVIOContext_read_seek_func(AVIOContext_read_seek func) => new AVIOContext_read_seek_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate long AVIOContext_seek(void* @opaque, long @offset, int @whence);
|
||||
public unsafe struct AVIOContext_seek_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVIOContext_seek_func(AVIOContext_seek func) => new AVIOContext_seek_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate ulong AVIOContext_update_checksum(ulong @checksum, byte* @buf, uint @size);
|
||||
public unsafe struct AVIOContext_update_checksum_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVIOContext_update_checksum_func(AVIOContext_update_checksum func) => new AVIOContext_update_checksum_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVIOContext_write_data_type(void* @opaque, byte* @buf, int @buf_size, AVIODataMarkerType @type, long @time);
|
||||
public unsafe struct AVIOContext_write_data_type_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVIOContext_write_data_type_func(AVIOContext_write_data_type func) => new AVIOContext_write_data_type_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVIOContext_write_packet(void* @opaque, byte* @buf, int @buf_size);
|
||||
public unsafe struct AVIOContext_write_packet_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVIOContext_write_packet_func(AVIOContext_write_packet func) => new AVIOContext_write_packet_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int AVIOInterruptCB_callback(void* @p0);
|
||||
public unsafe struct AVIOInterruptCB_callback_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator AVIOInterruptCB_callback_func(AVIOInterruptCB_callback func) => new AVIOInterruptCB_callback_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public unsafe delegate int func(AVFilterContext* @ctx, void* @arg, int @jobnr, int @nb_jobs);
|
||||
public unsafe struct func_func
|
||||
{
|
||||
public IntPtr Pointer;
|
||||
public static implicit operator func_func(func func) => new func_func { Pointer = func == null ? IntPtr.Zero : Marshal.GetFunctionPointerForDelegate(func) };
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6494f6467575f8f4686755f1fb403a78
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c64159813b5056848bf146c573693369
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,21 @@
|
||||
/*----------------------------------------------------------------
|
||||
// Copyright (C) 2025 Beijing All rights reserved.
|
||||
//
|
||||
// Author: huachangmiao
|
||||
// Create Date: 2025/04/11
|
||||
// Module Describe:
|
||||
//----------------------------------------------------------------*/
|
||||
namespace LeviathanVideo.Abstractions
|
||||
{
|
||||
public interface IFixedArray
|
||||
{
|
||||
int Length { get; }
|
||||
}
|
||||
|
||||
internal interface IFixedArray<T> : IFixedArray
|
||||
{
|
||||
T this[uint index] { get; set; }
|
||||
T[] ToArray();
|
||||
void UpdateFrom(T[] array);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 831fd920f1934bd46a5a38037ddf74b5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "Leviathan.Core",
|
||||
"rootNamespace": "",
|
||||
"references": [],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": true,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": [],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f1d67e105160e074c99d37c9215900e1
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,56 @@
|
||||
/*----------------------------------------------------------------
|
||||
// Copyright (C) 2025 Beijing All rights reserved.
|
||||
//
|
||||
// Author: huachangmiao
|
||||
// Create Date: 2025/04/11
|
||||
// Module Describe:
|
||||
//----------------------------------------------------------------*/
|
||||
using System;
|
||||
using Unity.Collections.LowLevel.Unsafe;
|
||||
|
||||
namespace LeviathanVideo.Abstractions
|
||||
{
|
||||
|
||||
public static partial class leviathan
|
||||
{
|
||||
#if UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX || UNITY_IOS
|
||||
public static readonly int EAGAIN = 35;
|
||||
public static readonly int ENOMEM = 12;
|
||||
public static readonly int EINVAL = 22;
|
||||
#elif UNITY_WEBGL && !UNITY_EDITOR
|
||||
public static readonly int EAGAIN = 6;
|
||||
public static readonly int ENOMEM = 48;
|
||||
public static readonly int EINVAL = 28;
|
||||
#else
|
||||
public static readonly int EAGAIN = 11;
|
||||
public static readonly int ENOMEM = 12;
|
||||
public static readonly int EINVAL = 22;
|
||||
#endif
|
||||
|
||||
// public static readonly int EPIPE = 32;
|
||||
|
||||
public static ulong UINT64_C<T>(T a)
|
||||
=> Convert.ToUInt64(a);
|
||||
|
||||
public static int AVERROR_Enum<T1>(T1 a) where T1 : struct, IConvertible => -UnsafeUtility.EnumToInt(a);
|
||||
|
||||
public static int AVERROR<T1>(T1 a)
|
||||
=> -Convert.ToInt32(a);
|
||||
|
||||
public static int MKTAG<T1, T2, T3, T4>(T1 a, T2 b, T3 c, T4 d)
|
||||
=> (int)(Convert.ToUInt32(a) | (Convert.ToUInt32(b) << 8) | (Convert.ToUInt32(c) << 16) |
|
||||
(Convert.ToUInt32(d) << 24));
|
||||
|
||||
public static int FFERRTAG<T1, T2, T3, T4>(T1 a, T2 b, T3 c, T4 d)
|
||||
=> -MKTAG(a, b, c, d);
|
||||
|
||||
public static int AV_VERSION_INT<T1, T2, T3>(T1 a, T2 b, T3 c) =>
|
||||
(Convert.ToInt32(a) << 16) | (Convert.ToInt32(b) << 8) | Convert.ToInt32(c);
|
||||
|
||||
public static string AV_VERSION_DOT<T1, T2, T3>(T1 a, T2 b, T3 c)
|
||||
=> $"{a}.{b}.{c}";
|
||||
|
||||
public static string AV_VERSION<T1, T2, T3>(T1 a, T2 b, T3 c)
|
||||
=> AV_VERSION_DOT(a, b, c);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ebc87a006120f7d4e8ac1faf1284562e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ac98c4f0ef273194db7db58423be559f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 25e968c51067fb54a85f6052c03f6bcc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,91 @@
|
||||
/*----------------------------------------------------------------
|
||||
// Copyright (C) 2025 Beijing All rights reserved.
|
||||
//
|
||||
// Author: huachangmiao
|
||||
// Create Date: 2025/04/11
|
||||
// Module Describe:
|
||||
//----------------------------------------------------------------*/
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace LeviathanVideo.Abstractions
|
||||
{
|
||||
|
||||
public class UTF8Marshaler : ICustomMarshaler
|
||||
{
|
||||
private static readonly UTF8Marshaler Instance = new UTF8Marshaler();
|
||||
|
||||
public virtual object MarshalNativeToManaged(IntPtr pNativeData) => FromNative(Encoding.UTF8, pNativeData);
|
||||
|
||||
public virtual IntPtr MarshalManagedToNative(object managedObj)
|
||||
{
|
||||
if (managedObj == null)
|
||||
return IntPtr.Zero;
|
||||
|
||||
if (!(managedObj is string str))
|
||||
throw new MarshalDirectiveException($"{GetType().Name} must be used on a string.");
|
||||
|
||||
return FromManaged(Encoding.UTF8, str);
|
||||
}
|
||||
|
||||
public virtual void CleanUpNativeData(IntPtr pNativeData)
|
||||
{
|
||||
//Free anything allocated by MarshalManagedToNative
|
||||
//This is called after the native function call completes
|
||||
|
||||
if (pNativeData != IntPtr.Zero)
|
||||
Marshal.FreeHGlobal(pNativeData);
|
||||
}
|
||||
|
||||
public void CleanUpManagedData(object managedObj)
|
||||
{
|
||||
//Free anything allocated by MarshalNativeToManaged
|
||||
//This is called after the native function call completes
|
||||
}
|
||||
|
||||
public int GetNativeDataSize() => -1; // Not a value type
|
||||
|
||||
public static ICustomMarshaler GetInstance(string cookie) => Instance;
|
||||
|
||||
public static unsafe string FromNative(Encoding encoding, IntPtr pNativeData) => FromNative(encoding, (byte*)pNativeData);
|
||||
|
||||
public static unsafe string FromNative(Encoding encoding, byte* pNativeData)
|
||||
{
|
||||
if (pNativeData == null)
|
||||
return null;
|
||||
|
||||
var start = pNativeData;
|
||||
var walk = start;
|
||||
|
||||
// Find the end of the string
|
||||
while (*walk != 0) walk++;
|
||||
|
||||
if (walk == start)
|
||||
return string.Empty;
|
||||
|
||||
return new string((sbyte*)pNativeData, 0, (int)(walk - start), encoding);
|
||||
}
|
||||
|
||||
public static unsafe IntPtr FromManaged(Encoding encoding, string value)
|
||||
{
|
||||
if (encoding == null || value == null)
|
||||
return IntPtr.Zero;
|
||||
|
||||
var length = encoding.GetByteCount(value);
|
||||
var buffer = (byte*)Marshal.AllocHGlobal(length + 1).ToPointer();
|
||||
|
||||
if (length > 0)
|
||||
{
|
||||
fixed (char* pValue = value)
|
||||
{
|
||||
encoding.GetBytes(pValue, value.Length, buffer, length);
|
||||
}
|
||||
}
|
||||
|
||||
buffer[length] = 0;
|
||||
|
||||
return new IntPtr(buffer);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3d3fb0a766a91b74782afd15644bd45b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f5804ddd88f687945bf3886c41d4a565
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,402 @@
|
||||
/*----------------------------------------------------------------
|
||||
// Copyright (C) 2025 Beijing All rights reserved.
|
||||
//
|
||||
// Author: huachangmiao
|
||||
// Create Date: 2025/04/11
|
||||
// Module Describe:
|
||||
//----------------------------------------------------------------*/
|
||||
using System;
|
||||
|
||||
namespace LeviathanVideo.Abstractions
|
||||
{
|
||||
|
||||
public static unsafe partial class leviathan
|
||||
{
|
||||
/// <summary>Clip a signed 64-bit integer value into the -2147483648,2147483647 range.</summary>
|
||||
/// <param name="a">value to clip</param>
|
||||
/// <returns>clipped value</returns>
|
||||
public static int av_clipl_int32_c(long @a)
|
||||
{
|
||||
if ((((ulong)a + (2147483648UL)) & ~(4294967295UL)) != 0)
|
||||
return (int)((a >> 63) ^ 2147483647);
|
||||
else
|
||||
return (int)a;
|
||||
}
|
||||
// original body hash: hVbFRW9NmALaR5Wqm8W2hfXu9xV8Kg7CEndQKK0wY4I=
|
||||
|
||||
|
||||
/// <summary>Convert an AVRational to a `double`.</summary>
|
||||
/// <param name="a">AVRational to convert</param>
|
||||
/// <returns>`a` in floating-point form</returns>
|
||||
public static double av_q2d(AVRational @a)
|
||||
{
|
||||
return a.num / (double)a.den;
|
||||
}
|
||||
// original body hash: j4R2BS8nF6czcUDVk5kKi9nLEdlTI/NRDYtnc1KFeyE=
|
||||
|
||||
#region unuse code
|
||||
/*
|
||||
/// <summary>Compute ceil(log2(x)).</summary>
|
||||
/// <param name="x">value used to compute ceil(log2(x))</param>
|
||||
/// <returns>computed ceiling of log2(x)</returns>
|
||||
public static int av_ceil_log2_c(int @x)
|
||||
{
|
||||
return av_log2((uint)(x - 1U) << 1);
|
||||
}
|
||||
// original body hash: Y9QGw919/NB5ltczSPmZu5WZt+BfR1GGQ58ULgOxiNo=
|
||||
|
||||
/// <summary>Clip a signed integer value into the amin-amax range.</summary>
|
||||
/// <param name="a">value to clip</param>
|
||||
/// <param name="amin">minimum value of the clip range</param>
|
||||
/// <param name="amax">maximum value of the clip range</param>
|
||||
/// <returns>clipped value</returns>
|
||||
public static int av_clip_c(int @a, int @amin, int @amax)
|
||||
{
|
||||
if (a < amin)
|
||||
return amin;
|
||||
else if (a > amax)
|
||||
return amax;
|
||||
else
|
||||
return a;
|
||||
}
|
||||
// original body hash: FGSX8EvLhMgYqP9+0z1+Clej4HxjpENDPDX7uAYLx6k=
|
||||
|
||||
/// <summary>Clip a signed integer value into the -32768,32767 range.</summary>
|
||||
/// <param name="a">value to clip</param>
|
||||
/// <returns>clipped value</returns>
|
||||
public static short av_clip_int16_c(int @a)
|
||||
{
|
||||
if (((a + 32768U) & ~65535) != 0)
|
||||
return (short)((a >> 31) ^ 32767);
|
||||
else
|
||||
return (short)a;
|
||||
}
|
||||
// original body hash: l7ot2X+8YIG7Ze9ecaMTap87pGl9Q5kffGq1e9dS9Es=
|
||||
|
||||
/// <summary>Clip a signed integer value into the -128,127 range.</summary>
|
||||
/// <param name="a">value to clip</param>
|
||||
/// <returns>clipped value</returns>
|
||||
public static sbyte av_clip_int8_c(int @a)
|
||||
{
|
||||
if (((a + 128U) & ~255) != 0)
|
||||
return (sbyte)((a >> 31) ^ 127);
|
||||
else
|
||||
return (sbyte)a;
|
||||
}
|
||||
// original body hash: 959D6ojD8+Bo9o7pGvHcWTnCDg5Ax0o328RGYDIiUvo=
|
||||
|
||||
/// <summary>Clip a signed integer into the -(2^p),(2^p-1) range.</summary>
|
||||
/// <param name="a">value to clip</param>
|
||||
/// <param name="p">bit position to clip at</param>
|
||||
/// <returns>clipped value</returns>
|
||||
public static int av_clip_intp2_c(int @a, int @p)
|
||||
{
|
||||
if ((((uint)a + (1U << p)) & ~((2U << p) - 1)) != 0)
|
||||
return (a >> 31) ^ ((1 << p) - 1);
|
||||
else
|
||||
return a;
|
||||
}
|
||||
// original body hash: H4R9TdJsLPxie0kMNORwLhiEFWSn5cG8vNmgEcRcwaE=
|
||||
|
||||
/// <summary>Clip a signed integer value into the 0-65535 range.</summary>
|
||||
/// <param name="a">value to clip</param>
|
||||
/// <returns>clipped value</returns>
|
||||
public static ushort av_clip_uint16_c(int @a)
|
||||
{
|
||||
if ((a & (~65535)) != 0)
|
||||
return (ushort)((~a) >> 31);
|
||||
else
|
||||
return (ushort)a;
|
||||
}
|
||||
// original body hash: nI5Vkw30nAjS2NmNSdCSnHeAUcY47XT0lnrnsUK/bJ4=
|
||||
|
||||
/// <summary>Clip a signed integer value into the 0-255 range.</summary>
|
||||
/// <param name="a">value to clip</param>
|
||||
/// <returns>clipped value</returns>
|
||||
public static byte av_clip_uint8_c(int @a)
|
||||
{
|
||||
if ((a & (~255)) != 0)
|
||||
return (byte)((~a) >> 31);
|
||||
else
|
||||
return (byte)a;
|
||||
}
|
||||
// original body hash: 32OGGgXBFRL7EcU8DizK9KbIFfU356+5hgUEyAOjIUY=
|
||||
|
||||
/// <summary>Clip a signed integer to an unsigned power of two range.</summary>
|
||||
/// <param name="a">value to clip</param>
|
||||
/// <param name="p">bit position to clip at</param>
|
||||
/// <returns>clipped value</returns>
|
||||
public static uint av_clip_uintp2_c(int @a, int @p)
|
||||
{
|
||||
if ((a & ~((1U << p) - 1)) != 0)
|
||||
return (uint)(~a) >> 31 & ((1U << p) - 1);
|
||||
else
|
||||
return (uint)a;
|
||||
}
|
||||
// original body hash: e+b5mkBcLXfL9tlPoRVY9A8fy1jLPsqovjAobPBirRs=
|
||||
|
||||
/// <summary>Clip a signed 64bit integer value into the amin-amax range.</summary>
|
||||
/// <param name="a">value to clip</param>
|
||||
/// <param name="amin">minimum value of the clip range</param>
|
||||
/// <param name="amax">maximum value of the clip range</param>
|
||||
/// <returns>clipped value</returns>
|
||||
public static long av_clip64_c(long @a, long @amin, long @amax)
|
||||
{
|
||||
if (a < amin)
|
||||
return amin;
|
||||
else if (a > amax)
|
||||
return amax;
|
||||
else
|
||||
return a;
|
||||
}
|
||||
// original body hash: FGSX8EvLhMgYqP9+0z1+Clej4HxjpENDPDX7uAYLx6k=
|
||||
|
||||
/// <summary>Clip a double value into the amin-amax range. If a is nan or -inf amin will be returned. If a is +inf amax will be returned.</summary>
|
||||
/// <param name="a">value to clip</param>
|
||||
/// <param name="amin">minimum value of the clip range</param>
|
||||
/// <param name="amax">maximum value of the clip range</param>
|
||||
/// <returns>clipped value</returns>
|
||||
public static double av_clipd_c(double @a, double @amin, double @amax)
|
||||
{
|
||||
return ((((a) > (amin) ? (a) : (amin))) > (amax) ? (amax) : (((a) > (amin) ? (a) : (amin))));
|
||||
}
|
||||
// original body hash: 3g76qefPWCYqXraY2vYdxoH58/EKn5EeR9v7cGEBM6Y=
|
||||
|
||||
/// <summary>Clip a float value into the amin-amax range. If a is nan or -inf amin will be returned. If a is +inf amax will be returned.</summary>
|
||||
/// <param name="a">value to clip</param>
|
||||
/// <param name="amin">minimum value of the clip range</param>
|
||||
/// <param name="amax">maximum value of the clip range</param>
|
||||
/// <returns>clipped value</returns>
|
||||
public static float av_clipf_c(float @a, float @amin, float @amax)
|
||||
{
|
||||
return ((((a) > (amin) ? (a) : (amin))) > (amax) ? (amax) : (((a) > (amin) ? (a) : (amin))));
|
||||
}
|
||||
// original body hash: 3g76qefPWCYqXraY2vYdxoH58/EKn5EeR9v7cGEBM6Y=
|
||||
|
||||
/// <summary>Compare two rationals.</summary>
|
||||
/// <param name="a">First rational</param>
|
||||
/// <param name="b">Second rational</param>
|
||||
/// <returns>One of the following values: - 0 if `a == b` - 1 if `a > b` - -1 if `a < b` - `INT_MIN` if one of the values is of the form `0 / 0`</returns>
|
||||
public static int av_cmp_q(AVRational @a, AVRational @b)
|
||||
{
|
||||
long tmp = a.num * (long)b.den - b.num * (long)a.den;
|
||||
if (tmp != 0)
|
||||
return (int)((tmp ^ a.den ^ b.den) >> 63) | 1;
|
||||
else if (b.den != 0 && a.den != 0)
|
||||
return 0;
|
||||
else if (a.num != 0 && b.num != 0)
|
||||
return (a.num >> 31) - (b.num >> 31);
|
||||
else
|
||||
return (-2147483647 - 1);
|
||||
}
|
||||
// original body hash: M+RGb5gXGdDjfY/gK5ZeCYeYrZAxjTXZA9+XVu0I66Q=
|
||||
|
||||
/// <summary>Reinterpret a double as a 64-bit integer.</summary>
|
||||
public static ulong av_double2int(double @f)
|
||||
{
|
||||
return (ulong)@f;
|
||||
}
|
||||
// original body hash: 2HuHK8WLchm3u+cK6H4QWhflx2JqfewtaSpj2Cwfi8M=
|
||||
|
||||
/// <summary>Reinterpret a float as a 32-bit integer.</summary>
|
||||
public static uint av_float2int(float @f)
|
||||
{
|
||||
return (uint)@f;
|
||||
}
|
||||
// original body hash: uBvsHd8EeFnxDvSdDE1+k5Um29kCuf0aEJhAvDy0wZk=
|
||||
|
||||
/// <summary>Wrapper around av_frame_side_data_get_c() to workaround the limitation that for any type T the conversion from T * const * to const T * const * is not performed automatically in C.</summary>
|
||||
public static AVFrameSideData* av_frame_side_data_get(AVFrameSideData** @sd, int @nb_sd, AVFrameSideDataType @type)
|
||||
{
|
||||
return av_frame_side_data_get_c(sd, nb_sd, type);
|
||||
}
|
||||
// original body hash: nxiyu/BnkvF9Z/fWwpii6qfquOeLA/wdeiuxyQQxS4E=
|
||||
|
||||
/// <summary>Wrapper around av_image_copy() to workaround the limitation that the conversion from uint8_t * const * to const uint8_t * const * is not performed automatically in C.</summary>
|
||||
public static void av_image_copy2(ref byte_ptr4 @dst_data, in int4 @dst_linesizes, ref byte_ptr4 @src_data, in int4 @src_linesizes, AVPixelFormat @pix_fmt, int @width, int @height)
|
||||
{
|
||||
av_image_copy(ref dst_data, dst_linesizes, src_data, src_linesizes, pix_fmt, width, height);
|
||||
}
|
||||
// original body hash: RdaM2zKuF7t0cNJItdh1SZPg9WiOfPpTwty5cHDiZ2A=
|
||||
|
||||
/// <summary>Reinterpret a 64-bit integer as a double.</summary>
|
||||
public static double av_int2double(ulong @i)
|
||||
{
|
||||
return (double)@i;
|
||||
}
|
||||
// original body hash: iFt3hVHTpF9jjqIGAAf/c7FrGfenOXGxdsyMjmrbwvw=
|
||||
|
||||
/// <summary>Reinterpret a 32-bit integer as a float.</summary>
|
||||
public static float av_int2float(uint @i)
|
||||
{
|
||||
return (float)@i;
|
||||
}
|
||||
// original body hash: wLGFPpW+aIvxW79y6BVY1LKz/j7yc3BdiaJ7mD4oQmw=
|
||||
|
||||
/// <summary>Invert a rational.</summary>
|
||||
/// <param name="q">value</param>
|
||||
/// <returns>1 / q</returns>
|
||||
public static AVRational av_inv_q(AVRational @q)
|
||||
{
|
||||
var r = new AVRational { @num = q.den, @den = q.num };
|
||||
return r;
|
||||
}
|
||||
// original body hash: sXbO4D7vmayAx56EFqz9C0kakcSPSryJHdk0hr0MOFY=
|
||||
|
||||
/// <summary>Fill the provided buffer with a string containing an error string corresponding to the AVERROR code errnum.</summary>
|
||||
/// <param name="errbuf">a buffer</param>
|
||||
/// <param name="errbuf_size">size in bytes of errbuf</param>
|
||||
/// <param name="errnum">error code to describe</param>
|
||||
/// <returns>the buffer in input, filled with the error description</returns>
|
||||
public static byte* av_make_error_string(byte* @errbuf, ulong @errbuf_size, int @errnum)
|
||||
{
|
||||
av_strerror(errnum, errbuf, errbuf_size);
|
||||
return errbuf;
|
||||
}
|
||||
// original body hash: DRHQHyLQNo9pTxA+wRw4zVDrC7Md1u3JWawQX0BVkqE=
|
||||
|
||||
/// <summary>Create an AVRational.</summary>
|
||||
public static AVRational av_make_q(int @num, int @den)
|
||||
{
|
||||
var r = new AVRational { @num = num, @den = den };
|
||||
return r;
|
||||
}
|
||||
// original body hash: IAPYNNcg3GX0PGxINeLQhb41dH921lPVKcnqxCk7ERA=
|
||||
|
||||
[Obsolete()]
|
||||
public static uint av_mod_uintp2_c(uint @a, uint @p)
|
||||
{
|
||||
return av_zero_extend_c(a, p);
|
||||
}
|
||||
// original body hash: MfDd5KRKGNiwvccdrrbME05wNKCRzGTF1T24OggAyp0=
|
||||
|
||||
public static int av_parity_c(uint @v)
|
||||
{
|
||||
return av_popcount_c(v) & 1;
|
||||
}
|
||||
// original body hash: Hsrq5CWkNvuNTnqES92ZJYVYpKXFwosrZNja/oaUd0s=
|
||||
|
||||
/// <summary>Count number of bits set to one in x</summary>
|
||||
/// <param name="x">value to count bits of</param>
|
||||
/// <returns>the number of bits set to one in x</returns>
|
||||
public static int av_popcount_c(uint @x)
|
||||
{
|
||||
x -= (x >> 1) & 1431655765;
|
||||
x = (x & 858993459) + ((x >> 2) & 858993459);
|
||||
x = (x + (x >> 4)) & 252645135;
|
||||
x += x >> 8;
|
||||
return (int)((x + (x >> 16)) & 63);
|
||||
}
|
||||
// original body hash: 6EqV8Ll7t/MGINV9Nh3TSEbNyUYeskm7HucpU0SAkgg=
|
||||
|
||||
/// <summary>Count number of bits set to one in x</summary>
|
||||
/// <param name="x">value to count bits of</param>
|
||||
/// <returns>the number of bits set to one in x</returns>
|
||||
public static int av_popcount64_c(ulong @x)
|
||||
{
|
||||
return av_popcount_c((uint)x) + av_popcount_c((uint)(x >> 32));
|
||||
}
|
||||
// original body hash: 4wjPAKU9R0yS6OI8Y9h3L6de+uXt/lBm+zX7t5Ch18k=
|
||||
|
||||
/// <summary>Add two signed 32-bit values with saturation.</summary>
|
||||
/// <param name="a">one value</param>
|
||||
/// <param name="b">another value</param>
|
||||
/// <returns>sum with signed saturation</returns>
|
||||
public static int av_sat_add32_c(int @a, int @b)
|
||||
{
|
||||
return av_clipl_int32_c((long)a + b);
|
||||
}
|
||||
// original body hash: GAAy4GsS2n+9kJ/8hzuONPUOGIsiOj7PvXnLHUVrimY=
|
||||
|
||||
/// <summary>Add two signed 64-bit values with saturation.</summary>
|
||||
/// <param name="a">one value</param>
|
||||
/// <param name="b">another value</param>
|
||||
/// <returns>sum with signed saturation</returns>
|
||||
public static long av_sat_add64_c(long @a, long @b)
|
||||
{
|
||||
try
|
||||
{
|
||||
return @a + @b;
|
||||
}
|
||||
catch (OverflowException)
|
||||
{
|
||||
return ((double)@a + (double)@b) > 0d ? long.MaxValue : long.MinValue;
|
||||
}
|
||||
}
|
||||
// original body hash: qeup76rp1rjakhMYQJWWEYIkpgscUcDfzDIrjyqk5iM=
|
||||
|
||||
/// <summary>Add a doubled value to another value with saturation at both stages.</summary>
|
||||
/// <param name="a">first value</param>
|
||||
/// <param name="b">value doubled and added to a</param>
|
||||
/// <returns>sum sat(a + sat(2*b)) with signed saturation</returns>
|
||||
public static int av_sat_dadd32_c(int @a, int @b)
|
||||
{
|
||||
return av_sat_add32_c(a, av_sat_add32_c(b, b));
|
||||
}
|
||||
// original body hash: Kbha6XFULk7dxB6zc5WRwoPczQVN7HBcNs9Hjlj/Caw=
|
||||
|
||||
/// <summary>Subtract a doubled value from another value with saturation at both stages.</summary>
|
||||
/// <param name="a">first value</param>
|
||||
/// <param name="b">value doubled and subtracted from a</param>
|
||||
/// <returns>difference sat(a - sat(2*b)) with signed saturation</returns>
|
||||
public static int av_sat_dsub32_c(int @a, int @b)
|
||||
{
|
||||
return av_sat_sub32_c(a, av_sat_add32_c(b, b));
|
||||
}
|
||||
// original body hash: ypu4i+30n3CeMxdL8pq7XDYAFBi1N5d2mkIT6zQ1bO0=
|
||||
|
||||
/// <summary>Subtract two signed 32-bit values with saturation.</summary>
|
||||
/// <param name="a">one value</param>
|
||||
/// <param name="b">another value</param>
|
||||
/// <returns>difference with signed saturation</returns>
|
||||
public static int av_sat_sub32_c(int @a, int @b)
|
||||
{
|
||||
return av_clipl_int32_c((long)a - b);
|
||||
}
|
||||
// original body hash: /tgXI2zbIgliqOwZbpnq7jSiVj0N70RjBFsbkIkWhsM=
|
||||
|
||||
/// <summary>Subtract two signed 64-bit values with saturation.</summary>
|
||||
/// <param name="a">one value</param>
|
||||
/// <param name="b">another value</param>
|
||||
/// <returns>difference with signed saturation</returns>
|
||||
public static long av_sat_sub64_c(long @a, long @b)
|
||||
{
|
||||
try
|
||||
{
|
||||
return @a - @b;
|
||||
}
|
||||
catch (OverflowException)
|
||||
{
|
||||
return ((double)@a - (double)@b) > 0d ? long.MaxValue : long.MinValue;
|
||||
}
|
||||
}
|
||||
// original body hash: 6YrSxDrYVG1ac1wlCiXKMhTwj7Kx6eym/YtspKusrGk=
|
||||
|
||||
/// <summary>Return x default pointer in case p is NULL.</summary>
|
||||
public static void* av_x_if_null(void* @p, void* @x)
|
||||
{
|
||||
return (void*)(p != null ? p : x);
|
||||
}
|
||||
// original body hash: zOY924eIk3VeTSNb9XcE2Yw8aZ4/jlzQSfP06k5n0nU=
|
||||
|
||||
/// <summary>Clear high bits from an unsigned integer starting with specific bit position</summary>
|
||||
/// <param name="a">value to clip</param>
|
||||
/// <param name="p">bit position to clip at. Must be between 0 and 31.</param>
|
||||
/// <returns>clipped value</returns>
|
||||
public static uint av_zero_extend_c(uint @a, uint @p)
|
||||
{
|
||||
return a & ((1U << (int)p) - 1);
|
||||
}
|
||||
// original body hash: ncn4Okxr9Nas1g/qCfpRHKtywuNmJuf3UED+o3wjadc=
|
||||
|
||||
/// <summary>ftell() equivalent for AVIOContext.</summary>
|
||||
/// <returns>position or AVERROR.</returns>
|
||||
public static long avio_tell(AVIOContext* @s)
|
||||
{
|
||||
return avio_seek(s, 0, 1);
|
||||
}
|
||||
// original body hash: o18c3ypeh9EsmYaplTel2ssgM2PZKTTDfMjsqEopycw=
|
||||
*/
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c6aafe78d5c8f034e91415b317e7a463
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1156a8d8f5e1b0c4ab423518683a73c4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8a9ba0e5ea12d414b922e04da0d8f224
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1798e75878e264647a9f38b7a694542c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f0472c50f0c01884c8341ae655a7a45f
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,71 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d349bdd529bf1384581da0acce9d9cf3
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
AndroidSharedLibraryType: Executable
|
||||
CPU: ARM64
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,71 @@
|
||||
fileFormatVersion: 2
|
||||
guid: da40082fb7afc814a880157ff135c348
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
AndroidSharedLibraryType: Executable
|
||||
CPU: ARM64
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,71 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5a590fa83370f1b43aded6dd0418dfb8
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
AndroidSharedLibraryType: Executable
|
||||
CPU: ARM64
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5f2c55beab072af43adbb43c9090cb33
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,67 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c5e0a9f6ab078aa4b8d1cd2e0ed2e318
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,67 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 49e15e07e8602b941b3d18e5abffaa29
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,67 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 46b4457b8ae0fe541bec45c4933cd4a9
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4f0cc0aea8eaabd4fa01decdabdb378d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,71 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6b623314619024a4f8397da099579e7b
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
AndroidSharedLibraryType: Executable
|
||||
CPU: X86
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,71 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b12057dc023f6204791722a99fe1e136
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
AndroidSharedLibraryType: Executable
|
||||
CPU: X86
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,71 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5c4eb621215eaac4493ccaf301c98092
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
AndroidSharedLibraryType: Executable
|
||||
CPU: X86
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 01fc22b120dc2154489b6763f8b67a14
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,71 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b2cd264a94ddf5543bbc08419f909738
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
AndroidSharedLibraryType: Executable
|
||||
CPU: X86_64
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,71 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7a6ace9d32e3e1c4da47afe4e70e6a51
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
AndroidSharedLibraryType: Executable
|
||||
CPU: X86_64
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,71 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2dde4bb3706cbae4cb9d27bb84c0bc2a
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 0
|
||||
Exclude Editor: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
AndroidSharedLibraryType: Executable
|
||||
CPU: X86_64
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7abe18c33e45106409484ecf638961e7
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,81 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1321dae2bbb2203448be993b522bc5ca
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 1
|
||||
Exclude Editor: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
Exclude iOS: 0
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
AndroidSharedLibraryType: Executable
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
AddToEmbeddedBinaries: false
|
||||
CPU: ARM64
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,81 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2a8f0aa76f9a4ac4982a0b5bb54fb699
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 1
|
||||
Exclude Editor: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
Exclude iOS: 0
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
AndroidSharedLibraryType: Executable
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
AddToEmbeddedBinaries: false
|
||||
CPU: ARM64
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,81 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e1a867319cb2d1e45af6dd4d7af86f52
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 1
|
||||
Exclude Editor: 1
|
||||
Exclude Linux64: 1
|
||||
Exclude OSXUniversal: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 1
|
||||
Exclude iOS: 0
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
AndroidSharedLibraryType: Executable
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
AddToEmbeddedBinaries: false
|
||||
CPU: ARM64
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 93270d16fc4e3a543b873d501f4b8298
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,82 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 94013bd364da14843a3c0450deba42de
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 1
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 1
|
||||
Exclude Editor: 0
|
||||
Exclude Linux64: 0
|
||||
Exclude OSXUniversal: 0
|
||||
Exclude WebGL: 1
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 0
|
||||
Exclude iOS: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
AndroidSharedLibraryType: Executable
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: Windows
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
AddToEmbeddedBinaries: false
|
||||
CPU: AnyCPU
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,82 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9aa4aaf564c6f004fbd39c77d01b26df
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 1
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 1
|
||||
Exclude Editor: 0
|
||||
Exclude Linux64: 0
|
||||
Exclude OSXUniversal: 0
|
||||
Exclude WebGL: 1
|
||||
Exclude Win: 0
|
||||
Exclude Win64: 0
|
||||
Exclude iOS: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
AndroidSharedLibraryType: Executable
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: Windows
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
AddToEmbeddedBinaries: false
|
||||
CPU: AnyCPU
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,82 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 00de4b8f1465be04eb184dd902c12dcf
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 1
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Android: 1
|
||||
Exclude Editor: 0
|
||||
Exclude Linux64: 0
|
||||
Exclude OSXUniversal: 0
|
||||
Exclude WebGL: 1
|
||||
Exclude Win: 0
|
||||
Exclude Win64: 0
|
||||
Exclude iOS: 1
|
||||
- first:
|
||||
Android: Android
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
AndroidSharedLibraryType: Executable
|
||||
CPU: ARMv7
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: Windows
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
iPhone: iOS
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
AddToEmbeddedBinaries: false
|
||||
CPU: AnyCPU
|
||||
CompileFlags:
|
||||
FrameworkDependencies:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user