github.com/reiver/go-fourcc (go): Package fourcc is a Go implementation of FOURCC (four character code) (4CC) identifiers for a video codecs, compression formats, colors, and pixel format used in media files.  FOURCC, also sometimes written as FourCC and 4CC, are all short for “four character code”.  FOURCC, is a sequence of 4 8-bit bytes packed into an unsigned 32-bit integer which, uniquely identifies a data format.  (A character in this context is a 1 byte (i.e., 8 bit) value. Thus a FOURCC always takes up exatly 32 bits (i.e., 4 bytes).)  These data formats tend to be video codecs, compression formats, colors, and pixel format used in media files.  Here are some sample FOURCC.  The way you can understand how these labels get turned in unsigned integers is, if we consider the FOURCC “PAL8”, then:  And then these 8-bit bytes as packed into an unsigned integer in reverse order.  I.e.,:  Here is an example usage:  Here is a constant:  A fourcc.Const needs to be turned into a fourcc.Type before using it. So:  Some uses of Scan:  And:  And:  More information about FOURCC can be found at: https://www.fourcc.org/
Keywords: fourcc