@@ -12,7 +12,7 @@ jobs: | |||||
- name: Setup .NET Core | - name: Setup .NET Core | ||||
uses: actions/setup-dotnet@master | uses: actions/setup-dotnet@master | ||||
with: | with: | ||||
dotnet-version: 3.1.401 | |||||
dotnet-version: 5.0.100 | |||||
- name: dotnet info | - name: dotnet info | ||||
run: dotnet --info | run: dotnet --info | ||||
- name: dotnet restore | - name: dotnet restore | ||||
@@ -1,16 +1,22 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk"> | <Project Sdk="Microsoft.NET.Sdk"> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
<TargetFramework>netcoreapp3.1</TargetFramework> | |||||
<TargetFramework>net5.0</TargetFramework> | |||||
<IsPackable>false</IsPackable> | <IsPackable>false</IsPackable> | ||||
</PropertyGroup> | </PropertyGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" /> | |||||
<PackageReference Include="xunit" Version="2.4.0" /> | |||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" /> | |||||
<PackageReference Include="coverlet.collector" Version="1.2.0" /> | |||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" /> | |||||
<PackageReference Include="xunit" Version="2.4.1" /> | |||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3"> | |||||
<PrivateAssets>all</PrivateAssets> | |||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | |||||
</PackageReference> | |||||
<PackageReference Include="coverlet.collector" Version="1.3.0"> | |||||
<PrivateAssets>all</PrivateAssets> | |||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | |||||
</PackageReference> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
@@ -1,7 +1,7 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk"> | <Project Sdk="Microsoft.NET.Sdk"> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
<TargetFrameworks>netstandard2.0;netstandard2.1;</TargetFrameworks> | |||||
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0;</TargetFrameworks> | |||||
<LangVersion>8.0</LangVersion> | <LangVersion>8.0</LangVersion> | ||||
<Copyright>Copyright 2019.</Copyright> | <Copyright>Copyright 2019.</Copyright> | ||||
<Authors>SmallChi(Koike)</Authors> | <Authors>SmallChi(Koike)</Authors> | ||||
@@ -14,19 +14,13 @@ | |||||
<licenseUrl>https://github.com/SmallChi/JT1078/blob/master/LICENSE</licenseUrl> | <licenseUrl>https://github.com/SmallChi/JT1078/blob/master/LICENSE</licenseUrl> | ||||
<license>https://github.com/SmallChi/JT1078/blob/master/LICENSE</license> | <license>https://github.com/SmallChi/JT1078/blob/master/LICENSE</license> | ||||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild> | <GeneratePackageOnBuild>false</GeneratePackageOnBuild> | ||||
<Version>1.0.0-preview1</Version> | |||||
<Version>1.1.0-preview1</Version> | |||||
<SignAssembly>false</SignAssembly> | <SignAssembly>false</SignAssembly> | ||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | ||||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | <PackageLicenseFile>LICENSE</PackageLicenseFile> | ||||
</PropertyGroup> | |||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'"> | |||||
<DocumentationFile>JT1078.FMp4.xml</DocumentationFile> | <DocumentationFile>JT1078.FMp4.xml</DocumentationFile> | ||||
</PropertyGroup> | </PropertyGroup> | ||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|AnyCPU'"> | |||||
<DocumentationFile>JT1078.FMp4.xml</DocumentationFile> | |||||
</PropertyGroup> | |||||
<ItemGroup> | <ItemGroup> | ||||
<None Include="..\..\LICENSE"> | <None Include="..\..\LICENSE"> | ||||
<Pack>True</Pack> | <Pack>True</Pack> | ||||
@@ -34,7 +28,7 @@ | |||||
</None> | </None> | ||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.1.7" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="5.0.0" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<ProjectReference Include="..\JT1078.Protocol\JT1078.Protocol.csproj" /> | <ProjectReference Include="..\JT1078.Protocol\JT1078.Protocol.csproj" /> | ||||
@@ -2,7 +2,7 @@ | |||||
<PropertyGroup> | <PropertyGroup> | ||||
<OutputType>Exe</OutputType> | <OutputType>Exe</OutputType> | ||||
<TargetFramework>netcoreapp3.1</TargetFramework> | |||||
<TargetFramework>net5.0</TargetFramework> | |||||
</PropertyGroup> | </PropertyGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="BenchmarkDotNet" Version="0.12.1" /> | <PackageReference Include="BenchmarkDotNet" Version="0.12.1" /> | ||||
@@ -69,7 +69,7 @@ namespace JT1078.Flv.Benchmark | |||||
{ | { | ||||
public JT1078FlvEncoderConfig() | public JT1078FlvEncoderConfig() | ||||
{ | { | ||||
AddJob(Job.Default.WithGcServer(false).WithToolchain(CsProjCoreToolchain.NetCoreApp31).WithPlatform(Platform.AnyCpu)); | |||||
AddJob(Job.Default.WithGcServer(false).WithToolchain(CsProjCoreToolchain.NetCoreApp50).WithPlatform(Platform.AnyCpu)); | |||||
} | } | ||||
} | } | ||||
} | } |
@@ -1,13 +1,13 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk"> | <Project Sdk="Microsoft.NET.Sdk"> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
<TargetFramework>netcoreapp3.1</TargetFramework> | |||||
<TargetFramework>net5.0</TargetFramework> | |||||
</PropertyGroup> | </PropertyGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" /> | |||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" /> | |||||
<PackageReference Include="xunit" Version="2.4.1" /> | <PackageReference Include="xunit" Version="2.4.1" /> | ||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.2"> | |||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3"> | |||||
<PrivateAssets>all</PrivateAssets> | <PrivateAssets>all</PrivateAssets> | ||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||||
</PackageReference> | </PackageReference> | ||||
@@ -1,7 +1,7 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk"> | <Project Sdk="Microsoft.NET.Sdk"> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
<TargetFrameworks>netstandard2.0;netstandard2.1;</TargetFrameworks> | |||||
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0;</TargetFrameworks> | |||||
<LangVersion>8.0</LangVersion> | <LangVersion>8.0</LangVersion> | ||||
<Copyright>Copyright 2019.</Copyright> | <Copyright>Copyright 2019.</Copyright> | ||||
<Authors>SmallChi(Koike)</Authors> | <Authors>SmallChi(Koike)</Authors> | ||||
@@ -14,17 +14,10 @@ | |||||
<licenseUrl>https://github.com/SmallChi/JT1078/blob/master/LICENSE</licenseUrl> | <licenseUrl>https://github.com/SmallChi/JT1078/blob/master/LICENSE</licenseUrl> | ||||
<license>https://github.com/SmallChi/JT1078/blob/master/LICENSE</license> | <license>https://github.com/SmallChi/JT1078/blob/master/LICENSE</license> | ||||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild> | <GeneratePackageOnBuild>false</GeneratePackageOnBuild> | ||||
<Version>1.0.0-preview11</Version> | |||||
<Version>1.1.0</Version> | |||||
<SignAssembly>false</SignAssembly> | <SignAssembly>false</SignAssembly> | ||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | ||||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | <PackageLicenseFile>LICENSE</PackageLicenseFile> | ||||
</PropertyGroup> | |||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'"> | |||||
<DocumentationFile>JT1078.Flv.xml</DocumentationFile> | |||||
</PropertyGroup> | |||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|AnyCPU'"> | |||||
<DocumentationFile>JT1078.Flv.xml</DocumentationFile> | <DocumentationFile>JT1078.Flv.xml</DocumentationFile> | ||||
</PropertyGroup> | </PropertyGroup> | ||||
@@ -42,6 +35,6 @@ | |||||
</None> | </None> | ||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.1.7" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="5.0.0" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
</Project> | </Project> |
@@ -1,7 +1,7 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk"> | <Project Sdk="Microsoft.NET.Sdk"> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
<TargetFramework>netcoreapp3.1</TargetFramework> | |||||
<TargetFramework>net5.0</TargetFramework> | |||||
<IsPackable>false</IsPackable> | <IsPackable>false</IsPackable> | ||||
</PropertyGroup> | </PropertyGroup> | ||||
@@ -15,10 +15,10 @@ | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="3.1.5" /> | |||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" /> | |||||
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="5.0.0" /> | |||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" /> | |||||
<PackageReference Include="xunit" Version="2.4.1" /> | <PackageReference Include="xunit" Version="2.4.1" /> | ||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.2"> | |||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3"> | |||||
<PrivateAssets>all</PrivateAssets> | <PrivateAssets>all</PrivateAssets> | ||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||||
</PackageReference> | </PackageReference> | ||||
@@ -1,7 +1,7 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk"> | <Project Sdk="Microsoft.NET.Sdk"> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
<TargetFrameworks>netstandard2.0;netstandard2.1;</TargetFrameworks> | |||||
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0;</TargetFrameworks> | |||||
<LangVersion>8.0</LangVersion> | <LangVersion>8.0</LangVersion> | ||||
<Copyright>Copyright 2019.</Copyright> | <Copyright>Copyright 2019.</Copyright> | ||||
<Authors>SmallChi(Koike)</Authors> | <Authors>SmallChi(Koike)</Authors> | ||||
@@ -14,17 +14,10 @@ | |||||
<licenseUrl>https://github.com/SmallChi/JT1078/blob/master/LICENSE</licenseUrl> | <licenseUrl>https://github.com/SmallChi/JT1078/blob/master/LICENSE</licenseUrl> | ||||
<license>https://github.com/SmallChi/JT1078/blob/master/LICENSE</license> | <license>https://github.com/SmallChi/JT1078/blob/master/LICENSE</license> | ||||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild> | <GeneratePackageOnBuild>false</GeneratePackageOnBuild> | ||||
<Version>1.0.0-preview2</Version> | |||||
<Version>1.1.0-preview1</Version> | |||||
<SignAssembly>false</SignAssembly> | <SignAssembly>false</SignAssembly> | ||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | ||||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | <PackageLicenseFile>LICENSE</PackageLicenseFile> | ||||
</PropertyGroup> | |||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'"> | |||||
<DocumentationFile>JT1078.Hls.xml</DocumentationFile> | |||||
</PropertyGroup> | |||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|AnyCPU'"> | |||||
<DocumentationFile>JT1078.Hls.xml</DocumentationFile> | <DocumentationFile>JT1078.Hls.xml</DocumentationFile> | ||||
</PropertyGroup> | </PropertyGroup> | ||||
@@ -42,6 +35,6 @@ | |||||
</None> | </None> | ||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.7.1" /> | |||||
<PackageReference Include="System.Text.Encoding.CodePages" Version="5.0.0" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
</Project> | </Project> |
@@ -2,7 +2,7 @@ | |||||
<PropertyGroup> | <PropertyGroup> | ||||
<OutputType>Exe</OutputType> | <OutputType>Exe</OutputType> | ||||
<TargetFramework>netcoreapp3.1</TargetFramework> | |||||
<TargetFramework>net5.0</TargetFramework> | |||||
</PropertyGroup> | </PropertyGroup> | ||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | ||||
@@ -78,7 +78,7 @@ namespace JT1078.Flv.Benchmark | |||||
{ | { | ||||
public JT1078FlvEncoderConfig() | public JT1078FlvEncoderConfig() | ||||
{ | { | ||||
AddJob(Job.Default.WithGcServer(false).WithToolchain(CsProjCoreToolchain.NetCoreApp31).WithPlatform(Platform.AnyCpu)); | |||||
AddJob(Job.Default.WithGcServer(false).WithToolchain(CsProjCoreToolchain.NetCoreApp50).WithPlatform(Platform.AnyCpu)); | |||||
} | } | ||||
} | } | ||||
} | } |
@@ -58,7 +58,7 @@ namespace JT1078.Protocol.Benchmark | |||||
{ | { | ||||
public JT1078SerializerConfig() | public JT1078SerializerConfig() | ||||
{ | { | ||||
AddJob(Job.Default.WithGcServer(false).WithToolchain(CsProjCoreToolchain.NetCoreApp31).WithPlatform(Platform.AnyCpu)); | |||||
AddJob(Job.Default.WithGcServer(false).WithToolchain(CsProjCoreToolchain.NetCoreApp50).WithPlatform(Platform.AnyCpu)); | |||||
} | } | ||||
} | } | ||||
} | } |
@@ -1,16 +1,16 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk"> | <Project Sdk="Microsoft.NET.Sdk"> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
<TargetFramework>netcoreapp3.1</TargetFramework> | |||||
<TargetFramework>net5.0</TargetFramework> | |||||
<IsPackable>false</IsPackable> | <IsPackable>false</IsPackable> | ||||
</PropertyGroup> | </PropertyGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="JT808" Version="2.2.10" /> | |||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" /> | |||||
<PackageReference Include="JT808" Version="2.3.0" /> | |||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" /> | |||||
<PackageReference Include="xunit" Version="2.4.1" /> | <PackageReference Include="xunit" Version="2.4.1" /> | ||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.2"> | |||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3"> | |||||
<PrivateAssets>all</PrivateAssets> | <PrivateAssets>all</PrivateAssets> | ||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||||
</PackageReference> | </PackageReference> | ||||
@@ -1,7 +1,7 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk"> | <Project Sdk="Microsoft.NET.Sdk"> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks> | |||||
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0;</TargetFrameworks> | |||||
<LangVersion>8.0</LangVersion> | <LangVersion>8.0</LangVersion> | ||||
<Copyright>Copyright 2019.</Copyright> | <Copyright>Copyright 2019.</Copyright> | ||||
<Authors>SmallChi(Koike)</Authors> | <Authors>SmallChi(Koike)</Authors> | ||||
@@ -14,10 +14,11 @@ | |||||
<licenseUrl>https://github.com/SmallChi/JT1078/blob/master/LICENSE</licenseUrl> | <licenseUrl>https://github.com/SmallChi/JT1078/blob/master/LICENSE</licenseUrl> | ||||
<license>https://github.com/SmallChi/JT1078/blob/master/LICENSE</license> | <license>https://github.com/SmallChi/JT1078/blob/master/LICENSE</license> | ||||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild> | <GeneratePackageOnBuild>false</GeneratePackageOnBuild> | ||||
<Version>1.0.4-preview2</Version> | |||||
<Version>1.1.0</Version> | |||||
<SignAssembly>false</SignAssembly> | <SignAssembly>false</SignAssembly> | ||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> | ||||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | <PackageLicenseFile>LICENSE</PackageLicenseFile> | ||||
<DocumentationFile>JT1078.Protocol.xml</DocumentationFile> | |||||
</PropertyGroup> | </PropertyGroup> | ||||
@@ -0,0 +1,313 @@ | |||||
<?xml version="1.0"?> | |||||
<doc> | |||||
<assembly> | |||||
<name>JT1078.Protocol</name> | |||||
</assembly> | |||||
<members> | |||||
<member name="M:JT1078.Protocol.Audio.AdpcmCodec.ToPcm(System.Byte[],JT1078.Protocol.Audio.IAudioAttachData)"> | |||||
<summary> | |||||
将adpcm转为pcm | |||||
</summary> | |||||
<see cref="!:https://github.com/ctuning/ctuning-programs/blob/master/program/cbench-telecom-adpcm-d/adpcm.c"/> | |||||
<param name="audio"></param> | |||||
<param name="audioAttachData"></param> | |||||
<returns></returns> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.Audio.AdpcmState.Valprev"> | |||||
<summary> | |||||
上一个采样数据,当index为0是该值应该为未压缩的原数据 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.Audio.AdpcmState.Reserved"> | |||||
<summary> | |||||
保留数据(未使用) | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.Audio.AdpcmState.Index"> | |||||
<summary> | |||||
上一个block最后一个index,第一个block的index=0 | |||||
</summary> | |||||
</member> | |||||
<member name="M:JT1078.Protocol.Audio.AdpcmDecoderExtension.ToWav(System.Byte[],System.UInt32,System.Byte)"> | |||||
<summary> | |||||
添加wav头 | |||||
仅用于测试pcm是否转成成功,因此没考虑性能,因为播放器可播——# | |||||
</summary> | |||||
<param name="input">pcm数据</param> | |||||
<param name="frequency">采样率</param> | |||||
<param name="bitDepth">位深</param> | |||||
<returns></returns> | |||||
</member> | |||||
<member name="T:JT1078.Protocol.Buffers.JT1078BufferWriter"> | |||||
<summary> | |||||
<see cref="!:System.Buffers.Writer"/> | |||||
</summary> | |||||
</member> | |||||
<member name="T:JT1078.Protocol.Enums.JT1078AVType"> | |||||
<summary> | |||||
音视频类型 | |||||
</summary> | |||||
</member> | |||||
<member name="T:JT1078.Protocol.Enums.JT1078SubPackageType"> | |||||
<summary> | |||||
分包处理标记 | |||||
</summary> | |||||
</member> | |||||
<member name="T:JT1078.Protocol.Extensions.HexExtensions"> | |||||
<summary> | |||||
ref:"www.codeproject.com/tips/447938/high-performance-csharp-byte-array-to-hex-string-t" | |||||
</summary> | |||||
</member> | |||||
<member name="M:JT1078.Protocol.Extensions.HexExtensions.ToHexBytes(System.String)"> | |||||
<summary> | |||||
16进制字符串转16进制数组 | |||||
</summary> | |||||
<param name="hexString"></param> | |||||
<param name="separator"></param> | |||||
<returns></returns> | |||||
</member> | |||||
<member name="M:JT1078.Protocol.H264.H264Decoder.ParseNALU(JT1078.Protocol.JT1078Package,System.String)"> | |||||
<summary> | |||||
<see cref="!:https://github.com/samirkumardas/jmuxer/blob/master/src/parsers/h264.js"/> | |||||
</summary> | |||||
<param name="package"></param> | |||||
<param name="key"></param> | |||||
<returns></returns> | |||||
</member> | |||||
<member name="M:JT1078.Protocol.H264.H264Decoder.DiscardEmulationPreventionBytes(System.ReadOnlySpan{System.Byte})"> | |||||
<summary> | |||||
Expunge any "Emulation Prevention" bytes from a "Raw Byte Sequence Payload" | |||||
<see cref="!:https://blog.csdn.net/u011399342/article/details/80472084"/> | |||||
防止竞争插入0x03 | |||||
</summary> | |||||
<param name="srcBuffer"></param> | |||||
<returns></returns> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.H264.H264NALU.SIM"> | |||||
<summary> | |||||
终端设备SIM卡号 | |||||
BCD[6] | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.H264.H264NALU.LogicChannelNumber"> | |||||
<summary> | |||||
逻辑通道号 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.H264.H264NALU.DataType"> | |||||
<summary> | |||||
数据类型 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.H264.H264NALU.LastIFrameInterval"> | |||||
<summary> | |||||
该帧与上一个关键帧之间的时间间隔,单位毫秒(ms), | |||||
当数据类型为非视频帧时,则没有该字段 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.H264.H264NALU.LastFrameInterval"> | |||||
<summary> | |||||
该帧与上一个帧之间的时间间隔,单位毫秒(ms), | |||||
当数据类型为非视频帧时,则没有该字段 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.H264.H264NALU.Timestamp"> | |||||
<summary> | |||||
时间戳 | |||||
标识此RTP数据包当前帧的相对时间,单位毫秒(ms)。 | |||||
当数据类型为01000时,则没有该字段 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.H264.H264NALU.RawData"> | |||||
<summary> | |||||
数据体 | |||||
</summary> | |||||
</member> | |||||
<member name="T:JT1078.Protocol.JT1078Label1"> | |||||
<summary> | |||||
V - 2 - 固定为2 | |||||
P - 1 - 固定为0 | |||||
X - 1 - RTP头是否需要扩展位,固定为0 | |||||
CC - 4 - 固定为1 | |||||
</summary> | |||||
</member> | |||||
<member name="M:JT1078.Protocol.JT1078Label1.#ctor(System.Byte,System.Byte,System.Byte,System.Byte)"> | |||||
<summary> | |||||
</summary> | |||||
<param name="v">0-3</param> | |||||
<param name="p">0-1</param> | |||||
<param name="x">0-1</param> | |||||
<param name="cc">0-15</param> | |||||
</member> | |||||
<member name="T:JT1078.Protocol.JT1078Label2"> | |||||
<summary> | |||||
M - 1 - 标志位,确定是否是完整数据帧的边界 | |||||
PT - 7 - 负载类型 | |||||
</summary> | |||||
</member> | |||||
<member name="M:JT1078.Protocol.JT1078Label2.#ctor(System.Byte,JT1078.Protocol.Enums.JT1078AVType)"> | |||||
<summary> | |||||
</summary> | |||||
<param name="m">0-1</param> | |||||
<param name="pt">0-127</param> | |||||
</member> | |||||
<member name="M:JT1078.Protocol.JT1078Label2.#ctor(System.Byte,System.Byte)"> | |||||
<summary> | |||||
</summary> | |||||
<param name="m">0-1</param> | |||||
<param name="pt">0-127</param> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.JT1078Label2.M"> | |||||
<summary> | |||||
M - 1 - 标志位,确定是否是完整数据帧的边界 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.JT1078Label2.PT"> | |||||
<summary> | |||||
PT - 7 - 负载类型 | |||||
用于说明RTP报文中有效载荷的类型,如GSM音频、JPEM图像等 | |||||
</summary> | |||||
</member> | |||||
<member name="T:JT1078.Protocol.JT1078Label3"> | |||||
<summary> | |||||
数据类型 | |||||
分包处理标记 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.JT1078Label3.DataType"> | |||||
<summary> | |||||
数据类型 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.JT1078Label3.SubpackageType"> | |||||
<summary> | |||||
分包处理标记 | |||||
</summary> | |||||
</member> | |||||
<member name="F:JT1078.Protocol.JT1078Package.FH_Bytes"> | |||||
<summary> | |||||
帧头标识 | |||||
</summary> | |||||
</member> | |||||
<member name="F:JT1078.Protocol.JT1078Package.FH"> | |||||
<summary> | |||||
帧头标识 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.JT1078Package.FH_Flag"> | |||||
<summary> | |||||
帧头标识 | |||||
固定为0x30 0x31 0x63 0x64 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.JT1078Package.Label1"> | |||||
<summary> | |||||
V - 2 - 固定为2 | |||||
P - 1 - 固定为0 | |||||
X - 1 - RTP头是否需要扩展位,固定为0 | |||||
CC - 4 - 固定为1 | |||||
01000001 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.JT1078Package.Label2"> | |||||
<summary> | |||||
M - 1 - 标志位,确定是否是完整数据帧的边界 | |||||
PT - 7 - 负载类型 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.JT1078Package.SN"> | |||||
<summary> | |||||
初始化为0,每发送一个RTP数据包,序列号加1 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.JT1078Package.SIM"> | |||||
<summary> | |||||
终端设备SIM卡号 | |||||
BCD[6] | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.JT1078Package.LogicChannelNumber"> | |||||
<summary> | |||||
逻辑通道号 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.JT1078Package.Label3"> | |||||
<summary> | |||||
数据类型 | |||||
0000:视频I帧 | |||||
0001:视频P帧 | |||||
0010:视频B帧 | |||||
0011:音频帧 | |||||
0100:透传数据 | |||||
0000:原子包,不可被拆分 | |||||
0001:分包处理时的第一个包 | |||||
0010:分包处理是的最后一个包 | |||||
0011:分包处理时间的中间包 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.JT1078Package.Timestamp"> | |||||
<summary> | |||||
时间戳 | |||||
标识此RTP数据包当前帧的相对时间,单位毫秒(ms)。 | |||||
当数据类型为01000时,则没有该字段 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.JT1078Package.LastIFrameInterval"> | |||||
<summary> | |||||
该帧与上一个关键帧之间的时间间隔,单位毫秒(ms), | |||||
当数据类型为非视频帧时,则没有该字段 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.JT1078Package.LastFrameInterval"> | |||||
<summary> | |||||
该帧与上一个关键帧之间的时间间隔,单位毫秒(ms), | |||||
当数据类型为非视频帧时,则没有该字段 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.JT1078Package.DataBodyLength"> | |||||
<summary> | |||||
后续数据体长度,不含此字段 | |||||
</summary> | |||||
</member> | |||||
<member name="P:JT1078.Protocol.JT1078Package.Bodies"> | |||||
<summary> | |||||
数据体 | |||||
</summary> | |||||
</member> | |||||
<member name="T:JT1078.Protocol.MessagePack.ExpGolombReader"> | |||||
<summary> | |||||
Exp-Golomb指数哥伦布编码 | |||||
</summary> | |||||
</member> | |||||
<member name="M:JT1078.Protocol.MessagePack.ExpGolombReader.SkipScalingList(System.Int32)"> | |||||
<summary> | |||||
Advance the ExpGolomb decoder past a scaling list.The scaling | |||||
list is optionally transmitted as part of a sequence parameter | |||||
set and is not relevant to transmuxing. | |||||
@param count { number} | |||||
the number of entries in this scaling list | |||||
@see Recommendation ITU-T H.264, Section 7.3.2.1.1.1 | |||||
</summary> | |||||
<param name="count"></param> | |||||
</member> | |||||
<member name="M:JT1078.Protocol.MessagePack.JT1078MessagePackReader.ReadBigNumber(System.Int32)"> | |||||
<summary> | |||||
数字编码 大端模式、高位在前 | |||||
</summary> | |||||
<param name="len"></param> | |||||
</member> | |||||
<member name="M:JT1078.Protocol.MessagePack.JT1078MessagePackWriter.WriteBigNumber(System.String,System.Int32)"> | |||||
<summary> | |||||
数字编码 大端模式、高位在前 | |||||
</summary> | |||||
<param name="value"></param> | |||||
<param name="len"></param> | |||||
</member> | |||||
</members> | |||||
</doc> |
@@ -1,13 +1,13 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk"> | <Project Sdk="Microsoft.NET.Sdk"> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
<TargetFramework>netcoreapp3.1</TargetFramework> | |||||
<TargetFramework>net5.0</TargetFramework> | |||||
</PropertyGroup> | </PropertyGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.7" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.7" /> | |||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.0" /> | |||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0" /> | |||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" /> | |||||
<PackageReference Include="xunit" Version="2.4.1" /> | <PackageReference Include="xunit" Version="2.4.1" /> | ||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3"> | <PackageReference Include="xunit.runner.visualstudio" Version="2.4.3"> | ||||
<PrivateAssets>all</PrivateAssets> | <PrivateAssets>all</PrivateAssets> | ||||
@@ -1,7 +1,7 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk"> | <Project Sdk="Microsoft.NET.Sdk"> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
<TargetFrameworks>netstandard2.0;netstandard2.1;</TargetFrameworks> | |||||
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0;</TargetFrameworks> | |||||
<LangVersion>8.0</LangVersion> | <LangVersion>8.0</LangVersion> | ||||
<Copyright>Copyright 2019.</Copyright> | <Copyright>Copyright 2019.</Copyright> | ||||
<Authors>SmallChi(Koike)</Authors> | <Authors>SmallChi(Koike)</Authors> | ||||
@@ -15,20 +15,14 @@ | |||||
<licenseUrl>https://github.com/SmallChi/JT1078/blob/master/LICENSE</licenseUrl> | <licenseUrl>https://github.com/SmallChi/JT1078/blob/master/LICENSE</licenseUrl> | ||||
<license>https://github.com/SmallChi/JT1078/blob/master/LICENSE</license> | <license>https://github.com/SmallChi/JT1078/blob/master/LICENSE</license> | ||||
<GeneratePackageOnBuild>false</GeneratePackageOnBuild> | <GeneratePackageOnBuild>false</GeneratePackageOnBuild> | ||||
<Version>2.2.12</Version> | |||||
<Version>2.3.0</Version> | |||||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | <PackageLicenseFile>LICENSE</PackageLicenseFile> | ||||
</PropertyGroup> | |||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | |||||
<DocumentationFile>JT808.Protocol.Extensions.JT1078.xml</DocumentationFile> | <DocumentationFile>JT808.Protocol.Extensions.JT1078.xml</DocumentationFile> | ||||
</PropertyGroup> | </PropertyGroup> | ||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'"> | |||||
<DocumentationFile>JT808.Protocol.Extensions.JT1078.xml</DocumentationFile> | |||||
</PropertyGroup> | |||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="JT808" Version="2.2.12" /> | |||||
<PackageReference Include="JT808" Version="2.3.0" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
@@ -1,14 +1,14 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk"> | <Project Sdk="Microsoft.NET.Sdk"> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
<TargetFramework>netcoreapp3.1</TargetFramework> | |||||
<TargetFramework>net5.0</TargetFramework> | |||||
</PropertyGroup> | </PropertyGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.5" /> | |||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" /> | |||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.0" /> | |||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.0" /> | |||||
<PackageReference Include="xunit" Version="2.4.1" /> | <PackageReference Include="xunit" Version="2.4.1" /> | ||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.2"> | |||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3"> | |||||
<PrivateAssets>all</PrivateAssets> | <PrivateAssets>all</PrivateAssets> | ||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||||
</PackageReference> | </PackageReference> | ||||
@@ -1,7 +1,7 @@ | |||||
<Project Sdk="Microsoft.NET.Sdk"> | <Project Sdk="Microsoft.NET.Sdk"> | ||||
<PropertyGroup> | <PropertyGroup> | ||||
<TargetFrameworks>netstandard2.0;netstandard2.1;</TargetFrameworks> | |||||
<TargetFrameworks>netstandard2.0;netstandard2.1;net5.0;</TargetFrameworks> | |||||
<LangVersion>8.0</LangVersion> | <LangVersion>8.0</LangVersion> | ||||
<Copyright>Copyright 2019.</Copyright> | <Copyright>Copyright 2019.</Copyright> | ||||
<Authors>SmallChi(Koike)</Authors> | <Authors>SmallChi(Koike)</Authors> | ||||
@@ -15,16 +15,8 @@ | |||||
<licenseUrl>https://github.com/SmallChi/JT1078/blob/master/LICENSE</licenseUrl> | <licenseUrl>https://github.com/SmallChi/JT1078/blob/master/LICENSE</licenseUrl> | ||||
<license>https://github.com/SmallChi/JT1078/blob/master/LICENSE</license> | <license>https://github.com/SmallChi/JT1078/blob/master/LICENSE</license> | ||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> | <GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||||
<Version>2.1.4-preview4</Version> | |||||
<Version>2.2.0</Version> | |||||
<PackageLicenseFile>LICENSE</PackageLicenseFile> | <PackageLicenseFile>LICENSE</PackageLicenseFile> | ||||
<FileVersion>2.1.4.0</FileVersion> | |||||
</PropertyGroup> | |||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'"> | |||||
<DocumentationFile>JT809.Protocol.Extensions.JT1078.xml</DocumentationFile> | |||||
</PropertyGroup> | |||||
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|AnyCPU'"> | |||||
<DocumentationFile>JT809.Protocol.Extensions.JT1078.xml</DocumentationFile> | <DocumentationFile>JT809.Protocol.Extensions.JT1078.xml</DocumentationFile> | ||||
</PropertyGroup> | </PropertyGroup> | ||||
@@ -36,7 +28,7 @@ | |||||
</ItemGroup> | </ItemGroup> | ||||
<ItemGroup> | <ItemGroup> | ||||
<PackageReference Include="JT809" Version="2.1.4-preview4" /> | |||||
<PackageReference Include="JT809" Version="2.2.0" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
</Project> | </Project> |