Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gamera_videos_no_ui
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liusq
gamera_videos_no_ui
Commits
ca235b6a
Commit
ca235b6a
authored
Feb 17, 2025
by
“liusq”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
过滤特殊的日志05
parent
d9901478
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
MediaFaceImage.cpp
+1
-1
mainwindow.cpp
+1
-2
No files found.
MediaFaceImage.cpp
View file @
ca235b6a
...
...
@@ -250,7 +250,7 @@ int MediaFaceImage::FaceImageCallBack(XSDK_HANDLE hMedia, int nChannel, cv::Mat
const
int
BufferSize
=
1024
*
1024
*
2
;
// 缓冲区大小
image
.
release
();
// 释放之前的图像
std
::
unique_ptr
<
unsigned
char
[]
>
pOutBuffer
(
new
unsigned
char
[
BufferSize
]);
// 智能指针管理内存
int
pInOutBufferSize
=
0
;
int
pInOutBufferSize
=
-
1
;
int
ret
=
XSDK_DevSnapSyn
(
hMedia
,
nChannel
,
""
,
pOutBuffer
.
get
(),
&
pInOutBufferSize
);
if
(
ret
<
0
||
pInOutBufferSize
<=
0
)
{
...
...
mainwindow.cpp
View file @
ca235b6a
...
...
@@ -96,7 +96,6 @@ MainWindow::MainWindow():isResetting(false)
NET_DVR_Init
();
hk_Device
=-
1
;
this
->
nvr_status
=
config
.
nvrConfig
.
isOn
;
qInfo
()
<<
QString
(
"nvr_status状态: %1"
).
arg
(
config
.
nvrConfig
.
isOn
?
"true"
:
"false"
);
connect
(
this
,
SIGNAL
(
shutdownSignals
(
QString
,
int
)),
this
,
SLOT
(
clearHandle
(
QString
,
int
)),
Qt
::
QueuedConnection
);
...
...
@@ -578,7 +577,7 @@ void MainWindow::startCamera(const QString &httpurl){
reStatus
.
mac
=
std
::
move
(
is_mac
);
HttpService
httpService
(
httpurl
);
vides_data
::
response
*
re
=
httpService
.
httpFindCameras
(
serialNumber
,
devices
);
qInfo
()
<<
QString
(
"config.nvrConfig.isOn getDeviceStatus"
).
arg
(
getDeviceStatus
(
hk_Device
));
if
(
config
.
nvrConfig
.
isOn
&&
!
getDeviceStatus
(
hk_Device
)
){
nvr_status
=
true
;
loginNetDvr
(
config
.
nvrConfig
.
ip
,
config
.
nvrConfig
.
username
,
config
.
nvrConfig
.
password
,
config
.
nvrConfig
.
port
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment