X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fxpdf%2FJPXStream.h;fp=pdf2swf%2Fxpdf%2FJPXStream.h;h=e64731db08a344a884fa94bdd30b83b7d577e2aa;hb=85c46a8011c7fd5e4bda282266006c972ea7606b;hp=eb84fe63d3489232cb174deced18f1994587b798;hpb=b0d012f83219d898e9cd92281d9996bc9ff13b5f;p=swftools.git diff --git a/pdf2swf/xpdf/JPXStream.h b/pdf2swf/xpdf/JPXStream.h index eb84fe6..e64731d 100644 --- a/pdf2swf/xpdf/JPXStream.h +++ b/pdf2swf/xpdf/JPXStream.h @@ -44,18 +44,22 @@ enum JPXColorSpaceType { jpxCSYPbPr1250 = 24 }; +struct JPXColorSpecCIELab { + Guint rl, ol, ra, oa, rb, ob, il; +}; + +struct JPXColorSpecEnumerated { + JPXColorSpaceType type; // color space type + union { + JPXColorSpecCIELab cieLab; + }; +}; + struct JPXColorSpec { Guint meth; // method int prec; // precedence union { - struct { - JPXColorSpaceType type; // color space type - union { - struct { - Guint rl, ol, ra, oa, rb, ob, il; - } cieLab; - }; - } enumerated; + JPXColorSpecEnumerated enumerated; }; }; @@ -135,6 +139,8 @@ struct JPXCodeBlock { //----- coefficient data JPXCoeff *coeffs; // the coefficients + JArithmeticDecoder // arithmetic decoder + *arithDecoder; JArithmeticDecoderStats // arithmetic decoder stats *stats; }; @@ -275,10 +281,13 @@ public: virtual int lookChar(); virtual GString *getPSFilter(int psLevel, char *indent); virtual GBool isBinary(GBool last = gTrue); + virtual void getImageParams(int *bitsPerComponent, + StreamColorSpaceMode *csMode); private: void fillReadBuf(); + void getImageParams2(int *bitsPerComponent, StreamColorSpaceMode *csMode); GBool readBoxes(); GBool readColorSpecBox(Guint dataLen); GBool readCodestream(Guint len);