Skip to content

Commit 5b8ad5c

Browse files
author
Lingli
committed
add virtual camera source - blur
1 parent 7020854 commit 5b8ad5c

6 files changed

Lines changed: 12 additions & 6 deletions

File tree

windows/APIExample/APIExample/APIExample.rc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#undef APSTUDIO_READONLY_SYMBOLS
1818

1919
/////////////////////////////////////////////////////////////////////////////
20-
// Chinese (Simplified, PRC) resources
20+
// ����(���壬�й�) resources
2121

2222
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)
2323
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
@@ -926,12 +926,12 @@ IDB_BITMAP_NETWORK_STATE BITMAP "res\\IDB_NETWORK_QUALITY.bmp"
926926

927927
IDR_TEST_WAVE WAVE "res\\ID_TEST_AUDIO.wav"
928928

929-
#endif // Chinese (Simplified, PRC) resources
929+
#endif // ����(���壬�й�) resources
930930
/////////////////////////////////////////////////////////////////////////////
931931

932932

933933
/////////////////////////////////////////////////////////////////////////////
934-
// English (United States) resources
934+
// Ӣ��(����) resources
935935

936936
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
937937
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
@@ -1028,7 +1028,7 @@ VS_VERSION_INFO VERSIONINFO
10281028
BEGIN
10291029
BLOCK "StringFileInfo"
10301030
BEGIN
1031-
BLOCK "040904B0"
1031+
BLOCK "040904b0"
10321032
BEGIN
10331033
VALUE "CompanyName", "TODO: <Company name>"
10341034
VALUE "FileDescription", "APIExample"
@@ -1057,7 +1057,7 @@ BEGIN
10571057
IDS_ABOUTBOX "&About APIExample..."
10581058
END
10591059

1060-
#endif // English (United States) resources
1060+
#endif // Ӣ��(����) resources
10611061
/////////////////////////////////////////////////////////////////////////////
10621062

10631063

windows/APIExample/APIExample/Basic/LiveBroadcasting/CLiveBroadcastingDlg.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ BOOL CLiveBroadcastingDlg::OnInitDialog()
176176
m_cmbBackground.InsertString(i++, videoBackgroundSourceTypeNone);
177177
m_cmbBackground.InsertString(i++, videoBackgroundSourceTypeColor);
178178
m_cmbBackground.InsertString(i++, videoBackgroundSourceTypeImg);
179+
m_cmbBackground.InsertString(i++, videoBackgroundSourceTypeBlur);
179180
m_cmbBackground.SetCurSel(0);
180181
i = 0;
181182
m_cmbColor.InsertString(i++, videoBackgroundSourceTypeRed);
@@ -779,7 +780,7 @@ void CLiveBroadcastingDlg::OnBnClickedCheckEnableBackground()
779780
else if (m_cmbColor.GetCurSel() == 2)
780781
source.color = 0x0000FF;
781782
}
782-
else {
783+
else if (m_cmbBackground.GetCurSel() == 2) {
783784
m_staBackColor.ShowWindow(SW_HIDE);
784785
m_cmbColor.ShowWindow(SW_HIDE);
785786
m_btnImagePath.ShowWindow(SW_SHOW);

windows/APIExample/APIExample/Language.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ extern wchar_t videoBackgroundSourceType[INFO_LEN];
326326
extern wchar_t videoBackgroundSourceTypeNone[INFO_LEN];
327327
extern wchar_t videoBackgroundSourceTypeColor[INFO_LEN];
328328
extern wchar_t videoBackgroundSourceTypeImg[INFO_LEN];
329+
extern wchar_t videoBackgroundSourceTypeBlur[INFO_LEN];
329330
extern wchar_t videoBackgroundSourceTypeEnable[INFO_LEN];
330331
extern wchar_t videoBackgroundSourceTypeRed[INFO_LEN];
331332
extern wchar_t videoBackgroundSourceTypeBlue[INFO_LEN];

windows/APIExample/APIExample/en.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ Video.Background.Source.Type=Video Source Background
272272
Video.Background.Source.None=No Video Source Background
273273
Video.Background.Source.Color=Background Color
274274
Video.Background.Source.Img=Video Source Background Image
275+
Video.Background.Source.Blur=Video Source Background Blur
275276
Video.Background.Source.Enable=enable Video Soucr Background
276277
Video.Background.Source.Color.Red=Red
277278
Video.Background.Source.Color.Blue=Blue

windows/APIExample/APIExample/stdafx.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ wchar_t videoBackgroundSourceType[INFO_LEN] = {0};
298298
wchar_t videoBackgroundSourceTypeNone[INFO_LEN] = {0};
299299
wchar_t videoBackgroundSourceTypeColor[INFO_LEN] = {0};
300300
wchar_t videoBackgroundSourceTypeImg[INFO_LEN] = {0};
301+
wchar_t videoBackgroundSourceTypeBlur[INFO_LEN] = { 0 };
301302
wchar_t videoBackgroundSourceTypeEnable[INFO_LEN] = {0};
302303
wchar_t videoBackgroundSourceTypeRed[INFO_LEN] = {0};
303304
wchar_t videoBackgroundSourceTypeBlue[INFO_LEN] = {0};
@@ -659,6 +660,7 @@ void InitKeyInfomation()
659660
_tcscpy_s(videoBackgroundSourceTypeNone, INFO_LEN, Str(_T("Video.Background.Source.None")));
660661
_tcscpy_s(videoBackgroundSourceTypeColor, INFO_LEN, Str(_T("Video.Background.Source.Color")));
661662
_tcscpy_s(videoBackgroundSourceTypeImg, INFO_LEN, Str(_T("Video.Background.Source.Img")));
663+
_tcscpy_s(videoBackgroundSourceTypeBlur, INFO_LEN, Str(_T("Video.Background.Source.Blur")));
662664
_tcscpy_s(videoBackgroundSourceTypeRed, INFO_LEN, Str(_T("Video.Background.Source.Color.Red")));
663665
_tcscpy_s(videoBackgroundSourceTypeBlue, INFO_LEN, Str(_T("Video.Background.Source.Color.Blue")));
664666
_tcscpy_s(videoBackgroundSourceTypeGreen, INFO_LEN, Str(_T("Video.Background.Source.Color.Green")));

windows/APIExample/APIExample/zh-cn.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ Video.Background.Source.Type=
292292
Video.Background.Source.None=无视频源背景
293293
Video.Background.Source.Color=视频源背景颜色
294294
Video.Background.Source.Img=视频源背景图片
295+
Video.Background.Source.Blur=视频源背景虚化
295296
Video.Background.Source.Enable=设置视频源背景
296297
Video.Background.Source.Color.Red=红色
297298
Video.Background.Source.Color.Blue=蓝色

0 commit comments

Comments
 (0)