Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <ol> <li><p>Usually, when people talk about YUV they talk about <a href="http://en.wikipedia.org/wiki/YUV#Y.27UV420p_.28and_Y.27V12_or_YV12.29" rel="noreferrer">YUV 4:2:0</a>. Your reference to <em>any</em> YUV image is misleading, because there are a number of different formats, and each is handled differently. For example, raw YUV 4:2:0 (by convention, files with an extension <code>.yuv</code>) doesn't contain any dimension data; whereas <code>y4m</code> files typically do. So you really need to know what sort of image you're dealing with before you start reading it. For YUV 4:2:0, you just open the file and read the luminance (Y') and chrominance (CbCr) components in that order, keeping in mind the chrominance components have been decimated (quarter size of the luminance components). After that you typically convert Y'CbCr to RGB so you can display the image.</p></li> <li><p>From what I've mentioned above, you simply <strong>can't</strong> determine the dimensions of <em>any</em> YUV image. Often, the dimensions are simply not in the file. You have to know them up front -- this is why <a href="http://media.cs.tsinghua.edu.cn/~taopin/coding/seq.html" rel="noreferrer">most</a> <a href="http://media.xiph.org/video/derf/" rel="noreferrer">sites</a> listing YUV files for download also list their frame dimensions (and for video, the number of frames). Most YUV files are either CIF (352x288) or QCIF (176x144), although there are some files digitized from analog video that are in the slightly different SIF format. Read about the different formats <a href="http://en.wikipedia.org/wiki/Common_Intermediate_Format" rel="noreferrer">here</a>.</p></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload