Skip to content

Instantly share code, notes, and snippets.

View ABADY1000's full-sized avatar

Abdullah Alamoodi ABADY1000

View GitHub Profile
@mxwell
mxwell / convert_from_bt656.py
Created February 18, 2015 16:07
Script to extract a picture from a BT.656 frame
#! /usr/bin/python
###############################################################################
# Script converts a single frame, compliant with ITU-R BT.656-5,
# into a picture of given format (like PNG, JPEG, BMP, etc)
#
# Tested with Python 2.7.5, Pillow 2.7
###############################################################################
from PIL import Image
@mxwell
mxwell / convert_to_bt656.py
Last active September 13, 2022 08:02
Script to convert a picture into ITU-R BT.656 frame.
#! /usr/bin/python
###############################################################################
# Script converts an arbitrary picture into a single frame,
# compliant with ITU-R BT.656-5, see:
#
# http://www.itu.int/dms_pubrec/itu-r/rec/bt/R-REC-BT.656-5-200712-I!!PDF-E.pdf
#
# Tested on Ubuntu 12.04, Python 2.7.3
###############################################################################
@rosshays
rosshays / dictionary.c
Created August 2, 2012 04:22
C Dictionary (map) Implementation
#include "dictionary.h"
#include <stdlib.h>
#include <stdbool.h>
////////////////////////////////////////////////////////////////////////////////
// static function forward declarations
// dictionary node static
static DictionaryNode *DictionaryNodeAlloc(void);