cgv
bmp_reader.h
1
#pragma once
2
3
#include "image_reader.h"
4
#include <vector>
5
#include <stdio.h>
6
#include "lib_begin.h"
7
8
namespace
cgv
{
9
namespace
media {
10
namespace
image {
11
13
class
CGV_API
bmp_reader
:
public
abst_image_reader
14
{
15
protected
:
16
FILE* fp;
17
std::string last_error;
18
std::vector<unsigned char> palette;
19
public
:
21
bmp_reader
();
23
~
bmp_reader
();
25
std::string
get_type_name
()
const
;
27
abst_image_reader
* clone()
const
;
29
const
std::string& get_last_error()
const
;
31
bool
read_palette(
unsigned
int
i,
const
data_view
& dv);
33
const
char
* get_supported_extensions()
const
;
35
bool
open(
const
std::string& file_name,
data_format
& df, std::vector<data_format>* palette_formats);
37
bool
supports_per_line_read()
const
;
39
bool
read_line(
const
data_format
& df,
const
data_view
& dv);
41
bool
read_image(
const
data_format
& df,
const
data_view
& dv);
43
bool
close();
44
};
45
46
}
47
}
48
}
49
50
#include <cgv/config/lib_end.h>
cgv::media::image::bmp_reader
implements the image reader interface for bmp files
Definition:
bmp_reader.h:14
cgv::media::image::abst_image_reader
abstract interface for image readers
Definition:
image_reader.h:19
cgv::data::data_view
Definition:
data_view.h:155
cgv::data::data_format
Definition:
data_format.h:18
cgv::type::info::get_type_name
const char * get_type_name(TypeId tid)
function that returns the name of a type specified through TypeId
Definition:
type_id.cxx:117
cgv
the cgv namespace
Definition:
vr_calib.cxx:9
projects
git
cgv
cgv
media
image
bmp_reader.h
Generated by
1.8.18