GreyscaleLuminanceSource.h Example File
appdemos/qtws/QZXing/zxing/zxing/common/GreyscaleLuminanceSource.h
#ifndef __GREYSCALE_LUMINANCE_SOURCE__
#define __GREYSCALE_LUMINANCE_SOURCE__
#include <zxing/LuminanceSource.h>
namespace zxing {
class GreyscaleLuminanceSource : public LuminanceSource {
private:
typedef LuminanceSource Super;
ArrayRef<byte> greyData_;
const int dataWidth_;
const int dataHeight_;
const int left_;
const int top_;
public:
GreyscaleLuminanceSource(ArrayRef<byte> greyData, int dataWidth, int dataHeight, int left,
int top, int width, int height);
ArrayRef<byte> getRow(int y, ArrayRef<byte> row) const;
ArrayRef<byte> getMatrix() const;
bool isRotateSupported() const {
return true;
}
Ref<LuminanceSource> rotateCounterClockwise() const;
};
}
#endif