mirror of https://git.ffmpeg.org/ffmpeg.git
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.
bcb0faeaba
was wrong.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
bca2651a32
commit
1982113467
|
@ -37,6 +37,7 @@
|
||||||
#include "mpegvideo.h"
|
#include "mpegvideo.h"
|
||||||
#include "mpegvideodec.h"
|
#include "mpegvideodec.h"
|
||||||
#include "mpeg4videodec.h"
|
#include "mpeg4videodec.h"
|
||||||
|
#include "thread.h"
|
||||||
#include "threadframe.h"
|
#include "threadframe.h"
|
||||||
#include "wmv2dec.h"
|
#include "wmv2dec.h"
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,8 @@ void ff_thread_flush(AVCodecContext *avctx);
|
||||||
int ff_thread_decode_frame(AVCodecContext *avctx, AVFrame *picture,
|
int ff_thread_decode_frame(AVCodecContext *avctx, AVFrame *picture,
|
||||||
int *got_picture_ptr, AVPacket *avpkt);
|
int *got_picture_ptr, AVPacket *avpkt);
|
||||||
|
|
||||||
|
int ff_thread_can_start_frame(AVCodecContext *avctx);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If the codec defines update_thread_context(), call this
|
* If the codec defines update_thread_context(), call this
|
||||||
* when they are ready for the next thread to start decoding
|
* when they are ready for the next thread to start decoding
|
||||||
|
|
|
@ -87,6 +87,4 @@ int ff_thread_ref_frame(ThreadFrame *dst, const ThreadFrame *src);
|
||||||
int ff_thread_replace_frame(AVCodecContext *avctx, ThreadFrame *dst,
|
int ff_thread_replace_frame(AVCodecContext *avctx, ThreadFrame *dst,
|
||||||
const ThreadFrame *src);
|
const ThreadFrame *src);
|
||||||
|
|
||||||
int ff_thread_can_start_frame(AVCodecContext *avctx);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue