Blender V5.0
ffmpeg_swscale.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
13struct AVFrame;
14struct SwsContext;
15
32SwsContext *ffmpeg_sws_get_context(int src_width,
33 int src_height,
34 int av_src_format,
35 bool src_full_range,
36 int src_color_space,
37 int dst_width,
38 int dst_height,
39 int av_dst_format,
40 bool dst_full_range,
41 int dst_color_space,
42 int sws_flags);
43void ffmpeg_sws_release_context(SwsContext *ctx);
44
45void ffmpeg_sws_scale_frame(SwsContext *ctx, AVFrame *dst, const AVFrame *src);
46
47void ffmpeg_sws_exit();
48
49#endif /* WITH_FFMPEG */