QtlMovie 1.12 (A specialized FFmpeg front-end)
QtlMovieClosedCaptionsSearch Class Reference

This file scans a multimedia file and searches Closed Captions streams. More...

Inheritance diagram for QtlMovieClosedCaptionsSearch:
QtlMovieProcess QtlMovieAction QtlLogger

Signals

void foundClosedCaptions (QtlMediaStreamInfoPtr stream)
 Emitted when a Closed Captions stream is found. More...
 
- Signals inherited from QtlMovieProcess
void readyReadOutputData ()
 Emitted when some binary data are available from standard output. More...
 
- Signals inherited from QtlMovieAction
void completed (bool success)
 Emitted when the action completes. More...
 
void progress (const QString &description, int current, int maximum, int elapsedSeconds, int remainingSeconds)
 Emitted when some progress in the reporting is available. More...
 
void started ()
 Emitted when the action starts. More...
 

Static Public Member Functions

static QtlMovieClosedCaptionsSearchnewInstance (const QString &fileName, const QtlMovieSettings *settings, QtlLogger *log, QObject *parent=0)
 Create a new instance. More...
 

Protected Member Functions

virtual void emitCompleted (bool success, const QString &message=QString()) Q_DECL_OVERRIDE
 Emit the completed() signal. More...
 
virtual void processOutputLine (QProcess::ProcessChannel channel, const QString &textLine) Q_DECL_OVERRIDE
 Process one text line from standard error or standard output. More...
 
- Protected Member Functions inherited from QtlMovieProcess
QStringList getJobVariable (const QString &name) const
 Get the value of a variable in the job. More...
 
void setJobVariable (const QString &name, const QStringList &value)
 Store a variable in the parent job. More...
 
virtual void updateEnvironment (QProcessEnvironment &env)
 Update the QProcessEnvironment for the target process before it starts. More...
 
- Protected Member Functions inherited from QtlMovieAction
virtual void emitProgress (int current, int maximum, int remainingSeconds=-1)
 Emit the progress() signal. More...
 

Private Member Functions

 QtlMovieClosedCaptionsSearch (const QString &fileName, const QtlMovieSettings *settings, QtlLogger *log, QObject *parent=0)
 Private constructor. More...
 
 QtlMovieClosedCaptionsSearch () Q_DECL_EQ_DELETE
 
void emitFoundClosedCaptions (int ccNumber)
 Emit the foundClosedCaptions() signal. More...
 

Private Attributes

QString _fileName
 Input file name. More...
 

Additional Inherited Members

- Public Member Functions inherited from QtlMovieProcess
 QtlMovieProcess (const QtlMovieExecFile *execFile, const QStringList &arguments, bool hasBinaryOutput, const QtlMovieSettings *settings, QtlLogger *log, QObject *parent=0, QtlDataPull *dataPull=0)
 Constructor. More...
 
virtual void abort () Q_DECL_OVERRIDE
 Abort process execution. More...
 
QStringList arguments () const
 Get the command line arguments. More...
 
const QtlMovieExecFileexecFile () const
 Get the command executable file. More...
 
QIODevice * outputDevice () const
 Return the device from which standard output can be read. More...
 
void setArguments (const QStringList &arguments)
 Set the command line arguments. More...
 
void setPriority (Qtl::ProcessPriority priority)
 Set the process priority. More...
 
virtual bool start () Q_DECL_OVERRIDE
 Start the process. More...
 
bool useDataPullProgressReport (bool on)
 Use the progress report from the QtlDataPull when possible. More...
 
bool useDataPullProgressReport () const
 Check if progress report from the QtlDataPull is active. More...
 
- Public Member Functions inherited from QtlMovieAction
 QtlMovieAction (const QtlMovieSettings *settings, QtlLogger *log, QObject *parent=0)
 Constructor. More...
 
virtual ~QtlMovieAction ()
 Virtual destructor. More...
 
virtual void debug (const QString &line, const QColor &color=QColor()) Q_DECL_OVERRIDE
 Log a line of debug text. More...
 
QString description () const
 Get the description of the action. More...
 
int elapsedSeconds () const
 Get the number of seconds since the action started. More...
 
bool isCompleted () const
 Check if the action is completed. More...
 
bool isSilent () const
 Check if unimportant messages are skipped. More...
 
bool isStarted () const
 Check if the action was started (and possibly completed in the meantime). More...
 
virtual void line (const QString &line, const QColor &color=QColor()) Q_DECL_OVERRIDE
 Log a line of text. More...
 
void setDescription (const QString &description)
 Set the description of the action. More...
 
void setSilent (bool silent)
 Set if unimportant messages are skipped. More...
 
const QtlMovieSettingssettings () const
 Get the application settings. More...
 
virtual void text (const QString &text) Q_DECL_OVERRIDE
 Log text. More...
 

Detailed Description

This file scans a multimedia file and searches Closed Captions streams.

Constructor & Destructor Documentation

◆ QtlMovieClosedCaptionsSearch() [1/2]

QtlMovieClosedCaptionsSearch::QtlMovieClosedCaptionsSearch ( const QString &  fileName,
const QtlMovieSettings settings,
QtlLogger log,
QObject *  parent = 0 
)
private

Private constructor.

Parameters
[in]fileNameInput file name.
[in]settingsApplication settings.
[in]logWhere to log errors.
[in]parentOptional parent widget.

◆ QtlMovieClosedCaptionsSearch() [2/2]

QtlMovieClosedCaptionsSearch::QtlMovieClosedCaptionsSearch ( )
private

Member Function Documentation

◆ newInstance()

QtlMovieClosedCaptionsSearch * QtlMovieClosedCaptionsSearch::newInstance ( const QString &  fileName,
const QtlMovieSettings settings,
QtlLogger log,
QObject *  parent = 0 
)
static

Create a new instance.

Enforce object creation on the heap.

Parameters
[in]fileNameInput file name.
[in]settingsApplication settings.
[in]logWhere to log errors.
[in]parentOptional parent widget.

◆ foundClosedCaptions

void QtlMovieClosedCaptionsSearch::foundClosedCaptions ( QtlMediaStreamInfoPtr  stream)
signal

Emitted when a Closed Captions stream is found.

Parameters
[in]streamA smart pointer to the stream info data.

◆ processOutputLine()

void QtlMovieClosedCaptionsSearch::processOutputLine ( QProcess::ProcessChannel  channel,
const QString &  textLine 
)
protectedvirtual

Process one text line from standard error or standard output.

Reimplemented from QtlMovieProcess.

Parameters
[in]channelOrigin of the line (QProcess::StandardOutput or QProcess::StandardError).
[in]textLineText line.

Reimplemented from QtlMovieProcess.

◆ emitCompleted()

void QtlMovieClosedCaptionsSearch::emitCompleted ( bool  success,
const QString &  message = QString() 
)
protectedvirtual

Emit the completed() signal.

Reimplemented from QtlMovieProcess.

Parameters
[in]successTrue when the action completed successfully, false otherwise.
[in]messageOptional error message to log.

Reimplemented from QtlMovieAction.

◆ emitFoundClosedCaptions()

void QtlMovieClosedCaptionsSearch::emitFoundClosedCaptions ( int  ccNumber)
private

Emit the foundClosedCaptions() signal.

Parameters
ccNumberCC number (see QtlMediaStreamInfo::ccNumber()).

Member Data Documentation

◆ _fileName

QString QtlMovieClosedCaptionsSearch::_fileName
private

Input file name.


The documentation for this class was generated from the following files: