int QueryRGBBufferSize(const Header &header, const int element) { return QueryRGBBufferSizeInternal(header.ImageDescriptor(element), header.Width() * header.Height(), header.ComponentByteCount(element)); }
int QueryRGBBufferSize(const Header &header, const int element, const Block &block) { return QueryRGBBufferSizeInternal(header.ImageDescriptor(element), (block.x2 - block.x1 + 1) * (block.y2 - block.y1 + 1), header.ComponentByteCount(element)); }