18 #include "pandabase.h"
20 #include "pnmImageHeader.h"
37 INLINE
void set_read_size(
int x_size,
int y_size);
41 virtual void prepare_read();
42 virtual bool is_floating_point();
43 virtual bool read_pfm(
PfmFile &pfm);
44 virtual int read_data(
xel *array, xelval *alpha);
45 virtual bool supports_read_row()
const;
46 virtual bool read_row(
xel *array, xelval *alpha,
int x_size,
int y_size);
48 virtual bool supports_stream_read()
const;
50 INLINE
bool is_valid()
const;
53 int get_reduction_shift(
int orig_size,
int new_size);
61 int _read_x_size, _read_y_size;
64 int _x_shift, _y_shift;
65 int _orig_x_size, _orig_y_size;
68 #include "pnmReader.I"
This is the base class of a family of classes that represent particular image file types that PNMImag...
Defines a pfm file, a 2-d table of floating-point numbers, either 3-component or 1-component, or with a special extension, 2- or 4-component.
This is an abstract base class that defines the interface for reading image files of various types...