Project moved to a repo: https://github.com/mildsunrise/mp4parser
First of all: YUV pixel formats and Recommended 8-Bit YUV Formats for Video Rendering. Chromium's source code contains good documentation about those formats too: chromium/src/media/base/video_types.h and chromium/src/media/base/video_frame.cc (search for RequiresEvenSizeAllocation()
, NumPlanes()
and those kinds of functions).
You can think of an image as a superposition of several planes (or layers in a more natural language). YUV formats have three planes: Y
, U
, and V
.
Y
is the luma plane, and can be seen as the image as grayscale. U
and V
are reffered to as the chroma planes, which are basically the colours. All the YUV formats have these three planes, and differ by the different orderings of them.
This file contains hidden or 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
\newcounter{undefinedreferences} | |
\setcounter{undefinedreferences}{0} | |
\newcommand{\citationneeded}[1][None]{\stepcounter{undefinedreferences}\textsuperscript{\color{blue} [Citation needed: #1]}} | |
\newcommand{\checkreferences}{ | |
\ifnum\value{undefinedreferences} > 0 | |
\begin{center} | |
\immediate\write18{wget -O Figures/protester.png -nc http://imgs.xkcd.com/comics/wikipedian_protester.png} | |
\includegraphics[width=\textwidth]{protester.png} |
This file contains hidden or 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
diff --git a/bar.c b/bar.c | |
index 68b41ca..b9f2ae5 100644 | |
--- a/bar.c | |
+++ b/bar.c | |
@@ -1,5 +1,6 @@ | |
// vim:sw=4:ts=4:et: | |
#include <stdbool.h> | |
+#include <fcntl.h> | |
#include <stdio.h> | |
#include <stdlib.h> |
This file contains hidden or 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
// gruntfile dropin used to build a grunt files object with 1:1 structure | |
function globToMultiFiles(glob, dest, options) { | |
var path = require('path'); | |
grunt.util = grunt.util || grunt.utils; | |
dest = grunt.template.process(dest); | |
options = grunt.util._.defaults(options || {}, { | |
cwd: '', |