Test program updated to create a blank background surface
of the appropriate type. This program needs to be improved
by loading a real YUV image so that the algorithm can be
confirmed.
import sqlite3
import datetime
con = sqlite3.connect(":memory:", detect_types=sqlite3.PARSE_COLNAMES)
cur = con.cursor()
cur.execute('select ? as "x [timestamp]"', (datetime.datetime.now(),))
dt = cur.fetchone()[0]
print dt, type(dt)