1 //
2 // (C) CharLS Team 2014, all rights reserved. See the accompanying "License.txt" for licensed use.
3 //
4 
5 #ifndef CHARLS_JPEGIMAGEDATASEGMENT
6 #define CHARLS_JPEGIMAGEDATASEGMENT
7 
8 #include "jpegsegment.h"
9 #include "jpegstreamwriter.h"
10 
11 class JpegImageDataSegment : public JpegSegment
12 {
13 public:
JpegImageDataSegment(ByteStreamInfo rawStream,const JlsParameters & params,int componentCount)14     JpegImageDataSegment(ByteStreamInfo rawStream, const JlsParameters& params, int componentCount) :
15         _componentCount(componentCount),
16         _rawStreamInfo(rawStream),
17         _params(params)
18     {
19     }
20 
21     void Serialize(JpegStreamWriter& streamWriter) override;
22 
23 private:
24     int _componentCount;
25     ByteStreamInfo _rawStreamInfo;
26     JlsParameters _params;
27 };
28 
29 #endif
30