implemented translating without restarting #514

This commit is contained in:
itsmattkc
2019-02-25 20:40:23 -08:00
parent c3373524b1
commit 47d0065eff
29 changed files with 7306 additions and 7404 deletions
File diff suppressed because it is too large Load Diff
+4 -3
View File
@@ -544,14 +544,15 @@ private:
*
* @param f
*
* The AVFrame to retrieve. This function allocates an AVFrame so you shouldn't do so beforehand. You'll also need to
* free it later with av_frame_free() (though ClipQueue will do this automatically if the frame is added to it).
* A pointer to an AVFrame object. It does not need to be allocated, as this function allocates an AVFrame itself.
* You'll also need to free it later with av_frame_free() (though ClipQueue will do this automatically if the frame is
* added to it).
*
* @return
*
* FFmpeg error code (>= 0 on success, a negative error code on failure)
*/
int RetrieveFrameAndProcess(AVFrame *f);
int RetrieveFrameAndProcess(AVFrame **f);
/**
* @brief Internal video caching function
+1 -2
View File
@@ -313,7 +313,7 @@ GLuint compose_sequence(ComposeSequenceParams &params) {
if (c->media() != nullptr && c->media()->get_type() == MEDIA_TYPE_FOOTAGE) {
// retrieve video frame from cache and store it in c->texture
c->Cache(qMax(playhead, c->timeline_in()), false, false, params.nests, params.playback_speed);
c->Cache(qMax(playhead, c->timeline_in()), false, params.nests, params.playback_speed);
if (!c->Retrieve()) {
params.texture_failed = true;
} else {
@@ -626,7 +626,6 @@ GLuint compose_sequence(ComposeSequenceParams &params) {
c->cache_lock.unlock();
c->Cache(playhead,
false,
(params.viewer != nullptr && !params.viewer->playing),
params.nests,
params.playback_speed);