Blender V5.0
movie_util.cc File Reference
#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)

Function Documentation

◆ MOV_codec_supports_alpha()

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().

◆ MOV_codec_supports_crf()

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().

◆ MOV_codec_valid_bit_depths()

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().

◆ MOV_exit()

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().

◆ MOV_init()

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().

◆ MOV_is_movie_file()

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().

◆ MOV_validate_output_settings()

void MOV_validate_output_settings ( RenderData * rd,
const ImageFormatData * imf )