wangrong
2025-01-03 2c4b8838f89bebca97615c5f0bac2c58e0349771
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#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;
    };
 
}