1 /*
2  *
3  *  Copyright (C) 1998-2011, OFFIS e.V.
4  *  All rights reserved.  See COPYRIGHT file for details.
5  *
6  *  This software and supporting documentation were developed by
7  *
8  *    OFFIS e.V.
9  *    R&D Division Health
10  *    Escherweg 2
11  *    D-26121 Oldenburg, Germany
12  *
13  *
14  *  Module:  dcmimage
15  *
16  *  Author:  Joerg Riesmeier
17  *
18  *  Purpose: DicomYBRImage (Header)
19  *
20  */
21 
22 
23 #ifndef DIYBRIMG_H
24 #define DIYBRIMG_H
25 
26 #include "dcmtk/config/osconfig.h"
27 
28 #include "dcmtk/dcmimage/dicoimg.h"
29 
30 
31 /*---------------------*
32  *  class declaration  *
33  *---------------------*/
34 
35 /** Class for YCbCr images
36  */
37 class DCMTK_DCMIMAGE_EXPORT DiYBRImage
38   : public DiColorImage
39 {
40 
41  public:
42 
43     /** constructor
44      *
45      ** @param  docu    pointer to dataset (encapsulated)
46      *  @param  status  current image status
47      */
48     DiYBRImage(const DiDocument *docu,
49                const EI_Status status);
50 
51     /** destructor
52      */
53     virtual ~DiYBRImage();
54 
55     /** process next couple of frames
56      *
57      ** @param  fcount  number of frames to be processed (0 = same number as before)
58      *
59      ** @return status, true if successful, false otherwise
60      */
61     virtual int processNextFrames(const unsigned long fcount);
62 
63 
64  protected:
65 
66     /** initialize internal data structures and member variables
67      */
68     void Init();
69 };
70 
71 
72 #endif
73