Skip to content

Instantly share code, notes, and snippets.

View TimothyGu's full-sized avatar
🤠
🤠

Timothy Gu TimothyGu

🤠
🤠
  • Seattle, US
  • 06:14 (UTC -07:00)
View GitHub Profile
;******************************************************************************
;* SIMD-optimized HuffYUV encoding functions
;* Copyright (c) 2000, 2001 Fabrice Bellard
;* Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
;* MMX optimization by Nick Kurshev <nickols_k@mail.ru>
;* Ported to NASM syntax by Tiancheng "Timothy" Gu <timothygu99@gmail.com>
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
// xv2flv
// Found on http://hi.baidu.com/naylonslain/item/9586125a9f5979dbd58bac47
#include <stdio.h>
#include <stdlib.h>
int convert_file(char *szSourceFile, int bIsFastConv)
{
char szNewFileName[256] = {0};
int buffer[0x400];
@TimothyGu
TimothyGu / log.log
Created July 16, 2014 03:16
BBB's IRC lesson
19:39 <BBB> intra prediction is taking edge pixels to predict a block’s content
19:39 <Timothy_Gu_> what is a block?
19:39 <Timothy_Gu_> a part of a frame?
19:39 <Timothy_Gu_> what is a macroblock? a group of blocks?
19:40 <BBB> the base subdivision unit of a frame in which the actual video content is coded
19:40 <BBB> for h264, 16x16 is the base block unit size
19:40 <Timothy_Gu_> ok
19:40 <BBB> vp8 same
19:40 <BBB> vp9/hevc it’s 64x64 -> 8x8 (with 4x4 support throug some hacks)
19:40 <Timothy_Gu_> huh?

DO = a DigitalOcean box with 2 CPUs, SSD, and 2 GB RAM.

IP = an IdeaPad with Intel Core i5-2450M (2 cores, 4 threads), 5400-rpm hard disk, and 4 GB RAM.

Both running Ubuntu 14.04. Building make MXE_TARGETS='i686-w64-mingw32.shared' gcc.

Results for DO

JOBS (total) -j→ | 1 | 2

@TimothyGu
TimothyGu / a.md
Last active August 29, 2015 14:08

Benchmark info

Benchmark done with:

This is ApacheBench, Version 2.3 <$Revision: 1528965 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
function hps { cd /boot/home/haikuports; git grep $1}
export -f inrecipe
alias hp="haikuporter -S -j2 --no-dependencies --no-source-packages"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Chapter 18: The Atlantic System and Africa
I. Plantation in the West Indies
Plantations in the West Indies first started out to be successful tobacco
growers, but soon transitioned to sugar cane, a crop more fit for the
climate.
A. Colonization Before 1650

GCI Haikuporter Packaging Reflection

Tiancheng "Timothy" Gu

Challenges

Prior to GCI 2014, I already have some experiences in packaging because my involvement in the [MXE][1] project. The way haikuports operates is very similar to MXE (which uses a makefile-based system), so it was not extremely hard for me get started in the packaging fun.

CC=gcc
CFLAGS=-g -O2 -Wall -ISource $(OPTFLAGS)
SOURCES=$(wildcard Source/*.c)
OBJECTS=$(patsubst %.c,%.o,$(SOURCES))
GUISOURCES=Source/Main.cpp
GUIEXE=bin/AGMSAVLTest
TARGET=build/libavlduptree.so