Skip to content

Instantly share code, notes, and snippets.

View rvega's full-sized avatar

Rafael Vega rvega

  • Medellín, Colombia
View GitHub Profile
map / openSearchBar
map n nextSearchResult
map N previousSearchResult
map F createTabbedHint
map f createHint
map k scrollUp
map j scrollDown
map gf nextFrame
#include "am33xx.dtsi"
#include "am335x-bone-common.dtsi"
#include "am335x-bonegreen-common.dtsi"
/* #include "am335x-bone-jtag.dtsi" */
&am33xx_pinmux {
mostro_audio_pins: pinmux_mostro_audio_pins {
pinctrl-single,pins = <
rvega / gist:94c84cddb147cdc89aa264cc18c0280d
Created December 9, 2018 02:22
ninja step for allegro
[1/815] Building C object CMakeFiles/allegro.dir/src/allegro.c.o
[2/815] Building C object CMakeFiles/allegro.dir/src/bitmap_draw.c.o
[3/815] Building C object CMakeFiles/allegro.dir/src/bitmap_lock.c.o
[4/815] Building C object CMakeFiles/allegro.dir/src/bitmap_io.c.o
[5/815] Building C object CMakeFiles/allegro.dir/src/blenders.c.o
[6/815] Building C object CMakeFiles/allegro.dir/src/bitmap_type.c.o
[7/815] Building C object CMakeFiles/allegro.dir/src/clipboard.c.o
[8/815] Building C object CMakeFiles/allegro.dir/src/bitmap.c.o
[9/815] Building C object CMakeFiles/allegro.dir/src/cpu.c.o
[10/815] Building C object CMakeFiles/allegro.dir/src/debug.c.o
rvega / gist:90e5b48173db35da586c2642e8f67cec
Created December 9, 2018 02:22
cmake step for allegro
-- The C compiler identification is GNU 8.2.1
-- The CXX compiler identification is GNU 8.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
rvega / VideoCanvas.cpp
Created April 10, 2018 01:59
A simple video player widget with nanogui and libvlc
#include <nanogui/screen.h>
#include <nanogui/window.h>
#include <nanogui/glcanvas.h>
#include <nanogui/layout.h>
#include <nanogui/opengl.h>
#include <vlc/vlc.h>
#include <iostream>
#include <mutex>
rvega / main.cpp
Created April 9, 2018 18:37
generating pixel texture with secondary thread
#include <nanogui/screen.h>
#include <nanogui/window.h>
#include <nanogui/glcanvas.h>
#include <nanogui/layout.h>
#include <nanogui/opengl.h> // includes most opengl definitions
#include <iostream>
#include <mutex>
#include <cstdint>
#include <thread>
rvega / main.cpp
Created April 9, 2018 02:07
Rendering video content with libvlc to an openGL texture.
#include <mutex>
#include <vlc/vlc.h>
#include <stb_image.h>
#include <nanogui/nanogui.h>
class VideoView: public nanogui::GLCanvas {
nanogui::GLShader shader;
GLuint textureId;
* Copyright (C) 2012 Texas Instruments Incorporated -
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
#include "am33xx.dtsi"
rvega / gist:62578b981b003387b0fd
Created November 16, 2015 20:35
Compiling moocow/flite external in pd-l2ork fails.
(cd ../flite && sh ./configure CFLAGS="-DPD -I/home/Rafa/src/AUR-pd-l2ork/pd-l2ork/src/pd-l2ork/pd/src -Wall -W -ggdb -I/home/Rafa/src/AUR-pd-l2ork/pd-l2ork/src/pd-l2ork/Gem/src -I/home/Rafa/src/AUR-pd-l2ork/pd-l2ork/src/pd-l2ork/externals/pdp/include -DUNIX -Dunix -DDL_OPEN -fPIC -O2 -I/sw/include" LDFLAGS=" -L/home/Rafa/src/AUR-pd-l2ork/pd-l2ork/src/pd-l2ork/pd/src -L/home/Rafa/src/AUR-pd-l2ork/pd-l2ork/src/pd-l2ork/pd/bin -L/home/Rafa/src/AUR-pd-l2ork/pd-l2ork/src/pd-l2ork/pd/obj -L/sw/lib" --with-pd-include="/home/Rafa/src/AUR-pd-l2ork/pd-l2ork/src/pd-l2ork/pd/src" --with-pd-dir="/home/Rafa/src/AUR-pd-l2ork/pd-l2ork/src/pd-l2ork/externals/moocow/extended/build.moo" --disable-dependency-tracking && make clean) || echo "(MOOCOW) Warning: sub-target failed: 'flite.configure_stamp'"
configure: pre-processing user CFLAGS...
configure: got CFLAGS="-DPD -I/home/Rafa/src/AUR-pd-l2ork/pd-l2ork/src/pd-l2ork/pd/src -Wall -W -ggdb -I/home/Rafa/src/AUR-pd-l2ork/pd-l2ork/src/pd-l2ork/Gem/src -I/home/Rafa/src/AUR-pd-
priority 6 scheduling enabled.
priority 8 scheduling enabled.
error in file /usr/lib/pd-l2ork/bin/ can't find package xapian 1.0.0
while executing
"package require xapian 1.0.0"
(file "/usr/lib/pd-l2ork/bin/search-plugin.tcl" line 22)
invoked from within
"source [file join [file dirname [info script]] search-plugin.tcl]"
(file "/usr/lib/pd-l2ork/bin/" line 8498)
tcl: /usr/lib/pd-l2ork/bin/ can't open script