Fast-speed DST-7
Patent Information
- Application Number
- JP2024071040
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2018-12-12
- Filing Date
- 2024-04-25
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2039-04-11
AI Technical Summary
The lack of efficient acceleration implementations of Discrete Sine Transform Type VII (DST-7) limits its application in practical video codec implementations, and existing methods fail to provide results similar to matrix multiplication-based implementations while reducing computational operations.
A method for decoding video sequences using DST-7 transform cores by generating tuples of transform core elements and applying specific sum relationships to reduce multiplication operations, achieving similar results with fewer computations.
This approach significantly reduces computational resources and improves efficiency in video encoders and decoders by minimizing multiplication operations while maintaining result accuracy.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] [CROSS-REFERENCE TO RELATED APPLICATIONS] This application claims priority under 35 USC §119 to U.S. patent application Ser. No. 62 / 668,065, filed in the U.S. Patent and Trademark Office on May 7, 2018, the disclosure of which is incorporated by reference in its entirety.
[0002] [Technical field] The present disclosure relates to next-generation video coding technologies beyond High Efficiency Video Coding (HEVC), such as Versatile Video Coding (VVC). More specifically, the present disclosure is directed to a high-speed method for implementing Discrete Sine Transform type VII (DST type 7). [Background technology]
[0003] ITU-T VCEG (Q6 / 16) and ISO / IEC MPEG (JTC 1 / SC 29 / WG 11) published the H.265 / HEVC (High Efficiency Video Coding) standard (version 1) in 2013, and provided updates in 2014 (version 2), 2015 (version 3) and 2016 (version 4). ITU is studying the potential need for standardization of future video coding technologies with compression capabilities significantly exceeding the HEVC standard (including its extensions).
[0004] In October 2017, the ITU issued a Joint Call for Proposals on Video Compression with Capability beyond HEVC (CfP). By February 15, 2018, a total of 22 CfP responses for standard dynamic range (SDR), 12 CfP responses for high dynamic range (HDR), and 12 CfP responses for the 360 video categories had been submitted.
[0005] In April 2018, all received CfP responses were evaluated at the 122 MPEG / 10th JVET (Joint Video Exploration Team - Joint Video Expert Team) meeting. After careful evaluation, JVET formally launched the standardization of the next generation video coding beyond HEVC, namely the so-called VVC (Versatile Video Coding). This current version is the VVC Test Model (VTM), namely VTM 1.
[0006] Compared to the DCT-2, for which acceleration methods have been widely studied, DST-7 implementations are still significantly less efficient than the DCT-2; for example, VTM 1 involves matrix multiplications.
[0007] In JVET-J0066, a method is proposed to approximate different types of DCTs and DSTs in JEM7 by applying an adjustment step to transforms in the DCT-2 family, including DCT-2, DCT-3, DST-2 and DST-3, where the adjustment step represents a matrix multiplication using sparse matrices that requires a relatively small number of operations.
[0008] JVET-J001 proposes a method for implementing an n-point DST-7 using a 2n+1-point Discrete Fourier Transform (DFT). Summary of the Invention
[0009] According to one aspect of the present disclosure, a method for decoding a video sequence using a discrete sine transform (DST) Type VII transform core includes generating a set of tuples of transform core elements associated with an n-point DST-VII transform core, where a first sum of a first subset of the transform core elements of a first tuple is equal to a second sum of a second subset of the remaining transform core elements of the first tuple; generating the n-point DST-VII transform core based on generating the set of tuples of transform core elements; and performing a transform on a block using the n-point DST-VII transform core.
[0010] According to one aspect of the disclosure, a device for decoding video sequences using a Discrete Sine Transform (DST) Type VII transform core includes at least one memory configured to store program code and at least one processor configured to read the program code and operate according to instructions by the program code, the program code including generation code configured to cause the at least one processor to generate a set of tuples of transform core elements associated with an n-point DST-VII transform core, where a first sum of a first subset of the transform core elements of the first tuple is equal to a second sum of a second subset of the remaining transform core elements of the first tuple, the generation code further configured to cause the at least one processor to generate the n-point DST-VII transform core based on generating the set of tuples of transform core elements; and execution code configured to cause the at least one processor to perform a transform on a block using the n-point DST-VII transform core.
[0011] According to one aspect of the disclosure, a non-transitory computer-readable medium having instructions stored thereon, the instructions, when executed by one or more processors of a device, cause the one or more processors to perform the following steps: generating a set of tuples of transform core elements associated with an n-point DST-VII transform core, where a first sum of a first subset of the transform core elements of a first tuple is equal to a second sum of a second subset of the remaining transform core elements of the first tuple; generating an n-point DST-VII transform core based on generating the set of tuples of transform core elements; and performing a transform on a block using the n-point DST-VII transform core. [Brief description of the drawings]
[0012] Further features, nature and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings. [Figure 1] 1 is a flowchart of an example process of a method for decoding a video sequence using a Discrete Sine Transform (DST) Type VII transform core. [Diagram 2] FIG. 1 is a simplified block diagram of a communication system according to one embodiment of the present disclosure. [Diagram 3] FIG. 1 is a diagram of a video encoder and decoder arrangement in a streaming environment. [Figure 4] FIG. 2 is a functional block diagram of a video decoder according to one embodiment of the present disclosure. [Diagram 5] FIG. 2 is a functional block diagram of a video encoder according to one embodiment of the present disclosure. [Figure 6] FIG. 1 is a diagram of a computer system according to one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] [Issues to be resolved] The lack of an efficient high-speed implementation of DST-7 limits the application of DST-7 for practical video codec implementations.
[0014] In different implementation scenarios, a matrix multiplication based implementation is preferred since it involves more regular processing, but in some cases, an acceleration method that significantly reduces the number of operations is preferred. It is therefore highly desirable to identify an acceleration method that outputs substantially identical results compared to a matrix multiplication based implementation, such as the DCT-2 design in HEVC, which supports both matrix multiplication and partial butterfly implementations.
[0015] Existing acceleration methods for DST-7, e.g., JVET-J0066 and JVET-J0017, may not support all desirable features of transform design in video codecs, including 16-bit intermediate operations, integer arithmetic, and / or may not provide identical results between the acceleration method implementation and a matrix multiplication based implementation.
[0016] [Detailed Description] The present disclosure enables substantially similar results compared to matrix multiplication-based implementations based on the utilization of individual features / patterns in the DST-7 transform base. Thus, some implementations herein conserve computational resources and improve efficiency of the encoder and / or decoder.
[0017] The 16-point DST-7 integer transform core used in the forward transform can be expressed as {a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}={8,17,25,33,41,48,55,62,67,73,77,81,84,87,88,89} as follows:
[0018] As noted above, the element values of the DST-7 transform core include the properties a+j=l, b+i=m, c+h=n, d+g=o, and e+f=p.
[0019] According to one embodiment, the input vector for a 16-point transform is x={x0, x1, x2, ..., x15} and the output transform coefficient vector is y={y0, y1, y2, ..., y15}.
[0020] Based on the above relationships between the transform core elements, instead of implementing a·x0+j·x9+l·x11, which requires three multiplication operations, one embodiment implements a·(x0+x11)+j·(x9+x11), which requires two multiplication operations.
[0021] Thus, instead of performing a vector-wise operation of y0=a·x0+b·x1+c·x2+d·x3+e·x4+f·x5+g·x6+h·x7+i·x8+j·x9+k·x10+l·x11+m·x12+n·x13+o·x14+p·x15, which requires 16 multiplication operations, to compute y0, one embodiment performs the operation y0=a·(x0+x11)+b·(x1+x12)+c·(x2+x13)+d·(x3+x14)+e·(x4+x15)+f·(x5+x15)+g·(x6+x14)+h·(x7+x13)+i·(x8+x12)+j·(x9+x11)+k·x10, which requires 11 multiplication operations, to derive a substantially similar result.
[0022] Furthermore, when computing y2, y3, y6, y8, y9, y11, y12, y14, and y15, a similar implementation can be realized, and the intermediate results of (x0+x11), (x1+x12), (x2+x13), (x3+x14), (x4+x15), (x5+x15), (x6+x14), (x7+x13), (x8+x12), (x9+x11) and k·10 can be reused, respectively.
[0023] According to one embodiment, each third transformation basis vector starting from the second basis vector includes some duplicated patterns. For example, the second basis vector can be expressed as follows:
[0024]
number
[0025] Furthermore, the calculations for calculating y1, y4, y7, y10 and y13 can be performed similarly, and the intermediate results (x0+x9-x11), (x1+x8-x12), (x2+x7-x13), (x3+x6-x14) and (x4+x5-x15) can be reused.
[0026] For the inverse transform, the transform core matrix is the transpose of the transform core matrix used for the forward transform, and the above two features are also applicable to the inverse transform. Furthermore, it should be noted that the tenth basis vector is {k,0,-k,k,0,-k,k,0,-k,k,0,-k,k,0,-k,k}, which contains only a single unique absolute value (i.e., k). Thus, instead of calculating y10 using vector-wise multiplication of y10=k·x0-k·x2+k·x3-k·x5+k·x6-k·x8+k·x9-k·x11+k·x12-k·x14+k·x15, which requires 11 multiplication operations, an embodiment may perform the operation of y10=k·(x0-x2+x3-x5+x6-x8+x9-x11+x12-x14+x15), which requires a single multiplication operation, while deriving a substantially similar result.
[0027] For 64-point forward and backward DST-7, the above two features are also available, and therefore the same speed-up methods as above are also applicable.
[0028] For 32-point forward and backward DST-7, the second feature is available, i.e., there are duplicated or inverted segments in parts of the basis vectors. Therefore, the same speed-up method described above based on the second feature is also applicable. Also, the first feature is available for 32-point forward and backward DST-7 transform cores, but with a different formulation, as described below.
[0029] The elements of a 32-point transform core contain 32 distinct numbers (not considering sign changes): {a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, C, D, E, F}.
[0030] An example of an assignment of fixed points for elements is {a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F}={4,9,13,17,21,26,30,34,38,42,46,49,53,56,60,63,66,69,71,74,76,78,81,82,84,85,87,88,89,89,90,90}.
[0031] It should be noted that the element values of the 32-point floating-point DST-7 transform core have the following properties: #0: a+l+A=n+y; #1: b+k+B=o+x; #2: c+j+C=p+w; #3: d+i+D=q+v; #4: e+h+E=r+u; and #5: f+g+F=s+t.
[0032] The elements in each of the six formulas above form a quintuple, for example {a,l,A,n,y} is quintuple #0 and {b,k,B,o,x} is the other quintuple #1.
[0033] According to one embodiment, the input vector for a 32-point transform is x={x0, x1, x2, ..., x31} and the output transform coefficient vector is y={y0, y1, y2, ..., y31}.
[0034] Based on the above relationships between the transform core elements, instead of implementing a·x0+l·x11+n·x13+y·x24+A·x26, which requires five multiplication operations, one embodiment performs the operation a·x0+l·x11+n·x13+y·x24+(n+yal)·x26 while deriving a substantially similar result, which can also be implemented as a·(x0-x26)+l·(x11-x26)+n·(x13+x26)+y·(x24+x26), which requires four multiplication operations.
[0035] Similarly, the reduced form of the multiplication operation above can be applied to the other five quintuples, e.g., intermediate results for quintuples #0, (x0-x26), (x11-x26), (x13+x26), (x24+x26) can be pre-computed and reused to compute each of the transform coefficients.
[0036] However, it should be noted that the assignment of integer values for elements {a,b,c,...,F} may not follow the formula above exactly due to rounding errors, for example {a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F}={4,9,13,17,21,26,30,34,38,42,46,49,53,56,60,63,66,69,71,74,76,78,81,82,84,85,87,88,89,89,90,90} assigned by scaling using 64·√32 and rounding to the nearest integer.
[0037] For quinary #1, b+k+B=9+46+88=143, but o+x=60+82=142.
[0038] Therefore, to achieve substantially similar results between the matrix multiplication and the speedup method, one embodiment adjusts the elements of each quintet to perform substantially similarly to the formulas defined herein. For example, quintet #1 is adjusted to {b,k,o,x,B}={9,46,60,82,87}. Alternatively, quintet #1 is adjusted to {b,k,o,x,B}={9,46,60,83,88}. Alternatively, quintet #1 is adjusted to {b,k,o,x,B}={9,46,61,82,88}. Alternatively, quintet #1 is adjusted to {b,k,o,x,B}={9,45,60,82,88}. Alternatively, quintet #1 is adjusted to {b,k,o,x,B}={8,46,60,82,88}.
[0039] Compared to a matrix multiplication based implementation requiring 256 multiplication operations and 256 addition / subtraction operations, or the implementation of JVET-J0066 requiring 152 multiplication operations and 170 addition / subtraction operations, some implementations herein allow for 126 multiplication operations and 170 addition / subtraction operations while providing substantially similar results. Thus, some implementations herein allow for improved efficiency and conserve computational resources of the encoder and / or decoder.
[0040] 1 is a flow chart of an example process 100 of a method for decoding a video sequence using a Discrete Sine Transform (DST) Type VII transform core. In some implementations, one or more processing blocks of FIG. 1 may be performed by a decoder. In some implementations, one or more processing blocks of FIG. 1 may be performed by another device or group of devices separate from the decoder, such as an encoder, or another device or group of devices that includes the decoder.
[0041] As shown in FIG. 1, process 100 may include generating a set of tuples of transform core elements associated with an n-point DST-VII transform core, where a first sum of a first subset of the transform core elements of the first tuple is equal to a second sum of a second subset of the remaining transform core elements of the first tuple (block 110).
[0042] As further shown in FIG. 1, the process 100 may include generating an n-point DST-VII transform core based on generating a set of tuples of transform core elements (block 120).
[0043] As further shown in FIG. 1, the process 100 may include performing a transform on the block using an n-point DST-VII transform core.
[0044] According to one embodiment, the distinct absolute element values present in one transform core can be divided into multiple tuples together with some predetermined constants, and for each tuple, the sum of some of the absolute element values is identical to the sum of the remaining absolute element values in the same tuple.
[0045] For example, in an embodiment, the tuple is a ternary containing three elements, where the sum of the absolute values of two elements is the same as the absolute value of the remaining element. Alternatively, the tuple is a quaternary containing four elements, where the sum of the absolute values of two elements is the same as the sum of the absolute values of the remaining two elements. Alternatively, the tuple is a quaternary containing four elements, where the sum of the absolute values of three elements is the same as the sum of the absolute values of the remaining element. Alternatively, the tuple is a quinary containing five elements, where the sum of the absolute values of three elements is the same as the sum of the absolute values of the remaining two elements.
[0046] According to one embodiment, in addition to the existing individual absolute element values present in one conversion core, predetermined constants that are powers of two (eg, 1, 2, 4, 8, 16, 32, 64, etc.) can also be considered as elements in the tuple.
[0047] According to one embodiment, the distinct absolute element values present in the 16-point and 64-point DST-7 transform cores are divided into a number of ternaries each containing three elements, and also, or alternatively, the distinct absolute element values present in the 32-point DST-7 transform core are divided into a number of quinaries each containing five elements.
[0048] According to an embodiment, for an integer transform core, the integer elements of the transform core may be further adjusted to exactly meet the above characteristics, i.e., the sum of the absolute values of some of the elements in one tuple is the same as the sum of the absolute values of the remaining elements in the same tuple, while maintaining good orthogonality of the transform core. For example, for a 32-point integer DST-7 core, the second tuple {b,k,o,x,B} is adjusted to {9,46,60,82,87}. Alternatively, for a 32-point integer DST-7 core, the second tuple {b,k,o,x,B} is adjusted to {9,46,60,83,88}. Alternatively, for a 32-point integer DST-7 core, the second tuple {b,k,o,x,B} is adjusted to {9,46,61,82,88}. Alternatively, for a 32 point integer DST-7 core, the second tuple {b,k,o,x,B} is adjusted to {9,45,60,82,88}. Alternatively, for a 32 point integer DST-7 core, the second tuple {b,k,o,x,B} is adjusted to {8,46,60,82,88}. Alternatively, for a 32 point integer DST-7 core, the sixth tuple {f,g,s,t,B} is adjusted to {26,30,71,74,89}. Alternatively, for a 32 point integer DST-7 core, the sixth tuple {b,k,o,x,B} is adjusted to {26,30,71,75,90}. Alternatively, for a 32 point integer DST-7 core, the sixth tuple {b,k,o,x,B} is adjusted to {26,30,72,74,90}. Alternatively, for a 32 point integer DST-7 core, the sixth tuple {b,k,o,x,B} is adjusted to {26,29,71,74,90}. Alternatively, for a 32 point integer DST-7 core, the sixth tuple {b,k,o,x,B} is adjusted to {25,30,71,74,90}.
[0049] According to one embodiment, the elements of the transform core may be further adjusted only by +1 or -1 to the element value derived by scaling with a predetermined constant and rounding to the nearest integer.
[0050] According to one embodiment, the elements of the transform core may be further adjusted only by +1, -1, +2 and -2 relative to the element value derived by scaling with a predetermined constant and rounding to the nearest integer.
[0051] According to one embodiment, the orthogonality of the adjusted transform cores is given by the matrix A A T It is measured by the sum of the absolute values of -s·I, where s is a predefined scaling factor for deriving the integer transform core and I is the identity matrix.
[0052] Although Figure 1 illustrates example blocks of process 100, in some implementations process 100 may include more, fewer, different, or differently arranged blocks than those illustrated in Figure 1. Additionally or alternatively, two or more of the blocks of process 100 may be performed in parallel.
[0053] FIG. 2 shows a simplified block diagram of a communication system (200) according to one embodiment of the present disclosure. The communication system (200) may include at least two terminals (210-220) interconnected via a network (250). For unidirectional transmission of data, a first terminal (210) may encode video data at a local location for transmission to another terminal (220) via the network (250). The second terminal (220) may receive the encoded video data of the other terminal from the network (250), decode the encoded data, and display the restored video data. Unidirectional data transmission may be common in media provisioning applications, etc.
[0054] 2 illustrates a second pair of terminals (230, 240) arranged to support bidirectional transmission of encoded video, such as may occur during a video conference. For the bidirectional transmission of data, each terminal (230, 240) may encode video data captured at a local location for transmission to the other terminal over the network (250). Each terminal (230, 240) may also receive encoded video data transmitted by the other terminal, decode the encoded data, and display the reconstructed video data on a local display device.
[0055] In FIG. 2, the terminals (210-240) may be depicted as servers, personal computers, and smartphones, although the principles of the present disclosure are not so limited. Embodiments of the present disclosure have application in laptop computers, tablet computers, media players, and / or dedicated videoconferencing equipment. The network (250) represents any number of networks that convey encoded video data between the terminals (210-240), including, for example, wired and / or wireless communication networks. The communication network (250) may exchange data in circuit-switched and / or packet-switched channels. Exemplary networks include telecommunications networks, local area networks, wide area networks, and / or the Internet. For purposes of this description, the architecture and topology of the network (250) may not be important to the operation of the present disclosure, unless otherwise described below.
[0056] 3 shows an arrangement of a video encoder and a video decoder in a streaming environment as an example of an application of the disclosed subject matter. The disclosed subject matter is equally applicable to other video-enabled applications including, for example, videoconferencing, digital TV, storage of compressed video on digital media (including CDs, DVDs, memory sticks, etc.), etc.
[0057] The streaming system may include a capture subsystem (313), which may include, for example, a video source (301) (e.g., a digital camera) that generates an uncompressed video sample stream (302). The sample stream (302) may be processed by an encoder (303) coupled to the camera (301), shown in bold to emphasize its high amount of data when compared to an encoded video bitstream. The encoder (303) may include hardware, software, or a combination thereof for enabling or implementing aspects of the disclosed subject matter, as described in more detail below. The encoded video bitstream (304) may be stored on a streaming server (305) for future use, shown in thin to emphasize its low amount of data when compared to the sample stream. One or more streaming clients (306, 308) may access the streaming server (305) to obtain copies (307, 309) of the encoded video bitstream (304). The client (306) may include a video decoder (310) that decodes an input copy of the encoded video bitstream (307) and generates an output video sample stream (311) that can be rendered on a display (312) or other rendering device (not shown). In some streaming systems, the video bitstreams (304, 307, 309) may be encoded according to a particular video encoding / compression standard. Examples of these standards include ITU-T Recommendation H.265. The developing video encoding standard is informally known as Versatile Video Coding (VVC). The disclosed subject matter may be used in the context of VVC.
[0058] FIG. 4 may be a functional block diagram of a video decoder (310) according to one embodiment of the present invention.
[0059] The receiver (410) may receive one or more coded video sequences to be decoded by the decoder (310), and in the same or other embodiments, may receive one coded video sequence at a time, with the decoding of each coded video sequence being independent of the other coded video sequences. The coded video sequences may be received from a channel (412), which may be a hardware / software link to a storage device that stores the coded video data. The receiver (410) may receive the coded video data together with other data (e.g., coded audio data and / or auxiliary data streams), which may be forwarded to a respective using entity (not shown). The receiver (410) may separate the coded video sequences from the other data. To prevent network jitter, a buffer memory (415) may be coupled between the receiver (410) and the entropy decoder / parser (420) (hereinafter referred to as the "parser"). If the receiver 410 is receiving data from a store-and-forward device with sufficient bandwidth and controllability, or from an isochronous network, the buffer 415 may not be needed or may be small. For use with best-effort packet networks such as the Internet, the buffer 415 may be needed and may be relatively large, and advantageously of adaptive size.
[0060] The video decoder (310) may include a parser (420) for reconstructing symbols (421) from the entropy-coded video sequence. These categories of symbols include information used to manage the operation of the decoder (310) and potentially information for controlling a rendering device, such as a display (312), which may not be an integral part of the decoder, but may be coupled to the decoder, as shown in FIG. 4. The control information for the rendering device may be in the form of a Supplementary Enhancement Information (SEI) message or a Video Usability Information (VUI) parameter set fragment (not shown). The parser (420) may parse / entropy decode the received coded video sequence. The coding of the coded video sequence may follow any video coding technique or standard and may follow principles well known to those skilled in the art, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, etc. The parser (420) may extract from the coded video sequence a set of subgroup parameters for at least one of the subgroups of pixels in the video decoder based on the at least one parameter corresponding to the group. The subgroups may include a Group of Pictures (GOP), a picture, a tile, a slice, a macroblock, a coding unit (CU), a block, a transform unit (TU), a prediction unit (PU), etc. The entropy decoder / parser may also extract information such as transform coefficients, quantizer parameter (QP) values, motion vectors, etc. from the coded video sequence.
[0061] The parser (420) may perform an entropy decoding / parsing operation on the video sequence received from the buffer (415) to generate symbols (421). The parser (420) may receive the encoded data and selectively decode particular symbols (421). Additionally, the parser (420) may determine whether a particular symbol (421) should be provided to a motion compensated prediction unit (453), a scaler / inverse transform unit (451), an intra prediction unit (452), or a loop filter (456).
[0062] The reconstruction of the symbols (421) may involve several different units, depending on the type of coded video picture or portion thereof (e.g., inter-picture and intra-picture, inter-block and intra-block) and other factors. Which units are involved and how may be controlled by subgroup control information parsed from the coded video sequence by the parser (420). The flow of such subgroup control information between the parser (420) and the following units is not shown for clarity.
[0063] In addition to the functional blocks described above, the decoder (310) may be conceptually subdivided into a number of functional units, as described below. In a practical implementation operating under commercial constraints, many of these units may interact closely with each other and may be at least partially integrated with each other. However, for purposes of describing the disclosed subject matter, a conceptual subdivision into the following functional units is appropriate:
[0064] The first unit is a scalar / inverse transform unit (451), which receives the quantized transform coefficients as symbols (621) from the parser (420) along with control information (including which transform to use, block size, quantization factor, quantization scaling matrix, etc.) The scalar / inverse transform unit (451) may output a block containing sample values that can be input to an aggregator (455).
[0065] In some cases, the output samples of the scaler / inverse transform (451) may relate to intra-coded blocks, i.e., blocks that do not use prediction information from a previously reconstructed picture, but can use prediction information from a previously reconstructed part of the current picture. Such prediction information may be provided by an intra-picture prediction unit (452). In some cases, the intra-picture prediction unit (452) uses surrounding already reconstructed information taken from the current picture (partially reconstructed picture) (456) to generate blocks of the same size and shape of the block being reconstructed. In some cases, the aggregator (455) adds, on a sample-by-sample basis, the prediction information generated by the intra-prediction unit (452) to the output sample information provided by the scaler / inverse transform unit (451).
[0066] In other cases, the output samples of the scaler / inverse transform unit (451) may relate to an inter-coded and potentially motion-compensated block. In such cases, the motion compensated prediction unit (453) may access a reference picture memory (457) to retrieve samples used for prediction. After motion compensating the retrieved samples according to the symbols (421) associated with the block, these samples may be added by an aggregator (455) to the output of the scaler / inverse transform unit (451) (in this case referred to as residual samples or residual signals) to generate output sample information. The addresses in the reference picture memory (457) available to the motion compensated prediction unit (453) from which the motion compensated prediction unit retrieves prediction samples may be controlled by a motion vector, e.g., in the form of a symbol (421) that may have X, Y, and reference picture components. Motion compensation may also include interpolation of sample values retrieved from the reference picture memory when sub-sample accurate motion vectors are used, motion vector prediction mechanisms, etc.
[0067] The output samples of the aggregator (455) may be subjected to various loop filtering techniques in a loop filter unit (456). The video compression techniques may include in-loop filter techniques, controlled by parameters contained in the coded video sequence (also called coded video bitstream) and made available to the loop filter unit (456) as symbols (421) from the parser (420), which may be responsive to meta-information obtained during decoding of previous portions of the coded picture or coded video sequence (in decoding order), as well as to previously reconstructed loop filtered sample values.
[0068] The output of the loop filter unit (456) may be a sample stream that may be output to a rendering device (312) and also stored in a reference picture memory (457) for use in future inter-picture prediction.
[0069] Once a particular coded picture is fully reconstructed, it may be used as a reference picture for future prediction. Once a coded picture is fully reconstructed and the coded picture is identified as a reference picture (e.g., by the parser (420)), the current reference picture (656) may become part of the reference picture buffer (457), and a new current picture memory may be reallocated before beginning reconstruction of a subsequent coded picture.
[0070] The video decoder (310) may perform decoding operations according to a given video compression technique, which may be documented in a standard such as ITU-T Rec. H.265. The coded video sequence may conform to the syntax specified by the video compression technique or standard being used, in the sense that the coded video sequence conforms to the syntax of the video compression technique or standard as specified in the video compression technique document or standard, and in particular as specified in its profile document. Also required for compliance is that the complexity of the coded video sequence is within a range defined by the level of the video compression technique or standard. In some cases, the level limits the maximum picture size, maximum frame rate, maximum reconstruction sample rate (e.g., measured in megasamples per second), maximum reference picture size, etc. In some cases, the limits set by the level may be further limited through a Hypothetical Reference Decoder (HRD) specification and metadata about HRD buffer management conveyed in the coded video sequence.
[0071] In one embodiment, the receiver (410) may receive additional (redundant) data along with the encoded video. The additional data may be included as part of the encoded video sequence. The additional data may be used by the video decoder (310) to properly decode the data and / or to more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial, or signal noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0072] FIG. 5 may be a functional block diagram of a video encoder (303) according to one embodiment of the present invention.
[0073] The video encoder (303) may receive video samples from a video source (301) (not part of the encoder), which may capture video images to be encoded by the encoder (303).
[0074] The video source (301) may provide a source video sequence to be encoded by the encoder (303) in the form of a digital video sample stream, which may be of any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, etc.), any color space (e.g., BT.601 Y CrCB, RGB, etc.), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media presentation system, the video source (301) may be a storage device that stores pre-prepared video. In a video conferencing system, the video source (303) may be a camera that captures local image information as a video sequence. The video data may be provided as a number of individual pictures that convey motion when viewed in sequence. The pictures themselves may be organized as a spatial array of pixels, each of which may contain one or more samples, depending on the sampling structure, color space, etc., in use. Those skilled in the art can easily understand the relationship between pixels and samples. The following description focuses on samples.
[0075] According to one embodiment, the encoder (303) may encode and compress pictures of a source video sequence into an encoded video sequence (543) in real-time or under any other time constraint required by an application. Achieving an appropriate encoding rate is one function of the controller (550). The controller controls and is operatively coupled to other functional units, as described below, which couplings are not shown for clarity. Parameters set by the controller may include rate control related parameters (picture skip, quantization, lambda values for rate distortion optimization techniques, etc.), picture size, group of pictures (GOP) layout, maximum motion vector search range, etc. Those skilled in the art will readily recognize other functions of the controller (550) that are relevant to a video encoder (303) optimized for a particular system design.
[0076] Some video encoders operate in what those skilled in the art recognize as a "coding loop." As a very simplified description, the coding loop may include an encoder (530) (referred to herein as a "source coder") (e.g., responsible for generating symbols based on an input picture to be coded and reference pictures) and a (local) decoder (533) embedded in the encoder (303). The decoder (533) reconstructs the symbols to generate sample data similar to what the (remote) decoder would generate (so that any compression between the symbols and the coded video bitstream is lossless in the video compression techniques considered in the disclosed subject matter). This reconstructed sample stream is input to a reference picture memory (534). Since the decoding of the symbol stream results in bit-for-bit accurate results independent of the location of the decoder (local or remote), the contents of the reference picture buffer are also bit-for-bit accurate between the local and remote encoders. In other words, the predictive part of the encoder "sees" exactly the same sample values as the reference picture samples that the decoder "sees" when using prediction during decoding. This basic principle of reference picture synchronization (including the resulting drift when synchronization cannot be maintained, for example, due to channel errors) is well known to those skilled in the art.
[0077] The operation of the "local" decoder (533) may be the same as the "remote" decoder (310), which has already been described in detail above in connection with Figure 4. However, with brief reference to Figure 5, because symbols are available and the encoding / decoding of symbols into a coded video sequence by the entropy coder (545) and parser (420) may be lossless, the entropy decoding portion of the decoder (310), including the channel (412), receiver (410), buffer (415) and parser (420), may not be fully implemented in the local decoder (533).
[0078] An observation that can be made at this point is that any decoder technique, other than analysis / entropy decoding, that exists in the decoder must necessarily exist in substantially the same functional form in the corresponding encoder. A description of the encoder techniques can be omitted, since they are the inverse of the decoder techniques, which are described generically. Only in certain areas is a more detailed description necessary, and is provided below.
[0079] As part of its operation, the source coder (530) may perform motion-compensated predictive coding, which predictively codes an input frame with reference to one or more previously coded frames from the video sequence designated as “reference frames.” In this manner, the coding engine (532) codes differences between pixel blocks of the input frame and pixel blocks of reference frames that may be selected as predictive references for the input frame.
[0080] The local video decoder (533) may decode the encoded video data of frames that may be designated as reference frames based on the symbols generated by the source coder (530). The operation of the encoding engine (532) may advantageously be a lossy process. If the encoded video data can be decoded by a video decoder (not shown in FIG. 5), the reconstructed video sequence may be a replica of the source video sequence, typically with some errors. The local video decoder (533) may replicate the decoding process that may be performed by the video decoder on the reference frames and store the reconstructed reference frames in a reference picture cache (534). In this way, the encoder (303) may locally store copies of reconstructed reference pictures that have common content as reconstructed reference pictures (without transmission errors) obtained by the far-end video decoder.
[0081] The predictor (535) may perform a prediction search for the coding engine (532). That is, for a new frame to be coded, the predictor (535) may search the reference picture memory (534) for sample data (as candidate reference pixel blocks) or specific metadata (reference picture motion vectors, block shapes, etc.), which may serve as suitable prediction references for the new picture. The predictor (535) may operate on a sample block-by-pixel block basis to find suitable prediction references. In some cases, the input picture determined by the search results obtained by the predictor (535) may have prediction references drawn from multiple reference pictures stored in the reference picture memory (534).
[0082] The controller (550) may manage the encoding operations of the video coder (530), including, for example, setting the parameters and subgroup parameters used to encode the video data.
[0083] The output of all the above functional units may be subjected to entropy coding in an entropy coder (545), which converts the symbols produced by the various functional units into a coded video sequence by losslessly compressing the symbols according to techniques known to those skilled in the art, such as, for example, Huffman coding, variable length coding, arithmetic coding, etc.
[0084] The transmitter (540) may buffer the encoded video sequence produced by the entropy coder (545) and prepare it for transmission over a communication channel (560), which may be a hardware / software link to a storage device that stores the encoded video data. The transmitter (540) may merge the encoded video data from the video coder (303) with other data to be transmitted, such as encoded audio data and / or an auxiliary data stream (not shown).
[0085] A controller (550) may manage the operation of the encoder (303). During encoding, the controller (550) may assign each coded picture a particular coding picture type, which may affect the coding technique that may be applied to each picture. For example, pictures may often be assigned as one of the following frame types:
[0086] An Intra picture (I-picture) may be one that can be coded and decoded without using other pictures in a sequence as a source of prediction. Some video codecs allow different types of Intra pictures, including, for example, Independent Decoder Refresh pictures. Those skilled in the art will recognize these variations of I-pictures and their respective uses and characteristics.
[0087] A predictive picture (P-picture) may be encoded and decoded using intra- or inter-prediction, using at most one motion vector and reference index to predict the sample values of each block.
[0088] Bidirectionally predicted pictures (B-pictures) may be coded and decoded using intra- or inter-prediction, using up to two motion vectors and reference indices to predict the sample values of each block. Similarly, multi-predicted pictures may use more than two reference pictures and associated metadata for the reconstruction of a single block.
[0089] In general, a source picture may be spatially subdivided into multiple sample blocks (e.g., blocks of 4x4, 8x8, 4x8 or 16x16 samples, respectively) and coded block by block. Blocks may be predictively coded with reference to other (already coded) blocks as determined by the coding assignment applied to the respective picture of the block. For example, blocks of an I-picture may be non-predictively coded or may be predictively coded with reference to already coded blocks of the same picture (spatial or intra prediction). Pixel blocks of a P-picture may be predictively coded via spatial or temporal prediction with reference to the reference picture coded one step before. Blocks of a B-picture may be predictively coded via spatial or temporal prediction with reference to the reference picture coded one or two steps before.
[0090] The video coder (303) may perform encoding operations according to a given video encoding technique or standard, such as ITU-T Rec. H.265. In its operation, the video encoder (303) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in the input video sequence. Thus, the encoded video data may conform to a syntax specified by the video encoding technique or standard being used.
[0091] In one embodiment, the transmitter (540) may transmit additional data along with the coded video. The video coder (530) may include such data as part of the coded video sequence. The additional data may include other types of redundant data, such as temporal / spatial / SNR enhancement layers, redundant pictures and slices, Supplementary Enhancement Information (SEI) messages, Visual Usability Information (VUI) parameter set fragments, etc.
[0092] Additionally, the proposed methods may be implemented by a processing circuit (e.g., one or more processors or one or more integrated circuits). In one example, the one or more processors execute a program stored on a non-transitory computer-readable medium to perform one or more of the proposed methods.
[0093] The above techniques may be implemented as computer software using computer readable instructions or physically stored on one or more computer readable media. For example, FIG. 6 illustrates a computer system 1200 suitable for implementing certain embodiments of the disclosed subject matter.
[0094] Computer software may be encoded using any suitable machine code or computer language that may be assembled, compiled, linked, or similar mechanisms to generate code including instructions that may be executed by a computer central processing unit (CPU), graphics processing unit (GPU), or the like, either directly or through an interpreter, microcode execution, or the like.
[0095] The instructions may be executed on various types of computers or components thereof including, for example, personal computers, tablet computers, servers, smart phones, gaming devices, Internet of Things devices, etc.
[0096] 6 for computer system 1200 are exemplary in nature and are not intended to suggest any limitation as to the scope of use or functionality of the computer software implementing the embodiments of the present disclosure, nor should the arrangement of components be interpreted as having any dependency or requirement regarding any one or combination of components illustrated in the exemplary embodiment of computer system 1200.
[0097] The computer system 1200 may include certain human interface input devices. Such human interface input devices may be responsive to input by one or more human users through, for example, tactile input (keystrokes, swipes, data glove movements, etc.), audio input (voice, clapping, etc.), visual input (gestures, etc.), and olfactory input (not shown). Human interface devices may also be used to capture certain media that are not necessarily directly associated with conscious human input, such as audio (speech, music, ambient sounds, etc.), images (scanned images, photographic images obtained from a still camera, etc.), and video (2D video, 3D video including stereoscopic pictures, etc.).
[0098] The input human interface devices may include one or more of a keyboard 601 , a mouse 602 , a trackpad 603 , a touch screen 610 , a data glove 1204 , a joystick 605 , a microphone 606 , a scanner 607 , and a camera 608 .
[0099] The computer system 1200 may also include certain human interface output devices. Such human interface output devices may stimulate one or more of the senses of a human user, for example, through haptic output, sound, light, and smell / taste. Such human interface output devices may include haptic output devices (e.g., haptic feedback via a touch screen 610, data gloves 1204, or joystick 605, although there may be haptic feedback devices that do not function as input devices), audio output devices (speakers 609, headphones (not shown), etc.), visual output devices (screens 610 including cathode ray tube (CRT) screens, liquid crystal display (LCD) screens, plasma screens, organic light emitting diode (OLED) screens, each of which may or may not have touch screen input capability, each of which may or may not have haptic feedback capability, some of which may be capable of outputting two-dimensional visual output or three or more dimensional output through such means as stereoscopic output, virtual reality glasses (not shown), holographic displays, and smoke tanks (not shown)), and printers (not shown).
[0100] The computer system 1200 may also include human accessible storage devices and associated media such as optical media including CD / DVD ROM / RW 620 with CD / DVD or similar media 621, thumb drives 622, removable hard drives or solid state drives 623, legacy magnetic media such as tapes and floppy disks (not shown), specialized ROM / ASIC / PLD based devices such as security dongles (not shown), etc.
[0101] Additionally, those skilled in the art should understand that the term "computer-readable medium" as used in connection with the subject matter disclosed herein does not include transmission media, carrier waves, or other non-transitory signals.
[0102] Computer system 1200 may also include interfaces to one or more communication networks. Networks may be, for example, wireless, wired, optical. Networks may be local, wide area, metropolitan, vehicular and industrial, real-time, delay tolerant, etc. Examples of networks include Ethernet, wireless LAN, cellular networks (including global systems for mobile communications (GSM), third generation (3G), fourth generation (4G), fifth generation (5G), long term evolution (LTE), etc.), TV wired or wireless wide area digital networks (including cable TV, satellite TV, and terrestrial TV), vehicular and industrial (including CANBus), etc. Particular networks typically require an external network interface adapter (e.g., a Universal Serial Bus (USB) port of computer system 1200, etc.) that is attached to a particular general-purpose data port or peripheral bus 649, while other network interface adapters are typically integrated into the core of computer system 1200 by being attached to a system bus (e.g., an Ethernet interface to a PC computer system or a cellular network to a smartphone computer system) as described below. Using any of these networks, computer system 1200 may communicate with other entities. Such communications may be one-way receive only (e.g., broadcast TV), one-way transmit only (e.g., CANbus to a particular CANbus device), or bidirectional, for example, to other computer systems using local or wide area digital networks. Specific protocols and protocol stacks may be used in each of these networks and network interfaces.
[0103] The above-mentioned human interface devices, human accessible storage devices and network interfaces may be attached to the core 640 of the computer system 1200 .
[0104] The core 640 may include one or more central processing units (CPUs) 641, graphics processing units (GPUs) 642, specialized programmable processing units in the form of field programmable gate arrays (FPGAs) 643, hardware accelerators for specific tasks 644, etc. These devices may be connected through a system bus 1248, along with read only memory (ROM) 645, random access memory (RAM) 646, and internal mass storage (internal non-user accessible hard drive, solid state drive (SSD), etc.) 647. In some computer systems, the system bus 1248 may be accessible in the form of one or more physical plugs to allow expansion with additional CPUs, GPUs, etc. Peripheral devices may be attached directly to the core's system bus 1248 or through a peripheral bus 649. Peripheral bus architectures include Peripheral Component Interconnect (PCI), USB, etc.
[0105] The CPU 641, GPU 642, FPGA 643 and accelerator 644 may execute certain instructions, which in combination may constitute the above computer code. The computer code may be stored in ROM 645 or RAM 646. Also, temporary data may be stored in RAM 646, while persistent data may be stored in, for example, internal mass storage device 647. Fast storage and retrieval in any of the memory devices may be enabled through the use of cache memory, which may be closely associated with one or more of the CPU 641, GPU 642, mass storage device 647, ROM 645, RAM 646, etc.
[0106] The computer-readable medium may bear computer code for performing various computer-implemented operations. The medium and computer code may be those specially designed and constructed for the purposes of the present disclosure, or they may be of the kind well known and available to those skilled in the computer software arts.
[0107] By way of example and not limitation, the architecture 1200, and in particular a computer system having a core 640, may provide functionality as a result of a processor (including a CPU, GPU, FPGA, accelerator, etc.) executing software embodied in one or more tangible computer-readable media. Such computer-readable media may be media associated with a user-accessible mass storage device as described above, as well as specific storage of the core 640 of a non-transitory nature, such as a mass storage device 647 internal to the core or a ROM 645. Software implementing various embodiments of the present disclosure may be stored in such devices and executed by the core 640. The computer-readable media may include one or more memory devices or chips according to specific needs. The software may cause the core 640, and in particular the processor therein (including a CPU, GPU, FPGA, etc.) to perform specific operations or specific portions of specific operations herein, including defining data structures stored in RAM 646 and modifying such data structures according to operations defined by the software. Additionally or alternatively, a computer system may provide functionality as a result of hardwired or otherwise embodied logic in circuitry (e.g., accelerator 644) that may operate in place of or in conjunction with software to perform particular operations or portions of particular operations described herein. References to software include logic, and vice versa, where appropriate. References to computer-readable media may include circuitry (such as an integrated circuit (IC)) that stores software for execution, circuitry embodying logic for execution, or both, where appropriate. The present disclosure includes any appropriate combination of hardware and software.
[0108] While this disclosure describes several exemplary embodiments, there are alterations, permutations, and various substitute equivalents that fall within the scope of this disclosure. It will thus be recognized that those skilled in the art will be able to devise numerous systems and methods that, although not explicitly shown or described herein, embody the principles of the present disclosure and are therefore within the spirit and scope of the present disclosure.
Claims
1. A method for transmitting a video sequence encoded by an encoder, comprising: obtaining the video sequence encoded using a Discrete Sine Transform (DST) Type VII transform core; transmitting the video sequence; Including, a set of tuples of transform core elements associated with the n-point DST-VII transform core is generated such that a sum of a subset of the transform core elements of the first tuple is equal to the remaining transform core elements of the first tuple; a transform is performed on the video sequence using the set of tuples of the generated transform core elements associated with the n-point DST-VII transform core; the set of tuples are represented as {a,j,l}, {b,i,m}, {c,h,n}, {d,g,o} and {e,f,p}, the n-point DST-VII transform core is a 16-point DST-VII transform core that includes the transform core elements and element k included in the set of tuples, and a transform vector of the 16-point DST-VII transform core is represented as {a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}.
2. The method of claim 1, wherein a+j=l, b+i=m, c+h=n, d+g=o and e+f=p.
3. A device for transmitting an encoded video sequence, comprising: at least one memory configured to store program code; at least one processor configured to read the program code and to operate according to the instructions in the program code; 3. A device comprising: a processor for executing a program code for executing a program for at least one processor;
4. A computer program which, when executed by one or more processors of a device, causes the one or more processors to perform the method of claim 1 or 2.
5. A data structure representing a Discrete Sine Transform (DST) Type VII transform core used to encode a video sequence, comprising: a set of tuples of transform core elements associated with an n-point DST-VII transform core such that a sum of a subset of the transform core elements of a first tuple is equal to the remaining transform core elements of said first tuple; The set of tuples is represented as {a,j,l}, {b,i,m}, {c,h,n}, {d,g,o} and {e,f,p}, the n-point DST-VII transform core is a 16-point DST-VII transform core that includes the transform core elements included in the set of tuples and element k, and a transform vector of the 16-point DST-VII transform core is represented as {a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}.