Apollo 11.0
自动驾驶开放平台
video2jpg.cc 文件参考
#include "gflags/gflags.h"
#include "cyber/common/log.h"
#include "modules/drivers/video/tools/decode_video/frame_processor.h"
video2jpg.cc 的引用(Include)关系图:

浏览源代码.

函数

 DECLARE_string (input_video)
 
 DECLARE_string (output_dir)
 
 DEFINE_string (input_video, "", "The input video file")
 
 DEFINE_string (output_dir, "", "The directory to output decoded pictures.")
 
int main (int argc, char **argv)
 

函数说明

◆ DECLARE_string() [1/2]

DECLARE_string ( input_video  )

◆ DECLARE_string() [2/2]

DECLARE_string ( output_dir  )

◆ DEFINE_string() [1/2]

DEFINE_string ( input_video  ,
""  ,
"The input video file"   
)

◆ DEFINE_string() [2/2]

DEFINE_string ( output_dir  ,
""  ,
"The directory to output decoded pictures."   
)

◆ main()

int main ( int  argc,
char **  argv 
)

在文件 video2jpg.cc 第 29 行定义.

29 {
30 google::ParseCommandLineFlags(&argc, &argv, true);
31 AINFO << "input video: " << FLAGS_input_video
32 << ". output dir: " << FLAGS_output_dir;
33 FrameProcessor processor(FLAGS_input_video, FLAGS_output_dir);
34 if (!processor.ProcessStream()) {
35 AERROR << "error: failed to decode file " << FLAGS_input_video;
36 return -1;
37 }
38 return 0;
39}
FrameProcessor is a class to process video streams.
#define AERROR
Definition log.h:44
#define AINFO
Definition log.h:42