Common Intermediate Format


CIF, also known as FCIF, is a standardized format for the picture resolution, frame rate, color space, and color subsampling of digital video sequences used in video teleconferencing systems. It was first defined in the H.261 standard in 1988.
As the word "common" in its name implies, CIF was designed as a common compromise format to be relatively easy to convert for use either with PAL or NTSC standard displays and cameras. CIF defines a video sequence with a resolution of 352 × 288, which has a simple relationship to the PAL picture size, but with a frame rate of 30000/1001 frames per second like NTSC, with color encoded using a YCbCr representation with color sampling. It was designed as a compromise between PAL and NTSC schemes, since it uses a picture size that corresponds most easily to PAL, but uses the frame rate of NTSC. The compromise was established as a way to reach international agreement so that video conferencing systems in different countries could communicate with each other without needing two separate modes for displaying the received video.

Technical details

The simple way to convert NTSC video to CIF is to capture every other field of interlaced video, downsample it by 2:1 horizontally to convert 704 samples per line to 352 samples per line, and upsample it vertically by a ratio of 6:5 vertically to convert 240 lines to 288 lines. The simple way to convert PAL video to CIF is to similarly capture every other field, downsample it horizontally by 2:1, and introduce some jitter in the frame rate by skipping or repeating frames as necessary. Since H.261 systems typically operated at low bit rates, they also typically operated at low frame rates by skipping many of the camera source frames, so introducing some jitter in the frame rate tended not to be noticeable. More sophisticated conversion schemes could also be used in higher quality systems.
In contrast to the CIF compromise that originated with the H.261 standard, there are two variants of the SIF that was first defined in the MPEG-1 standard. SIF is otherwise very similar to CIF. SIF on 525-line based systems is 352 × 240 with a frame rate of 30000/1001 frames per second, and on 625-line based systems, it has the same picture size as CIF but with a frame rate of 25 frames per second.
Some references to CIF are intended to refer only to its resolution, without intending to refer to its frame rate.
The YCbCr color representation had been previously defined in the first standard digital video source format, CCIR 601, in 1982. However, CCIR 601 uses color sampling, which subsamples the Cb and Cr components only horizontally. H.261 additionally used vertical color subsampling, resulting in what is known as 4:2:0.
QCIF means "Quarter CIF". To have one quarter of the area, as "quarter" implies, the height and width of the frame are halved.
Terms also used are SQCIF, 4CIF and 16CIF. The resolutions for all of these formats are summarized in the table below.
FormatVideo Resolution
SQCIF128 × 96
QCIF176 × 144
SIF352 x 240
CIF/SIF352 × 288
4SIF704 x 480
4CIF/4SIF704 × 576
16CIF1408 × 1152

xCIF pixels are not square, instead having a native aspect ratio of 12:11, as with the standard for 625-line systems. On square-pixel displays xCIF rasters should be rescaled so that the picture covers a 4:3 area, in order to avoid a "stretched" look: CIF content expanded horizontally by 12:11 results in a 4:3 raster of 384 × 288 square pixels.
The CIF and QCIF picture dimensions were specifically chosen to be multiples of 16 because of the way that discrete cosine transform based video compression/decompression was handled in H.261, using 16 × 16 macroblocks and 8 × 8 transform blocks. So a CIF-size image contains 22 × 18 macroblocks and a QCIF image contains 11 × 9 macroblocks. The 16 × 16 macroblock concept was later also used in other compression standards such as MPEG-1, MPEG-2, MPEG-4 Part 2, H.263, and H.264/MPEG-4 AVC.