cgv
bmp_writer.h
1 #pragma once
2 
3 #include "image_writer.h"
4 #include <stdio.h>
5 #include "lib_begin.h"
6 
7 namespace cgv {
8  namespace media {
9  namespace image {
10 
12 class CGV_API bmp_writer : public abst_image_writer
13 {
14 protected:
15  std::string last_error;
16  FILE* fp;
17 public:
19  bmp_writer();
21  std::string get_type_name() const;
23  abst_image_writer* clone() const;
25  const char* get_supported_extensions() const;
27  bool is_format_supported(const component_format& cf, const std::vector<component_format>* palette_formats) const;
29  std::string get_options() const;
31  const std::string& get_last_error() const;
33  bool open(const std::string& file_name);
35  bool write_image(const const_data_view& dv, const std::vector<const_data_view>* palettes, double duration);
37  bool close();
38 };
39 
40  }
41  }
42 }
43 
44 #include <cgv/config/lib_end.h>
cgv::data::component_format
Definition: component_format.h:58
cgv::media::image::abst_image_writer
abstract interface for image readers
Definition: image_writer.h:18
cgv::data::const_data_view
Definition: data_view.h:211
cgv::media::image::bmp_writer
implements the image writer interface for bmp files
Definition: bmp_writer.h:13
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