diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-03-11 19:50:57 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-03-21 18:38:13 +0300 |
commit | 6e4d2fa9140864a13356b07ffca082817822987f (patch) | |
tree | cb8894c3b6898e82410f3edffe2fb9d85a3a2399 /source/blender/blenkernel/BKE_image.h | |
parent | 4abb8a14a2133f876c7718a8e09284baa62b1cf5 (diff) |
Cleanup: add image_format.cc for functions related to ImageFormatData
Also fixes missing code to read/write/free/copy color management settings
in various places. This can't be set through the UI currently, but still
should be handled consistently.
Diffstat (limited to 'source/blender/blenkernel/BKE_image.h')
-rw-r--r-- | source/blender/blenkernel/BKE_image.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/source/blender/blenkernel/BKE_image.h b/source/blender/blenkernel/BKE_image.h index ea0202e3b5f..7b3124cca26 100644 --- a/source/blender/blenkernel/BKE_image.h +++ b/source/blender/blenkernel/BKE_image.h @@ -90,7 +90,6 @@ int BKE_imbuf_write_stamp(struct Scene *scene, /** * \note imf->planes is ignored here, its assumed the image channels are already set. */ -void BKE_imbuf_write_prepare(struct ImBuf *ibuf, const struct ImageFormatData *imf); int BKE_imbuf_write(struct ImBuf *ibuf, const char *name, const struct ImageFormatData *imf); /** * Same as #BKE_imbuf_write() but crappy workaround not to permanently modify _some_, @@ -100,43 +99,6 @@ int BKE_imbuf_write_as(struct ImBuf *ibuf, const char *name, struct ImageFormatData *imf, bool save_copy); -void BKE_image_path_from_imformat(char *string, - const char *base, - const char *relbase, - int frame, - const struct ImageFormatData *im_format, - bool use_ext, - bool use_frames, - const char *suffix); -void BKE_image_path_from_imtype(char *string, - const char *base, - const char *relbase, - int frame, - char imtype, - bool use_ext, - bool use_frames, - const char *suffix); -int BKE_image_path_ensure_ext_from_imformat(char *string, const struct ImageFormatData *im_format); -int BKE_image_path_ensure_ext_from_imtype(char *string, char imtype); -char BKE_image_ftype_to_imtype(int ftype, const struct ImbFormatOptions *options); -int BKE_image_imtype_to_ftype(char imtype, struct ImbFormatOptions *r_options); - -bool BKE_imtype_is_movie(char imtype); -bool BKE_imtype_supports_zbuf(char imtype); -bool BKE_imtype_supports_compress(char imtype); -bool BKE_imtype_supports_quality(char imtype); -bool BKE_imtype_requires_linear_float(char imtype); -char BKE_imtype_valid_channels(char imtype, bool write_file); -char BKE_imtype_valid_depths(char imtype); - -/** - * String is from command line `--render-format` argument, - * keep in sync with `creator_args.c` help info. - */ -char BKE_imtype_from_arg(const char *arg); - -void BKE_imformat_defaults(struct ImageFormatData *im_format); -void BKE_imbuf_to_image_format(struct ImageFormatData *im_format, const struct ImBuf *imbuf); /** * Used by sequencer too. @@ -171,10 +133,6 @@ struct RenderResult; #define IMA_SIGNAL_USER_NEW_IMAGE 6 #define IMA_SIGNAL_COLORMANAGE 7 -#define IMA_CHAN_FLAG_BW 1 -#define IMA_CHAN_FLAG_RGB 2 -#define IMA_CHAN_FLAG_ALPHA 4 - /** * Checks whether there's an image buffer for given image and user. */ |