History

avcodec/threadframe: Move ff_thread_can_start_frame() to thread.h

It does not use ThreadFrames at all, so thread.h is the correct place. bcb0faeaba60b5d329fafee2e55f28d3c709e7b1 was wrong.

Andreas Rheinhardt committed 3 years ago

Commit 19821131 parent bca26513 files · +3 −2Browse files

Showing the changes to libavcodec (3 of 3 files). Show all

Unified · Split

3 files
  1. libavcodec/mpegvideo_dec.c +1 −0
  2. libavcodec/thread.h +2 −0
  3. libavcodec/threadframe.h +0 −2
libavcodec/mpegvideo_dec.c+1−0
@@ -37,6 +37,7 @@ · 36 unmodified lines
3737 #include "mpegvideo.h"
3838 #include "mpegvideodec.h"
3939 #include "mpeg4videodec.h"
40+#include "thread.h"
4041 #include "threadframe.h"
4142 #include "wmv2dec.h"
4243
libavcodec/thread.h+2−0
@@ -52,6 +52,8 @@ void ff_thread_flush(AVCodecContext *avctx); · 51 unmodified lines
5252 int ff_thread_decode_frame(AVCodecContext *avctx, AVFrame *picture,
5353 int *got_picture_ptr, AVPacket *avpkt);
5454
55+int ff_thread_can_start_frame(AVCodecContext *avctx);
56+
5557 /**
5658 * If the codec defines update_thread_context(), call this
5759 * when they are ready for the next thread to start decoding
libavcodec/threadframe.h+0−2
@@ -87,6 +87,4 @@ int ff_thread_ref_frame(ThreadFrame *dst, const ThreadFrame *src); · 86 unmodified lines
8787 int ff_thread_replace_frame(AVCodecContext *avctx, ThreadFrame *dst,
8888 const ThreadFrame *src);
8989
90−int ff_thread_can_start_frame(AVCodecContext *avctx);
91−
9290 #endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t