class ImageIOUtil
Defined at line 20 of file ../../src/camera/lib/stream_utils/image_io_util.h
An ImageIOUtil object that writes frames from a stream to an on-device partition.
If the files are accessed via `fx shell` they will appear at the following path:
[PARTITION]/r/sys/fuchsia.com:[PKG NAME]:0#meta:[COMPONENT NAME].cm
Public Methods
fpromise::result<std::unique_ptr<ImageIOUtil>, zx_status_t> Create (fuchsia::sysmem::BufferCollectionInfo_2 * buffer_collection, const std::string & dir_path)
Factory method that outputs a Raw12Writer with all its params set for the format.
Args:
|buffer_collection| A reference to a buffer collection to be used by a consumer to store
frames in.
Defined at line 18 of file ../../src/camera/lib/stream_utils/image_io_util.cc
void ImageIOUtil (fuchsia::sysmem::BufferCollectionInfo_2 buffer_collection, std::string dir_path)
Constructor.
Args:
|buffer_collection| A cloned buffer collection containing vmo handles that will have frames
written into them by another consumer.
Defined at line 26 of file ../../src/camera/lib/stream_utils/image_io_util.h
std::string GetDirpath ()
Defined at line 45 of file ../../src/camera/lib/stream_utils/image_io_util.h
std::string GetFilepath (uint32_t file_num)
Defined at line 46 of file ../../src/camera/lib/stream_utils/image_io_util.h
zx_status_t DeleteImageData ()
Deletes all data written to disk by this ImageIOUtil so far.
Defined at line 48 of file ../../src/camera/lib/stream_utils/image_io_util.cc
zx_status_t WriteImageData (uint32_t id)
Writes a frame stored in a certain VmoBuffer to disk. Increments `num_image_`.
Args:
|id| The id of the buffer containing the frame to be written to disk.
Defined at line 57 of file ../../src/camera/lib/stream_utils/image_io_util.cc