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
LOCAL_PATH:= $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_SRC_FILES := omx-store.cpp | |
LOCAL_SHARED_LIBRARIES := libutils liblog [email protected] [email protected] libcutils \ | |
[email protected] \ | |
[email protected] \ | |
libhidlbase libbase |
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
""" | |
Update URL/Filename, execute script and provide output filename as parameter | |
Requirements: | |
* Python 3.x | |
* "ffmpeg" command-line tool. | |
""" | |
import sys | |
import urllib.request | |
from os import system, remove |
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
void hexdump(unsigned char *data, size_t size) { | |
char ascii[17] = {0}; | |
size_t i; | |
for (i = 0; i < size; ++i) { | |
unsigned char c = data[i]; | |
size_t next = i+1; | |
printf("%02X ", c); | |
ascii[i % 16] = isprint(c) ? c : '.'; | |
if (next % 8 == 0 || next == size) { |