ciderpress/reformat/HiRes.h

45 lines
1.0 KiB
C
Raw Normal View History

2007-03-27 17:47:10 +00:00
/*
* CiderPress
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
* See the file LICENSE for distribution terms.
*/
/*
* Reformat hi-res images.
*/
#ifndef __LR_HIRES__
#define __LR_HIRES__
#include "ReformatBase.h"
/*
* Reformat a HiRes graphic into a bitmap.
*/
class ReformatHiRes : public ReformatGraphics {
public:
ReformatHiRes(void) { fBlackWhite = false; }
virtual ~ReformatHiRes(void) {}
2007-03-27 17:47:10 +00:00
virtual void Examine(ReformatHolder* pHolder);
virtual int Process(const ReformatHolder* pHolder,
ReformatHolder::ReformatID id, ReformatHolder::ReformatPart part,
ReformatOutput* pOutput);
2007-03-27 17:47:10 +00:00
enum {
kPixelsPerLine = 280,
kNumLines = 192,
2007-03-27 17:47:10 +00:00
kOutputWidth = 560,
kOutputHeight = 384,
kExpectedSize = 8192,
};
2007-03-27 17:47:10 +00:00
static void InitLineOffset(int* pOffsetBuf);
MyDIBitmap* HiResScreenToBitmap(const unsigned char* buf);
2007-03-27 17:47:10 +00:00
int fLineOffset[kNumLines];
bool fBlackWhite;
2007-03-27 17:47:10 +00:00
};
#endif /*__LR_HIRES__*/