Cleanup: add proper IMB_openexr.h instead of including file from intern/

This commit is contained in:
Brecht Van Lommel 2022-03-22 00:54:42 +01:00
parent 9cf40eee4b
commit 8bccc7d861
Notes: blender-bot 2023-02-14 11:29:52 +01:00
Referenced by issue #96705, Regression: Crash when pressing F3 outside a Blender window if Developer extras is on
16 changed files with 19 additions and 29 deletions

View File

@ -29,10 +29,7 @@
#include "IMB_imbuf_types.h"
#include "IMB_metadata.h"
#include "IMB_moviecache.h"
#ifdef WITH_OPENEXR
# include "intern/openexr/openexr_multi.h"
#endif
#include "IMB_openexr.h"
/* Allow using deprecated functionality for .blend file I/O. */
#define DNA_DEPRECATED_ALLOW

View File

@ -19,8 +19,7 @@
#include "IMB_colormanagement.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "intern/openexr/openexr_multi.h"
#include "IMB_openexr.h"
#include "BKE_colortools.h"
#include "BKE_image.h"

View File

@ -60,6 +60,7 @@
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "IMB_moviecache.h"
#include "IMB_openexr.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
@ -68,10 +69,6 @@
#include "BLO_read_write.h"
#ifdef WITH_OPENEXR
# include "intern/openexr/openexr_multi.h"
#endif
static void free_buffers(MovieClip *clip);
static void movie_clip_init_data(ID *id)

View File

@ -25,13 +25,12 @@
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "IMB_openexr.h"
#include "GPU_texture.h"
#include "MEM_guardedalloc.h"
#include "intern/openexr/openexr_multi.h"
/* Statics */
static ListBase studiolights;
static int last_studiolight_id = 0;

View File

@ -11,7 +11,7 @@
#include "DNA_color_types.h"
#include "intern/openexr/openexr_multi.h"
#include "IMB_openexr.h"
namespace blender::compositor {

View File

@ -10,7 +10,7 @@
#include "DNA_color_types.h"
#include "intern/openexr/openexr_multi.h"
#include "IMB_openexr.h"
namespace blender::compositor {

View File

@ -54,7 +54,7 @@
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "IMB_moviecache.h"
#include "intern/openexr/openexr_multi.h"
#include "IMB_openexr.h"
#include "RE_pipeline.h"

View File

@ -57,6 +57,7 @@ set(SRC
IMB_imbuf_types.h
IMB_metadata.h
IMB_moviecache.h
IMB_openexr.h
IMB_thumbs.h
intern/IMB_allocimbuf.h
intern/IMB_anim.h

View File

@ -2,12 +2,12 @@
* Copyright 2006 Blender Foundation. All rights reserved. */
/** \file
* \ingroup openexr
* \ingroup imbuf
*/
#pragma once
/* Experiment with more advanced EXR API. */
/* API for reading and writing multilayer EXR files. */
/* XXX layer+pass name max 64? */
/* This api also supports max 8 channels per pass now. easy to fix! */

View File

@ -18,8 +18,6 @@ set(INC_SYS
set(SRC
openexr_api.h
openexr_multi.h
openexr_api.cpp
)

View File

@ -90,8 +90,7 @@ _CRTIMP void __cdecl _invalid_parameter_noinfo(void)
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "IMB_metadata.h"
#include "openexr_multi.h"
#include "IMB_openexr.h"
using namespace Imf;
using namespace Imath;

View File

@ -6,7 +6,8 @@
*/
#include "openexr_api.h"
#include "openexr_multi.h"
#include "IMB_openexr.h"
void *IMB_exr_get_handle(void)
{

View File

@ -761,7 +761,7 @@ typedef struct NodeImageLayer {
/* index in the Image->layers->passes lists */
int pass_index DNA_DEPRECATED;
/* render pass name */
/** Amount defined in openexr_multi.h. */
/** Amount defined in IMB_openexr.h. */
char pass_name[64];
} NodeImageLayer;

View File

@ -22,9 +22,9 @@
#include "WM_api.h"
#include "node_composite_util.hh"
#include "IMB_openexr.h"
#include "intern/openexr/openexr_multi.h"
#include "node_composite_util.hh"
/* **************** OUTPUT FILE ******************** */

View File

@ -62,8 +62,8 @@ typedef struct RenderView {
typedef struct RenderPass {
struct RenderPass *next, *prev;
int channels;
char name[64]; /* amount defined in openexr_multi.h */
char chan_id[8]; /* amount defined in openexr_multi.h */
char name[64]; /* amount defined in IMB_openexr.h */
char chan_id[8]; /* amount defined in IMB_openexr.h */
float *rect;
int rectx, recty;

View File

@ -34,8 +34,7 @@
#include "IMB_colormanagement.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "intern/openexr/openexr_multi.h"
#include "IMB_openexr.h"
#include "RE_engine.h"