Fast Mode Decision Algorithm for Scalable Video Coding Based on Probabilistic Models

Similar documents
FAST SPATIAL LAYER MODE DECISION BASED ON TEMPORAL LEVELS IN H.264/AVC SCALABLE EXTENSION

Fast Decision of Block size, Prediction Mode and Intra Block for H.264 Intra Prediction EE Gaurav Hansda

Unit-level Optimization for SVC Extractor

A COST-EFFICIENT RESIDUAL PREDICTION VLSI ARCHITECTURE FOR H.264/AVC SCALABLE EXTENSION

One-pass bitrate control for MPEG-4 Scalable Video Coding using ρ-domain

Bit Allocation for Spatial Scalability in H.264/SVC

Block-based Watermarking Using Random Position Key

An Efficient Intra Prediction Algorithm for H.264/AVC High Profile

Adaptation of Scalable Video Coding to Packet Loss and its Performance Analysis

Computation-Scalable Multi-Path Motion Estimation Algorithm

Deblocking Filter Algorithm with Low Complexity for H.264 Video Coding

A Novel Deblocking Filter Algorithm In H.264 for Real Time Implementation

BANDWIDTH-EFFICIENT ENCODER FRAMEWORK FOR H.264/AVC SCALABLE EXTENSION. Yi-Hau Chen, Tzu-Der Chuang, Yu-Jen Chen, and Liang-Gee Chen

Complexity Reduced Mode Selection of H.264/AVC Intra Coding

An Efficient Mode Selection Algorithm for H.264

Scalable Video Coding

EFFICIENT PU MODE DECISION AND MOTION ESTIMATION FOR H.264/AVC TO HEVC TRANSCODER

Cross-Layer Optimization for Efficient Delivery of Scalable Video over WiMAX Lung-Jen Wang 1, a *, Chiung-Yun Chang 2,b and Jen-Yi Huang 3,c

Performance Comparison between DWT-based and DCT-based Encoders

CONTENT ADAPTIVE COMPLEXITY REDUCTION SCHEME FOR QUALITY/FIDELITY SCALABLE HEVC

Title Adaptive Lagrange Multiplier for Low Bit Rates in H.264.

A NOVEL SCANNING SCHEME FOR DIRECTIONAL SPATIAL PREDICTION OF AVS INTRA CODING

IBM Research Report. Inter Mode Selection for H.264/AVC Using Time-Efficient Learning-Theoretic Algorithms

SINGLE PASS DEPENDENT BIT ALLOCATION FOR SPATIAL SCALABILITY CODING OF H.264/SVC

Reduced 4x4 Block Intra Prediction Modes using Directional Similarity in H.264/AVC

Optimum Quantization Parameters for Mode Decision in Scalable Extension of H.264/AVC Video Codec

Fast Mode Decision for H.264/AVC Using Mode Prediction

STACK ROBUST FINE GRANULARITY SCALABLE VIDEO CODING

Sergio Sanz-Rodríguez, Fernando Díaz-de-María, Mehdi Rezaei Low-complexity VBR controller for spatialcgs and temporal scalable video coding

High Efficient Intra Coding Algorithm for H.265/HVC

For layered video encoding, video sequence is encoded into a base layer bitstream and one (or more) enhancement layer bit-stream(s).

On the impact of the GOP size in a temporal H.264/AVC-to-SVC transcoder in Baseline and Main Profile

Optimal Bitstream Adaptation for Scalable Video Based On Two-Dimensional Rate and Quality Models

An Efficient Table Prediction Scheme for CAVLC

ARTICLE IN PRESS. Signal Processing: Image Communication

Reduced Frame Quantization in Video Coding

HEVC. Complexity Reduction Algorithm for Quality Scalability in Scalable. 1. Introduction. Abstract

Motion Vector Coding Algorithm Based on Adaptive Template Matching

Fast Wavelet-based Macro-block Selection Algorithm for H.264 Video Codec

Real-time and smooth scalable video streaming system with bitstream extractor intellectual property implementation

FAST MOTION ESTIMATION DISCARDING LOW-IMPACT FRACTIONAL BLOCKS. Saverio G. Blasi, Ivan Zupancic and Ebroul Izquierdo

An Independent Motion and Disparity Vector Prediction Method for Multiview Video Coding

A Fast Intra/Inter Mode Decision Algorithm of H.264/AVC for Real-time Applications

Reducing/eliminating visual artifacts in HEVC by the deblocking filter.

A HIGHLY PARALLEL CODING UNIT SIZE SELECTION FOR HEVC. Liron Anavi, Avi Giterman, Maya Fainshtein, Vladi Solomon, and Yair Moshe

BANDWIDTH REDUCTION SCHEMES FOR MPEG-2 TO H.264 TRANSCODER DESIGN

ESTIMATION OF THE UTILITIES OF THE NAL UNITS IN H.264/AVC SCALABLE VIDEO BITSTREAMS. Bin Zhang, Mathias Wien and Jens-Rainer Ohm

NEW CAVLC ENCODING ALGORITHM FOR LOSSLESS INTRA CODING IN H.264/AVC. Jin Heo, Seung-Hwan Kim, and Yo-Sung Ho

Fast frame memory access method for H.264/AVC

IMPROVED CONTEXT-ADAPTIVE ARITHMETIC CODING IN H.264/AVC

Fast mode decision based on human noticeable luminance difference and rate distortion cost for H.264/AVC

Fast inter-prediction algorithm based on motion vector information for high efficiency video coding

Video Watermarking Algorithm for H.264 Scalable Video Coding

A Quantized Transform-Domain Motion Estimation Technique for H.264 Secondary SP-frames

Homogeneous Transcoding of HEVC for bit rate reduction

International Journal of Emerging Technology and Advanced Engineering Website: (ISSN , Volume 2, Issue 4, April 2012)

H.264/AVC BASED NEAR LOSSLESS INTRA CODEC USING LINE-BASED PREDICTION AND MODIFIED CABAC. Jung-Ah Choi, Jin Heo, and Yo-Sung Ho

Video Coding Using Spatially Varying Transform

Evaluation of H.264/AVC Coding Elements and New Improved Scalability/Adaptation Algorithm/Methods

[30] Dong J., Lou j. and Yu L. (2003), Improved entropy coding method, Doc. AVS Working Group (M1214), Beijing, Chaina. CHAPTER 4

H.264/AVC Baseline Profile to MPEG-4 Visual Simple Profile Transcoding to Reduce the Spatial Resolution

Low-complexity transcoding algorithm from H.264/AVC to SVC using data mining

Testing HEVC model HM on objective and subjective way

Fast Encoding Techniques for Multiview Video Coding

H.264 to MPEG-4 Transcoding Using Block Type Information

IN RECENT years, multimedia application has become more

Efficient MPEG-2 to H.264/AVC Intra Transcoding in Transform-domain

MULTIVIEW video is capable of providing viewers

Adaptive Up-Sampling Method Using DCT for Spatial Scalability of Scalable Video Coding IlHong Shin and Hyun Wook Park, Senior Member, IEEE

BLOCK MATCHING-BASED MOTION COMPENSATION WITH ARBITRARY ACCURACY USING ADAPTIVE INTERPOLATION FILTERS

Video compression with 1-D directional transforms in H.264/AVC

A COMPARISON OF CABAC THROUGHPUT FOR HEVC/H.265 VS. AVC/H.264. Massachusetts Institute of Technology Texas Instruments

LIST OF TABLES. Table 5.1 Specification of mapping of idx to cij for zig-zag scan 46. Table 5.2 Macroblock types 46

High Efficiency Video Coding (HEVC) test model HM vs. HM- 16.6: objective and subjective performance analysis

Department of Electrical Engineering, IIT Bombay.

An Improved H.26L Coder Using Lagrangian Coder Control. Summary

MCTF and Scalability Extension of H.264/AVC and its Application to Video Transmission, Storage, and Surveillance

Mode-Dependent Pixel-Based Weighted Intra Prediction for HEVC Scalable Extension

FAST MOTION ESTIMATION WITH DUAL SEARCH WINDOW FOR STEREO 3D VIDEO ENCODING

Video Inter-frame Forgery Identification Based on Optical Flow Consistency

Bit-Depth Scalable Coding Using a Perfect Picture and Adaptive Neighboring Filter *

Advanced Encoding Features of the Sencore TXS Transcoder

Fast Implementation of VC-1 with Modified Motion Estimation and Adaptive Block Transform

High-Performance VLSI Architecture of H.264/AVC CAVLD by Parallel Run_before Estimation Algorithm *

Fast Mode Assignment for Quality Scalable Extension of the High Efficiency Video Coding (HEVC) Standard: A Bayesian Approach

Xin-Fu Wang et al.: Performance Comparison of AVS and H.264/AVC 311 prediction mode and four directional prediction modes are shown in Fig.1. Intra ch

Scalable Video Coding in H.264/AVC

implementation using GPU architecture is implemented only from the viewpoint of frame level parallel encoding [6]. However, it is obvious that the mot

Upcoming Video Standards. Madhukar Budagavi, Ph.D. DSPS R&D Center, Dallas Texas Instruments Inc.

An Efficient Inter-Frame Coding with Intra Skip Decision in H.264/AVC

Optimizing the Deblocking Algorithm for. H.264 Decoder Implementation

Editorial Manager(tm) for Journal of Real-Time Image Processing Manuscript Draft

Fast intermode decision algorithm based on general and local residual complexity in H.264/ AVC

A comparison of CABAC throughput for HEVC/H.265 VS. AVC/H.264

Advanced Video Coding: The new H.264 video compression standard

FAST CODING UNIT DEPTH DECISION FOR HEVC. Shanghai, China. China {marcusmu, song_li,

Optimized architectures of CABAC codec for IA-32-, DSP- and FPGAbased

The Performance of MANET Routing Protocols for Scalable Video Communication

Decoding-Assisted Inter Prediction for HEVC

Fast H.264/AVC FRExt Intra Coding Using Belief Propagation

Transcription:

JOURNAL OF INFORMATION SCIENCE AND ENGINEERING 32, 931-945 (2016) Fast Mode Decision Algorithm for Scalable Video Coding Based on Probabilistic Models YU-CHE WEY 1, MEI-JUAN CHEN 1, CHIA-HUNG YEH 2 AND CHIA-YEN CHEN 3,* 1 Department of Electrical Engineering National Dong Hwa University Hualien, 974 Taiwan 2 Department of Electrical Engineering National Sun Yat-sen University Kaohsiung, 804 Taiwan 3,* Department of Computer Science and Information Engineering National University of Kaohsiung Kaohsiung, 811 Taiwan E-mail: ayen@nuk.edu.tw To reduce the computational complexity of the encoding process in Scalable Video Coding, we utilize the information of motion vector predictor (MVP) and the number of non-zero coefficients (NZC) to propose a fast mode decision algorithm. The probability models of MVP and the number of NZC are built to predict the partition mode in the enhancement layer. In addition, the search range of motion estimation is adaptively adjusted to further reduce computational complexity. Experiment results show that the proposed algorithm can reduce coding time by up to 76% in average and provide higher time saving and better performance than previous work. Keywords: scalable video coding, mode decision, motion estimation, motion vector predictor, enhancement layer, base layer 1. INTRODUCTION Scalable Video Coding (SVC) [1, 2] is an extended version of H.264/AVC, providing multi-layer encoding for various devices. SVC supports spatial, temporal and quality scalabilities which provide various picture sizes, frame rates and qualities for different layers, respectively. Due to the high correlation between base layer (BL) and enhancement layer [1], SVC improves the rate-distortion efficiency of the ELs using three kinds of inter-layer predictions: inter-layer motion prediction, inter-layer residual prediction and inter-layer intra prediction. In H.264/SVC, there are eight types of inter prediction modes following H.264/ AVC for macroblock (MB) modes; these modes are Mode SKIP, Mode 16 16, Mode 16 8, Mode 8 16, Mode 8 8, Mode 8 4, Mode 4 8 and Mode 4 4. In addition, there are two kinds of intra prediction modes, INTRA 16 16 and INTRA 4 4. To select the best mode for the current MB, the rate-distortion cost (R-D cost) of each mode should be calculated, and the mode that has the minimum R-D cost is chosen as the best mode. Many fast mode decision algorithms have been proposed to reduce the computational complexity of mode decision. Since Mode SKIP has the lowest complexity in all inter modes, [3] uses the coding information of the co-located MB in BL and the neighboring Received March 18, 2015; revised May 27, 2015; accepted August 18, 2015. Communicated by Jen-Tzung Chien. 931

932 YU-CHE WEY, MEI-JUAN CHEN, CHIA-HUNG YEH AND CHIA-YEN CHEN MBs of the EL to predict the SKIP mode. Wang et al. s method [4] is based on the priority-based mode decision (PBMD) and uses the R-D cost correlation between BL and EL to decide the mode priority in EL. In [5], the algorithm employs the correlation between BL and EL to predict the best mode of the EL and uses motion vector difference (MVD) of the BL to decide the search range of the EL to accelerate the encoding time. Kuo and Chan [6] propose a method based on the motion field distribution to efficiently determine the block mode for complexity reduction by likelihood. The search range has a significant impact on the coding time of motion estimation. Therefore, the definition of search range is also an important research issue in video coding. In [7], the authors propose an efficient motion re-estimation scheme for H.264 B-frame and P-frame transcoding by utilizing the maximum likelihood to evaluate motion vector candidates and predict the best candidate. Lee et al. [8] propose a fast motion estimation scheme by applying the adaptive search range (SR). This method is based on the heuristic rule observed from experiments of motion vector characteristics. The results show that it can reduce significant coding time while retaining good coding performance. Kim et al. [9] propose an efficient learning method to control the EL s search range according to the block modes of BL. Fast mode decision and motion estimation algorithms for SVC have been popular issues for a long time. Compared to H.264 / AVC, the coding complexity of SVC is relatively much higher due to its ability to fulfill a wider variety of user requirements. Many previous works use the inter-layer correlation to reduce the computational complexity. Most previous methods utilize just one parameter to determine the early termination of the mode decision; as such, the accuracy can be further improved. In this paper, in addition to utilizing the inter-layer correlation to decide the best mode at an early stage, we propose an algorithm which utilizes the probability models generated by motion vector predictor (MVP) and the number of non-zero coefficients (NZC) of Mode 16 16 in EL to find the most probable modes. Furthermore, the proposed method also shrinks the search range. Overall, the proposed method reduces the number of modes required to be tested and finds the suitable mode rapidly so that the encoding process of SVC can be accelerated significantly. 2. OBSERVATION AND ANALYSIS From experimental observations, we find that there are high correlations between the best mode with MVP and NZC in EL in the SVC. The observation motivated us to use various statistical analyses to find the presented probability model. In this section, we first observe the MVP and the number of NZC of Mode 16 16 in EL and record MVP and NZC from eight CIF sequences. We then analyze the features using Laplacian distributions. Finally, we combine this method with mode priority decision to make an early decision on the best mode. 2.1 Analysis of Motion Vector Predictor The starting search point for motion estimation in the current MB is determined by the median of motion vectors from the neighboring left, top and top-right MB. We use

FAST MODE DECISION ALGORITHM FOR SVC BASED ON PROBABILISTIC MODELS 933 the MVP to represent the motion characteristics of the current block. Usually, static blocks with less motion use larger size modes, like Mode 16 16. In contrast, high-motion blocks use smaller size modes, such as Mode 8 8. The MVP of Mode 16 16 in EL is analyzed to discover the correlation between the MVP of Mode 16 16 and the best mode of the MB. Eight sets of sequences with different complexities are used to analyze the MVP. The sequences are Akiyo, Foreman, Football, Soccer, Stefan, Coastguard, Table and News. These sequences contain differing amounts of motion. The base layer resolution is QCIF/CIF, with QP of 38. The enhancement layer resolution is CIF/4CIF, with QP of 32. The search range is 32, applied on 3 reference frames, the group of pictures size is 16, and the total number of frames is 150. Fig. 1 shows the probability of the horizontal component of the MVP in each final selected mode, where the probabilities in each subfigure sum up to 1. The subscripts Mode1, Mode2, Mode3 and Mode4 represent Mode 16 16, Mode 16 8, Mode 8 16 and Mode 8 8, respectively. The peak values of the probabilities in Figs. 1 (a) to (d) are 0.3913, 0.3581, 0.3901, and 0.3471, respectively. According to Fig. 1, when the associated mode in the EL is Mode 16 16, the probability distribution of the MVP tends to be zero or close to zero. When further subdivided into model with smaller blocks, the probability distribution model is more dispersed, as shown in Fig. 1 (d) when the best mode is Mode 8 8. (a) (b) (c) (d) Fig. 1. Probabilities of Mode 16 16 s MVP in EL for final selected modes with (a) Mode 16 16; (b) Mode 16 8; (c) Mode 8 16; and (d) Mode 8 8. 2.2 Analysis of Number of Non-Zero Coefficients The number of non-zero quantized coefficients can represent the complexity of block. From this viewpoint, we also analyze the correlation between the best mode and

934 YU-CHE WEY, MEI-JUAN CHEN, CHIA-HUNG YEH AND CHIA-YEN CHEN the number of NZC of Mode 16 16 in EL. The same sequences used in Section 2.1 are used in this section as well. The base layer resolution is QCIF/CIF, with QP of 28, 32, 36 and 40. The enhancement layer resolution is CIF/4CIF, with QP of 28, 32, 36 and 40. The search range is 32, applied on 3 reference frames, the group of pictures size is 16, and the total number of frames is 150. Fig. 2 shows the probabilities of the number of NZC in each mode, where the probabilities in each subfigure sum up to 1, and the subscripts Mode1, Mode2, Mode3 and Mode4 represent Mode 16 16, Mode 16 8, Mode 8 16 and Mode 8 8, respectively. As seen from Fig. 2 (a), the numbers of NZC in Mode 16 16 are less than other modes. The QPBL/QPEL values used in Fig. 2 are 28/28, and the observations are similar for all four QP pairs, namely 28/28, 32/32, 36/36, and 40/40. When the selected best mode has a smaller size, its number of NZC will have higher probabilities of being larger values, as seen in Figs. 2 (b) and (c) where the selected best modes are smaller than in Fig. 2 (a) and the NZC are more spread out. The phenomenon is even more pronounced in Fig. 2 (d), which has the smallest selected best mode. (a) (b) (c) (d) Fig. 2. Probabilities of Mode 16 16 s NZC in EL for final selected modes with (a) Mode 16 16; (b) Mode 16 8; (c) Mode 8 16; and (d) Mode 8 8. (BL: QCIF, EL: CIF); QP(28/28). 2.3 Mode Priority Decision by Base Layer As mentioned in [4], Wang et al. analyze the R-D cost correlation between the BL and the EL, and discover that the R-D costs of each sub-mbbl can be used to efficiently decide the mode priority of the EL. Eq. (1) shows the R-D costs of all sub-mbbl including Mode 8 8, Mode 8 4, Mode 4 8 and Mode 4 4 after sorting. In Eq. (1), JBL is a sorted set of R-D costs for sub-mb in BL, wherein the elements are sorted by increasing magnitude and given corresponding indices, such that J BL_1 <J BL_2 <J BL_3 <J BL_4. The minimum J in J BL is set to be the first priority and the maximum J is set to be the last one.

FAST MODE DECISION ALGORITHM FOR SVC BASED ON PROBABILISTIC MODELS 935 We use the R-D cost order of the BL sub-mb as EL s execution order for their corresponding mode. Mode 8 8, Mode 8 4, Mode 4 8 and Mode 4 4 in BL correspond to Mode 16 16, Mode 16 8, Mode 8 16 and Mode 8 8 in EL, respectively. For example, if the first mode priority in BL is Mode 8 4, then we will execute Mode 16 8 first in EL. The mode priority of EL is represented by Mode BL-p (p = 1 to 4). Mode BL-1 means the first priority mode and Mode BL-4 represents the last one. J BL = {J BL_P J BL_1 < J BL_2 < J BL_3 < J BL_4, p = 1 to 4} (1) 2.4 Adaptive Search Range We also analyze the correlation between the search range and the modes by experiments. In the coding of the base layer, the R-D cost from Mode 8 8 to Mode 4 4 are sorted and used as the coding order of enhancement layer Mode 16 16 to Mode 8 8. In the coding of the MB in the enhancement layer, we first check the corresponding mode in the base layer, if it is Mode SKIP, then according to Table 1 which empirically evaluates the relationship between the bit rate and the search range, the search range for the enhancement layer is set to 10, and coding is only performed for Mode SKIP and Mode 16 16. The search range has been determined through observations of previous experiments. According to Table 2, the decrement in ΔBit rate begins to taper off for search range larger than 4. Therefore, we set search range 4 as the minimum search range. If the corresponding mode in the base layer is not Mode SKIP, then the search range for the enhancement layer is determined based on Eq. (2). Table 1. Relationship between bit rate and search range for Mode SKIP in the base layer. SRSKIPBL SR = 6 SR = 8 SR = 10 SR = 12 ΔBit rate(%) 0.114% 0.012% 0.002% 0.003% Table 2. Analysis of the minimum SR for EL. Min SREL SR = 2 SR = 3 SR = 4 SR = 5 ΔBit rate(%) 0.124% 0.108% 0.085% 0.073% Through the experiments, we propose an adaptive search range algorithm to shrink the search range by the following conditions: (a) If an MB is only coded with Mode SKIP and Mode 16 16, the search range is set as 10. (b) Otherwise, the search range is set to 2 MVD BL. If MVD BL is less than 2, then the search range is set to 4 as shown in Eq. (2). SR EL = max{2 MVD BL, 4} (2) 3. PROPOSED ALGORITHM Our proposed algorithm uses statistic models to find the most probable candidate modes. The purpose is to calculate the best estimator from a known probability density

936 YU-CHE WEY, MEI-JUAN CHEN, CHIA-HUNG YEH AND CHIA-YEN CHEN function. From previous analyses of MVP and NZC, we can use the probability density function to help us predict the candidate modes of the current block. By experiment results, these two probability distributions are similar and can be approximated as Laplacian distributions. We model the probability distribution of MVP of Mode 16 16 as shown in Eq. (3) and NZC as shown in Eq. (4). P MVP P MVP P MVP MVP Modei MVP Modei x MVP Modei y 1 MVP 1 MVP i 2 2 imvp, x imvp, x imvp, y imvp, y 1 NZC P NZC Mode i 2 i, NZC i, NZC x i, mvpx y i, mvpy exp exp, 1,2,3,4 i, NZC NZC exp, i 1,2,3, 4 (3) (4) where i and θ i are the standard deviation and the median of all MVP and NZC of Mode 16 16 when Mode i is selected as the best mode. In Eqs. (3) and (4), i=1 represents Mode 16 16, i=2 represents Mode 16 8, i=3 represents Mode 8 16, i=4 represents Mode 8 8. In Eq. (3), i and i are the standard deviation and the median of MVP for Mode 16 16 when Mode i is selected as the best mode. In the experiments, the i values are as shown in Table 3, and i is set to 0. Table 3. Standard deviation for the MVP when Mode i is selected as the best mode. Mode i MVP-X MVP-Y Mode 1 42.4438 16.3960 Mode 2 47.0289 22.8491 Mode 3 42.8754 22.3743 Mode 4 45.4210 20.5889 In Eq. (4), the probability models based on different best modes and QP have corresponding parameters. Table 4 shows the parameters for the MVP probability model under different best modes. We have observed that the values of and θ vary according to the QP, therefore, we use the generated from QP=(28, 32, 36, 40) to approximate the graph for each mode as shown in Figs. 3 and 4. According to different QPs, the values of Modei and Modei for probability models of different modes can be approximated by curve approximations, as shown in Eqs. (5) and (6), and the curve parameters for different modes are shown in Tables 5 and 6. Modei = A i QP 2 + B i QP + C i (5) Modei = INT (E i QP + F i ) (6) After determining the search range, we code with Mode SKIP and Mode 16 16 and record the MVP (in both X and Y directions) for Mode 16 16 and the number of NZC. The data are input into the probability models in Eqs. (3) and (4) to calculate the probability of each candidate mode for being the best mode. The mode numbers of the most

FAST MODE DECISION ALGORITHM FOR SVC BASED ON PROBABILISTIC MODELS 937 Table 4. Values of and for NZC probability models. (BL:QCIF/EL:CIF) QP = 28 QP = 32 QP = 36 QP = 40 Mode 1 3.63 0 1.77 0 2.43 0 1.29 0 Mode 2 5.94 1 3.22 0 4.19 0 2.4 0 Mode 3 5.83 1 3.15 0 4.23 0 2.29 0 Mode 4 8.70 4 5.11 2 6.48 3 4.41 1 (BL:CIF/EL:4CIF) QP = 28 QP = 32 QP = 36 QP = 40 Mode 1 7.94 0 5.60 0 3.53 0 3.44 0 Mode 2 10.58 1 7.99 1 6.08 0 5.05 0 Mode 3 11.74 2 8.66 1 6.18 1 5.32 0 Mode 4 14.96 7 10.31 5 7.97 3 7.27 1 Table 5. Curve parameters for approximating the values of different modes. (BL:QCIF/EL:CIF) (BL:CIF/EL:4CIF) Mode i A i B i C i Mode i A i B i C i Mode 1 0.010 0.96 21.59 Mode 1 0.04 2.78 58.30 Mode 2 0.014 1.28 30.30 Mode 2 0.02 2.12 50.84 Mode 3 0.112 1.08 26.96 Mode 3 0.03 2.90 65.86 Mode 4 0.024 0.97 45.26 Mode 4 0.06 4.77 100.9 Table 6. Curve parameters for approximating the values of different modes. (BL:QCIF/EL:CIF) (BL:CIF/EL:4CIF) Mode i E i F i Mode i E i F i Mode1 0.00 0.0 Mode1 0.00 0.0 Mode2 0.07 2.8 Mode2 0.10 3.9 Mode3 0.07 2.8 Mode3 0.15 6.1 Mode4 0.20 9.3 Mode4 0.50 21 (a) (b) (c) (d) Fig. 3. Graphs for QP and of NZC probability models for different modes (BL:QCIF, EL:CIF) (a) Mode 16 16; (b) Mode 16 8; (c) Mode 8 16; (d) Mode 8 8.

938 YU-CHE WEY, MEI-JUAN CHEN, CHIA-HUNG YEH AND CHIA-YEN CHEN (a) (b) (c) (d) Fig. 4. Graphs for QP and of NZC probability models for different modes (BL: CIF, EL: 4CIF) (a) Mode 16 16; (b) Mode 16 8; (c) Mode 8 16; (d) Mode 8 8. probable candidate modes predicted are represented by i MVP and i NZC as in Eqs. (7) and (8), where i MVP represents the mode with the highest probability as predicted by MVP and i NZC represents the mode with the highest probability as predicted by NZC. i MVP = arg i MaxP MVP Modei(MVP), i = 1, 2, 3, 4 (7) i NZC = arg i MaxP NZC Modei(NZC), i = 1, 2, 3, 4 (8) If the candidate modes i MVP and i NZC include both Mode 16 16 and Mode 8 8, as in Eq. (9), then the candidate modes are deemed inaccurate; in which case, all modes will be evaluated and the algorithm will not make an early termination. Otherwise, the algorithm proceeds to make an early termination by executing the following steps. The first mode (p=1) obtained by Eq. (1) is selected for coding. The result is compared with the predictions made by Eqs. (3) and (4), if the resultant mode is the same as the predicted mode, then the algorithm makes an early termination. Otherwise, the next mode in the sequence is selected for coding, and the process repeats itself, until modes predicted by Eqs. (3) and (4) have been used for coding. Once modes predicted by Eqs. (3) and (4) have been used for coding, the algorithm makes an early termination to reduce the coding time. i MVP i NZC == 3 (9)

FAST MODE DECISION ALGORITHM FOR SVC BASED ON PROBABILISTIC MODELS 939 We utilize the information of Mode 16 16 to calculate the most probable mode as the candidate mode in our algorithm. Table 7 shows the hit rate of selecting the correct mode by using different estimators. When only one of these two candidate modes generated by probability models of MVP (Mode jmvp ) and NZC (Mode jnzc ) is used to predict the best mode, the hit rate would be under 66%. If we consider both candidate modes to be the best mode, the hit rate will increase to 77%. Table 7. Mode hit rate by probability models. Mode Mode i MVP Mode inzc Mode imvp and Mode inzc Hit Rate 58.76% 65.23% 77.56% The flowchart of the proposed fast encoding algorithm is shown in Fig. 5. We use the information of co-located MB in BL and the Mode 16 16 in EL to make an early selection of the best mode of EL in order to reduce the number of the candidate modes. The details of our algorithm are described as follows: Step 1: Check the co-located MB in BL. If it is coded by Mode SKIP, the current MB in EL will only encode with Mode SKIP and Mod 16 16. The search range will be set to 10; otherwise the search range will be set as Eq. (2), then go to step 2. Step 2: Evaluate Mode SKIP and Mode 16 16 first, and calculate the probabilities of candidate modes with the MVP according to Eq. (3) and the number of NZC according to Eq. (4) to generate two of the most likely candidate modes. If the two generated candidate modes include both Mode 16 16 and Mode 8 8, it means the prediction results are not very consistent, evaluate all modes; otherwise, go to step 3. Step 3: Use mode priority defined in Section 2.3 as an order of mode checking. If candidate modes generated from step 2 are all evaluated, then an early termination on the mode decision is made. Table 8. Probability of executing each step in the proposed algorithm. Step 1 Step 2 Step 3 Bus 48.54% 10.54% 40.92% Foreman 51.35% 8.21% 40.44% Mobile 55.78% 7.12% 37.10% M.D. 76.25% 3.52% 20.23% Table 8 shows the probabilities of executing the steps in the proposed algorithm for four different test sequences. The probabilities of executing each step in the proposed algorithm differ according to the motion characteristics and the image complexities. Sequences with less motion have higher probabilities of termination at step 1, whereas sequences with more motion or higher complexities have higher probabilities of termination at step 3.

940 YU-CHE WEY, MEI-JUAN CHEN, CHIA-HUNG YEH AND CHIA-YEN CHEN Fig. 5. Flowchart of the proposed algorithm. 4. EXPERIMENTAL RESULTS The proposed algorithm is implemented with the JSVM 9.18 reference software [10]. The training sets used in our work are Akiyo, Foreman, Football, Soccer, Stefan, Coastguard, Table and News, which are different from the test sets. In this work, there are twelve test sets, among the test sets, Bus, City, Crew, Football, Foreman, Harbour, Mobile, and M.D. have resolutions of QCIF(176 144)/CIF(352 288), and City, Crew, Harbour, and Soccer have resolutions of CIF(352 288)/4CIF(704 576). Out of these video sequences, Bus and Mobile have larger motion vectors. Table 9 shows the details of the experimental settings. We compare the performance of our algorithm with Lu and Martin s method in [5]. Five measurements TS, PSNR,

FAST MODE DECISION ALGORITHM FOR SVC BASED ON PROBABILISTIC MODELS 941 BR, BDPSNR and BDBR [11] are used to evaluate the performance of the proposed algorithm. TS, PSNR and BR are metrics defined in Eqs. (10) to (12). TimeJSVM Timeproposed Time saving TS 100% (10) Time JSVM PSNR = PSNR proposed PSNR JSVM (11) BRproposed BRJSVM BR 100% (12) BR JSVM Table 9. Experimental environment. JSVM reference software JSVM. 9.18 PC-CPU Intel(R) Core(TM) i5-3570 3.4GHZ Encoding format Hierarchical B PC-RAM 4.00GB GOP 16 Frame encoded 150 Search range 32 Motion estimation Full search Entropy coding CABAC Frame size QCIF/CIF, CIF/4CIF Table 10. Performance comparisons of the proposed algorithm with Lu s algorithm in different QPs (QPBL/QPEL = 30/25, 30/30, 30/35) for QCIF/CIF spatial scalability. Seq. QP Lu [5] Proposed ΔPSNR ΔBR TS ΔPSNR ΔBR TS 30/25 0.12 1.51 62.25% 0.05 0.54 65.86% Bus 30/30 0.09 1.08 62.86% 0.06 0.24 67.25% 30/35 0.05 0.45 63.77% 0.05 0.09 68.13% 30/25 0.04 1.86 67.84% 0.10 0.30 76.45% City 30/30 0.03 1.03 69.04% 0.12 0.10 78.02% 30/35 0.02 0.12 70.47% 0.08 0.73 78.03% 30/25 0.03 1.96 60.58% 0.07 0.23 68.15% Crew 30/30 0.01 1.02 61.29% 0.08 0.42 69.62% 30/35 0.03 0.68 62.25% 0.06 0.74 71.38% 30/25 0.05 0.92 57.79% 0.03 0.27 56.80% Football 30/30 0.05 0.48 58.29% 0.05 0.06 58.72% 30/35 0.03 0.17 59.22% 0.02 0.16 60.45% 30/25 0.14 1.87 63.00% 0.12 0.41 73.56% Foreman 30/30 0.07 0.61 64.23% 0.12 0.53 74.47% 30/35 0.03 0.24 65.22% 0.06 0.42 75.23% 30/25 0.16 0.81 68.19% 0.04 0.43 75.77% Harbour 30/30 0.07 0.60 68.77% 0.05 0.00 75.94% 30/35 0.04 0.14 69.95% 0.06 0.29 76.25% Average 0.06 0.84 64.17% 0.07 0.05 70.56%

942 YU-CHE WEY, MEI-JUAN CHEN, CHIA-HUNG YEH AND CHIA-YEN CHEN Table 11. Performance comparisons of the proposed algorithm with Lu s algorithm in the same QPs (QP BL /QP EL = 28/28, 32/32, 36/36, 40/40) for QCIF/CIF spatial scalability. Seq. Lu [5] Proposed BDPSNR BDBR TS BDPSNR BDBR TS Bus 0.10 1.96% 63.83% 0.10 1.94% 69.62% Foreman 0.07 1.44% 67.79% 0.10 1.94% 76.34% Mobile 0.06 1.09% 69.88% 0.08 1.94% 76.25% M.D. 0.02 0.43% 80.19% 0.01 0.29% 81.85% Average 0.06 1.23% 70.42% 0.07 1.53% 76.02% Table 12. Performance comparisons of the proposed algorithm with Lu s algorithm for CIF/4CIF spatial scalability Seq. Lu [5] Proposed CIF/4CIF BDPSNR BDBR TS BDPSNR BDBR TS City 0.02 0.38% 59.13% 0.03 0.97% 76.93% Crew 0.02 0.60% 59.39% 0.04 1.25% 72.28% Harbour 0.04 0.97% 57.21% 0.04 1.17% 73.77% Soccer 0.04 1.05% 59.85% 0.05 1.24% 72.48% Average 0.03 0.75% 58.90% 0.04 1.16% 73.87% Table 13. The actual encoding time of the proposed algorithm and time saving at different QPs (QPBL/QPEL = 30/25, 30/30, 30/35) for QCIF/CIF spatial scalability. Seq. QP Original coding time Proposed coding time (Seconds) (Seconds) Time Saving 30/25 26891 9178 65.86% Bus 30/30 27097 8871 67.25% 30/35 26835 8550 68.13% 30/25 24714 5819 76.45% City 30/30 24709 5428 78.02% 30/35 24504 5381 78.03% 30/25 27822 8861 68.15% Crew 30/30 27825 8453 69.62% 30/35 27714 7929 71.38% 30/25 28257 12205 56.80% Football 30/30 28404 11724 58.72% 30/35 28152 11132 60.45% 30/25 25532 6748 73.56% Foreman 30/30 25663 6519 74.47% 30/35 25424 6297 75.23% 30/25 28042 6792 75.77% Harbour 30/30 27793 6686 75.94% 30/35 27783 6597 76.25% The performance of our proposed algorithm is compared with Lu and Martin s method shown in Tables 10 to 12, and the actual encoding time of the proposed algorithm is shown in Table 13. Regardless of the QP s between BL and EL, higher coding

FAST MODE DECISION ALGORITHM FOR SVC BASED ON PROBABILISTIC MODELS 943 efficiency with lower bitrates can be achieved by our algorithm. The results show that the proposed algorithm can efficiently and accurately select the best mode. In high motion sequences such as Bus, Football, or Soccer, the abundance in block information leads to better prediction and better performance. For higher resolution sequences, it is clear that our algorithm can achieve higher time saving than Lu and Martin s method. Nevertheless, the performance of our proposed algorithm might still be ineffective for R-D performance of high resolution videos. Therefore, in the future, we will analyze the characteristics of high resolution videos and focus on a solution to improve the performance of the proposed method. 5. EXPERIMENTAL SETUP This paper proposes an algorithm for fast mode decision based on statistic models. The proposed algorithm utilizes the probability models generated by motion vector predictor (MVP) and the number of non-zero coefficients (NZC) of Mode 16 16 in EL to determine the most probable modes. As experiment results demonstrate, in addition to being able to efficiently and accurately select the best mode, the proposed algorithm is able to adaptively reduce the search range for motion estimation. Overall, the proposed method achieves up to 76% time saving on average with better coding performance in terms of coding time when compared to prior work. REFERENCES 1. T. Wiegand, G. Sullivan, J. Reichel, H. Schwarz, and M. Wien, Joint Draft ITU-T Rec. H.264 ISO/IEC 14496-10/Amd. 3 scalable video coding, Joint Video Team (JVT) JVT-X201, Vol. 108, 2007, pp. 1990. 2. H. Schwarz, D. Marpe, and T. Wiegand, Overview of the scalable video coding extension of the H.264/AVC standard, IEEE Transactions on Circuits and Systems for Video Technology, Vol. 17, 2007, pp. 1103-1120. 3. L. Shen, Y. Sun, Z. Liu, and Z. Zhang, Efficient SKIP mode detection for coarse grain quality scalable video coding, IEEE Signal Processing Letters, Vol. 17, 2010, pp. 887-890. 4. T.-H. Wang, M.-J. Chen, M.-C. Chi, S.-F. Huang, and C.-H. Yeh, Computationscalable algorithm for scalable video coding, IEEE Transactions on Consumer Electronics, Vol. 57, 2011, pp. 1194-1202. 5. X. Lu and G. R. Martin, Fast mode decision algorithm for the H.264/AVC scalable video coding extension, IEEE Transactions on Circuits and Systems for Video Technology, Vol. 23, 2013, pp. 846-855. 6. T.-Y. Kuo and C.-H. Chan, Fast variable block size motion estimation for H.264 using likelihood and correlation of motion field, IEEE Transactions on Circuits and Systems for Video Technology, Vol. 16, 2006, pp. 1185-1195. 7. S.-C. Huang, C.-T. Hsu, and M.-J. Chen, Efficient motion re-estimation for H.264 B-and P-frame transcoding by using maximun likelihood, in Proceedings of International Conference on Electronics and Information Engineering, 2010, pp. 557-561.

944 YU-CHE WEY, MEI-JUAN CHEN, CHIA-HUNG YEH AND CHIA-YEN CHEN 8. J. Lee, M. Choi, Y. Cho, J. Kim, and W.-K. Cho, Fast H.264/AVC motion estimation algorithm using adaptive search range, in Proceedings of the 12th International Symposium on Integrated Circuits, 2009, pp. 336-339. 9. B.-G. Kim, K. Reddy, and K.-W. Lim, Dynamic search range control algorithm for inter-frame coding in scalable video coding, in Proceedings of IEEE International Conference on Multimedia and Expo, 2009, pp. 225-228. 10. H. Schwarz, M. Wien, and J. Vieron, JSVM software manual, ISO/IEC JTC1/SC29/ WG11 and ITU-T SG16 Q, Vol. 6, 2006. 11. G. Bjontegaard, Calcuation of average PSNR differences between RD-curves, Doc. VCEG-M33 ITU-T Q6/16, Austin, TX, USA, 2001. Yu-Che Wey ( ) received B.S. degree from Chung Yuan University in 2010 and the M.S. degree from the Department of Electrical Engineering, National Dong Hwa University, Hualien, Taiwan, in 2013. His research interest is fast mode decision of scalable video coding (SVC). Mei-Juan Chen ( ) received her B.S., M.S., and Ph.D. degrees in Electrical Engineering from National Taiwan University, Taipei, in 1991, 1993, and 1997, respectively. She was an Assistant Professor (1997-2000) and an associate Professor (2000-2005) in the Department of Electrical Engineering, National Dong Hwa University, Hualien, Taiwan. Since August 2005, she has been a Professor of the Department of Electrical Engineering, National Dong Hwa University. Her research topics include image/video processing, video compression, motion estimation, error concealment and video transcoding. In 1993 and 1997, she was the recipient of the Dragon Paper Awards and the Xeror Paper Award. She was also the recipient of the 2005 K. T. Li Young Researcher Award from ACM Taipei/Taiwan Chapter for her contribution to video signal codec technique. In 2006, she received the Distinguished Young Engineer Award from the Chinese Institute of Electrical Engineering, Taiwan. In 2005 and 2012, she received the Jun S. Huang Memorial Foundation Best Paper Awards. She received IPPR society Best Paper Awards in 2013 and 2015. In 2014, she received the Best Paper Award from National Symposium on Telecommunication. She has served as Associate Editor for the EURASIP Journal on Advances in Signal Processing since 2008.

FAST MODE DECISION ALGORITHM FOR SVC BASED ON PROBABILISTIC MODELS 945 Chia-Hung Yeh ( ) received his B.S. and Ph.D. degrees from National Chung Cheng University, Taiwan, in 1997 and 2002, respectively, both from the Department of Electrical Engineering. Dr. Yeh joined the Department of Electrical Engineering, National Sun Yat-sen University as an Assistant Professor in 2007 and became an Associate Professor in 2010. In February 2013, Dr. Yeh is promoted to a Full Professor. Dr. Yeh s research interests include multimedia communication, multimedia database management, and image/audio/video signal processing. He served on the Editorial Board of the Journal of Visual Communication and Image Representation, and the EURASIP Journal on Advances in Signal Processing. In addition, he has rich experience in organizing various conferences serving as keynote speaker, session chair, and technical program committee and program committee member for international/domestic conferences. Dr. Yeh has co-authored more than 150 technical international conferences and journal papers and holds 42 patents in the U.S., Taiwan, and China. He received the 2007 Young Researcher Award of NSYSU, the 2011 Distinguished Young Engineer Award from the Chinese Institute of Electrical Engineering, the 2013 Distinguished Young Researcher Award of NSYSU, the 2013 IEEE MMSP Top 10% Paper Award, and the 2014 IEEE GCCE Outstanding Poster Award. Chia-Yen Chen ( ) received her B.Sc. and M.Sc.(Hon), as well as Ph.D. degrees from the Department of Computer Science, at the University of Auckland, New Zealand, in 1996, 1999 and 2004, respectively. She has been a Lecturer in the Department of Computer Science at the University of Auckland from 2002 to 2006, an Assistant Professor in the Department of Electrical Engineering at National Chung Cheng University from 2006 to 2007. She joined the Department of Computer Science and Information Engineering at National University of Kaohsiung as an assistant Professor in 2007, and was promoted to Associate Professor in 2013. Dr. Chen s research interests include 3D reconstructions, computer vision, as well as augmented reality and related applications. Since 2007, she has directed over 10 projects related to computer vision and 3D reconstructions, from the Ministry of Science and Technology in Taiwan. She has over 50 published journal and conference papers since 2011, and her papers have received IPPR society Best Paper Award in 2014, as well as Excellent paper awards in NCWIA 2014 and ITAOI2015 and other conferences.