Skip to content

Instantly share code, notes, and snippets.

View initialneil's full-sized avatar

Neil Z. SHAO initialneil

View GitHub Profile
@initialneil
initialneil / breakdown-jpg.cpp
Last active October 17, 2018 06:57
Break down iPhone photo with depth (jpg file with Multi-picture Format) https://wordpress.com/post/initialneil.wordpress.com/254
#include <fstream>
#include <vector>
#include <string>
using namespace std;
int main(int argc, char **argv)
{
string fn = argc > 1 ? argv[1] : "";
ifstream in(fn, ios::binary);