-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: commit Linux ScreenShare Sample code
- Loading branch information
xufengbao
committed
Dec 12, 2023
1 parent
069d5f0
commit b8b2714
Showing
35 changed files
with
30,432 additions
and
0 deletions.
There are no files selected for viewing
639 changes: 639 additions & 0 deletions
639
...RtcSample-1to1-Linux-Qt/NEScreenShare-Linux/NERtcSDK/include/nertc_audio_device_manager.h
Large diffs are not rendered by default.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
One-to-One-Video/NERtcSample-1to1-Linux-Qt/NEScreenShare-Linux/NERtcSDK/include/nertc_base.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** @file nertc_base.h | ||
* @brief Defines macro output. The file only defines macro output instead of anything else. | ||
* @copyright (c) 2015-2019, NetEase Inc. All rights reserved. | ||
*/ | ||
|
||
#ifndef NERTC_BASE_H | ||
#define NERTC_BASE_H | ||
|
||
#if defined(_WIN32) | ||
#ifndef WIN32_LEAN_AND_MEAN | ||
#define WIN32_LEAN_AND_MEAN | ||
#endif | ||
#include <windows.h> | ||
#define NERTC_CALL __cdecl | ||
#if defined(NERTC_SDK_EXPORT) | ||
#define NERTC_API extern "C" __declspec(dllexport) | ||
#else | ||
#define NERTC_API extern "C" __declspec(dllimport) | ||
#endif | ||
#elif defined(__APPLE__) | ||
#define NERTC_API __attribute__((visibility("default"))) extern "C" | ||
#define NERTC_CALL | ||
#elif defined(__ANDROID__) || defined(__linux__) | ||
#define NERTC_API extern "C" __attribute__((visibility("default"))) | ||
#define NERTC_CALL | ||
#else | ||
#define NERTC_API extern "C" | ||
#define NERTC_CALL | ||
#endif | ||
|
||
#if defined __GNUC__ | ||
#define NERTC_DEPRECATED __attribute__ ((deprecated)) | ||
#elif defined(_MSC_VER) | ||
#define NERTC_DEPRECATED __declspec(deprecated) | ||
#else | ||
#define NERTC_DEPRECATED | ||
#endif | ||
|
||
#endif |
84 changes: 84 additions & 0 deletions
84
...e-Video/NERtcSample-1to1-Linux-Qt/NEScreenShare-Linux/NERtcSDK/include/nertc_base_types.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/** @file nertc_base.h | ||
* @brief The definition of SDK basic types. | ||
* @copyright (c) 2021, NetEase Inc. All rights reserved. | ||
*/ | ||
|
||
#ifndef NERTC_BASE_TYPES_H | ||
#define NERTC_BASE_TYPES_H | ||
|
||
#include <sys/types.h> | ||
|
||
#ifndef _MSC_VER | ||
// stdint.h is part of C99 but MSVC doesn't have it. | ||
#include <stdint.h> // For intptr_t. | ||
#endif | ||
|
||
/* define int types*/ | ||
#if defined(__GNUC__) | ||
|
||
#ifndef _STDINT_H | ||
|
||
/* FreeBSD has these C99 int types defined in /sys/inttypes.h already */ | ||
#ifndef _SYS_TYPES_H | ||
typedef signed char int8_t; | ||
typedef signed short int16_t; | ||
typedef signed int int32_t; | ||
typedef signed long long int64_t; | ||
typedef unsigned char uint8_t; | ||
typedef unsigned short uint16_t; | ||
typedef unsigned int uint32_t; | ||
typedef unsigned long long uint64_t; | ||
#else | ||
typedef u_int8_t uint8_t; | ||
typedef u_int16_t uint16_t; | ||
typedef u_int32_t uint32_t; | ||
typedef u_int64_t uint64_t; | ||
#endif // _SYS_TYPES_H | ||
|
||
#endif // _STDINT_H | ||
|
||
#elif defined(_MSC_VER) | ||
typedef signed char int8_t; | ||
typedef signed short int16_t; | ||
typedef signed int int32_t; | ||
typedef signed __int64 int64_t; | ||
typedef unsigned char uint8_t; | ||
typedef unsigned short uint16_t; | ||
typedef unsigned int uint32_t; | ||
typedef unsigned __int64 uint64_t; | ||
|
||
/* the following definitions are from VS2010's stdint.h */ | ||
// #ifndef _INTPTR_T_DEFINED | ||
// #define _INTPTR_T_DEFINED | ||
// #ifdef _WIN64 | ||
// typedef __int64 intptr_t; | ||
// #else /* _WIN64 */ | ||
// typedef _W64 int intptr_t; | ||
// #endif /* _WIN64 */ | ||
// #endif /* _INTPTR_T_DEFINED */ | ||
// | ||
// #ifndef _UINTPTR_T_DEFINED | ||
// #define _UINTPTR_T_DEFINED | ||
// #ifdef _WIN64 | ||
// typedef unsigned __int64 uintptr_t; | ||
// #else /* _WIN64 */ | ||
// typedef _W64 unsigned int uintptr_t; | ||
// #endif /* _WIN64 */ | ||
// #endif /* _UINTPTR_T_DEFINED */ | ||
|
||
#endif // COMPILER_GCC/COMPILER_MSVC | ||
|
||
//const uint8_t kUint8Max = (( uint8_t) 0xFF); | ||
//const uint16_t kUint16Max = ((uint16_t) 0xFFFF); | ||
//const uint32_t kUint32Max = ((uint32_t) 0xFFFFFFFF); | ||
//const uint64_t kUint64Max = ((uint64_t) GG_LONGLONG(0xFFFFFFFFFFFFFFFF)); | ||
//const int8_t kInt8Min = (( int8_t) 0x80); | ||
//const int8_t kInt8Max = (( int8_t) 0x7F); | ||
//const int16_t kInt16Min = (( int16_t) 0x8000); | ||
//const int16_t kInt16Max = (( int16_t) 0x7FFF); | ||
//const int32_t kInt32Min = (( int32_t) 0x80000000); | ||
//const int32_t kInt32Max = (( int32_t) 0x7FFFFFFF); | ||
//const int64_t kInt64Min = (( int64_t) GG_LONGLONG(0x8000000000000000)); | ||
//const int64_t kInt64Max = (( int64_t) GG_LONGLONG(0x7FFFFFFFFFFFFFFF)); | ||
|
||
#endif // NERTC_BASE_TYPES_H |
Oops, something went wrong.