|
Blender V5.0
|
#include "BLI_path_utils.hh"#include "BLI_threads.h"#include "BLI_utildefines.h"#include "CLG_log.h"#include "DNA_scene_types.h"#include "MOV_enums.hh"#include "MOV_util.hh"#include "ffmpeg_swscale.hh"#include "movie_util.hh"#include <mutex>Go to the source code of this file.
Functions | |
| bool | MOV_is_movie_file (const char *filepath) |
| void | MOV_init () |
| void | MOV_exit () |
| void | MOV_validate_output_settings (RenderData *rd, const ImageFormatData *imf) |
| int | MOV_codec_valid_bit_depths (IMB_Ffmpeg_Codec_ID codec_id) |
| bool | MOV_codec_supports_alpha (IMB_Ffmpeg_Codec_ID codec_id, int ffmpeg_profile) |
| bool | MOV_codec_supports_crf (IMB_Ffmpeg_Codec_ID codec_id) |
| bool MOV_codec_supports_alpha | ( | IMB_Ffmpeg_Codec_ID | codec_id, |
| int | ffmpeg_profile ) |
Checks whether given FFMPEG codec and profile combination supports alpha channel (RGBA).
Definition at line 631 of file movie_util.cc.
References MOV_codec_supports_alpha(), and UNUSED_VARS.
Referenced by MOV_codec_supports_alpha().
| bool MOV_codec_supports_crf | ( | IMB_Ffmpeg_Codec_ID | codec_id | ) |
Checks whether given FFMPEG video AVCodecID supports CRF (i.e. "quality level") setting. For codecs that do not support constant quality, only target bit-rate can be specified.
Definition at line 641 of file movie_util.cc.
References MOV_codec_supports_crf(), and UNUSED_VARS.
Referenced by MOV_codec_supports_crf().
| int MOV_codec_valid_bit_depths | ( | IMB_Ffmpeg_Codec_ID | codec_id | ) |
Which pixel bit depths are supported by a given FFMPEG video CodecID. Returns bit-mask of R_IMF_CHAN_DEPTH_ flags.
Definition at line 621 of file movie_util.cc.
References MOV_codec_valid_bit_depths(), R_IMF_CHAN_DEPTH_8, and UNUSED_VARS.
Referenced by BKE_imtype_valid_depths_with_video(), and MOV_codec_valid_bit_depths().
| void MOV_exit | ( | ) |
Global de-initialization of movie support.
Definition at line 592 of file movie_util.cc.
Referenced by BKE_blender_free(), and wm_main_playanim_intern().
| void MOV_init | ( | ) |
Global initialization of movie support.
Definition at line 570 of file movie_util.cc.
References CLG_LEVEL_DEBUG, CLG_LEVEL_INFO, CLG_LEVEL_TRACE, CLOG_CHECK, and LOG.
Referenced by main(), and wm_main_playanim_intern().
| bool MOV_is_movie_file | ( | const char * | filepath | ) |
Test if the file is a video file (known format, has a video stream and supported video codec). Note that this can be pretty expensive: it is not just a file extension check, it will literally try to decode file headers and find whether it is a video file with some supported codec.
Definition at line 555 of file movie_util.cc.
References BLI_assert, BLI_path_is_rel(), and UNUSED_VARS.
Referenced by build_pict_list(), ED_path_extension_type(), and wm_main_playanim_intern().
| void MOV_validate_output_settings | ( | RenderData * | rd, |
| const ImageFormatData * | imf ) |
Given desired output image format type, sets up required FFMPEG related settings in render data.
Definition at line 599 of file movie_util.cc.
References FFMpegCodecData::constant_rate_factor, RenderData::ffcodecdata, FFM_CRF_MEDIUM, FFM_PRESET_GOOD, FFMPEG_MKV, FFMPEG_MPEG2, FFMPEG_OGG, FFMpegCodecData::ffmpeg_preset, FFMPEG_PRESET_H264, ImageFormatData::imtype, R_IMF_IMTYPE_FFMPEG, FFMpegCodecData::type, UNUSED_VARS, and FFMpegCodecData::video_bitrate.
Referenced by BKE_image_format_set().