One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
<script src="http://cdnjs.cloudflare.com/ajax/libs/processing.js/1.4.1/processing-api.min.js"></script><html> | |
<!-- | |
Created using jsbin.com | |
Source can be edited via http://jsbin.com/pdfjs-helloworld-v2/8598/edit | |
--> | |
<body> | |
<canvas id="the-canvas" style="border:1px solid black"></canvas> | |
<input id='pdf' type='file'/> | |
<!-- Use latest PDF.js build from Github --> |
const scrollToItemId = (containerId, srollToId) => { | |
const scrollContainer = document.getElementById(containerId); | |
const item = document.getElementById(scrollToId); | |
//with animation | |
const from = scrollContainer.scrollTop; | |
const by = item.offsetTop - scrollContainer.scrollTop; | |
if (from < item.offsetTop) { | |
if (item.offsetTop > scrollContainer.scrollHeight - scrollContainer.clientHeight) { | |
by = (scrollContainer.scrollHeight - scrollContainer.clientHeight) - scrollContainer.scrollTop; |
Build VAAPI with support for VP8/9 decode and encode hardware acceleration on a Skylake validation testbed:
Build platform: Ubuntu 16.04LTS.
First things first:
Install baseline dependencies first
sudo apt-get -y install autoconf automake build-essential libass-dev libtool pkg-config texinfo zlib1g-dev libva-dev cmake mercurial libdrm-dev libvorbis-dev libogg-dev git libx11-dev libperl-dev libpciaccess-dev libpciaccess0 xorg-dev intel-gpu-tools
#include <stdlib.h> | |
#include <stdio.h> | |
#include <ctype.h> | |
typedef enum e_priority { | |
PRIMARY = 0, | |
UNARY, | |
MULTIPLICATIVE, | |
ADDITIVE, | |
SHIFT, |
tart create --linux --disk-size <disk-size-in-gb> <vm-name>
tart run --rosetta="rosetta" --disk <path-to-iso> <vm-name>