Skip to content

Instantly share code, notes, and snippets.

View j0sh's full-sized avatar
🐠

Josh Allmann j0sh

🐠
View GitHub Profile
diff --git a/configure b/configure
index 0bd54dd..236e5bd 100755
--- a/configure
+++ b/configure
@@ -177,6 +177,7 @@ External library support:
--enable-bzlib enable bzlib [autodetect]
--enable-frei0r enable frei0r video filtering
--enable-gnutls enable gnutls [no]
+ --enable-libass enable libass subtitles rendering [no]
--enable-libcdio enable audio CD grabbing with libcdio
@j0sh
j0sh / gck.c
Last active December 16, 2015 02:59
1-D and 2-D implementation of Gray Code Filter Kernels
// Josh Allmann, 11 April 2013.
// Based on "The Gray Code Filter Kernels" by G. Ben-Artzi, et al.
// http://cs.haifa.ac.il/~hagit/papers/PAMI07-GrayCodeKernels.pdf
// to compile: gcc -o gck gck.c -lm
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
static int gck_gc(int a)
diff --git a/sources/thelib/src/protocols/baseprotocol.cpp b/sources/thelib/src/protocols/baseprotocol.cpp
index b8abc91..4587491 100644
--- a/sources/thelib/src/protocols/baseprotocol.cpp
+++ b/sources/thelib/src/protocols/baseprotocol.cpp
@@ -60,6 +60,8 @@ BaseProtocol::~BaseProtocol() {
_deleteFar,
_deleteNear);
#endif
+ ProtocolManager::UnRegisterProtocol(this);
+
@j0sh
j0sh / gist:4200732
Created December 4, 2012 05:00
TLD runtime
CPU: Intel Sandy Bridge microarchitecture, speed 2.701e+06 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (No unit mask) count 100000
samples % image name symbol name
716413 57.1342 a.out ccv_ferns_feature
284652 22.7011 a.out ccv_perspective_transform
120659 9.6226 a.out ccv_ferns_predict
35117 2.8006 a.out ccv_blur
19713 1.5721 a.out _ccv_tld_box_variance
19391 1.5464 no-vmlinux /no-vmlinux
7107 0.5668 a.out ccv_optical_flow_lucas_kanade
From e47bd0899064ab4affbc5d3132d3593b8333a827 Mon Sep 17 00:00:00 2001
From: Josh Allmann <joshua.allmann@gmail.com>
Date: Mon, 29 Oct 2012 13:27:12 -0700
Subject: [PATCH 1/2] flvdec: Allow plain strings in data packets.
---
libavformat/flvdec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
@j0sh
j0sh / gist:3734635
Created September 16, 2012 22:27
RTMPD -- Enqueue applications for delete.
commit b7839ea0070ed299f25d36293dd66579f95e109f
Author: Josh Allmann <joshua.allmann@gmail.com>
Date: Sun Sep 16 12:34:50 2012 -0700
-- Allow enqueuing applications for delete.
diff --git a/sources/crtmpserver/src/crtmpserver.cpp b/sources/crtmpserver/src/crtmpserver.cpp
index 8ef98f4..fc74972 100644
--- a/sources/crtmpserver/src/crtmpserver.cpp
@j0sh
j0sh / protocol.patch
Created August 24, 2012 22:14
Initial scaffolding for Ventrilo protocol.
commit 9f83ebcd050f5a33fb36d5f9ee49e2de5c18987e
Author: Josh Allmann <joshua.allmann@gmail.com>
Date: Sun Apr 29 14:43:01 2012 -0700
Initial scaffolding for Ventrilo protocol.
diff --git a/builders/cmake/applications/CMakeLists.txt b/builders/cmake/applications/CMakeLists.txt
index 107fea8..327070d 100644
--- a/builders/cmake/applications/CMakeLists.txt
+++ b/builders/cmake/applications/CMakeLists.txt
@j0sh
j0sh / 0001-rtmp-Ignore-releaseStream-errors.patch
Created August 17, 2012 21:00
rtmp: Ignore releaseStream errors.
commit cc67c86d8658319e247c2c752162bbf9b722f8c2
Author: Josh Allmann <joshua.allmann@gmail.com>
Date: Fri Aug 17 13:39:46 2012 -0700
rtmp: Ignore releaseStream errors.
crtmpserver returns an error when releasing a
new or nonexistent stream, but that isn't fatal.
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
@j0sh
j0sh / 0001-avf-introduce-nobuffer-option.patch
Created July 26, 2012 16:42
[PATCH] avf: introduce nobuffer option
From 4faf41262ac6a9397aeb2ef09373b3963a3ed308 Mon Sep 17 00:00:00 2001
From: Luca Barbato <lu_zero@gentoo.org>
Date: Thu, 26 Jul 2012 09:39:55 -0700
Subject: [PATCH] avf: introduce nobuffer option
Useful in cases where a significant analyzeduration is
still needed, while minimizing buffering before output.
An example is processing low-latency streams where all
media types won't necessarily come in if the
@j0sh
j0sh / queue_analysis.diff
Created July 22, 2012 06:47
libavformat: Add option to queue packets during stream analysis.
commit cdc0833efaa19b695bea16b69a49d2e9adb90d0e
Author: Josh Allmann <joshua.allmann@gmail.com>
Date: Sat Jul 21 23:32:16 2012 -0700
libavformat: Add option to queue packets during stream analysis.
Useful in cases where a significant analyzeduration is
still needed, while minimizing buffering before output.
Useful for eg, processing low-latency streams where all