Skip to content

Instantly share code, notes, and snippets.

View grimbough's full-sized avatar

Mike Smith grimbough

View GitHub Profile
@milhidaka
milhidaka / convert_float32.c
Created March 13, 2019 04:05
float16 -> float32 conversion in C
#include <stdio.h>
#include <stdint.h>
#include <assert.h>
#define DATA_SIZE 2052
float decode(uint16_t float16_value)
{
// MSB -> LSB
// float16=1bit: sign, 5bit: exponent, 10bit: fraction
@djotto
djotto / mp4.sh
Created May 20, 2017 12:33 — forked from anonymous/mp4.sh
Merge multiple mp4 files as chapters
#! /usr/bin/env bash
####################################################
# Required Libraries
#
# library name | commands used | verified version
# ------------------------------------------------
# ffmpeg | ffmpeg/ffprobe | 3.1.4 3.2
# gpac | mp4box | 0.6.1
# mp4v2 | mp4chaps | 2.0.0