ArticleslgStudy

computer science

Coding tree unit

Coding tree unit is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Coding tree unit rather than just read about it. In short: Coding tree unit (CTU) is the basic processing unit of the High Efficiency Video Coding (HEVC) video standard and conceptually corresponds in structure to macroblock units that were used in several previous video standards. CTU is also referred to as largest coding unit (LCU).

Key takeaways

  • Coding tree unit belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Coding tree unit to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Coding tree unit from memory before moving on to harder problems.

Reference excerpt

Coding tree unit (CTU) is the basic processing unit of the High Efficiency Video Coding (HEVC) video standard and conceptually corresponds in structure to macroblock units that were used in several previous video standards. CTU is also referred to as largest coding unit (LCU). A CTU can be between 16×16 pixels and 64×64 pixels in size with a larger size usually increasing coding efficiency. The first video standard that uses CTUs is HEVC/H.265 which became an ITU-T standard on April 13, 2013.

History Macroblock encoding methods have been used in digital video coding standards since H.261 which was first released in 1988. However, for error correction and signal-to-noise ratio the standard 16x16 macroblock size is not capable of getting the kind of bit reductions that information theory and coding theory suggest are theoretically and practically possible.

Technical details HEVC replaces macroblocks, which were used with previous video standards, with CTUs which can use larger block structures of up to 64×64 pixels and can better sub-partition the picture into variable sized structures. HEVC initially divides the picture into CTUs which are then divided for each luma/chroma component into coding tree blocks (CTBs). A CTB can be 64×64, 32×32, or 16×16 with a larger pixel block size usually increasing the coding efficiency. CTBs are then divided into one or more coding units (CUs), so that the CTU size is also the largest coding unit size.

The arrangement of CUs in a CTB is known as a quadtree since a subdivision results in four smaller regions. CUs are then divided into prediction units (PUs) of either intra-picture or inter-picture prediction type which can vary in size from 64×64 to 4×4. To limit worst-case memory bandwidth when applying motion compensation in the decoding process, prediction units coded using inter-picture prediction are restricted to a minimum size of 8×4 or 4×8 if they are predicted from a single reference (uni-prediction) or 8×8 if they are predicted from two references (bi-prediction). To code the prediction residual, a CU is divided into a quadtree of DCT transform units (TUs). TUs contain coefficients for spatial block transform and quantization. A TU can be 32×32, 16×16, 8×8, or 4×4 pixel block sizes.

Standardization At the July 2012 HEVC meeting it was decided, based on proposal JCTVC-J0334, that HEVC level 5 and higher would be required to use CTB sizes of either 32×32 or 64×64. This was added to HEVC in the Draft International Standard as a level limit for the Log2MaxCtbSize variable. Log2MaxCtbSize was renamed CtbSizeY in the October 2012 HEVC draft and then renamed CtbLog2SizeY in the January 2013 HEVC draft.

Coding efficiency The design of most video coding standards is primarily aimed at having the highest coding efficiency. Coding efficiency is the ability to encode video at the lowest possible bit rate while maintaining a certain level of video quality. HEVC benefits from the use of larger CTB sizes. This has been shown in peak signal-to-noise ratio (PSNR) tests with a HM-8.0 HEVC encoder where it was forced to use progressively smaller CTU sizes. For all test sequences when compared to a 64×64 CTU size it was shown that the HEVC bit rate increased by 2.2% when forced to use a 32×32 CTU size and increased by 11.0% when forced to use a 16×16 CTU size. In the Class A test sequences, where the resolution of the video was 2560×1600, when compared to a 64×64 CTU size it was shown that the HEVC bit rate increased by 5.7% when forced to use a 32×32 CTU size and increased by 28.2% when forced to use a 16×16 CTU size. The tests showed that large CTU sizes become even more important for coding efficiency with higher resolution video. The tests also showed that it took 60% longer to decode HEVC video encoded at 16×16 CTU size than at 64×64 CTU size. The tests showed that large CTU sizes increase coding efficiency while also reducing decoding time. The tests were conducted with the Main profile of HEVC based on equal PSNR.

See also High Efficiency Video Coding (HEVC) - Video standard that supports 8K UHDTV and resolutions up to 8192 × 4320 H.264/MPEG-4 AVC - The predecessor video standard of HEVC VP9 - A video codec with superblocks, which are similar to CTUs Macroblock - The basic processing unit used in several previous video standards

References

External links HEVC overview HEVC coding efficiency ITU-T Recommendation H.265 - High Efficiency Video Coding

Worked examples

Example 1 — a first encounter with Coding tree unit

Start with the simplest possible case. Write down what Coding tree unit claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Coding tree unit before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Coding tree unit ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Coding tree unit

In research
Coding tree unit appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Coding tree unit in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Coding tree unit is common in secondary-school and first-year university syllabi. It links to neighbouring topics Data compression, IEC standards, ISO standards, so understanding it makes those chapters shorter.
In everyday life
Look for Coding tree unit outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Coding tree unit” →

How to study Coding tree unit in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Coding tree unit means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Coding tree unit out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Coding tree unit in simple terms?

Coding tree unit (CTU) is the basic processing unit of the High Efficiency Video Coding (HEVC) video standard and conceptually corresponds in structure to macroblock units that were used in several previous video standards. CTU is also referred to as largest coding unit (LCU).

Why does Coding tree unit matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Coding tree unit?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Coding tree unit.

Tags

  • Data compression
  • IEC standards
  • ISO standards
  • ITU-T recommendations
  • Lossy compression algorithms
  • MPEG
  • Video compression

Keep exploring