Skip to content

Instantly share code, notes, and snippets.

View wanghuabing's full-sized avatar
🎯
Focusing

Allen Wang wanghuabing

🎯
Focusing
  • Hangzhou
View GitHub Profile
@wanghuabing
wanghuabing / CompressYUYV2JPEG.cpp
Created May 25, 2018 08:39 — forked from royshil/CompressYUYV2JPEG.cpp
Example of converting a YUYV buffer to JPEG using libJPEG
#include <iostream>
#include <fstream>
#include <vector>
#include <cstdint>
#include <memory>
#include <jpeglib.h>
using namespace std;
@wanghuabing
wanghuabing / CompressYUYV2JPEG.cpp
Created May 25, 2018 08:39 — forked from royshil/CompressYUYV2JPEG.cpp
Example of converting a YUYV buffer to JPEG using libJPEG
#include <iostream>
#include <fstream>
#include <vector>
#include <cstdint>
#include <memory>
#include <jpeglib.h>
using namespace std;
@wanghuabing
wanghuabing / URLImageParser.java
Created March 23, 2018 03:47 — forked from extralam/URLImageParser.java
URLImageParser - TextView show Image html , use Glide Image Library
import java.util.ArrayList;
import com.bumptech.glide.GenericRequestBuilder;
import com.bumptech.glide.Glide;
import com.bumptech.glide.request.animation.GlideAnimation;
import com.bumptech.glide.request.target.SimpleTarget;
import com.bumptech.glide.request.target.Target;
import android.content.Context;