AvTranscoder
0.9.4
C++APIforLibav/FFmpeg
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
IProgress.hpp
Go to the documentation of this file.
1
#ifndef _AV_TRANSCODER_IPROGRESS_LISTENER_HPP_
2
#define _AV_TRANSCODER_IPROGRESS_LISTENER_HPP_
3
4
#include <
AvTranscoder/common.hpp
>
5
6
namespace
avtranscoder
7
{
8
9
/**
10
* @brief Indicate the state of a process.
11
*/
12
enum
EJobStatus
13
{
14
eJobStatusContinue
= 0,
15
eJobStatusCancel
16
};
17
18
/**
19
* @brief Base class of Progress.
20
* Inherit this class to have your own way to manage a progress bar.
21
* You can inherit this class in C++, but also in python / Java binding.
22
*/
23
class
AvExport
IProgress
24
{
25
public
:
26
virtual
~IProgress
(){};
27
28
/**
29
* @brief Manage the progress.
30
* @param processedDuration: what is processed
31
* @param programDuration: what you need to process (the totality)
32
* @return return EJobStatus to manage the process (continuing, stopping, paused, etc)
33
*/
34
virtual
EJobStatus
progress(
const
double
processedDuration,
const
double
programDuration) = 0;
35
};
36
}
37
38
#endif
avtranscoder::IProgress
Base class of Progress. Inherit this class to have your own way to manage a progress bar...
Definition:
IProgress.hpp:23
avtranscoder::EJobStatus
EJobStatus
Indicate the state of a process.
Definition:
IProgress.hpp:12
avtranscoder
Definition:
AudioCodec.cpp:6
common.hpp
avtranscoder::eJobStatusContinue
Definition:
IProgress.hpp:14
avtranscoder::eJobStatusCancel
Definition:
IProgress.hpp:15
avtranscoder::IProgress::~IProgress
virtual ~IProgress()
Definition:
IProgress.hpp:26
src
AvTranscoder
progress
IProgress.hpp
Generated by
1.8.8