Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
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
lifo
Nicolas Ollinger
OpenBoard
Commits
518b7d26
Commit
518b7d26
authored
May 06, 2016
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean-up and removal of duplicate code
parent
11c207d7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
96 additions
and
162 deletions
+96
-162
UBFFmpegVideoEncoder.cpp
src/podcast/ffmpeg/UBFFmpegVideoEncoder.cpp
+84
-159
UBFFmpegVideoEncoder.h
src/podcast/ffmpeg/UBFFmpegVideoEncoder.h
+12
-3
No files found.
src/podcast/ffmpeg/UBFFmpegVideoEncoder.cpp
View file @
518b7d26
This diff is collapsed.
Click to expand it.
src/podcast/ffmpeg/UBFFmpegVideoEncoder.h
View file @
518b7d26
...
@@ -26,6 +26,16 @@ extern "C" {
...
@@ -26,6 +26,16 @@ extern "C" {
class
UBFFmpegVideoEncoderWorker
;
class
UBFFmpegVideoEncoderWorker
;
class
UBPodcastController
;
class
UBPodcastController
;
/**
* This class provides an interface between the podcast controller and the ffmpeg
* back-end.
* It includes all the necessary objects and methods to record video (muxer, audio and
* video streams and encoders, etc) from inputs consisting of raw PCM audio and raw RGBA
* images.
*
* A worker thread is used to encode and write the audio and video on-the-fly.
*/
class
UBFFmpegVideoEncoder
:
public
UBAbstractVideoEncoder
class
UBFFmpegVideoEncoder
:
public
UBAbstractVideoEncoder
{
{
Q_OBJECT
Q_OBJECT
...
@@ -117,8 +127,8 @@ public:
...
@@ -117,8 +127,8 @@ public:
bool
isRunning
()
{
return
mIsRunning
;
}
bool
isRunning
()
{
return
mIsRunning
;
}
void
queueFrame
(
AVFrame
*
frame
);
void
queue
Video
Frame
(
AVFrame
*
frame
);
void
queueAudio
(
AVFrame
*
frame
);
void
queueAudio
Frame
(
AVFrame
*
frame
);
public
slots
:
public
slots
:
void
runEncoding
();
void
runEncoding
();
...
@@ -128,7 +138,6 @@ signals:
...
@@ -128,7 +138,6 @@ signals:
void
encodingFinished
();
void
encodingFinished
();
void
error
(
QString
message
);
void
error
(
QString
message
);
private
:
private
:
void
writeLatestVideoFrame
();
void
writeLatestVideoFrame
();
void
writeLatestAudioFrame
();
void
writeLatestAudioFrame
();
...
...
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