Skip to Content
Coding Video
book

Coding Video

by Iain E. Richardson
September 2024
Intermediate to advanced
448 pages
14h 23m
English
Wiley
Content preview from Coding Video

8Entropy Coding

8.1 Introduction

A video encoder produces many different symbols or syntax elements, containing information such as transform coefficients, prediction choices, block sizes and many other parameters. Some of the syntax elements occur many thousands of times in even a short video clip, while others occur occasionally or just once per video. Certain syntax elements such as transform coefficients can have a range of values, while others are binary. The actual value of a syntax element may be statistically related to other syntax element values and other information. We can take all of these factors into account when we are trying to find an efficient encoding for all the syntax elements in a coded video clip.

In this chapter, we will look at:

  • Where entropy coding sits in a video codec and what it achieves.
  • Pre‐processing symbols before entropy coding.
  • The main types of entropy coding used in video codecs.
  • Arithmetic coding in detail.
  • Probabilities, context models and adaptation.
  • How entropy coding works in H.265/high‐efficiency video coding (HEVC) and H.266/versatile video coding (VVC).

An entropy encoder converts a sequence of symbols or syntax elements, S1, S2, S3, etc., into a bitstream, and an entropy decoder converts the bitstream back into a sequence of symbols (see Figure 8.1). The entropy encoder and decoder can make use of certain information during encoding and decoding, such as:

  • The expectation or probability that the current symbol S has value V
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Programming with Rust

Programming with Rust

Donis Marshall
C++ Software Design

C++ Software Design

Klaus Iglberger

Publisher Resources

ISBN: 9781118711781Purchase Link