Blender V5.3
movie_util.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
10
11#ifdef WITH_FFMPEG
12
13extern "C" {
14# include <libavcodec/avcodec.h>
15# include <libavutil/hwcontext.h>
16# include <libavutil/pixfmt.h>
17}
18# include "DNA_scene_types.h"
19
20struct AVFrame;
21struct AVStream;
22struct AVFormatContext;
23
24namespace blender {
25
26int ffmpeg_deinterlace(
27 AVFrame *dst, const AVFrame *src, enum AVPixelFormat pix_fmt, int width, int height);
28
34bool ffmpeg_stream_counts_as_video(const AVFormatContext *format_ctx, const AVStream *stream);
35
36const char *ffmpeg_last_error();
37AVCodecID mov_av_codec_id_get(IMB_Ffmpeg_Codec_ID id);
38AVBufferRef *ffmpeg_hw_device_get(AVHWDeviceType device_type);
39
41bool MOV_codec_supports_alpha(AVCodecID codec_id, int ffmpeg_profile);
42
48bool MOV_codec_supports_crf(AVCodecID codec_id);
49
55
59int MOV_thread_count();
60
61} // namespace blender
62
63#endif /* WITH_FFMPEG */
BMesh Iterators.
bool MOV_codec_supports_alpha(IMB_Ffmpeg_Codec_ID codec_id, int ffmpeg_profile)
eImageFormatDepth MOV_codec_valid_bit_depths(IMB_Ffmpeg_Codec_ID codec_id)
bool MOV_codec_supports_crf(IMB_Ffmpeg_Codec_ID codec_id)