Skip to content

Instantly share code, notes, and snippets.

typedef enum {
INTEGER,
FLOAT,
CHAR,
STRING,
SYMBOL,
LIST,
LPAREN,
RPAREN,
QUOTED,
$ curl http://simg3.gelbooru.com/samples/2e/c7/sample_2ec7e586f79ac94f9c22a855fcae1d20.jpg | ffmpeg -f image2pipe -i -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0ffmpeg version N-70730-ge802abd Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
configuration: --extra-cflags='-march=native' --disable-optimizations --disable-stripping --enable-debug --enable-libx265 --enable-gpl --enable-libopus --enable-version3 --enable-nonfree --enable-postproc --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-gnutls --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local --enable-static --enable-shared
Network Working Group J. R. Combs, Ed.
Internet-Draft Plex
Updates: 7233 March 18, 2015
(if approved)
Intended status: Standards Track
Expires: September 19, 2015
HTTP/1.1: Range Responses of Indeterminate Length
draft-combs-http-indeterminate-range-00
void blend_alpha_to_rgba_c(unsigned char *src, intptr_t src_w,
intptr_t src_h, intptr_t src_stride,
unsigned char *dst, intptr_t dst_stride,
uint32_t color)
{
const unsigned int r = (color >> 24) & 0xff;
const unsigned int g = (color >> 16) & 0xff;
const unsigned int b = (color >> 8) & 0xff;
const unsigned int a = 0xff - (color & 0xff);
diff --git a/libass/ass_utils.h b/libass/ass_utils.h
index b9af979..2a4c368 100644
--- a/libass/ass_utils.h
+++ b/libass/ass_utils.h
@@ -163,7 +163,7 @@ static inline int double_to_d22(double x)
// Calculate cache key for a rotational angle in degrees
static inline int rot_key(double a)
{
- return double_to_d22(fmod(a, M_PI));
+ return double_to_d22(remainder(a, 2 * M_PI));
commit e5b86309cf3117cb0a3a4523ae42d483c5356f15
Author: Rodger Combs <[email protected]>
Date: Thu Mar 12 04:45:00 2015 -0500
Fix degrees/radians cache confusion; avoid a fixed-point overflow
Also fix an incorrect comment
diff --git a/libass/ass_cache_template.h b/libass/ass_cache_template.h
index dbf724c..da49f50 100644
(lldb) disas
libsystem_platform.dylib`_platform_bzero$VARIANT$Unknown:
-> 0x7fff8a572c40: push rbp
0x7fff8a572c41: mov rbp, rsp
0x7fff8a572c44: mov rdx, rsi
0x7fff8a572c47: xor rsi, rsi
0x7fff8a572c4a: xorps xmm0, xmm0
0x7fff8a572c4d: mov rax, rdi
0x7fff8a572c50: cmp rdx, 0x40
0x7fff8a572c54: jb 0x7fff8a572cb7 ; _platform_bzero$VARIANT$Unknown + 119
+0x00 pushq %rbp
+0x01 movq %rsp, %rbp
+0x04 movq %rsi, %rdx
+0x07 xorq %rsi, %rsi
+0x0a xorps %xmm0, %xmm0
+0x0d movq %rdi, %rax
+0x10 cmpq $64, %rdx
+0x14 jb "_platform_bzero$VARIANT$Unknown+0x77"
+0x16 cmpq $32768, %rdx
+0x1d jb "_platform_bzero$VARIANT$Unknown+0x30"
#!/bin/bash
cd ~/mpvshots
FNAME=$(date "+%Y%m%d-%H%M%S$2")
FPATH=`echo -n ~/mpvshots/$FNAME`
mv $1 $FNAME
OUT=`puush $FNAME`
if [[ $? == 0 ]] ; then
echo -n $OUT | pbcopy
/usr/local/bin/terminal-notifier -open "$OUT" -appIcon /Applications/puush.app/Contents/Resources/Icon.icns -sound "Puush Success" -title "Puushed Screenshot" -subtitle $FNAME -message "Copied to clipboard" -group puush-mpvshots
rm $FNAME
diff --git a/wscript b/wscript
index d754199..1e79282 100644
--- a/wscript
+++ b/wscript
@@ -279,6 +279,9 @@ iconv support use --disable-iconv.",
'name' : '--lua',
'desc' : 'Lua',
'func': check_lua,
+ 'req': True,
+ 'fmsg': "Unable to find development files for lua. Aborting. \