Skip to content

Commit a0f9b9b

Browse files
committed
linux integration-cleaning- binaries updated
1 parent c446e3f commit a0f9b9b

File tree

15 files changed

+18
-79
lines changed

15 files changed

+18
-79
lines changed

Examples/H264SharpNativePInvoke/H264SharpNativePInvoke.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,8 @@
4141
<None Update="ocean1080.jpg">
4242
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4343
</None>
44+
<None Update="openh264-2.4.1-win64.dll">
45+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
46+
</None>
4447
</ItemGroup>
4548
</Project>
952 KB
Binary file not shown.

H264Sharp/Defines.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ namespace H264Sharp
99
public class Defines
1010
{
1111
#if OS_WINDOWS
12-
public static string CiscoDllName64bit = "openh264-2.4.0-win64.dll";
13-
public static string CiscoDllName32bit = "openh264-2.4.0-win32.dll";
12+
public static string CiscoDllName64bit = "openh264-2.4.1-win64.dll";
13+
public static string CiscoDllName32bit = "openh264-2.4.1-win32.dll";
1414

1515
public const string WrapperDllName64bit = "H264SharpNative-win64.dll";
1616
public const string WrapperDllName32bit = "H264SharpNative-win32.dll";
1717
#elif OS_LINUX
18-
// Linux-specific dll
18+
public static string CiscoDllName64bit = "libopenh264-2.4.1-linux64.7.so";
19+
public static string CiscoDllName32bit = "libopenh264-2.4.1-linux32.7.so";
20+
21+
public const string WrapperDllName64bit = "H264SharpNative-linux64.so";
22+
public const string WrapperDllName32bit = "H264SharpNative-linux32.so";
1923
#elif OS_FREEBSD
2024
// FreeBSD-specific dll
2125
#elif OS_MAC

H264Sharp/H264Sharp.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@
1212
<PackageTags>h264;openh264;transcoder;h264sharp</PackageTags>
1313
<PackageReleaseNotes>https://github.com/ReferenceType/H264Sharp/releases/</PackageReleaseNotes>
1414
<PackageId>H264Sharp</PackageId>
15-
<Description>H264 encoding library well suited for streaming based on Cisco's OpenH264</Description>
15+
<Description>Cisco's OpenH264 wrapper for .Net with SIMD color model conversion support</Description>
16+
1617
<Copyright></Copyright>
17-
<PackageLicenseFile>Licence.txt</PackageLicenseFile>
1818
</PropertyGroup>
1919

2020
<PropertyGroup>
2121
<GenerateDocumentationFile>true</GenerateDocumentationFile>
22+
<PackageLicenseFile>Licence.txt</PackageLicenseFile>
23+
<IncludeContentInPack>true</IncludeContentInPack>
24+
2225
</PropertyGroup>
2326

2427
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('Windows'))">
@@ -36,8 +39,10 @@
3639

3740
<ItemGroup>
3841
<Content Include="runtimes\win-x64\native\*" CopyToOutputDirectory="Always" Pack="true" PackagePath="\lib\$(TargetFramework)" />
42+
<Content Include="runtimes\linux64\native\*" CopyToOutputDirectory="Always" Pack="true" PackagePath="\lib\$(TargetFramework)" />
3943

4044
<Content Include="runtimes\win-x86\native\*" CopyToOutputDirectory="Always" Pack="true" PackagePath="\lib\$(TargetFramework)" />
45+
<Content Include="runtimes\linux86\native\*" CopyToOutputDirectory="Always" Pack="true" PackagePath="\lib\$(TargetFramework)" />
4146
</ItemGroup>
4247

4348
<ItemGroup>
1.52 MB
Binary file not shown.
112 KB
Binary file not shown.
1.65 MB
Binary file not shown.
952 KB
Binary file not shown.
795 KB
Binary file not shown.

H264SharpNative/Decoder.cpp

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -72,42 +72,6 @@ namespace H264Sharp {
7272

7373
}
7474

75-
//void Decoder::Create(const wchar_t* dllname)
76-
//{
77-
// // Load Open h264 dll. We need to load create and destroy methods.
78-
// //pin_ptr<const wchar_t> dllname = PtrToStringChars(dllName);
79-
// HMODULE hDll = LoadLibrary(dllname);
80-
// if (hDll == NULL) {
81-
// throw new std::exception("Failed to load Dll ", GetLastError());
82-
// }
83-
//
84-
85-
// CreateDecoderFunc = (WelsCreateDecoderFunc)GetProcAddress(hDll, "WelsCreateDecoder");
86-
// if (CreateDecoderFunc == NULL)
87-
// {
88-
// throw new std::exception("Failed to load Dll ", GetLastError());
89-
// }
90-
91-
// DestroyDecoderFunc = (WelsDestroyDecoderFunc)GetProcAddress(hDll, "WelsDestroyDecoder");
92-
// if (DestroyDecoderFunc == NULL)
93-
// throw new std::exception("Failed to load Dll ", GetLastError());
94-
95-
96-
// ISVCDecoder* dec = nullptr;
97-
// int rc = CreateDecoderFunc(&dec);
98-
// decoder = dec;
99-
// if (rc != 0)
100-
// throw new std::exception("Failed to load Dll ", GetLastError());
101-
102-
103-
// /*rc = Initialize();
104-
// if (rc != 0)
105-
// throw new std::exception("Unable to initialize ", GetLastError());
106-
//
107-
// std::wcout << dllname << " loaded\n";
108-
// dllname = nullptr;*/
109-
//}
110-
11175
int Decoder::Initialize()
11276
{
11377
SDecodingParam decParam;

0 commit comments

Comments
 (0)