7 #ifndef INCLUDED_IMF_RGBA_FILE_H
8 #define INCLUDED_IMF_RGBA_FILE_H
53 int64_t offx =
static_cast<int64_t
> (origin.x);
55 int64_t offy =
static_cast<int64_t
> (origin.y);
57 return ptr - offx - offy;
64 static_cast<int64_t> (dataWindow.max.x) -
65 static_cast<int64_t> (dataWindow.min.x) + 1);
78 int64_t offx =
static_cast<int64_t
> (origin.x);
80 int64_t offy =
static_cast<int64_t
> (origin.y);
82 return ptr - offx - offy;
91 static_cast<int64_t> (dataWindow.max.x) -
92 static_cast<int64_t> (dataWindow.min.x) + 1);
133 RgbaOutputFile (
const char name[],
139 float screenWindowWidth = 1,
152 RgbaOutputFile (
const char name[],
158 float screenWindowWidth = 1,
169 virtual ~RgbaOutputFile ();
181 void setFrameBuffer (
const Rgba *base,
191 void writePixels (
int numScanLines = 1);
193 int currentScanLine ()
const;
201 const Header & header ()
const;
213 float screenWindowWidth ()
const;
245 void setYCRounding (
unsigned int roundY,
246 unsigned int roundC);
260 void breakScanLine (
int y,
266 RgbaOutputFile (
const RgbaOutputFile &) =
delete;
267 RgbaOutputFile & operator = (
const RgbaOutputFile &) =
delete;
268 RgbaOutputFile (RgbaOutputFile &&) =
delete;
269 RgbaOutputFile & operator = (RgbaOutputFile &&) =
delete;
313 RgbaInputFile (
const char name[],
328 virtual ~RgbaInputFile ();
340 void setFrameBuffer (
Rgba *base,
361 void readPixels (
int scanLine1,
int scanLine2);
363 void readPixels (
int scanLine);
371 const Header & header ()
const;
383 float screenWindowWidth ()
const;
391 const char * fileName ()
const;
393 bool isComplete ()
const;
405 RgbaInputFile (
const RgbaInputFile &) =
delete;
406 RgbaInputFile & operator = (
const RgbaInputFile &) =
delete;
407 RgbaInputFile (RgbaInputFile &&) =
delete;
408 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()
#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