Lines Matching defs:codec
53 ///< Set before the codec has called ff_thread_finish_setup().
56 * Set when the codec calls get_buffer().
61 * Set when the codec calls get_format().
65 ///< Set after the codec has called ff_thread_finish_setup().
76 * Context used by codec threads and stored in their AVCodecInternal thread_ctx.
97 int result; ///< The result of the last codec decode/encode() call.
110 AVFrame *requested_frame; ///< AVFrame the codec passed to get_buffer()
184 * Automatically calls ff_thread_finish_setup() if the codec does
185 * not provide an update_thread_context method, or if the codec returns
192 const FFCodec *codec = ffcodec(avctx->codec);
202 if (!codec->update_thread_context
227 p->result = codec->cb.decode(avctx, p->frame, &p->got_frame, p->avpkt);
272 * @param for_user 0 if the destination is a codec thread, 1 if the destination is the user's thread
277 const FFCodec *const codec = ffcodec(dst->codec);
280 if (dst != src && (for_user || codec->update_thread_context)) {
341 if (codec->update_thread_context_for_user)
342 err = codec->update_thread_context_for_user(dst, src);
344 if (codec->update_thread_context)
345 err = codec->update_thread_context(dst, src);
426 const AVCodec *codec = p->avctx->codec;
429 if (!avpkt->size && !(codec->capabilities & AV_CODEC_CAP_DELAY))
728 const FFCodec *codec = ffcodec(avctx->codec);
746 if (codec->close && p->thread_init != UNINITIALIZED)
747 codec->close(ctx);
756 if (codec->p.priv_class)
791 const FFCodec *codec, int first)
817 if (codec->priv_data_size) {
818 copy->priv_data = av_mallocz(codec->priv_data_size);
822 if (codec->p.priv_class) {
823 *(const AVClass **)copy->priv_data = codec->p.priv_class;
842 if (codec->init) {
843 err = codec->init(copy);
845 if (codec->caps_internal & FF_CODEC_CAP_INIT_CLEANUP)
868 const FFCodec *codec = ffcodec(avctx->codec);
900 if (codec->p.type == AVMEDIA_TYPE_VIDEO)
913 err = init_thread(p, &i, fctx, avctx, codec, first);
952 if (ffcodec(avctx->codec)->flush)
953 ffcodec(avctx->codec)->flush(p->avctx);
962 (ffcodec(avctx->codec)->update_thread_context
984 (ffcodec(avctx->codec)->update_thread_context
1016 if (!THREAD_SAFE_CALLBACKS(avctx) && !ffcodec(avctx->codec)->update_thread_context)
1079 if (ffcodec(avctx->codec)->caps_internal & FF_CODEC_CAP_ALLOCATE_PROGRESS) {