cache: heavily reworked exporting for new system
Also cleans up cache in general and moves it to the Task infrastructure.
This commit is contained in:
+1
-38
@@ -25,8 +25,7 @@
|
||||
OLIVE_NAMESPACE_ENTER
|
||||
|
||||
Encoder::Encoder(const EncodingParams ¶ms) :
|
||||
params_(params),
|
||||
open_(false)
|
||||
params_(params)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -166,40 +165,4 @@ Encoder* Encoder::CreateFromID(const QString &id, const EncodingParams& params)
|
||||
return new FFmpegEncoder(params);
|
||||
}
|
||||
|
||||
bool Encoder::IsOpen() const
|
||||
{
|
||||
return open_;
|
||||
}
|
||||
|
||||
void Encoder::Open()
|
||||
{
|
||||
if (!open_) {
|
||||
open_ = OpenInternal();
|
||||
}
|
||||
|
||||
if (open_) {
|
||||
emit OpenSucceeded();
|
||||
} else {
|
||||
emit OpenFailed();
|
||||
}
|
||||
}
|
||||
|
||||
void Encoder::WriteFrame(FramePtr frame, rational time)
|
||||
{
|
||||
if (open_) {
|
||||
WriteInternal(frame, time);
|
||||
}
|
||||
}
|
||||
|
||||
void Encoder::Close()
|
||||
{
|
||||
if (open_) {
|
||||
CloseInternal();
|
||||
|
||||
open_ = false;
|
||||
}
|
||||
|
||||
emit Closed();
|
||||
}
|
||||
|
||||
OLIVE_NAMESPACE_EXIT
|
||||
|
||||
Reference in New Issue
Block a user