Files
VideoPipe/objects/vp_image_record_control_meta.h
2026-06-03 12:43:14 +08:00

30 lines
1.0 KiB
C++
Executable File

#pragma once
#include "vp_control_meta.h"
namespace vp_objects {
// control meta for image recording, it is a specific type of vp_control_meta.
// when vp_record_node handle this control meta, the node will save the Latest Next frame in pipeline to disk.
// refer to ./nodes/record/README.md for more details
class vp_image_record_control_meta: public vp_control_meta
{
private:
/* data */
public:
vp_image_record_control_meta(int channel_index,
std::string image_file_name_without_ext,
bool osd = false);
~vp_image_record_control_meta();
// copy myself
virtual std::shared_ptr<vp_meta> clone() override;
// file name without extension, like 2022-10-20_22-30-20_aaa_bbb, which should be a meaningful and unique name.
// generated by sender who want to record image
std::string image_file_name_without_ext;
// record type (osd frame or not)
bool osd = false;
};
}