1 #ifndef MF_FRAME_IMPORTER_H_
2 #define MF_FRAME_IMPORTER_H_
5 #include "../ndarray/ndcoord.h"
6 #include "../ndarray/ndarray_view.h"
13 template<std::
size_t Dim,
typename Elem>
20 frame_shape_(frame_shape) { }
static constexpr std::size_t dimension
Definition: frame_importer.h:25
Mapping between coordinates, indices, and addresses of multi-dimensional data.
Definition: ndarray_view.h:16
virtual void read_frame(const frame_view_type &)=0
frame_importer(const ndsize< Dim > &frame_shape)
Definition: frame_importer.h:19
virtual bool reached_end() const =0
YCbCr color, 8 bit.
Definition: color.h:74
const ndsize< Dim > & frame_shape()
Definition: frame_importer.h:30
static constexpr bool is_seekable
Definition: frame_importer.h:26
Vector of n-dimensional coordinates.
Definition: ndcoord.h:18
virtual ~frame_importer()
Definition: frame_importer.h:28
ndarray_view< Dim, Elem > frame_view_type
Definition: frame_importer.h:23
Frame importer, abstract base class.
Definition: frame_importer.h:14