18 #include "scanner/metadata.pb.h" 19 #include "scanner/util/common.h" 20 #include "scanner/util/profiler.h" 27 using proto::FrameType;
29 size_t size_of_frame_type(FrameType type);
31 const i32 FRAME_DIMS = 3;
40 FrameInfo(
int shape0,
int shape1,
int shape2, FrameType type);
41 FrameInfo(
const std::vector<int> shapes, FrameType type);
43 bool operator==(
const FrameInfo& other)
const;
44 bool operator!=(
const FrameInfo& other)
const;
57 int shape[FRAME_DIMS];
79 int shape[FRAME_DIMS];
int height() const
Only valid when the dimensions are (height, width, channels)
Definition: frame.cpp:83
int width() const
Only valid when the dimensions are (height, width, channels)
Definition: frame.cpp:81
Frame.
Definition: frame.h:62
Definition: database.cpp:36
FrameInfo.
Definition: frame.h:34
int channels() const
Only valid when the dimensions are (height, width, channels)
Definition: frame.cpp:86