SlideShare a Scribd company logo
High Efficiency Video Coding
HEVC/H.265
Tejus Adiga M
Department of Electronics and Communication, NMAMIT, Nitte.
Presented By:
A New Standard for Video Coding
• Video is going richer, all growing the bit rate
• Frame size– 4K to 8K Ultra HD
• Temporal resolution - 24 FPS to 240 FPS
• Color resolution, bit depth - 8bpc to 12 bpc
• Stereo and 3D Video Technology
• Process intensive Algorithms in consumer electronics is now affordable
• Devices for Recording/Displaying HD to ultra HD video is affordable
• Multi Threaded multi Core CPUs and hardware Accelerators
• Hardware Video Decoders
• Necessary video data rate grows faster than feasible network transport capacities
• Better Video compression standard needed.
• New ITU-T standard H265 addressing needs of an efficient video coder of future
• Same Visual quality – 50% reduction in bitrate than H264/MPEG4 part 10.
• Better visual quality – Same bitrate as of H264/MPEG4 part 10.
28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte.
2
28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 3
Block Diagram
Fig 1: Block diagram
of HEVC encoder
CABAC: Context Adaptive Binary
Arithmetic Coding.
CTU: Coding Tree Unit. 64x64
Luma block (Y) and two 32x32
Chroma block (U and V) as in YUV
420 format.
SAO: Sample Adaptive offset:
Non linear amplitude mapping to
better reconstruct original pixel
amplitudes.
28 October 2015
Department of Electronics and Communications, NMAMIT,
Nitte.
4
Coding Modes
• Intra Frame Coding (I Frames)
• CTU to encode is predicted from previously encoded and decoded CTUs of upper
rows and left column of the same frame.
• Inter Frame Coding (P and B frame)
• Coded using Motion Estimation and Motion Compensation or Skip mode.
• P Frame: Coded with reference to Previously encoded and decoded frames.
• B Frame: Coded with reference to Previous and Future encoded and decoded
frames.
28 October 2015
Block Partitioning
• Frame is partitioned into Non Overlapping 64x64 Coding
Tree Units (CTU)
• A CTU consists of 64x64 Luma Coding Tree Block (CTB)
and two 32 x 32 Chroma CTB for U and V components.
• Every CTB is further split into one or multiple Coding Unit
(CU) in Quad tree structure.
• Every CU has an associated Prediction Unit (PU) and
Transform Unit (TU).
• Prediction Unit (PU) is partitioning to perform Intra/Inter
prediction. It has root in CU and can be further split down
to 4x4 block including rectangle blocks like 8x4, 16x8 etc.
• Transform Unit (TU) is partitioning to perform Transform
and Entropy coding of Prediction Residual blocks down to
4x4 size.
Department of Electronics and Communications, NMAMIT, Nitte.
CTU
Luma (Y)
CTB
CTB
CTB
CB
CB
CB
CB
CB
CB
CB
CB
CBCB
5
28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 6
Intra Frame Coding
• Transform Unit size can be from 4x4 upto 32x32
• 33 Directional Angular prediction with Planar and DC prediction
modes are used to predict a TB
• A Prediction Block is formed with previously decoded boundary
samples from spatially neighboring TBs.
• A PB with minimum prediction error is selected using the error
metric like SAD, MAD, SSE, MSE
𝑆𝑢𝑚 𝑂𝑓 𝐴𝑏𝑠𝑜𝑙𝑢𝑡𝑒 𝐷𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑐𝑒 (𝑆𝐴𝐷) = 𝐼 𝑥, 𝑦 − 𝑃𝐵 𝑥, 𝑦
• Prediction Residual block is found by
𝑅 𝑥, 𝑦 = 𝐼 𝑥, 𝑦 − 𝑃𝐵(𝑥, 𝑦)
• Integer DCT is applied to Residual block with Butterfly computation.
• Integer DCT of size 4x4, 8x8, 16x16 and 32x32 computed with fast Separable Butterfly computation.
• Alternatively for only 4x4 residual block DST can be used as it better fit the statistical property that
the residual amplitudes tend to increase as the distance from the boundary samples that are used for
prediction becomes larger.
•
28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte.
7
Transform
4x4 transform
8x8 transform
28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 8
Transform
28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 9
Scalar Quantization and Scaling
• Integer DCT introduces Non Linearity.
• DCT Matrix is split into two integer
matrix with appropriate scaling and
combined with Quantization to form
Mf
𝑀𝑓 =
215 𝑆 𝑓
𝑄 𝑠𝑡𝑒𝑝
• Inverse Operation
𝑉𝑖= 𝑄𝑠𝑡𝑒𝑝. 26. 𝑆𝑖
Quantization
and Scaling
Inverse
Quantization
and Scaling
28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 10
Scalar Quantization and Scaling
• Transformed Residual coefficients are quantized with Scalar
Quantization.
• Quantization Parameter (QP):
• Based on constraints like target bitrate, quality a value in between 0 to 51
need to be specified termed as Quantization Parameter.
• For every 6 QP value increase the Qstep doubles.
• Lower the QP, higher the video quality but less compression
• Quantization is done by multiplying Mf with Residual block.
𝑌 = 𝑀𝑓 𝑋
• Inverse Quantization at decoder side can be done by
𝑋 = 𝑉𝑖 𝑌
• The selection of the coefficient scanning order depends on the directionalities of the
intra picture prediction.
• Scanning methods
• Diagonal upright scanning: Default
• Vertical Scanning: Used when the prediction direction is close to horizontal
• Horizontal Scanning : Used when the prediction direction is close to vertical
• Scanned Coefficients are Entropy Coded using Context Adaptive Binary Arithmetic
Coding (CABAC) and formatted in bit stream format as specified by H265 NAL Unit
Syntax
28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 11
Entropy Coding
• Current frame is encoded using
previously decoded frame as
reference.
• Motion Estimation and Motion
Compensation is carried out at CB
level to get he best match of current
CB in the reference frame in the search
window.
• Offset (Δx, Δy) between current CB
and motion estimated CB referred to
as Motion Vector.
28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 12
Intra Picture Coding
• Difference between current CB and motion estimated CB is computed to
get the Prediction Block which is Transformed, quantized and entropy
coded along with Motion Vectors.
• Various Fast motion estimation algorithms are proposed to speedup the
motion estimation process like Three Step, Logarithmic, Hexagonal,
Diamond, Small Diamond etc.
• Optimizations:
• Motion Vector can be predicted spatially and temporally.
• Motion Vector Merge: Average of previously encoded motion vectors of current
frame.
• Skip Mode: MVs are copied from MVs of some other CB.
28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 13
Encoding of motion Estimated Parameters
• Due to block processing of CBs there occurs
discontinuities in adjacent blocks.
• To prevent excessive filtering filter are applied to
PBs greater than 4x4 blocks.
• Filter parameters β and tc are derived from QP.
• Types of filtering:
• Strong Filter: High variation in pixel values at boundary.
P0, P1, P2 and Q0, Q1, Q2 are filtered with
(1, 2, 2, 2, 1)/8, (1, 1, 1, 1)/4, and (2, 3, 1, 1, 1)/8
• Weak Filter: Slowly varying pixel values at boundary.
P0 and Q0 are filtered with (8, 19, −1, 9, −3)/32
• No Filter: Skip filtering for intra frame 4x4 block, inter
frame blocks whose MV derived from same reference
frame.
28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 14
In Loop De-Blocking Filter
28 October 2015
Department of Electronics and Communications, NMAMIT,
Nitte.
15
Comparison of HEVC with H.264
Block Partitioning in H264 and HEVCSubjective quality comparison of H264 and HEVC
• High degree of parallelism in decoding can take advantage of SIMD
instruction sets like MMX, SSE, SSE2, 3D Now etc in Software Decoding.
• As decoding operation is modular wrt CTUs it is better suited to run on
Graphics processors
• Dedicated VLSI Decoders can take advantage of modularity of HEVC to
accelerate decoding.
• Can provide better video quality for Real time video communication
applications.
• Efficient storage of Video.
28 October 2015
Department of Electronics and Communications, NMAMIT,
Nitte.
16
Advantages
• Better suited for parallel processing.
• HEVC will accelerate Video services on Mobile devices.
• Competitors like VP9 from Google and Vorbis from XIPH.org provide
royalty free codecs that is slightly inferior to HEVC.
• HEVC Specification is not yet completely finalized. Opportunity to
improve efficiency further.
28 October 2015
Department of Electronics and Communications, NMAMIT,
Nitte.
17
Conclusion and Future
1. Overview of the High Efficiency Video Coding (HEVC) Standard, G. J. Sullivan, J. R. Ohm, W. J. Han, and T. Wiegand, IEEE Transactions on Circuits and
Systems for Video Technology, Vol 22, no 12, Jan 2013.
2. HEVC Complexity and Implementation Analysis, Frank Bossen, Benjamin Bross, Karsten Suhring, and David Flynn, IEEE Transactions on Circuits
and Systems for Video Technology, vol. 22, no. 12, Jan 2013.
3. Comparison of the Coding Efficiency of Video Coding Standard – Including High Efficient Video Coding (HEVC), J.R. Ohm, G. J. Sullivan, H. Schwarz, T.
K. Tan, T. Wiegand, IEEE Transactions on Circuits and Systems for Video Technology, vol. 22, no. 12, Jan 2013.
4. HEVC Deblocking Filter, Andrey Norkin, Gisle Bjøntegaard, Arild Fuldseth, Matthias Narroschke, Masaru Ikeda, Kenneth Andersson, Minhua Zhou,
and Geert Van der Auwera, IEEE Transactions on Circuits and Systems for Video Technology, vol. 22, no. 12, Jan 2013.
5. Overview of H264/AVC video coding standard, T. Wiegand, G. J. Sullivan, G. Bjontegaard, and A. Luthra, IEEE Transactions on Circuits and Systems
for Video Technology, vol 13, no 7, July 2003.
6. Overview of the scalable video coding extension of the H.264/AVC standard, H. Schwarz, D. Marpe, and T. Wiegand, IEEE Trans. Circuits Systems for
Video Technology, vol. 17, no. 9, pp. 1103–1120, Sep. 2007.
7. HEVC: The New Gold Standard for Video Compression, Mahsa T. Pourazad, Colin Doutre, Maryam Azimi, and Panos Nasiopoulos, IEEE Consumer
Electronics Magazine, July 2012.
8. White Paper: 4x4 Transformation and Quantization in H264 AVC, Iain Richardson.
9. A High-Throughput VLSI Architecture for Deblocking Filter in HEVC, Weiwei Shen, Qing Shang, Sha Shen, Yibo Fan, Xiaoyang Zeng, IEEE Trans.
Circuits Systems for Video Technology, Vol 22, no 12, Jan 2013.
10. CE10: Core transform design for HEVC, A. Fuldseth, G. Bjøntegaard, M. Budagavi and V. Sze, JCTVC-G495, November 2011
11. ITU-T Recommendation H265, High efficiency video coding.
28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 18
References

More Related Content

PDF
HEVC VIDEO CODEC By Vinayagam Mariappan
PPTX
An Overview of High Efficiency Video Codec HEVC (H.265)
PDF
HEVC overview main
PPT
Introduction to H.264 Advanced Video Compression
PPT
H.264 video standard
PPT
Iain Richardson: An Introduction to Video Compression
PDF
An Introduction to Versatile Video Coding (VVC) for UHD, HDR and 360 Video
PPTX
H.264 vs HEVC
HEVC VIDEO CODEC By Vinayagam Mariappan
An Overview of High Efficiency Video Codec HEVC (H.265)
HEVC overview main
Introduction to H.264 Advanced Video Compression
H.264 video standard
Iain Richardson: An Introduction to Video Compression
An Introduction to Versatile Video Coding (VVC) for UHD, HDR and 360 Video
H.264 vs HEVC

What's hot (20)

PPT
H.263 Video Codec
PPTX
Video compression
PPT
Introduction to Video Compression Techniques - Anurag Jain
PPT
ASIC design Flow (Digital Design)
PPTX
A short history of video coding
PPT
Video Compression Basics - MPEG2
PPTX
Introduction to Image Compression
PDF
VIDEO CODECS
POTX
Presentation of Lossy compression
ODP
MPEG-1 Part 2 Video Encoding
PPTX
PPTX
PPTX
Walsh transform
PPT
HEVC Definitions and high-level syntax
PDF
Physical Verification.pdf
PPTX
Multimedia basic video compression techniques
PDF
Physical design
PDF
Jpeg2000
PPTX
VLSI Physical Design Flow(http://www.vlsisystemdesign.com)
PPTX
Serial buses
H.263 Video Codec
Video compression
Introduction to Video Compression Techniques - Anurag Jain
ASIC design Flow (Digital Design)
A short history of video coding
Video Compression Basics - MPEG2
Introduction to Image Compression
VIDEO CODECS
Presentation of Lossy compression
MPEG-1 Part 2 Video Encoding
Walsh transform
HEVC Definitions and high-level syntax
Physical Verification.pdf
Multimedia basic video compression techniques
Physical design
Jpeg2000
VLSI Physical Design Flow(http://www.vlsisystemdesign.com)
Serial buses
Ad

Viewers also liked (20)

PPT
HEVC / H265 Hands-On course
PPTX
Scalable Video Coding Guidelines and Performance Evaluations for Adaptive Me...
PPTX
Avlm 2009 Compression Erik Luyten
PDF
Evaluation of Hybrid Scalable Video Coding for HTTP-based Adaptive Media Stre...
PDF
Technical Aspects of Digital Video
PPTX
Quadrature Sampling
PPTX
Angular MIMO
PDF
The H.264 Integer Transform
PDF
High Efficiency Video Coding
PPTX
Resampling
PPTX
A Seamless Web Integration of Adaptive HTTP Streaming
PPTX
Using SVC for DASH in Mobile Environments
PPTX
Voice Activity Detection using Single Frequency Filtering
PDF
Development of a 4K H.265/ HEVC HW Encoder
PPTX
Lossless compression of Medical Videos using HEVC
PDF
MPEG-DASH: Overview, State-of-the-Art, and Future Roadmap
PPT
The Perfect Storm MPEG DASH with H.265 (HEVC) with HTML5
PPTX
Encoder and decoder
PPTX
MPEG-DASH open source tools and cloud services
PDF
LinkedIn SlideShare: Knowledge, Well-Presented
HEVC / H265 Hands-On course
Scalable Video Coding Guidelines and Performance Evaluations for Adaptive Me...
Avlm 2009 Compression Erik Luyten
Evaluation of Hybrid Scalable Video Coding for HTTP-based Adaptive Media Stre...
Technical Aspects of Digital Video
Quadrature Sampling
Angular MIMO
The H.264 Integer Transform
High Efficiency Video Coding
Resampling
A Seamless Web Integration of Adaptive HTTP Streaming
Using SVC for DASH in Mobile Environments
Voice Activity Detection using Single Frequency Filtering
Development of a 4K H.265/ HEVC HW Encoder
Lossless compression of Medical Videos using HEVC
MPEG-DASH: Overview, State-of-the-Art, and Future Roadmap
The Perfect Storm MPEG DASH with H.265 (HEVC) with HTML5
Encoder and decoder
MPEG-DASH open source tools and cloud services
LinkedIn SlideShare: Knowledge, Well-Presented
Ad

Similar to High Efficiency Video Codec (20)

PPTX
H.265ImprovedCE_over_H.264-HarmonicMay2014Final
PPT
Video coding technology proposal by
PPT
Video coding technology proposal by
PPT
Video coding technology proposal by
PPT
Video coding technology proposal by
PDF
Evaluation and Analysis of Rate Control Methods for H.264/AVC and MPEG-4 Vide...
PDF
A Configurable and Low Power Hard-Decision Viterbi Decoder in VLSI Architecture
PDF
Deblocking_Filter_v2
PPTX
THE H.264/MPEG4 AND ITS APPLICATIONS
PDF
International Journal of Engineering Research and Development
PDF
Serial parallel dataflow-pipelined processing architecture based accelerator ...
PPTX
Built In Self Testing(BIST) Architecture for Motin Estimation and Computing A...
PDF
Evaluation and Analysis of Rate Control Methods for H.264/AVC and MPEG-4 Vide...
PPT
Aruna Ravi - M.S Thesis
PDF
"Quantizing Deep Networks for Efficient Inference at the Edge," a Presentatio...
PDF
HEVC intra coding
PDF
IRJET- Color Image Compression using Canonic Signed Digit and Block based...
PDF
IMPROVING PSNR AND PROCESSING SPEED FOR HEVC USING HYBRID PSO FOR INTRA FRAME...
PDF
Vlsics08
PDF
Low complexity video coding for sensor network
H.265ImprovedCE_over_H.264-HarmonicMay2014Final
Video coding technology proposal by
Video coding technology proposal by
Video coding technology proposal by
Video coding technology proposal by
Evaluation and Analysis of Rate Control Methods for H.264/AVC and MPEG-4 Vide...
A Configurable and Low Power Hard-Decision Viterbi Decoder in VLSI Architecture
Deblocking_Filter_v2
THE H.264/MPEG4 AND ITS APPLICATIONS
International Journal of Engineering Research and Development
Serial parallel dataflow-pipelined processing architecture based accelerator ...
Built In Self Testing(BIST) Architecture for Motin Estimation and Computing A...
Evaluation and Analysis of Rate Control Methods for H.264/AVC and MPEG-4 Vide...
Aruna Ravi - M.S Thesis
"Quantizing Deep Networks for Efficient Inference at the Edge," a Presentatio...
HEVC intra coding
IRJET- Color Image Compression using Canonic Signed Digit and Block based...
IMPROVING PSNR AND PROCESSING SPEED FOR HEVC USING HYBRID PSO FOR INTRA FRAME...
Vlsics08
Low complexity video coding for sensor network

Recently uploaded (20)

PDF
KodekX | Application Modernization Development
PDF
Electronic commerce courselecture one. Pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Empathic Computing: Creating Shared Understanding
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
KodekX | Application Modernization Development
Electronic commerce courselecture one. Pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Mobile App Security Testing_ A Comprehensive Guide.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
sap open course for s4hana steps from ECC to s4
Empathic Computing: Creating Shared Understanding
Network Security Unit 5.pdf for BCA BBA.
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Per capita expenditure prediction using model stacking based on satellite ima...
NewMind AI Weekly Chronicles - August'25 Week I
Diabetes mellitus diagnosis method based random forest with bat algorithm
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Reach Out and Touch Someone: Haptics and Empathic Computing
Chapter 3 Spatial Domain Image Processing.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...

High Efficiency Video Codec

  • 1. High Efficiency Video Coding HEVC/H.265 Tejus Adiga M Department of Electronics and Communication, NMAMIT, Nitte. Presented By:
  • 2. A New Standard for Video Coding • Video is going richer, all growing the bit rate • Frame size– 4K to 8K Ultra HD • Temporal resolution - 24 FPS to 240 FPS • Color resolution, bit depth - 8bpc to 12 bpc • Stereo and 3D Video Technology • Process intensive Algorithms in consumer electronics is now affordable • Devices for Recording/Displaying HD to ultra HD video is affordable • Multi Threaded multi Core CPUs and hardware Accelerators • Hardware Video Decoders • Necessary video data rate grows faster than feasible network transport capacities • Better Video compression standard needed. • New ITU-T standard H265 addressing needs of an efficient video coder of future • Same Visual quality – 50% reduction in bitrate than H264/MPEG4 part 10. • Better visual quality – Same bitrate as of H264/MPEG4 part 10. 28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 2
  • 3. 28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 3 Block Diagram Fig 1: Block diagram of HEVC encoder CABAC: Context Adaptive Binary Arithmetic Coding. CTU: Coding Tree Unit. 64x64 Luma block (Y) and two 32x32 Chroma block (U and V) as in YUV 420 format. SAO: Sample Adaptive offset: Non linear amplitude mapping to better reconstruct original pixel amplitudes.
  • 4. 28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 4 Coding Modes • Intra Frame Coding (I Frames) • CTU to encode is predicted from previously encoded and decoded CTUs of upper rows and left column of the same frame. • Inter Frame Coding (P and B frame) • Coded using Motion Estimation and Motion Compensation or Skip mode. • P Frame: Coded with reference to Previously encoded and decoded frames. • B Frame: Coded with reference to Previous and Future encoded and decoded frames.
  • 5. 28 October 2015 Block Partitioning • Frame is partitioned into Non Overlapping 64x64 Coding Tree Units (CTU) • A CTU consists of 64x64 Luma Coding Tree Block (CTB) and two 32 x 32 Chroma CTB for U and V components. • Every CTB is further split into one or multiple Coding Unit (CU) in Quad tree structure. • Every CU has an associated Prediction Unit (PU) and Transform Unit (TU). • Prediction Unit (PU) is partitioning to perform Intra/Inter prediction. It has root in CU and can be further split down to 4x4 block including rectangle blocks like 8x4, 16x8 etc. • Transform Unit (TU) is partitioning to perform Transform and Entropy coding of Prediction Residual blocks down to 4x4 size. Department of Electronics and Communications, NMAMIT, Nitte. CTU Luma (Y) CTB CTB CTB CB CB CB CB CB CB CB CB CBCB 5
  • 6. 28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 6 Intra Frame Coding • Transform Unit size can be from 4x4 upto 32x32 • 33 Directional Angular prediction with Planar and DC prediction modes are used to predict a TB • A Prediction Block is formed with previously decoded boundary samples from spatially neighboring TBs. • A PB with minimum prediction error is selected using the error metric like SAD, MAD, SSE, MSE 𝑆𝑢𝑚 𝑂𝑓 𝐴𝑏𝑠𝑜𝑙𝑢𝑡𝑒 𝐷𝑖𝑓𝑓𝑒𝑟𝑒𝑛𝑐𝑒 (𝑆𝐴𝐷) = 𝐼 𝑥, 𝑦 − 𝑃𝐵 𝑥, 𝑦 • Prediction Residual block is found by 𝑅 𝑥, 𝑦 = 𝐼 𝑥, 𝑦 − 𝑃𝐵(𝑥, 𝑦)
  • 7. • Integer DCT is applied to Residual block with Butterfly computation. • Integer DCT of size 4x4, 8x8, 16x16 and 32x32 computed with fast Separable Butterfly computation. • Alternatively for only 4x4 residual block DST can be used as it better fit the statistical property that the residual amplitudes tend to increase as the distance from the boundary samples that are used for prediction becomes larger. • 28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 7 Transform 4x4 transform 8x8 transform
  • 8. 28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 8 Transform
  • 9. 28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 9 Scalar Quantization and Scaling • Integer DCT introduces Non Linearity. • DCT Matrix is split into two integer matrix with appropriate scaling and combined with Quantization to form Mf 𝑀𝑓 = 215 𝑆 𝑓 𝑄 𝑠𝑡𝑒𝑝 • Inverse Operation 𝑉𝑖= 𝑄𝑠𝑡𝑒𝑝. 26. 𝑆𝑖 Quantization and Scaling Inverse Quantization and Scaling
  • 10. 28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 10 Scalar Quantization and Scaling • Transformed Residual coefficients are quantized with Scalar Quantization. • Quantization Parameter (QP): • Based on constraints like target bitrate, quality a value in between 0 to 51 need to be specified termed as Quantization Parameter. • For every 6 QP value increase the Qstep doubles. • Lower the QP, higher the video quality but less compression • Quantization is done by multiplying Mf with Residual block. 𝑌 = 𝑀𝑓 𝑋 • Inverse Quantization at decoder side can be done by 𝑋 = 𝑉𝑖 𝑌
  • 11. • The selection of the coefficient scanning order depends on the directionalities of the intra picture prediction. • Scanning methods • Diagonal upright scanning: Default • Vertical Scanning: Used when the prediction direction is close to horizontal • Horizontal Scanning : Used when the prediction direction is close to vertical • Scanned Coefficients are Entropy Coded using Context Adaptive Binary Arithmetic Coding (CABAC) and formatted in bit stream format as specified by H265 NAL Unit Syntax 28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 11 Entropy Coding
  • 12. • Current frame is encoded using previously decoded frame as reference. • Motion Estimation and Motion Compensation is carried out at CB level to get he best match of current CB in the reference frame in the search window. • Offset (Δx, Δy) between current CB and motion estimated CB referred to as Motion Vector. 28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 12 Intra Picture Coding
  • 13. • Difference between current CB and motion estimated CB is computed to get the Prediction Block which is Transformed, quantized and entropy coded along with Motion Vectors. • Various Fast motion estimation algorithms are proposed to speedup the motion estimation process like Three Step, Logarithmic, Hexagonal, Diamond, Small Diamond etc. • Optimizations: • Motion Vector can be predicted spatially and temporally. • Motion Vector Merge: Average of previously encoded motion vectors of current frame. • Skip Mode: MVs are copied from MVs of some other CB. 28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 13 Encoding of motion Estimated Parameters
  • 14. • Due to block processing of CBs there occurs discontinuities in adjacent blocks. • To prevent excessive filtering filter are applied to PBs greater than 4x4 blocks. • Filter parameters β and tc are derived from QP. • Types of filtering: • Strong Filter: High variation in pixel values at boundary. P0, P1, P2 and Q0, Q1, Q2 are filtered with (1, 2, 2, 2, 1)/8, (1, 1, 1, 1)/4, and (2, 3, 1, 1, 1)/8 • Weak Filter: Slowly varying pixel values at boundary. P0 and Q0 are filtered with (8, 19, −1, 9, −3)/32 • No Filter: Skip filtering for intra frame 4x4 block, inter frame blocks whose MV derived from same reference frame. 28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 14 In Loop De-Blocking Filter
  • 15. 28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 15 Comparison of HEVC with H.264 Block Partitioning in H264 and HEVCSubjective quality comparison of H264 and HEVC
  • 16. • High degree of parallelism in decoding can take advantage of SIMD instruction sets like MMX, SSE, SSE2, 3D Now etc in Software Decoding. • As decoding operation is modular wrt CTUs it is better suited to run on Graphics processors • Dedicated VLSI Decoders can take advantage of modularity of HEVC to accelerate decoding. • Can provide better video quality for Real time video communication applications. • Efficient storage of Video. 28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 16 Advantages
  • 17. • Better suited for parallel processing. • HEVC will accelerate Video services on Mobile devices. • Competitors like VP9 from Google and Vorbis from XIPH.org provide royalty free codecs that is slightly inferior to HEVC. • HEVC Specification is not yet completely finalized. Opportunity to improve efficiency further. 28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 17 Conclusion and Future
  • 18. 1. Overview of the High Efficiency Video Coding (HEVC) Standard, G. J. Sullivan, J. R. Ohm, W. J. Han, and T. Wiegand, IEEE Transactions on Circuits and Systems for Video Technology, Vol 22, no 12, Jan 2013. 2. HEVC Complexity and Implementation Analysis, Frank Bossen, Benjamin Bross, Karsten Suhring, and David Flynn, IEEE Transactions on Circuits and Systems for Video Technology, vol. 22, no. 12, Jan 2013. 3. Comparison of the Coding Efficiency of Video Coding Standard – Including High Efficient Video Coding (HEVC), J.R. Ohm, G. J. Sullivan, H. Schwarz, T. K. Tan, T. Wiegand, IEEE Transactions on Circuits and Systems for Video Technology, vol. 22, no. 12, Jan 2013. 4. HEVC Deblocking Filter, Andrey Norkin, Gisle Bjøntegaard, Arild Fuldseth, Matthias Narroschke, Masaru Ikeda, Kenneth Andersson, Minhua Zhou, and Geert Van der Auwera, IEEE Transactions on Circuits and Systems for Video Technology, vol. 22, no. 12, Jan 2013. 5. Overview of H264/AVC video coding standard, T. Wiegand, G. J. Sullivan, G. Bjontegaard, and A. Luthra, IEEE Transactions on Circuits and Systems for Video Technology, vol 13, no 7, July 2003. 6. Overview of the scalable video coding extension of the H.264/AVC standard, H. Schwarz, D. Marpe, and T. Wiegand, IEEE Trans. Circuits Systems for Video Technology, vol. 17, no. 9, pp. 1103–1120, Sep. 2007. 7. HEVC: The New Gold Standard for Video Compression, Mahsa T. Pourazad, Colin Doutre, Maryam Azimi, and Panos Nasiopoulos, IEEE Consumer Electronics Magazine, July 2012. 8. White Paper: 4x4 Transformation and Quantization in H264 AVC, Iain Richardson. 9. A High-Throughput VLSI Architecture for Deblocking Filter in HEVC, Weiwei Shen, Qing Shang, Sha Shen, Yibo Fan, Xiaoyang Zeng, IEEE Trans. Circuits Systems for Video Technology, Vol 22, no 12, Jan 2013. 10. CE10: Core transform design for HEVC, A. Fuldseth, G. Bjøntegaard, M. Budagavi and V. Sze, JCTVC-G495, November 2011 11. ITU-T Recommendation H265, High efficiency video coding. 28 October 2015 Department of Electronics and Communications, NMAMIT, Nitte. 18 References