{"title":"一个使用可逆DCT的无损H.263视频编解码器","authors":"S. Gharbi, M. El-Sharkawy, P. Salama, M. Rizkalla","doi":"10.1109/ICEEC.2004.1374481","DOIUrl":null,"url":null,"abstract":"Unified lossless and lossy image coding system is useful for various applications, since we can reconstruct lossy and lossless images from a part and the whole of the encoded data, respectively. This coding system can be realized by using reversible transforms. Reversible wavelet transform (R WT), Lossless-DCT (LDCT) and reversible Walsh-Hadamard transform (R WHT) have been proposed as reversible transforms. In this paper, an N-point reversible discrete cosine transform (RDCT) based H.263 video codec is presented, then 8-point RDCT is obtained by substituting the 2 and 4-point reversible transforms for 2 and 4-point transforms which compose 8-point discrete cosine transform (DCT), respectively. Integer input signal can be losslessly recovered, although the transform coefficients are integer numbers. The RDCT is then implemented on the H.263 video codec. Simulations of the RDCT-based H.263 shows a petfect reconstruction of the original video sequence in lossless mode, and lossy compression efJiciencies comparable to those obtained with the conventional fast DCT-based H.263 in low bit rates. where L.1 corresponds to downward truncation, 80 and el are integer transform coefficients and ~0 and X I are integer inputs. If the real numbers CO and C I satisfy CO C I 5 0, this transform becomes reversible. If the floor functions are deleted, the determinant of the transform matrix becomes (1 CO cl). Therefore redundancy occurs in transform domain, when co cI < 0. This problem is avoided by using the following transform instead: It is obvious that this transform is reversible for any co and c1. If the floor functions are deleted, the coefficients of xo and X I of 81 become cI and ( I+ CO cl), respectively, that is, the determinant becomes 1. However, the problem that the dynamic range is nonuniform remains. The dynamic range can become uniform by using the following transform instead: I. THE REVERSIBLE DISCRETE COSINE TRANSFORM: RDCT In this section, a reversible discrete cosine transform (RDCT) is presented. When integer input signal is transformed by DCT, the transform Eoefficients become real. Therefore the quantization step must be reduced in order to reconstruct input losslessly. This results in low compession efficiency. where the transform coefficients are and Oz. a) 2-Point Reversible Transform: Let's consider the following 2-point transform: 0-7803-8575-6/04/$20.00 02004 IEEE 407 Figure 1 : 2-Point Reversible Transform Ladder Network. (3) Figure 1 shows the ladder network for the 2-point reversible transform, where quantizer, R, represents rounding to the nearest integer, xi are integer inputs, 0i are integer outputs and ci are real multipliers. If the floor functions are deleted, the coefficients of xo and XI of 81 become cl and (1+ CO cl), respectively, and those of 02 become (1+ C I CZ) and (CO+ c2f CO C I c2), respectively, Therefore, the determinant becomes 1 : [:]=[I CO +c, +CoCqC, I [ : ; ] (4) The inverse transform is as follows : b) N-Point Reversible Transform The 2-point reversible transform can be easily generalized into N-point reversible transform as follows: -1 N-1 where c = c = 0 and the transform coefficients are 01, 0 2 ,. . ., eN. The Inverse transform is as follows: j=O j=N e, = e,,, LZci,.ei + osJ J + O S , (7) c) 8-Point Reversible Discrete Cosine Transform : A normalized 8-point Reversible DCT (RDCT) is obtained by comparing Equation (6) with N =8 with the normalized 8-point DCT. However, we can obtain RDCT more easily, since the 8-point DCT can be decomposed into 2-point and 4-point transforms that could be replaced with the corresponding ladder networks. It is obvious that the whole transform is reversible, when reversible transforms are substituted for every transform in Figure 2. Figure 2 : 8-Point DCT Decomposition The DCT decomposition leads to three different transforms as shown in Figure 3. To obtain the coefficients CO, cI and cz of the 2-point reversible transform in Figure 3.a, we just need to compare it with Eq. (4). This leads to:","PeriodicalId":180043,"journal":{"name":"International Conference on Electrical, Electronic and Computer Engineering, 2004. ICEEC '04.","volume":"61 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2004-09-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"A lossless H.263 video codec using the reversible DCT\",\"authors\":\"S. Gharbi, M. El-Sharkawy, P. Salama, M. Rizkalla\",\"doi\":\"10.1109/ICEEC.2004.1374481\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Unified lossless and lossy image coding system is useful for various applications, since we can reconstruct lossy and lossless images from a part and the whole of the encoded data, respectively. This coding system can be realized by using reversible transforms. Reversible wavelet transform (R WT), Lossless-DCT (LDCT) and reversible Walsh-Hadamard transform (R WHT) have been proposed as reversible transforms. In this paper, an N-point reversible discrete cosine transform (RDCT) based H.263 video codec is presented, then 8-point RDCT is obtained by substituting the 2 and 4-point reversible transforms for 2 and 4-point transforms which compose 8-point discrete cosine transform (DCT), respectively. Integer input signal can be losslessly recovered, although the transform coefficients are integer numbers. The RDCT is then implemented on the H.263 video codec. Simulations of the RDCT-based H.263 shows a petfect reconstruction of the original video sequence in lossless mode, and lossy compression efJiciencies comparable to those obtained with the conventional fast DCT-based H.263 in low bit rates. where L.1 corresponds to downward truncation, 80 and el are integer transform coefficients and ~0 and X I are integer inputs. If the real numbers CO and C I satisfy CO C I 5 0, this transform becomes reversible. If the floor functions are deleted, the determinant of the transform matrix becomes (1 CO cl). Therefore redundancy occurs in transform domain, when co cI < 0. This problem is avoided by using the following transform instead: It is obvious that this transform is reversible for any co and c1. If the floor functions are deleted, the coefficients of xo and X I of 81 become cI and ( I+ CO cl), respectively, that is, the determinant becomes 1. However, the problem that the dynamic range is nonuniform remains. The dynamic range can become uniform by using the following transform instead: I. THE REVERSIBLE DISCRETE COSINE TRANSFORM: RDCT In this section, a reversible discrete cosine transform (RDCT) is presented. When integer input signal is transformed by DCT, the transform Eoefficients become real. Therefore the quantization step must be reduced in order to reconstruct input losslessly. This results in low compession efficiency. where the transform coefficients are and Oz. a) 2-Point Reversible Transform: Let's consider the following 2-point transform: 0-7803-8575-6/04/$20.00 02004 IEEE 407 Figure 1 : 2-Point Reversible Transform Ladder Network. (3) Figure 1 shows the ladder network for the 2-point reversible transform, where quantizer, R, represents rounding to the nearest integer, xi are integer inputs, 0i are integer outputs and ci are real multipliers. If the floor functions are deleted, the coefficients of xo and XI of 81 become cl and (1+ CO cl), respectively, and those of 02 become (1+ C I CZ) and (CO+ c2f CO C I c2), respectively, Therefore, the determinant becomes 1 : [:]=[I CO +c, +CoCqC, I [ : ; ] (4) The inverse transform is as follows : b) N-Point Reversible Transform The 2-point reversible transform can be easily generalized into N-point reversible transform as follows: -1 N-1 where c = c = 0 and the transform coefficients are 01, 0 2 ,. . ., eN. The Inverse transform is as follows: j=O j=N e, = e,,, LZci,.ei + osJ J + O S , (7) c) 8-Point Reversible Discrete Cosine Transform : A normalized 8-point Reversible DCT (RDCT) is obtained by comparing Equation (6) with N =8 with the normalized 8-point DCT. However, we can obtain RDCT more easily, since the 8-point DCT can be decomposed into 2-point and 4-point transforms that could be replaced with the corresponding ladder networks. It is obvious that the whole transform is reversible, when reversible transforms are substituted for every transform in Figure 2. Figure 2 : 8-Point DCT Decomposition The DCT decomposition leads to three different transforms as shown in Figure 3. To obtain the coefficients CO, cI and cz of the 2-point reversible transform in Figure 3.a, we just need to compare it with Eq. (4). This leads to:\",\"PeriodicalId\":180043,\"journal\":{\"name\":\"International Conference on Electrical, Electronic and Computer Engineering, 2004. ICEEC '04.\",\"volume\":\"61 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2004-09-05\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"International Conference on Electrical, Electronic and Computer Engineering, 2004. ICEEC '04.\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/ICEEC.2004.1374481\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Conference on Electrical, Electronic and Computer Engineering, 2004. ICEEC '04.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICEEC.2004.1374481","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
摘要
统一的无损和有损图像编码系统适用于各种应用,因为我们可以分别从部分和全部编码数据中重建有损和无损图像。这种编码系统可以通过可逆变换来实现。可逆小波变换(R WT)、无损dct (LDCT)和可逆Walsh-Hadamard变换(R WHT)被提出作为可逆变换。本文提出了一种基于H.263视频编解码器的n点可逆离散余弦变换(RDCT),然后用2点可逆变换和4点可逆变换分别代替构成8点离散余弦变换(DCT)的2点和4点可逆变换得到8点离散余弦变换。整数输入信号可以无损恢复,虽然变换系数是整数。然后在H.263视频编解码器上实现RDCT。仿真结果表明,基于rct的H.263在无损模式下可以完美地重建原始视频序列,在低比特率下的有损压缩效率可与传统的基于dct的H.263相比。其中l1对应向下截断,80和el为整数变换系数,~0和xi为整数输入。如果实数C和C满足,这个变换是可逆的。如果删除底函数,则变换矩阵的行列式变为(1 CO cl)。因此,当co cI < 0时,在变换域中出现冗余。这个问题可以通过使用下面的变换来避免:很明显,这个变换对任何co和c1都是可逆的。如果删除底函数,则81的xo和xi的系数分别变为cI和(I+ CO cl),即行列式变为1。但是,动态范围不均匀的问题仍然存在。通过使用以下变换,动态范围可以变得均匀:1 .可逆离散余弦变换:RDCT在本节中,提出了可逆离散余弦变换(RDCT)。对整数输入信号进行DCT变换后,变换效率变为实数。因此,为了对输入进行无损重构,必须减少量化步骤。这导致了较低的压缩效率。a) 2点可逆变换:让我们考虑以下2点变换:0-7803-8575-6/04/$20.00 02004 IEEE 407图1:2点可逆变换阶梯网络。(3)图1为两点可逆变换的阶梯网络,其中量化器R表示舍入到最接近的整数,xi为整数输入,0i为整数输出,ci为实乘子。b) n点可逆变换2点可逆变换可以很容易地推广为n点可逆变换:-1 N-1,其中c = c = 0,变换系数为01,0 2,…,eN。逆变换为:j=O j=N e, = e…LZci,。ei + osJ J + O S, (7) c) 8点可逆离散余弦变换:将N =8的式(6)与归一化8点DCT进行比较,得到归一化8点可逆DCT (RDCT)。然而,我们可以更容易地获得RDCT,因为8点DCT可以分解为2点和4点变换,可以用相应的阶梯网络替换。很明显,当可逆转换替换图2中的每个转换时,整个转换是可逆的。图2:8点DCT分解DCT分解导致三个不同的转换,如图3所示。得到图3中两点可逆变换的系数CO、cI和cz。a,我们只需要将其与公式(4)进行比较,就可以得出:
A lossless H.263 video codec using the reversible DCT
Unified lossless and lossy image coding system is useful for various applications, since we can reconstruct lossy and lossless images from a part and the whole of the encoded data, respectively. This coding system can be realized by using reversible transforms. Reversible wavelet transform (R WT), Lossless-DCT (LDCT) and reversible Walsh-Hadamard transform (R WHT) have been proposed as reversible transforms. In this paper, an N-point reversible discrete cosine transform (RDCT) based H.263 video codec is presented, then 8-point RDCT is obtained by substituting the 2 and 4-point reversible transforms for 2 and 4-point transforms which compose 8-point discrete cosine transform (DCT), respectively. Integer input signal can be losslessly recovered, although the transform coefficients are integer numbers. The RDCT is then implemented on the H.263 video codec. Simulations of the RDCT-based H.263 shows a petfect reconstruction of the original video sequence in lossless mode, and lossy compression efJiciencies comparable to those obtained with the conventional fast DCT-based H.263 in low bit rates. where L.1 corresponds to downward truncation, 80 and el are integer transform coefficients and ~0 and X I are integer inputs. If the real numbers CO and C I satisfy CO C I 5 0, this transform becomes reversible. If the floor functions are deleted, the determinant of the transform matrix becomes (1 CO cl). Therefore redundancy occurs in transform domain, when co cI < 0. This problem is avoided by using the following transform instead: It is obvious that this transform is reversible for any co and c1. If the floor functions are deleted, the coefficients of xo and X I of 81 become cI and ( I+ CO cl), respectively, that is, the determinant becomes 1. However, the problem that the dynamic range is nonuniform remains. The dynamic range can become uniform by using the following transform instead: I. THE REVERSIBLE DISCRETE COSINE TRANSFORM: RDCT In this section, a reversible discrete cosine transform (RDCT) is presented. When integer input signal is transformed by DCT, the transform Eoefficients become real. Therefore the quantization step must be reduced in order to reconstruct input losslessly. This results in low compession efficiency. where the transform coefficients are and Oz. a) 2-Point Reversible Transform: Let's consider the following 2-point transform: 0-7803-8575-6/04/$20.00 02004 IEEE 407 Figure 1 : 2-Point Reversible Transform Ladder Network. (3) Figure 1 shows the ladder network for the 2-point reversible transform, where quantizer, R, represents rounding to the nearest integer, xi are integer inputs, 0i are integer outputs and ci are real multipliers. If the floor functions are deleted, the coefficients of xo and XI of 81 become cl and (1+ CO cl), respectively, and those of 02 become (1+ C I CZ) and (CO+ c2f CO C I c2), respectively, Therefore, the determinant becomes 1 : [:]=[I CO +c, +CoCqC, I [ : ; ] (4) The inverse transform is as follows : b) N-Point Reversible Transform The 2-point reversible transform can be easily generalized into N-point reversible transform as follows: -1 N-1 where c = c = 0 and the transform coefficients are 01, 0 2 ,. . ., eN. The Inverse transform is as follows: j=O j=N e, = e,,, LZci,.ei + osJ J + O S , (7) c) 8-Point Reversible Discrete Cosine Transform : A normalized 8-point Reversible DCT (RDCT) is obtained by comparing Equation (6) with N =8 with the normalized 8-point DCT. However, we can obtain RDCT more easily, since the 8-point DCT can be decomposed into 2-point and 4-point transforms that could be replaced with the corresponding ladder networks. It is obvious that the whole transform is reversible, when reversible transforms are substituted for every transform in Figure 2. Figure 2 : 8-Point DCT Decomposition The DCT decomposition leads to three different transforms as shown in Figure 3. To obtain the coefficients CO, cI and cz of the 2-point reversible transform in Figure 3.a, we just need to compare it with Eq. (4). This leads to: