2 #ifndef vil_jpeg_file_format_h_ 3 #define vil_jpeg_file_format_h_ 27 char const *
tag()
const override;
50 unsigned nplanes()
const override;
51 unsigned ni()
const override;
52 unsigned nj()
const override;
62 unsigned j0,
unsigned nj)
const override;
67 bool get_property(
char const *tag,
void *prop =
nullptr)
const override;
79 #endif // vil_jpeg_file_format_h_ char const * file_format() const override
returns "jpeg".
An abstract base class of smart pointers to actual image data in memory.
generic_image implementation for JPEG files.
bool put_view(const vil_image_view_base &im, unsigned i0, unsigned j0) override
Put the data in this view back into the image source.
enum vil_pixel_format pixel_format() const override
Pixel Format.
unsigned ni() const override
Dimensions: Planes x ni x nj.
bool vil_jpeg_file_probe(vil_stream *vs)
the file probe, as a C function.
bool get_property(char const *tag, void *prop=nullptr) const override
Extra property information.
void set_quality(int quality)
set the quality for compression.
Stream interface for VIL image loaders.
vil_jpeg_image(vil_stream *is)
Abstract representation of an image source or image destination.
vil_jpeg_decompressor * jd
vil_image_view_base_sptr get_copy_view() const
Create a read/write view of a copy of all the data.
unsigned nplanes() const override
Dimensions: planes x width x height x components.
~vil_jpeg_image() override
Representation of a generic image source or destination.
unsigned nj() const override
Dimensions: Planes x ni x nj.