Fawkes API
Fawkes Development Version
jpeg.h
1
2
/***************************************************************************
3
* jpeg.h - JPEG Reader
4
*
5
* Generated: Sun Jun 04 23:18:06 2006 (watching Terminator 2)
6
* Copyright 2005-2007 Tim Niemueller [www.niemueller.de]
7
*
8
****************************************************************************/
9
10
/* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version. A runtime exception applies to
14
* this software (see LICENSE.GPL_WRE file mentioned below for details).
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU Library General Public License for more details.
20
*
21
* Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22
*/
23
24
#ifndef _FIREVISION_UTILS_READERS_JPEG_H_
25
#define _FIREVISION_UTILS_READERS_JPEG_H_
26
27
#include <fvutils/readers/reader.h>
28
29
#include <cstdio>
30
extern
"C"
{
31
#include <jpeglib.h>
32
}
33
34
namespace
firevision {
35
36
class
JpegReader :
public
Reader
37
{
38
public
:
39
JpegReader
(
const
char
*filename);
40
virtual
~JpegReader
();
41
42
virtual
void
set_buffer
(
unsigned
char
*yuv422planar_buffer);
43
virtual
colorspace_t
colorspace
();
44
virtual
unsigned
int
pixel_width
();
45
virtual
unsigned
int
pixel_height
();
46
virtual
void
read
();
47
48
private
:
49
bool
opened;
50
51
unsigned
char
*buffer;
52
unsigned
char
*row_buffer;
53
54
FILE * infile;
55
int
row_stride;
56
struct
jpeg_decompress_struct cinfo;
57
struct
jpeg_error_mgr jerr;
58
};
59
60
}
// end namespace firevision
61
62
#endif
firevision::JpegReader::pixel_height
virtual unsigned int pixel_height()
Definition:
jpeg.cpp:99
firevision::JpegReader::~JpegReader
virtual ~JpegReader()
Destructor.
Definition:
jpeg.cpp:69
firevision::JpegReader::colorspace
virtual colorspace_t colorspace()
Definition:
jpeg.cpp:83
firevision::JpegReader::JpegReader
JpegReader(const char *filename)
Constructor.
Definition:
jpeg.cpp:43
firevision::JpegReader::pixel_width
virtual unsigned int pixel_width()
Definition:
jpeg.cpp:89
firevision::JpegReader::read
virtual void read()
Definition:
jpeg.cpp:109
firevision::JpegReader::set_buffer
virtual void set_buffer(unsigned char *yuv422planar_buffer)
Definition:
jpeg.cpp:77
src
libs
fvutils
readers
jpeg.h
Generated by
1.8.17