Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
QT_PAIR_RECEIVE
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lenz su
QT_PAIR_RECEIVE
Commits
c6f16130
Commit
c6f16130
authored
Jan 08, 2020
by
lenz su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释log
parent
c1f2c8d5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
VideoDecode.pro.user
VideoDecode.pro.user
+2
-2
ReadVideoFileThread.cpp
VideoDecoder/src/VideoReader/ReadVideoFileThread.cpp
+3
-3
hid_thread.cpp
VideoDecoder/src/VideoReader/hid_thread.cpp
+1
-1
No files found.
VideoDecode.pro.user
View file @
c6f16130
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.10.2, 2020-01-08T
10:10:37
. -->
<!-- Written by QtCreator 4.10.2, 2020-01-08T
22:28:56
. -->
<qtcreator>
<qtcreator>
<data>
<data>
<variable>
EnvironmentId
</variable>
<variable>
EnvironmentId
</variable>
...
@@ -317,7 +317,7 @@
...
@@ -317,7 +317,7 @@
<value
type=
"bool"
key=
"RunConfiguration.UseQmlDebugger"
>
false
</value>
<value
type=
"bool"
key=
"RunConfiguration.UseQmlDebugger"
>
false
</value>
<value
type=
"bool"
key=
"RunConfiguration.UseQmlDebuggerAuto"
>
true
</value>
<value
type=
"bool"
key=
"RunConfiguration.UseQmlDebuggerAuto"
>
true
</value>
<value
type=
"QString"
key=
"RunConfiguration.WorkingDirectory"
></value>
<value
type=
"QString"
key=
"RunConfiguration.WorkingDirectory"
></value>
<value
type=
"QString"
key=
"RunConfiguration.WorkingDirectory.default"
></value>
<value
type=
"QString"
key=
"RunConfiguration.WorkingDirectory.default"
>
C:/Users/sulin/Documents/QT_PAIR_RECEIVE/bin32
</value>
</valuemap>
</valuemap>
<value
type=
"int"
key=
"ProjectExplorer.Target.RunConfigurationCount"
>
1
</value>
<value
type=
"int"
key=
"ProjectExplorer.Target.RunConfigurationCount"
>
1
</value>
</valuemap>
</valuemap>
...
...
VideoDecoder/src/VideoReader/ReadVideoFileThread.cpp
View file @
c6f16130
...
@@ -46,12 +46,12 @@ void ReadVideoFileThread::run()
...
@@ -46,12 +46,12 @@ void ReadVideoFileThread::run()
msleep
(
5
);
msleep
(
5
);
continue
;
continue
;
}
}
cout
<<
"delay test get frame"
<<
QDateTime
::
currentDateTime
().
toString
(
"hhmmsszzz"
).
toStdString
()
<<
endl
;
//
cout<<"delay test get frame"<<QDateTime::currentDateTime().toString("hhmmsszzz").toStdString()<<endl;
uint8_t
*
bufferYUV
=
nullptr
;
uint8_t
*
bufferYUV
=
nullptr
;
int
width
;
int
width
;
int
height
;
int
height
;
cout
<<
"delay test decode"
<<
QDateTime
::
currentDateTime
().
toString
(
"hhmmsszzz"
).
toStdString
()
<<
endl
;
//
cout<<"delay test decode"<<QDateTime::currentDateTime().toString("hhmmsszzz").toStdString()<<endl;
mVideoDecoder
->
decode
(
nalu
->
nalu
.
h264Nalu
.
buf
,
nalu
->
nalu
.
h264Nalu
.
len
,
bufferYUV
,
width
,
height
);
mVideoDecoder
->
decode
(
nalu
->
nalu
.
h264Nalu
.
buf
,
nalu
->
nalu
.
h264Nalu
.
len
,
bufferYUV
,
width
,
height
);
...
@@ -60,7 +60,7 @@ void ReadVideoFileThread::run()
...
@@ -60,7 +60,7 @@ void ReadVideoFileThread::run()
{
{
//然后传给主线程显示
//然后传给主线程显示
cout
<<
"delay test display"
<<
QDateTime
::
currentDateTime
().
toString
(
"hhmmsszzz"
).
toStdString
()
<<
endl
;
//
cout<<"delay test display"<<QDateTime::currentDateTime().toString("hhmmsszzz").toStdString()<<endl;
doDisplayVideo
(
bufferYUV
,
width
,
height
,
frameNum
++
);
doDisplayVideo
(
bufferYUV
,
width
,
height
,
frameNum
++
);
}
}
...
...
VideoDecoder/src/VideoReader/hid_thread.cpp
View file @
c6f16130
...
@@ -413,7 +413,7 @@ void hid_thread::run()
...
@@ -413,7 +413,7 @@ void hid_thread::run()
}
}
int
res
=-
1
;
int
res
=-
1
;
cout
<<
"delay test start receive"
<<
QDateTime
::
currentDateTime
().
toString
(
"hhmmsszzz"
).
toStdString
()
<<
endl
;
//
cout<<"delay test start receive"<<QDateTime::currentDateTime().toString("hhmmsszzz").toStdString()<<endl;
while
(
true
)
{
while
(
true
)
{
memset
(
buffer
,
0
,
2048
);
memset
(
buffer
,
0
,
2048
);
...
...
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