ArticleslgStudy

science

Video Coding Engine

Video Coding Engine is a 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 Video Coding Engine rather than just read about it. In short: Video Code Engine (VCE; earlier referred to as Video Coding Engine, Video Compression Engine or Video Codec Engine in official documentation) is AMD's video encoding application-specific integrated circuit implementing the video codec H.264/MPEG-4 AVC. Since 2012 it was integrated into all of their GPUs and APUs except Oland.

Video Coding Engine — main illustration
Video Coding Engine — illustration

Key takeaways

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

Reference excerpt

Video Code Engine (VCE; earlier referred to as Video Coding Engine, Video Compression Engine or Video Codec Engine in official documentation) is AMD's video encoding application-specific integrated circuit implementing the video codec H.264/MPEG-4 AVC. Since 2012 it was integrated into all of their GPUs and APUs except Oland. VCE was introduced with the Radeon HD 7000 series on 22 December 2011. VCE occupies a considerable amount of the die surface at the time of its introduction and is not to be confused with AMD's Unified Video Decoder (UVD). As of AMD Raven Ridge (released January 2018), UVD and VCE were succeeded by Video Core Next (VCN).

Overview

The handling of video data involves computation of data compression algorithms and possibly of video processing algorithms. As the template compression methods shows, lossy video compression algorithms involve the steps: motion estimation (ME), discrete cosine transform (DCT), and entropy encoding (EC). AMD Video Code Engine (VCE) is a full hardware implementation of the video codec H.264/MPEG-4 AVC. It is capable of delivering 1080p at 60 frames/sec. Because its entropy encoding block is also a separately accessible Video Codec Engine, it can be operated in two modes: full-fixed mode and hybrid mode. By employing AMD APP SDK, available for Linux and Microsoft Windows, developers can create hybrid encoders that pair custom motion estimation, inverse discrete cosine transform and motion compensation with the hardware entropy encoding to achieve faster than real-time encoding. In hybrid mode, only the entropy encoding block of the VCE unit is used, while the remaining computation is offloaded to the 3D engine of the GPU, so the computing scales with the number of available compute units (CUs).

VCE 1.0 VCE Version 1.0 supports H.264 YUV420 (I & P frames), H.264 SVC Temporal Encode VCE, and Display Encode Mode (DEM). It can be found on:

Piledriver-based Trinity APUs (Ax-5xxx, e.g. A10-5800K) Richland APUs (Ax-6xxx, e.g. A10-6800K) GPUs of the Southern Islands generation (GCN1: CAYMAN, ARUBA (Trinity/Richland), CAPE VERDE, PITCAIRN, TAHITI). These are Radeon HD 7700 series (except HD 7790 with VCE 2.0) Radeon HD 7800 series Radeon HD 7900 series Radeon HD 8570 to 8990 (except HD 8770 with VCE 2.0) Radeon R7 250E, 250X, 265 / R9 270, 270X, 280, 280X Radeon R7 360, 370, 455 / R9 370, 370X Mobile Radeon HD 77x0M to HD 7970M Mobile Radeon HD 8000-Series Mobile Radeon Rx M2xx Series (except R9 M280X with VCE 2.0 and R9 M295X with VCE 3.0) Mobile Radeon R5 M330 to R9 M390 FirePro cards with 1st Generation GCN (GCN1) (Except W2100, which is Oland XT)

VCE 2.0 Compared to the first version, VCE 2.0 adds H.264 YUV444 (I-Frames), B-frames for H.264 YUV420, and improvements to the DEM (Display Encode Mode), which results in a better encoding quality. It can be found on:

Steamroller-based Kaveri APUs (Ax-7xxx, e.g. A10-7850K) Godavari APUs (Ax-7xxx, e.g. A10-7890K) Jaguar-based Kabini APUs (e.g. Athlon 5350, Sempron 2650) Temash APUs (e.g. A6-1450, A4-1200) Puma-based Beema and Mullins GPUs of the Sea Islands generation as well Bonaire or Hawaii GPUs (2nd Generation Graphics Core Next), such as Radeon HD 7790, 8770 Radeon R7 260, 260X / R9 290, 290X, 295X2 Radeon R7 360 / R9 390, 390X Mobile Radeon R9 M280X Mobile Radeon R9 M385, M385X Mobile Radeon R9 M470, M470X FirePro W4300, W5100, W8100, W9100, S9100, S9150, S9170 Mobile FirePro M6100, W6150M, W6170M

VCE 3.0 Video Code Engine 3.0 (VCE 3.0) technology features a new high-quality video scaling and - since version 3.4 - High Efficiency Video Coding (HEVC/H.265). It, together with UVD 6.0, can be found on 3rd generation of Graphics Core Next (GCN3) with "Tonga" and "Fiji" (VCE 3.0) based graphics controller hardware, which is now used AMD Radeon Rx 300 series (Pirate Islands GPU family) and VCE 3.4 by actual AMD Radeon Rx 400 series and AMD Radeon 500 series (both Polaris GPU family).

Tonga: Radeon R9 285, 380, 380X; Mobile Radeon R9 M390X, M395, M395X, M485X Tonga XT: FirePro W7100, S7100X, S7150, S7150 X2 Fiji: Radeon R9 Fury, Fury X, Nano; Radeon Pro Duo (2016); FirePro S9300, W7170M; Instinct MI8 Polaris: RX 460, 470, 480; RX 550, 560, 570, 580; Radeon Pro Duo (2017) AMD's Carrizo platform features VCE 3.1, retaining the same capabilities as the VCE found in "Fiji" and "Tonga". Stoney Ridge features a cut down version of VCE 3.4 without HEVC/H.265 encoding and is accompanied by a UVD 6.2 engine. VCE 3.0 removes support for H.264 B-frames.

VCE 4.0 The Video Code Engine 4.0 encoder and UVD 7.0 decoder are included in the Vega-based GPUs.

VCE 4.1 AMD's Vega20 GPU, present in the Instinct Mi50, Instinct Mi60 and Radeon VII cards, include VCE 4.1 and two UVD 7.2 instances.

Feature overview

APUs The following table shows features of AMD's processors with 3D graphics, including APUs (see also: List of AMD processors with 3D graphics).

GPUs The following table shows features of AMD/ATI's GPUs (see also: List of AMD graphics processing units).

Operating system support The VCE SIP core needs to be supported by the device driver. The device driver provides one or multiple interfaces, e. g. OpenMAX IL. One of these interfaces is then used by end-user software, like GStreamer or HandBrake (HandBrake rejected VCE support in December 2016, but added it in December 2018), to access the VCE hardware and make use of it. AMD's proprietary device driver AMD Catalyst is available for multiple operating systems and support for VCE was added to it. Additionally, a free device driver is available. This driver also supports the VCE hardware.

Linux

Initial VCE support was added on 4 February 2014 by Christian König of AMD to the free radeon driver. Gallium3D state tracker for OpenMAX was added 24 October 2013 to Mesa 3D. The free and open-source Radeon driver was adapted to use OpenMAX with the GStreamer OpenMAX (gst-omx) support for exposing the VCE video encode engine. AMD employee Leo Liu implemented h264 level support into the Mesa 3D state tracker.

… excerpt ends here. Continue reading the full article.

Illustrations

Video Coding Engine: The entropy encoding block of the VCE ASIC is also separately accessible, enabling "hybrid mode". In "hybrid mode" most of the computation is done by the 3D engine of the GPU. Using AMD's Accelerated Parallel Programming SDK and OpenCL developers can create hybrid encoders that pair custom motion estimation, inverse discrete cosine transform and motion compensation with the hardware entropy encoding to achieve faster than real-time encoding.
The entropy encoding block of the VCE ASIC is also separately accessible, enabling "hybrid mode". In "hybrid mode" most of the computation is done by the 3D engine of the GPU. Using AMD's Accelerated Parallel Programming SDK and OpenCL developers can create hybrid encoders that pair custom motion estimation, inverse discrete cosine transform and motion compensation with the hardware entropy encoding to achieve faster than real-time encoding.
Video Coding Engine: Support for the VCE ASIC is contained in the Linux kernel device driver amdgpu.
Support for the VCE ASIC is contained in the Linux kernel device driver amdgpu.

Worked examples

Example 1 — a first encounter with Video Coding Engine

Start with the simplest possible case. Write down what Video Coding Engine claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In 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 Video Coding Engine 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 Video Coding Engine 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 Video Coding Engine

In research
Video Coding Engine appears in 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 Video Coding Engine 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
Video Coding Engine is common in secondary-school and first-year university syllabi. It links to neighbouring topics AMD IP cores, Video acceleration, Video compression and decompression ASIC, so understanding it makes those chapters shorter.
In everyday life
Look for Video Coding Engine 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 “Video Coding Engine” →

How to study Video Coding Engine in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Video Coding Engine 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 Video Coding Engine out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Video Coding Engine in simple terms?

Video Code Engine (VCE; earlier referred to as Video Coding Engine, Video Compression Engine or Video Codec Engine in official documentation) is AMD's video encoding application-specific integrated circuit implementing the video codec H.264/MPEG-4 AVC. Since 2012 it was integrated into all of their…

Why does Video Coding Engine matter?

Because it connects several 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 Video Coding Engine?

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 Video Coding Engine.

Tags

  • AMD IP cores
  • Video acceleration
  • Video compression and decompression ASIC

Keep exploring