This file contains hidden or 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
| #ifndef TESTS_H | |
| #define TESTS_H | |
| #include "asic.h" | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <time.h> | |
| void flash(asic_t *device, const uint8_t *data); |
This file contains hidden or 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
| CPP_FILES := $(wildcard src/*.cpp) | |
| OBJ_FILES := $(addprefix obj/,$(notdir $(CPP_FILES:.cpp=.o))) | |
| LD_FLAGS := -lsfml-graphics -lsfml-window -lsfml-system -ldl | |
| CC_FLAGS := -g -fPIC -std=c++11 | |
| #bin/main: $(OBJ_FILES) | |
| # g++ $(LD_FLAGS) -o $@ $^ | |
| bin/main: libgame.so $(OBJ_FILES) | |
| g++ $(LD_FLAGS) -o $@ obj/main.o |
This file contains hidden or 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
| #include <SFML/Graphics/RenderWindow.hpp> | |
| #include <SFML/System/Clock.hpp> | |
| #include <SFML/Window/Event.hpp> | |
| #include <dlfcn.h> | |
| #include <iostream> | |
| #include "game.hpp" | |
| void* handle; |
This file contains hidden or 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
| ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers | |
| built on Dec 15 2013 16:36:32 with gcc 4.8.2 (GCC) | |
| configuration: --prefix=/usr --disable-debug --disable-static --enable-shared --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-ladspa --enable-libaacplus --enable-libass --enable-libbluray --enable-libcaca --enable-libcdio --enable-libcelt --enable-libdc1394 --enable-libfaac --enable-libfdk-aac --enable-libfreetype --enable-libgme --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-nonfree --enable-openal --e |
This file contains hidden or 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
| #include <avr/pgmspace.h> | |
| #define LAYER_TIME 3333 | |
| #define LAYER_BITS 16 | |
| #define FRAME_TIME 20 | |
| enum { | |
| ANIMATION_SCRIPTED, | |
| ANIMATION_RANDOM, | |
| ANIMATION_SENSING |
This file contains hidden or 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
| flags = { | |
| 'video': BitVector('a', 'b', 'c') | |
| 'image': BitVector('d', 'e') | |
| } | |
| ---- | |
| def process_file: | |
| processor, flags = detect() | |
This file contains hidden or 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
| We're currently working on getting support for VTT, SRT, and ASS subtitles on MediaCrush, but we're not | |
| done. If we finish it up, we'll revisit this post and describe how it's done. | |
| You'll need to discover and extract subtitles and fonts, as well as provide a client-side subtitle | |
| rendering solution like [libjass](https://github.com/Arnavion/libjass) or [WebVTT](https://wiki.mozilla.org/WebVTT). |
This file contains hidden or 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
| from mediacrush.objects import File | |
| from mediacrush.database import r, _k | |
| from mediacrush.processing.detect import detect | |
| from mediacrush.mimetypes import get_mimetype, extension | |
| from mediacrush.files import file_storage | |
| if __name__ == '__main__': | |
| for h in r.smembers(_k("file")): | |
| f = File.from_hash(h) |
This file contains hidden or 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
| from mediacrush.objects import File | |
| from mediacrush.database import r, _k | |
| from mediacrush.processing.detect import detect | |
| from mediacrush.mimetypes import get_mimetype, extension | |
| from mediacrush.files import file_storage | |
| if __name__ == '__main__': | |
| for h in r.smembers(_k("file")): | |
| f = File.from_hash(h) | |
| mimetype = get_mimetype(f.original) |
This file contains hidden or 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
| { | |
| "blob_type": "video", | |
| "compression": 9.22, | |
| "extras": [ | |
| { | |
| "file": "/TayC7vkb31F5.png", | |
| "type": "image/png" | |
| } | |
| ], | |
| "files": [ |