Exemplo n.º 1
0
	bool ConvertToRGB(const Header &header, const int element, const void *input, void *output) {
		return ConvertToRGBInternal(header.ImageDescriptor(element),
			header.ComponentDataSize(element), header.Colorimetric(element),
			input, output, header.Width() * header.Height());
	}
Exemplo n.º 2
0
	int QueryRGBBufferSize(const Header &header, const int element) {
		return QueryRGBBufferSizeInternal(header.ImageDescriptor(element),
			header.Width() * header.Height(),
			header.ComponentByteCount(element));
	}
Exemplo n.º 3
0
	bool ConvertToRGB(const Header &header, const int element, const void *input, void *output, const Block &block) {
		return ConvertToRGBInternal(header.ImageDescriptor(element),
			header.ComponentDataSize(element), header.Colorimetric(element),
			input, output, (block.x2 - block.x1 + 1) * (block.y2 - block.y1 + 1));
	}
Exemplo n.º 4
0
	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));
	}