forked from crow-misia/libwebrtc-bin
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
19 changed files
with
145 additions
and
56 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -122,3 +122,4 @@ webrtc_build/ | |
|
||
# Backup files produced by CLI tools | ||
*.bk | ||
depot_tools/ |
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
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,24 +1,13 @@ | ||
$ErrorActionPreference = "Stop" | ||
|
||
Get-PSDrive | ||
|
||
# Cache 済み Docker Image の削除 | ||
docker rmi $(docker images -q -a) | ||
|
||
# Android SDK の削除 | ||
if (($Env:ANDROID_HOME -ne $null) -and (Test-Path $Env:ANDROID_HOME)) { | ||
(Get-Item $Env:ANDROID_HOME).Delete() | ||
} | ||
if (($Env:ANDROID_NDK_HOME -ne $null) -and (Test-Path $Env:ANDROID_NDK_HOME)) { | ||
(Get-Item $Env:ANDROID_NDK_HOME).Delete() | ||
} | ||
Remove-Item -Recurse -Force $Env:ANDROID_NDK_HOME | ||
|
||
# JVM の削除 | ||
if (($Env:JAVA_HOME_11_X64 -ne $null) -and (Test-Path $Env:JAVA_HOME_11_X64)) { | ||
Remove-Item -Recurse -Force $Env:JAVA_HOME_11_X64 | ||
} | ||
if (($Env:JAVA_HOME_8_X64 -ne $null) -and (Test-Path $Env:JAVA_HOME_8_X64)) { | ||
Remove-Item -Recurse -Force $Env:JAVA_HOME_8_X64 | ||
} | ||
if (($Env:JAVA_HOME_7_X64 -ne $null) -and (Test-Path $Env:JAVA_HOME_7_X64)) { | ||
Remove-Item -Recurse -Force $Env:JAVA_HOME_7_X64 | ||
} | ||
Remove-Item -Recurse -Force $Env:JAVA_HOME_11_X64 | ||
Remove-Item -Recurse -Force $Env:JAVA_HOME_8_X64 | ||
|
||
Get-PSDrive |
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
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
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
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
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,19 @@ | ||
# Copyright 2018-2019, Shiguredo Inc, tnoho and melpon and kdxu | ||
# from https://github.com/shiguredo/momo/blob/develop/patch/4k.patch | ||
|
||
diff --git a/src/video/config/encoder_stream_factory.cc b/src/video/config/encoder_stream_factory.cc | ||
index fceadf09b4..a73b7e9f6f 100644 | ||
--- a/src/video/config/encoder_stream_factory.cc | ||
+++ b/src/video/config/encoder_stream_factory.cc | ||
@@ -86,8 +86,10 @@ static int GetMaxDefaultVideoBitrateKbps(int width, | ||
max_bitrate = 1700; | ||
} else if (width * height <= 960 * 540) { | ||
max_bitrate = 2000; | ||
- } else { | ||
+ } else if (width * height <= 1920 * 1080) { | ||
max_bitrate = 2500; | ||
+ } else { | ||
+ max_bitrate = 15000; | ||
} | ||
if (is_screenshare) | ||
max_bitrate = std::max(max_bitrate, 1200); |
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,21 @@ | ||
# Copyright 2018-2019, Shiguredo Inc, tnoho and melpon and kdxu | ||
# from https://github.com/shiguredo/momo/blob/develop/patch/4k.patch | ||
|
||
diff --git a/src/modules/video_capture/linux/device_info_v4l2.cc b/src/modules/video_capture/linux/device_info_v4l2.cc | ||
index 39f72b0..3cb1226 100644 | ||
--- a/src/modules/video_capture/linux/device_info_v4l2.cc | ||
+++ b/src/modules/video_capture/linux/device_info_v4l2.cc | ||
@@ -232,11 +232,11 @@ int32_t DeviceInfoV4l2::FillCapabilities(int fd) { | ||
unsigned int videoFormats[] = {V4L2_PIX_FMT_MJPEG, V4L2_PIX_FMT_YUV420, | ||
V4L2_PIX_FMT_YUYV, V4L2_PIX_FMT_UYVY}; | ||
|
||
- int sizes = 13; | ||
+ int sizes = 14; | ||
unsigned int size[][2] = {{128, 96}, {160, 120}, {176, 144}, {320, 240}, | ||
{352, 288}, {640, 480}, {704, 576}, {800, 600}, | ||
{960, 720}, {1280, 720}, {1024, 768}, {1440, 1080}, | ||
- {1920, 1080}}; | ||
+ {1920, 1080}, {3840, 2160}}; | ||
|
||
for (int fmts = 0; fmts < totalFmts; fmts++) { | ||
for (int i = 0; i < sizes; i++) { |
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,26 @@ | ||
diff --git a/src/build/config/BUILD.gn b/src/build/config/BUILD.gn | ||
index 265d4bc07..71ec29437 100644 | ||
--- a/src/build/config/BUILD.gn | ||
+++ b/src/build/config/BUILD.gn | ||
@@ -241,6 +241,8 @@ group("common_deps") { | ||
|
||
if (use_custom_libcxx) { | ||
public_deps += [ "//buildtools/third_party/libc++" ] | ||
+ } else { | ||
+ public_deps += [ "//buildtools/third_party/libunwind" ] | ||
} | ||
|
||
if (use_afl) { | ||
diff --git a/src/buildtools/third_party/libunwind/BUILD.gn b/src/buildtools/third_party/libunwind/BUILD.gn | ||
index a8287bf..a948450 100644 | ||
--- a/src/buildtools/third_party/libunwind/BUILD.gn | ||
+++ b/src/buildtools/third_party/libunwind/BUILD.gn | ||
@@ -20,7 +20,7 @@ config("libunwind_config") { | ||
} | ||
|
||
source_set("libunwind") { | ||
- visibility = [] | ||
+ visibility = ["//build/config:common_deps"] | ||
if (is_fuchsia) { | ||
visibility += [ "//buildtools/third_party/libc++abi" ] | ||
} else if (is_android) { |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
diff --git a/src/modules/desktop_capture/win/full_screen_win_application_handler.cc b/src/modules/desktop_capture/win/full_screen_win_application_handler.cc | ||
index f7047dba06..4222dfc01e 100644 | ||
--- a/src/modules/desktop_capture/win/full_screen_win_application_handler.cc | ||
+++ b/src/modules/desktop_capture/win/full_screen_win_application_handler.cc | ||
@@ -11,6 +11,7 @@ | ||
#include "modules/desktop_capture/win/full_screen_win_application_handler.h" | ||
|
||
#include <algorithm> | ||
+#include <cwctype> | ||
#include <memory> | ||
#include <string> | ||
#include <vector> | ||
diff --git a/src/modules/desktop_capture/win/full_screen_win_application_handler.cc b/src/modules/desktop_capture/win/full_screen_win_application_handler.cc | ||
index f7047dba06..4222dfc01e 100644 | ||
--- a/src/modules/desktop_capture/win/full_screen_win_application_handler.cc | ||
+++ b/src/modules/desktop_capture/win/full_screen_win_application_handler.cc | ||
@@ -11,6 +11,7 @@ | ||
#include "modules/desktop_capture/win/full_screen_win_application_handler.h" | ||
|
||
#include <algorithm> | ||
+#include <cwctype> | ||
#include <memory> | ||
#include <string> | ||
#include <vector> | ||
|