JavaScript-only version of libde265 decoder.