Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
QT_PAIR_SEND
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_SEND
Commits
4296f2b2
Commit
4296f2b2
authored
Jan 08, 2020
by
lenz su
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注释log
parent
4adc12a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
VideoEncode.pro.user
VideoEncode.pro.user
+1
-1
VideoEncoder.cpp
src/video/VideoEncoder.cpp
+3
-3
No files found.
VideoEncode.pro.user
View file @
4296f2b2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.10.2, 2020-01-08T
10:10:24
. -->
<!-- Written by QtCreator 4.10.2, 2020-01-08T
22:29:33
. -->
<qtcreator>
<data>
<variable>
EnvironmentId
</variable>
...
...
src/video/VideoEncoder.cpp
View file @
4296f2b2
...
...
@@ -125,7 +125,7 @@ void VideoEncoder::run()
}
memcpy
(
picture_buf
,
node
.
buffer
,
node
.
size
);
cout
<<
"delay test send codec"
<<
QDateTime
::
currentDateTime
().
toString
(
"hhmmsszzz"
).
toStdString
()
<<
endl
;
//
cout<<"delay test send codec"<<QDateTime::currentDateTime().toString("hhmmsszzz").toStdString()<<endl;
int
ret
=
avcodec_send_frame
(
pCodecCtx
,
picture
);
...
...
@@ -169,13 +169,13 @@ void VideoEncoder::run()
memcpy
(
usb_fram
->
buff
,
p
,
pkt_len
);
usb_fram
->
length
=
pkt_len
;
usb_fram
->
id
=
++
fram_id
;
cout
<<
"delay test send frame to usb"
<<
QDateTime
::
currentDateTime
().
toString
(
"hhmmsszzz"
).
toStdString
()
<<
endl
;
//
cout<<"delay test send frame to usb"<<QDateTime::currentDateTime().toString("hhmmsszzz").toStdString()<<endl;
res
=
hid_write
(
hid_fd
,
(
const
unsigned
char
*
)
usb_buf
,
2049
);
}
else
{
memcpy
(
usb_fram2
->
buff
,
p
,
pkt_len
);
usb_fram2
->
length
=
pkt_len
;
usb_fram2
->
id
=
++
fram_id
;
cout
<<
"delay test send frame to usb"
<<
QDateTime
::
currentDateTime
().
toString
(
"hhmmsszzz"
).
toStdString
()
<<
endl
;
//
cout<<"delay test send frame to usb"<<QDateTime::currentDateTime().toString("hhmmsszzz").toStdString()<<endl;
res
=
hid_write
(
hid_fd
,
(
const
unsigned
char
*
)
usb_buf
,
2049
);
}
//memset((char *)&usb_fram->length, 0x00, sizeof (usb_fram)-8);
...
...
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