介紹協助提昇 F2E Code Style 的兩個工具。
josephj@faria
/* | |
* filename: SetConsoleCtrlHandler.c | |
* description: | |
* This is a example of the SetConsoleCtrlHandler function that is used to | |
* install a control handler. | |
* via http://msdn.microsoft.com/en-us/library/ms685049(v=VS.85).aspx | |
* author: uhziel(uhziel@gmail.com) | |
* history: | |
* version date ps | |
* ------- ---------- -------------------------------- |
介紹協助提昇 F2E Code Style 的兩個工具。
josephj@faria
#include <errno.h> | |
#include <fcntl.h> | |
#include <linux/videodev2.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/ioctl.h> | |
#include <sys/mman.h> | |
#include <unistd.h> | |
#include <opencv2/core/core.hpp> |
These methods create an image file that is equal to the total capacity of the SD card. For example, cloning an SD card with a capacity of 32GB will create an image file of 32 GB, even if only 5 GB is actually in use on the card. This is fine if you only have one or two such images, but any more than that (especially if you use an SSD) will cause you to run out of space. Unfortunately, this tool is only available on Linux. If you do not have Linux installed, you can install the latest version of Ubuntu or Linux Mint in a virtual machine, and run this script there:
#!/bin/bash
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ | |
// | | \\\ - /// | | |