This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
""" | |
This (pure!) python script streams a YUV4MPEG format video to stdout. It easily | |
runs at 1080p60fps on my machine. | |
Pipe it into a media player like this: | |
python3 swar_life.py | mpv - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
target triple = "x86_64-none-linux-gnu" | |
declare i32 @printf(i8*, ...) nounwind | |
declare i32* @malloc(i32) nounwind | |
declare void @free(i32*) nounwind | |
@format_int_s = internal constant [3 x i8] c"%d\00" |