6 #ifndef INCLUDED_IMF_SAMPLE_COUNT_CHANNEL_H
7 #define INCLUDED_IMF_SAMPLE_COUNT_CHANNEL_H
76 const unsigned int& operator() (
int x,
int y)
const;
84 const unsigned int& at (
int x,
int y)
const;
95 const unsigned int*
row (
int r)
const;
131 void set (
int x,
int y,
unsigned int newNumSamples);
133 void set (
int r,
unsigned int newNumSamples[]);
173 unsigned int* beginEdit ();
190 Edit (
const Edit& other) =
delete;
191 Edit&
operator= (
const Edit& other) =
delete;
192 Edit (Edit&& other) =
delete;
200 unsigned int* sampleCounts ()
const;
204 unsigned int* _sampleCounts;
214 const unsigned int* sampleListSizes ()
const;
216 const size_t* sampleListPositions ()
const;
218 size_t sampleBufferSize ()
const;
233 void resetBasePointer ();
235 unsigned int* _numSamples;
240 unsigned int* _sampleListSizes;
243 size_t* _sampleListPositions;
247 size_t _totalNumSamples;
250 size_t _totalSamplesOccupied;
255 size_t _sampleBufferSize;
263 : _channel (channel), _sampleCounts (channel.beginEdit ())
276 return _sampleCounts;
279 inline const unsigned int*
285 inline const unsigned int*
288 return _sampleListSizes;
294 return _sampleListPositions;
300 return _sampleBufferSize;
303 inline const unsigned int&
309 inline const unsigned int&
316 inline const unsigned int*
IMFUTIL_EXPORT const unsigned int * sampleListSizes() const
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_EXIT
IMFUTIL_EXPORT size_t sampleBufferSize() const
IMFUTIL_EXPORT const unsigned int * numSamples() const
IMFUTIL_EXPORT const size_t * sampleListPositions() const
virtual PixelType pixelType() const =0
IMFUTIL_EXPORT const unsigned int * row(int r) const
IMFUTIL_EXPORT const unsigned int & operator()(int x, int y) const
IMFUTIL_EXPORT DeepImageChannel & channel() const
OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER enum IMF_EXPORT_ENUM PixelType
#define IMFUTIL_EXPORT_TYPE
IMFUTIL_EXPORT unsigned int * sampleCounts() const
IMFUTIL_EXPORT const unsigned int & at(int x, int y) const
virtual IMFUTIL_EXPORT void resize()
LeafData & operator=(const LeafData &)=delete
#define OPENEXR_IMF_INTERNAL_NAMESPACE_HEADER_ENTER
GLenum GLenum GLsizei void * row
IMFUTIL_EXPORT Edit(SampleCountChannel &level)
IMFUTIL_EXPORT void boundsCheck(int x, int y) const
IMF_EXPORT int numSamples(int s, int a, int b)
friend class SampleCountChannel