6 #ifndef INCLUDED_IMF_RGBA_FILE_H
7 #define INCLUDED_IMF_RGBA_FILE_H
49 if (yStride == 0) yStride =
w;
50 int64_t offx =
static_cast<int64_t
> (origin.x);
52 int64_t offy =
static_cast<int64_t
> (origin.y);
54 return ptr - offx - offy;
63 static_cast<int64_t> (dataWindow.max.x) -
64 static_cast<int64_t> (dataWindow.min.x) + 1);
75 if (yStride == 0) yStride =
w;
76 int64_t offx =
static_cast<int64_t
> (origin.x);
78 int64_t offy =
static_cast<int64_t
> (origin.y);
80 return ptr - offx - offy;
89 static_cast<int64_t> (dataWindow.max.x) -
90 static_cast<int64_t> (dataWindow.min.x) + 1);
138 float screenWindowWidth = 1,
158 float screenWindowWidth = 1,
168 virtual ~RgbaOutputFile ();
179 void setFrameBuffer (
const Rgba* base,
size_t xStride,
size_t yStride);
186 void writePixels (
int numScanLines = 1);
188 int currentScanLine ()
const;
195 const Header& header ()
const;
207 float screenWindowWidth ()
const;
237 void setYCRounding (
unsigned int roundY,
unsigned int roundC);
253 RgbaOutputFile (
const RgbaOutputFile&) =
delete;
254 RgbaOutputFile&
operator= (
const RgbaOutputFile&) =
delete;
255 RgbaOutputFile (RgbaOutputFile&&) =
delete;
256 RgbaOutputFile&
operator= (RgbaOutputFile&&) =
delete;
345 virtual ~RgbaInputFile ();
356 void setFrameBuffer (
Rgba* base,
size_t xStride,
size_t yStride);
384 void setPart (
int part);
390 void setPartAndLayer (
int part,
const std::string& layerName);
397 void readPixels (
int scanLine1,
int scanLine2);
400 void readPixels (
int scanLine);
407 const Header& header ()
const;
419 float screenWindowWidth ()
const;
427 const char* fileName ()
const;
429 bool isComplete ()
const;
439 RgbaInputFile (
const RgbaInputFile&) =
delete;
440 RgbaInputFile&
operator= (
const RgbaInputFile&) =
delete;
441 RgbaInputFile (RgbaInputFile&&) =
delete;
442 RgbaInputFile&
operator= (RgbaInputFile&&) =
delete;
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER enum IMF_EXPORT_ENUM Compression
GLsizei const GLchar *const * string
Vec2< int > V2i
Vec2 of integer.
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER enum IMF_EXPORT_ENUM LineOrder
GLuint GLsizei GLsizei * length
GLint GLsizei GLsizei height
Box< V2i > Box2i
2D box of base type int.
GLuint const GLchar * name
HUSD_API const char * pixelAspectRatio()
class IMF_EXPORT_TYPE OStream
GT_API const UT_StringHolder version
Vec2< float > V2f
Vec2 of float.
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER const Rgba * ComputeBasePointer(const Rgba *ptr, const IMATH_NAMESPACE::V2i &origin, int64_t w, size_t xStride=1, size_t yStride=0)
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER IMF_EXPORT int globalThreadCount()
LeafData & operator=(const LeafData &)=delete
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
GLubyte GLubyte GLubyte GLubyte w
enum IMF_EXPORT_ENUM RgbaChannels
ImageBuf OIIO_API channels(const ImageBuf &src, int nchannels, cspan< int > channelorder, cspan< float > channelvalues={}, cspan< std::string > newchannelnames={}, bool shuffle_channel_names=false, int nthreads=0)
class IMF_EXPORT_TYPE IStream