Update the changelog
[opencv] / otherlibs / VlGrFmts / rd_rle.h
1 /*M///////////////////////////////////////////////////////////////////////////////////////
2 //  
3 //                      INTEL CORPORATION PROPRIETARY INFORMATION              
4 //         This software is supplied under the terms of a license agreement or 
5 //         nondisclosure agreement with Intel Corporation and may not be copied
6 //         or disclosed except in accordance with the terms of that agreement. 
7 //               Copyright (c) 1999 Intel Corporation. All Rights Reserved.    
8 //  
9 //    RCS:
10 //       Source:    rd_rle.h$
11 //       $Revision: 1.2 $
12 //      Purpose: 
13 //      Contents:
14 //      Authors: Vadim Pisarevsky
15 //  
16 //M*/
17
18 #pragma once
19
20 #include "grfmt.h"
21 #include "bitstrm.h"
22
23 class grfmt_bmp_reader : public graphics_format_reader
24 {
25 public:
26     
27     grfmt_bmp_reader();
28     ~grfmt_bmp_reader();
29     
30     int   get_color();
31     bool  read_header();
32     bool  read_data( byte* data, int pitch, int color );
33     void  close();
34
35 protected:
36     
37     rl_byte_stream  m_strm;
38     palette_entry   m_palette[256];
39     int             m_bpp;
40     int             m_offset;
41     int             m_rle_code;
42 };
43
44 class grfmt_sun_raster_reader : public graphics_format_reader
45 {
46 public:
47     grfmt_sun_raster_reader();
48     ~grfmt_sun_raster_reader();
49
50     int   get_color();
51     bool  read_header();
52     bool  read_data( byte* data, int pitch, int color );
53     void  close();
54
55 protected:
56     
57     rm_byte_stream  m_strm;
58     int             m_bpp;
59     int             m_offset;
60 };