Method, apparatus and storage medium for video encoding
By employing an end-to-end dependency quantization method based on deep reinforcement learning and utilizing the deep Q-network algorithm to automatically determine the DQ state transitions in video coding, the problem of low quantization efficiency in existing technologies is solved, and a high-efficiency improvement in video coding performance is achieved.
Patent Information
- Application Number
- CN202180014733.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-09-29
- Filing Date
- 2021-09-30
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2041-09-30
AI Technical Summary
Existing video coding technologies are inefficient in the quantization process, resulting in significant loss of compression quality and making it difficult to meet the needs of high-efficiency video coding.
We employ a learning-based end-to-end (E2E) dependency quantization (DQ) method using deep reinforcement learning (DRL). We utilize the deep Q-network (DQN) algorithm to automatically determine the transitions between different DQ states and achieve video encoding by calculating the key and reconstructing floating-point numbers.
It improves quantization efficiency, enhances video encoding performance, reduces compression quality loss, and is suitable for various DQ state transitions.
Smart Images

Figure CN115136199B_ABST
Abstract
Description
[0001] Cross-references
[0002] This application claims priority to U.S. Provisional Application 63 / 119,446, filed November 30, 2020, and U.S. Application 17 / 488,438, filed September 29, 2021, the entire contents of which are expressly incorporated herein by reference. Technical Field
[0003] This disclosure relates to learning-based end-to-end (E2E) dependent quantization (DQ) using deep reinforcement learning (DRL), which supports an arbitrary number of DQ states, and wherein the transitions between different DQ states can be automatically determined based on a deep Q-network (DQN) algorithm. Background Technology
[0004] 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 in 2013 (Revision 1), 2014 (Revision 2), 2015 (Revision 3), and 2016 (Revision 4). In 2015, these two standards organizations jointly formed the JVET (Joint Video Exploration Group) to explore the potential of developing the next video coding standard beyond HEVC. In October 2017, they released a joint proposal (CfP) on video compression capabilities exceeding HEVC. As of February 15, 2018, a total of 22 CfP responses were submitted regarding standard dynamic range (SDR), 12 CfP responses regarding high dynamic range (HDR), and 12 CfP responses regarding 360 video categories. In April 2018, all received CfP responses were evaluated at the 122MPEG / 10th JVET meeting. As an outcome of this meeting, JVET officially launched the standardization process for next-generation video coding beyond HEVC. The new standard was named Next Generation Video Coding (VVC), and JVET was renamed the Joint Video Experts Group.
[0005] Quantization is a core process in image and video compression standards and production, and a major source of compression quality loss. Improving quantization efficiency can bring significant performance gains in all image and video compression tasks. Summary of the Invention
[0006] According to an exemplary embodiment, a method and apparatus are included. The apparatus includes: a memory configured to store computer program code; and one or more processors configured to access the computer program code and operate as instructed by the computer program code. The computer program code includes: acquisition code configured to cause at least one processor to acquire an input stream of video data; computation code configured to cause at least one processor to compute keys based on floating-point numbers in the input stream; prediction code configured to cause at least one processor to predict a current dependency quantization DQ state based on the number of previous keys and the number of previous dependency quantization DQ states; reconstruction code configured to cause at least one processor to reconstruct floating-point numbers based on the keys and the current dependency quantization DQ state; and encoding code configured to cause at least one processor to encode the video based on the reconstructed floating-point numbers.
[0007] According to an exemplary embodiment, calculating the key and reconstructing the floating-point number includes implementing one or more deep neural networks (DNNs).
[0008] According to an exemplary embodiment, the state predictor includes an action-value mapping function between an action and an output Q-value associated with the action.
[0009] According to an exemplary embodiment, the computation code is further configured to cause at least one processor to compute a plurality of keys including the key based on a plurality of floating-point numbers in the input stream, and the reconstruction code is further configured to cause at least one processor to reconstruct the plurality of floating-point numbers based on the plurality of keys and at least the current dependency quantization DQ state.
[0010] According to an exemplary embodiment, the action corresponds to at least one of the DQ states.
[0011] According to an exemplary embodiment, the state predictor further includes a corresponding correspondence between some of a plurality of actions and some of a plurality of DQ states, wherein the plurality of actions includes the actions and the DQ states include the at least one DQ state.
[0012] According to an exemplary embodiment, predicting the current dependency quantization (DQ) state includes implementing an action-value mapping function between an action and an output Q value associated with the action, a previous key, and a previous DQ state.
[0013] According to an exemplary embodiment, the state predictor includes an action-value mapping function between an action and an output Q-value associated with the action, and the output Q-value represents a measurement of a target quantization performance associated with an action sequence, the action sequence including the action.
[0014] According to an exemplary embodiment, predicting the current dependency quantization (DQ) state based on the state predictor includes: calculating a Q value including the output Q value for each action in the action.
[0015] According to an exemplary embodiment, an output Q value is selected from the calculated Q values. Attached Figure Description
[0016] Further features, properties, and various advantages of the disclosed subject matter will become more apparent from the following detailed description and accompanying drawings, in which:
[0017] Figure 1 This is a simplified illustration of a schematic diagram according to an embodiment.
[0018] Figure 2 This is a simplified illustration of a schematic diagram according to an embodiment.
[0019] Figure 3 This is a simplified illustration of a schematic diagram according to an embodiment.
[0020] Figure 4 This is a simplified illustration of a schematic diagram according to an embodiment.
[0021] Figure 5 It is a simplified illustration of a schematic diagram according to an embodiment.
[0022] Figure 6 It is a simplified illustration of a schematic diagram according to an embodiment.
[0023] Figure 7 It is a simplified illustration of a schematic diagram according to an embodiment.
[0024] Figure 8 This is a simplified illustration of a schematic diagram according to an embodiment.
[0025] Figure 9A This is a simplified illustration of a schematic diagram according to an embodiment.
[0026] Figure 9B It is a simplified illustration of a schematic diagram according to an embodiment.
[0027] Figure 10 It is a simplified illustration of a schematic diagram according to an embodiment.
[0028] Figure 11 It is a simplified illustration of a schematic diagram according to an embodiment.
[0029] Figure 12 This is a simplified illustration of a schematic diagram according to an embodiment.
[0030] Figure 13 This is a simplified illustration of a flowchart according to an embodiment.
[0031] Figure 14 This is a simplified illustration of a schematic diagram according to an embodiment.
[0032] Figure 15 This is a simplified illustration of a flowchart according to an embodiment.
[0033] Figure 16 This is a simplified illustration of a schematic diagram according to an embodiment.
[0034] Figure 17 This is a simplified illustration of a flowchart according to an embodiment.
[0035] Figure 18 This is a simplified illustration of a schematic diagram according to an embodiment.
[0036] Figure 19 This is a simplified illustration of a flowchart according to an embodiment.
[0037] Figure 20 This is a simplified illustration of a schematic diagram according to an embodiment.
[0038] Figure 21 This is a simplified illustration of a flowchart according to an embodiment.
[0039] Figure 22 This is a simplified illustration of a schematic diagram according to an embodiment. Detailed Implementation
[0040] The features discussed below can be used individually or in any combination in any order. Furthermore, embodiments can be implemented using processing circuitry (e.g., one or more processors or one or more integrated circuits). In one example, one or more processors execute a program stored on a non-volatile computer-readable medium.
[0041] Figure 1 A simplified block diagram of a communication system 100 according to an embodiment of the present disclosure is shown. The communication system 100 may include at least two terminals 102 and 103 interconnected via a network 105. For unidirectional data transmission, the first terminal 103 may encode video data at a local location for transmission over the network 105 to the other terminal 102. The second terminal 102 may receive the encoded video data from the other terminal from the network 105, decode the encoded data, and display the recovered video data. Unidirectional data transmission is common in media service applications, etc.
[0042] Figure 1A second pair of terminals 101 and 104 is shown, which are used to support bidirectional transmission of encoded video, for example, during video conferencing. For bidirectional data transmission, each terminal 101 and 104 can encode video data acquired at a local location for transmission to the other terminal via network 105. Each terminal 101 and 104 can also receive encoded video data sent by the other terminal, decode the encoded data, and display the recovered video data on a local display device.
[0043] exist Figure 1 In this disclosure, terminals 101, 102, 103, and 104 can be servers, personal computers, and smartphones, but the principles of this disclosure are not limited thereto. Embodiments of this disclosure are applicable to laptop computers, tablet computers, media players, and / or dedicated video conferencing equipment. Network 105 refers to any number of networks, including, for example, wired and / or wireless communication networks, that transmit encoded video data between terminals 101, 102, 103, and 104. The communication network (150) can exchange data in circuit-switched and / or packet-switched channels. This network may include telecommunications networks, local area networks, wide area networks, and / or the Internet. For the purposes of this application, unless explained below, the architecture and topology of the network (150) may be irrelevant to the operation of this disclosure.
[0044] As an example, Figure 2 The diagram illustrates the placement of a video encoder and a video decoder in a streaming environment. The subject matter disclosed in this application is equally applicable to other video-enabled applications, including, for example, video conferencing, digital TV, storing compressed video on digital media including CDs, DVDs, memory sticks, etc.
[0045] The streaming system may include an acquisition subsystem 203, which may include a video source 201, such as a digital camera, that creates, for example, an uncompressed video sample stream 213. The sample stream 213 may be emphasized as having a high data volume compared to the encoded video stream and may be processed by an encoder 202 coupled to the camera 201. The encoder 202 may include hardware, software, or a combination thereof to enable or implement aspects of the disclosed subject matter as described in more detail below. The encoded video stream 204 may be stored on a streaming server 205 for future use, and the encoded video stream 204 may be emphasized as having a lower data volume compared to the sample stream. One or more streaming clients 212 and 207 may access the streaming server 205 to retrieve copies 208 and 206 of the encoded video stream 204. Client 212 may include a video decoder 211 that decodes the input copy of the encoded video stream 208 and creates an output video sample stream 210 that can be presented on a display 209 or other presentation device (not depicted). In some streaming systems, video streams can be encoded using 204, 206, and 208 bitrates according to certain video coding / compression standards. Examples of these standards have been given above and are further described in this article.
[0046] Figure 3 This can be a functional block diagram of a video decoder 300 according to an embodiment of the present invention.
[0047] Receiver 302 can receive one or more codec video sequences to be decoded by decoder 300; in the same or another embodiment, one encoded video sequence at a time, wherein decoding of each encoded video sequence is independent of other encoded video sequences. Encoded video sequences can be received from channel 301, which can be a hardware / software link to a storage device storing the encoded video data. Receiver 302 can receive encoded video data with other data (e.g., encoded audio data and / or auxiliary data streams), which can be forwarded to their respective user entities (not depicted). Receiver 302 can decouple encoded video sequences from other data. To combat network jitter, buffer memory 303 can be coupled between receiver 302 and entropy decoder / resolver 304 (hereinafter referred to as "resolver"). Buffer 303 may not be necessary or may be very small when receiver 302 receives data from a store / forward device with sufficient bandwidth and controllability or from an isochronous network. For use on best-effort packet networks (such as the Internet), a buffer 303 may be required, which can be relatively large and can advantageously have an adaptive size.
[0048] Video decoder 300 may include parser 304 to reconstruct symbols 313 from an entropy-encoded video sequence. These symbols may include information for managing the operation of decoder 300, and potentially information for controlling a presentation device such as display 312, which is not part of the decoder but may be coupled to it. Control information for one or more presentation devices may be in the form of supplementary enhancement information (SEI messages) or fragments of video availability information parameter sets (not depicted). Parser 304 may parse / entropy decode the received encoded video sequence. The encoding of the encoded video sequence may be based on video coding techniques or standards 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. Parser 304 may extract a set of subgroup parameters from the encoded video sequence for at least one subgroup of pixels in the subgroups used in the video decoder, based on at least one parameter corresponding to a group. Subgroups may include picture groups (GOPs), pictures, tiles, stripes, macroblocks, coding units (CUs), blocks, transform units (TUs), prediction units (PUs), etc. Entropy decoders / parsers can also extract information such as transform coefficients, quantizer parameter values, and motion vectors from encoded video sequences.
[0049] The parser 304 can perform entropy decoding / parsing operations on the video sequence received from the buffer 303 to create symbol 313. The parser 304 can receive encoded data and selectively decode specific symbols 313. Further, the parser 304 can determine whether a specific symbol 313 will be provided to the motion compensation prediction unit 306, the scaler / inverse transform unit 305, the intra-frame prediction unit 307, or the loop filter 311.
[0050] Depending on the type of encoded video frames or a subset of encoded video frames (e.g., inter-frame and intra-frame frames, inter-frame and intra-frame blocks) and other factors, the reconstruction of symbol 313 may involve multiple different units. Which units are involved and how they are involved can be controlled by subgroup control information parsed from the encoded video sequence by parser 304. For brevity, the flow of such subgroup control information between parser 304 and the various units described below is not described.
[0051] In addition to the functional blocks already mentioned, the decoder 300 can be conceptually subdivided into several functional units as described below. In practical embodiments operating under commercial constraints, many of these units interact closely with each other and can be integrated with one another. However, for the purposes of describing the disclosed subject matter, it is appropriate to conceptually subdivide it into the functional units described below.
[0052] The first unit is the scaler / inverse transform unit 305. The scaler / inverse transform unit 305 receives quantization transform coefficients as symbols 313 from the parser 304, along with control information including the transform mode used, block size, quantization factor, and quantization scaling matrix. The scaler / inverse transform unit 305 can output blocks containing sample values, which can be input into the aggregator 310.
[0053] In some cases, the output samples of the scaler / inverse transform unit 305 may belong to intra-coded blocks; that is, blocks that do not use predictive information from previously reconstructed images, but can use predictive information from previously reconstructed portions of the current image. Such predictive information may be provided by the intra-picture prediction unit 307. In some cases, the intra-picture prediction unit 307 uses reconstructed surrounding information obtained from the current (partially reconstructed) image 309 to generate blocks with the same size and shape as the blocks in the reconstruction. In some cases, the aggregator 310 adds the predictive information already generated by the intra-picture prediction unit 307 to the output sample information provided by the scaler / inverse transform unit 305 on a per-sample basis.
[0054] In other cases, the output samples of the scaler / inverse transform unit 305 may belong to inter-frame coding and latent motion compensation blocks. In this case, the motion compensation prediction unit 306 can access the reference image memory 308 to extract samples for prediction. After motion compensation is performed on the extracted samples according to symbol 313, these samples can be added by the aggregator 310 to the output of the scaler / inverse transform unit (referred to in this case as residual samples or residual signals) to generate output sample information. The motion compensation prediction unit's retrieval of prediction samples from addresses in the reference image memory can be controlled by motion vectors, and these motion vectors are available to the motion compensation prediction unit in the form of symbol 313, which, for example, includes X, Y, and reference image components. Motion compensation may also include interpolation of sample values extracted from the reference image memory when using subsample precise motion vectors, motion vector prediction mechanisms, etc.
[0055] The output samples of aggregator 310 can be employed by various loop filtering techniques in loop filter unit 311. Video compression techniques may include in-loop filtering techniques controlled by parameters included in the encoded video bitstream, and these parameters can be used as symbols 313 from parser 304 in loop filter unit 311. However, in other embodiments, video compression techniques may also respond to metadata obtained during decoding of a previous (in decoding order) portion of an encoded picture or encoded video sequence, and to previously reconstructed and loop-filtered sample values.
[0056] The output of the loop filter unit 311 can be a sample stream, which can be output to the display device 312 and stored in the reference image memory 557 for subsequent inter-frame image prediction.
[0057] Once fully reconstructed, certain encoded images can be used as reference images for future predictions. Once the encoded images have been fully reconstructed and have been identified as reference images (e.g., by parser 304), the current reference image 309 can become part of the reference image buffer 308, and new current image memory can be reallocated before reconstructing subsequent encoded images begins.
[0058] The video decoder 300 can perform decoding operations according to predetermined video compression techniques documented in standards such as ITU-T Rec.H.265. The encoded video sequence may conform to the syntax specified by the video compression technique or standard used; in this sense, it follows the syntax of the video compression technique or standard, as specified in the video compression technique documentation or standard, particularly in its brief documentation. Compliance also requires that the complexity of the encoded video sequence be within the range defined by the video compression technique or standard level. In some cases, the level limits the maximum image size, maximum frame rate, maximum reconstruction sample rate (e.g., measured in megasamples per second), maximum reference image size, etc. In some cases, the limitations set by the level can be further restricted by the hypothetical reference decoder (HRD) specifications and metadata, which are signaled in the encoded video sequence for HRD buffer management.
[0059] In this embodiment, receiver 302 may receive additional (redundant) data along with the encoded video. The additional data may be a portion of the encoded video sequence. The additional data may be used by video decoder 300 to properly decode the data and / or more accurately reconstruct the original video data. The additional data may take the form of, for example, temporal, spatial, or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant images, forward error correction codes, etc.
[0060] Figure 4 This is a functional block diagram of a video encoder 400 according to an embodiment of the present disclosure.
[0061] Encoder 400 can receive video samples from video source 401 (not part of the encoder), which can capture one or more video images to be encoded by encoder 400.
[0062] Video source 401 can provide a source video sequence in the form of a digital video sample stream to be encoded by encoder (303), the digital video sample stream having any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, etc.), any color space (e.g., BT.601YCrCb, RGB, etc.), and any suitable sampling structure (e.g., YCrCb 4:2:0, YCrCb 4:4:4). In a media service system, video source 401 can be a storage device storing previously prepared video. In a video conferencing system, video source 401 can be a camera that captures local image information as a video sequence. Video data can be provided as multiple individual pictures, which are given motion when viewed sequentially. The pictures themselves can be constructed as spatial pixel arrays, where each pixel may include one or more samples depending on the sampling structure, color space, etc., used. Those skilled in the art can easily understand the relationship between pixels and samples. The following focuses on describing samples.
[0063] According to an embodiment, encoder 400 can encode and compress images of a source video sequence into an encoded video sequence 410 in real time or under any other time constraints required by the application. Implementing an appropriate encoding rate is a function of controller 402. The controller controls and is functionally coupled to other functional units as described below. For clarity, coupling is not depicted. Parameters set by the controller may include rate control-related parameters (image skipping, quantizer, λ value of rate-distortion optimization techniques, etc.), image size, group of pictures (GOP) layout, maximum motion vector search range, etc. Other functions of controller 402 can be readily identified by those skilled in the art, as they may be related to the video encoder 400 optimized for a particular system design.
[0064] Some video encoders operate using an “encoding loop” as readily recognized by those skilled in the art. As an oversimplification, the encoding loop can consist of the encoding portion of encoder 402 (hereinafter referred to as the “source encoder”) responsible for creating symbols based on the input picture to be encoded and one or more reference pictures, and a (local) decoder 406 embedded in encoder 400 that reconstructs the symbols to create sample data that a (remote) decoder will also create (because any compression between the symbols and the encoded video bitstream is lossless in the video compression techniques considered in the disclosed subject matter). This reconstructed sample stream is fed into reference picture memory 405. Since decoding of the symbol stream results in bit-accurate results regardless of the decoder’s location (local or remote), the contents of the reference picture buffer are also bit-accurate between the local and remote encoders. In other words, when prediction is used during decoding, the prediction portion of the encoder “sees” the exact same sample values as the decoder “sees.” The fundamental principles of reference picture synchronization (and drift if synchronization cannot be maintained, for example, due to channel errors) are well known to those skilled in the art.
[0065] The operation of the "local" decoder 406 is the same as that of the "remote" decoder 300, as already described above. Figure 3 The "remote" decoder 300 is described in detail. However, a simple reference... Figure 4 Since symbols are available and the entropy encoder 408 and parser 304 can encode / decode symbols into an encoded video sequence in a lossless manner, the entropy decoding part of decoder 300 (including channel 301, receiver 302, buffer 303 and parser 304) may not be fully implemented in local decoder 406.
[0066] At this point, it can be observed that any decoder technique other than parsing / entropy decoding, which exists in the decoder, must also necessarily exist in the corresponding encoder in essentially the same functional form. The description of encoder techniques can be simplified because they are the opposite of the fully described decoder techniques. More detailed descriptions are provided below only in certain areas.
[0067] As part of its operation, the source encoder 403 can perform motion-compensated predictive coding, which predictively encodes the input frame by referencing one or more previously encoded frames from the video sequence designated as "reference frames". In this way, the encoding engine 407 encodes the difference between pixel blocks of the input frame and pixel blocks of the reference frame that can be selected as a predictive reference for the input frame.
[0068] The local video decoder 406 can decode the encoded video data of the frame designated as the reference frame based on the symbols created by the source encoder 403. The operation of the encoding engine 407 can advantageously be a lossy process. When the video decoder ( Figure 4 When decoding encoded video data at a location (not shown), the reconstructed video sequence can typically be a copy of the source video sequence with some errors. The local video decoder 406 replicates the decoding process, which can be performed by the video decoder on the reference frames, and the reconstructed reference frames can be stored in the reference picture cache 405. In this way, the encoder 400 can locally store copies of the reconstructed reference frames, the contents of which are identical (without transmission errors) to the reconstructed reference frames that will be obtained by the remote video decoder.
[0069] Predictor 404 can perform a prediction search on encoding engine 407. That is, for a new frame to be encoded, predictor 404 can search the reference image memory 405 for sample data (as candidate reference pixel blocks) or certain metadata that can be used as a suitable prediction reference for the new image, such as reference image motion vectors, block shapes, etc. Predictor 404 can operate on a pixel-by-pixel sample block basis to find a suitable prediction reference. In some cases, as determined by the search results obtained by predictor 404, the input image may have prediction references extracted from multiple reference images stored in reference image memory 405.
[0070] The controller 402 can manage the encoding operations of the video encoder 403, including, for example, setting parameters and subgroup parameters for encoding video data.
[0071] The outputs of all the above-mentioned functional units can be entropy encoded in the entropy encoder 408. The entropy encoder converts the symbols generated by the various functional units into an encoded video sequence by performing lossless compression of the symbols according to techniques known to those skilled in the art (such as Huffman coding, variable-length coding, arithmetic coding, etc.).
[0072] Transmitter 409 may buffer one or more encoded video sequences created by entropy encoder 408 to prepare them for transmission via communication channel 411, which may be a hardware / software link to a storage device for storing the encoded video data. Transmitter 409 may combine encoded video data from video encoder 403 with other data to be transmitted, such as encoded audio data and / or auxiliary data streams (sources not shown).
[0073] Controller 402 manages the operation of encoder 400. During encoding, controller 405 can assign a specific encoded image type to each encoded image, but this may affect the encoding techniques applicable to the corresponding images. For example, images can typically be assigned to any of the following frame types:
[0074] An intra-frame picture (I-picture) is a picture that can be encoded and decoded without using any other frames in the sequence as a prediction source. Some video codecs allow different types of intra-frame pictures, including, for example, Independent Decoder Refresh (IDR) pictures. Those skilled in the art will understand variations of I-pictures and their corresponding applications and characteristics.
[0075] A predictive image (P-image) can be an image that can be encoded and decoded using intra-frame prediction or inter-frame prediction, which uses at most one motion vector and a reference index to predict sample values for each block.
[0076] A bidirectional predictive image (B-image) can be an image that can be encoded and decoded using intra-frame prediction or inter-frame prediction, which uses at most two motion vectors and a reference index to predict sample values for each block. Similarly, multiple predictive images can use more than two reference images and associated metadata to reconstruct a single block.
[0077] Source images are typically spatially subdivided into multiple sample blocks (e.g., 4×4, 8×8, 4×8, or 16×16 sample blocks), and encoded block by block. These blocks can be predictively coded with reference to other (already coded) blocks, determined based on the coding assignment of the corresponding images applied to the blocks. For example, blocks of an I-image can be non-predictively coded, or the blocks can be predictively coded (spatial prediction or intra-frame prediction) with reference to already coded blocks of the same image. Pixel blocks of a P-image can be non-predictively coded with reference to a previously coded reference image via spatial prediction or temporal prediction. Blocks of a B-image can be non-predictively coded with reference to one or two previously coded reference images via spatial prediction or temporal prediction.
[0078] The video encoder 400 can perform encoding operations according to predetermined video coding techniques or standards, such as those specified in ITU-T H.265 Recommendation. In operation, the video encoder 400 can perform various compression operations, including predictive coding operations that utilize temporal and spatial redundancy in the input video sequence. Therefore, the encoded video data can conform to the syntax specified by the video coding technique or standard used.
[0079] In this embodiment, the transmitter 409 may transmit supplementary data while transmitting encoded video. The source encoder 403 may include such data as part of the encoded video sequence. Supplementary data may include temporal / spatial / SNR enhancement layers, redundant images and slices, other forms of redundant data, SEI (Supplementary Enhancement Information) messages, VUI (Visual Usability Information) parameter set fragments, etc.
[0080] Figure 5 The intra-prediction modes used in HEVC and JEM are shown. To capture arbitrary edge directions presented in natural video, the number of directional intra-prediction modes is expanded from 33, as used in HEVC, to 65. In JEM, additional directional modes are added on top of HEVC. Figure 1 (b) is depicted as a dashed arrow, and the planar mode and DC mode remain the same. These denser directional intra-prediction modes are applicable to all block sizes and for both luma and chroma intra-prediction. Figure 5 As shown, the directional intra-prediction mode associated with an odd-numbered intra-prediction mode index is called the odd-numbered intra-prediction mode and is identified by a dashed arrow. The directional intra-prediction mode associated with an even-numbered intra-prediction mode index is called the even-numbered intra-prediction mode and is identified by a solid arrow. In this paper, as... Figure 5 The directional intra-prediction mode indicated by the solid or dashed arrows in the image is also called the angle mode.
[0081] In JEM, a total of 67 intra-prediction modes are used for lumen intra-prediction. To encode and decode these intra-modes, a list of most probable modes (MPMs) of size 6 is constructed based on the intra-modes of neighboring blocks. If an intra-mode is not from the MPM list, a signaling flag is used to indicate whether the intra-mode belongs to the selected mode. In JEM-3.0, there are 16 selected modes, which are uniformly selected as four corner modes. In JVET-D0114 and JVET-G0060, 16 secondary MPMs are derived to replace the uniformly selected modes.
[0082] Figure 6 N reference layers for intra-frame orientation mode are shown. There are block unit 611, segment A601, segment B602, segment C603, segment D604, segment E605, segment F606, first reference layer 610, second reference layer 609, third reference layer 608 and fourth reference layer 607.
[0083] In HEVC and JEM, and in some other standards such as H.264 / AVC, the reference samples used to predict the current block are limited to the nearest reference line (row or column). In multi-reference-line intra-prediction methods, for intra-directional modes, the number of candidate reference lines (rows or columns) increases from 1 (i.e., the nearest) to N, where N is an integer greater than or equal to 1. Figure 2 The concept of a multi-line intra-frame orientation prediction method is illustrated using a 4×4 prediction unit (PU) as an example. The intra-frame orientation mode can arbitrarily select one of N reference layers to generate the prediction value. In other words, the prediction value p(x,y) is generated based on one of the reference samples S1, S2, ..., SN. A signal flag indicates which reference layer is selected for the intra-frame orientation mode. If N is set to 1, the intra-frame orientation prediction method is the same as the traditional method in JEM 2.0. Figure 6 In this diagram, reference lines 610, 609, 608, and 607 are composed of six segments 601, 602, 603, 604, 605, and 606, as well as a top-left reference sample. In this paper, the reference tier is also referred to as a reference line. The coordinates of the top-left pixel within the current block cell are (0, 0), and the top-left pixel in the first reference line is (-1, -1).
[0084] In JEM, for the luma component, neighboring samples used for intra-prediction sample generation are filtered before the generation process. Filtering is controlled by the given intra-prediction mode and transform block size. If the intra-prediction mode is DC or the transform block size is equal to 4×4, neighboring samples are not filtered. If the distance between the given intra-prediction mode and the vertical (or horizontal) mode is greater than a predetermined threshold, the filtering process is enabled. For neighboring sample filtering, a [1, 2, 1] filter and a bilinear filter are used.
[0085] Position-dependent intra prediction combination (PDPC) is an intra prediction method that combines unfiltered boundary reference samples with HEVC-type intra predictions of filtered boundary reference samples. Each predicted sample pred[x][y] located at (x, y) is calculated as follows:
[0086] pred[x][y]=(wL*R -1,y +wT*R x,-1 +wTL*R -1,-1 +(64-wL-wT-wTL)*pred[x][y]+32)>>6
[0087] (Equation 2-1)
[0088] Among them, R x,-1 R -1,y Let R represent the unfiltered reference sample located at the top left corner of the current sample (x, y), and R0 represent the reference sample located at the top left corner of the current sample (x, y). -1,-1 This represents the unfiltered reference sample located at the top left corner of the current block. The weights are calculated as follows:
[0089] wT = 32 >> ((y << 1) >> offset value) (Equation 2-2)
[0090] wL=32>>((x<<1)>>Offset value) (Equation 2-3)
[0091] wTL=-(wL>>4)-(wT>>4) (Equation 2-4)
[0092] Offset value = (log2(width) + log2(height) + 2) >> 2 (Equation 2-5).
[0093] Figure 7 A simplified diagram 700 is shown, in which the DC mode PDPC weights the (0,0) and (1,0) positions within a 4×4 block by (wL, wT, wTL). If the PDPC is applied to DC mode, planar mode, horizontal intra-frame mode, and vertical intra-frame mode, no additional boundary filters, such as the HEVC DC mode boundary filter or the horizontal / vertical mode edge filter, are required. Figure 7 A reference sample R is shown for the PDPC applied to the top right diagonal mode. x,-1 R -1,y and R -1,-1 Definition: The predicted sample ppred(x', y') is located at (x', y') within the prediction block. Reference sample R x,-1 The coordinates x are given by the following formula: x = x' + y' + 1, and referencing sample R. -1,y The coordinates y are similarly given by the following formula: y = x' + y' + 1.
[0094] Figure 8 A simplified diagram 800 of Local Illumination Compensation (LIC) is shown, based on a linear model of illumination variation using scaling factor a and offset b. Furthermore, the coding unit (CU) is adaptively enabled or disabled for each inter-frame mode.
[0095] When LIC is applied to CU, parameters a and b are derived using the least squares error method by using the neighboring samples of the current CU and their corresponding reference samples. More specifically, as Figure 8The diagram shows the use of subsampling (2:1 subsampling) of the CU to neighboring samples and corresponding samples in the reference image (identified by motion information from the current CU or sub-CU). The IC parameters are derived and applied to each prediction direction.
[0096] When the CU is encoded in merge mode, the LIC flag is copied from the adjacent block in a manner similar to motion information copying in merge mode; otherwise, the CU is signaled to the LIC flag to indicate whether the LIC should be applied.
[0097] Figure 9A The intra-prediction mode 900 used in HEVC is shown. In HEVC, there are a total of 35 intra-prediction modes, where mode 10 is a horizontal mode, mode 26 is a vertical mode, and modes 2, 18, and 34 are diagonal modes. The intra-prediction modes are signaled by three most probable modes (MPMs) and 32 remaining modes.
[0098] Figure 9B The VVC implementation shows a total of 87 intra-prediction modes, where mode 18 is a horizontal mode, mode 50 is a vertical mode, and modes 2, 34, and 66 are diagonal modes. Modes -1 to -10 and modes 67 to 76 are referred to as Wide-Angle Intra Prediction (WAIP) modes.
[0099] Based on the PDPC expression, a linear combination of the intra-frame prediction mode (DC, plane, angle) and the reference sample is used to predict the predicted sample pred(x,y) located at position (x,y):
[0100] pred(x,y)=(wL×R -1,y +wT×R x,-1 –wTL×R -1,-1 +(64–wL–wT+wTL)×pred(x,y)+32)>>6
[0101] Among them, R x,-1 R -1,y Let R represent the reference sample located at the top left corner of the current sample (x, y), and R0 be the reference sample located at the top left corner of the current sample (x, y). -1,-1 This represents the reference sample located at the top left corner of the current block.
[0102] For DC mode, weights are calculated as follows for blocks with dimensions width and height:
[0103] wT=32>>((y<<1)>>nScale), wL=32>>((x<<1)>>nScale), wTL=(wL>>4)+(wT>>4),
[0104] Where nScale = (log2(width) – 2 + log2(height) – 2 + 2) >> 2, wT represents the weighting factor of the reference sample located in the aforementioned reference lines with the same horizontal coordinates, wL represents the weighting factor of the reference sample located in the left reference line with the same vertical coordinates, and wTL represents the weighting factor of the top-left reference sample of the current block. nScale indicates the rate at which the weighting factor decreases along the axis (wL decreases from left to right or wT decreases from top to bottom), i.e., the rate of decrease of the weighting factor, and in the current design it is the same along the x-axis (from left to right) and y-axis (from top to bottom). Furthermore, 32 represents the initial weighting factor of the adjacent sample, which is also the upper (left or top-left) weight assigned to the top-left sample in the current CB. During the PDPC process, the weighting factor of the adjacent sample should be equal to or less than this initial weighting factor.
[0105] For planar mode, wTL = 0, while for horizontal mode, wTL = wT, and for vertical mode, wTL = wL. PDPC weights can be calculated using only addition and shifting. The value of pred(x,y) can be calculated in a single step using Equation 1.
[0106] The methods presented herein can be used individually or in any combination in any order. Furthermore, each of the methods (or embodiments), encoders, and decoders can be implemented by processing circuitry (e.g., one or more processors or one or more integrated circuits). In one example, one or more processors execute a program stored in a non-volatile computer-readable medium. According to embodiments, the term "block" can be interpreted as a prediction block, coding block, or coding unit (i.e., CU).
[0107] Dependency quantization (DQ), or grid-coded quantization, involves two quantizers, Q0 and Q1, and a procedure for switching between them. Figure 10 Example diagram 1000 of the DQ mechanism is given. At the decoder end, for example... Figure 3 The decoder 300 in the code can determine the number of reconstructions x' by multiplying the integer key k by the quantization step size Δ of Q0 or Q1. The switching between Q0 and Q1 can be achieved by having M=2 K A state machine with 2^k DQ states (K≥2 (therefore M≥4)) is used to represent the input stream x1, x2, ..., Q0 and Q1, where each DQ state is associated with either quantizer Q0 or Q1. The current DQ state is uniquely determined by the previous DQ state and the value of the current quantization key. To encode the input stream x1, x2, ..., the potential transitions between Q0 and Q1 can be represented by a state machine with 2^k DQ states (K≥2 (therefore M≥4)). KThe grid is illustrated using the DQ states. Therefore, selecting the optimal sequence of quantization bonds 1, k2, ... is equivalent to finding the grid path with the minimum rate-distortion (RD) cost, and this problem can be solved using the Viterbi algorithm.
[0108] However, even if such a hand-designed state machine might be required in the VVC standard, it is impractical to manually design (even empirically) such a state machine. For example, the main limitations of such a DQ approach are at least threefold. First, using only two quantizers, according to the exemplary embodiments in this paper, reduces bit consumption when encoding numbers, for example, by increasing the number of quantizers. Second, hand-designing the state machine is not optimal and is too expensive to include a large number of DQ states. Increasing the number of quantizers requires increasing the number of DQ states, which can improve quantization efficiency but will make the state machine too complex to be hand-designed. Finally, heuristically designed (even manually designed) key generation and digit reconstruction may also be neither optimal nor practical. Searching for other better methods requires domain expertise and may be too expensive to design manually.
[0109] As in Figure 10 In the simplified diagram 1000, an example of using Q0 and Q1 in a DQ design is shown, where the reconstructed digit can be represented by an integer key multiplied by the quantization step size Δ, and the marker above the circle indicates the associated state, while the marker below the circle indicates the associated quantization key. See also Figure 11 The exemplary simplified diagram 1100 serves as an example of a state machine with four states in a VVC. As described below, the exemplary embodiment includes a learning-based E2E DQ mechanism based on deep reinforcement learning (RL), and, for example, quantizes and reconstructs the input stream in an E2E manner while supporting an arbitrary number of DQ states, and automatically learns the transitions between different DQ states via the DQN algorithm.
[0110] Figure 12 The simplified diagram 1200 and its associated Figure 13 Flowchart 1300 in the middle, and Figure 14 The simplified diagram 1400 and its associated flowchart 1400 illustrate exemplary embodiments of the encoder and decoder workflows during the testing phase. For example, at S1301, given the input stream X = x1, x2…, where each x… i It is a floating-point number. In S1302, for each number x i The key calculation module 1201 uses the key generator 1202 based on x i To calculate key y iThen, at S1303, the state prediction module 1203 calculates the current DQ state s using the state predictor 12-4. i The input to the state prediction module 1203 includes m previous keys y. i-(m-1) ,…,y i (m≥1) and n previous DQ states s i-n ,…,s i-1 (n≥1), where m and n can be the same or different. At S1305, a selection is made between modes based on a predetermined criterion or setting, and for example, in a preferred embodiment, at S1306, let n=1 and m1, state s i-1 Each of the m keys is attached to form a pair, and the m pairs are stacked together to form an input matrix of size (m, 2). Conversely, at S1307, in another preferred embodiment, m = n, and each key and its corresponding state form a pair (y l s l-1 The m pairs are stacked together to form an input matrix of size (m, 2), such that the system will input the key y i The data is sent to a decoder, such as in diagram 1400, and the process continues with the next number x. i+1 .
[0111] At the decoder end, such as in simplified diagram 1400, key y is received at S1501. i Subsequently, the state prediction module 1404, based on the input m previous keys y i-(m-1) ,…,y i and n previous DQ states s i-n ,…,s i-1 The current DQ state s is calculated using the state predictor 1403 in the same way as the encoder. i As shown in Figure 1200. Then, at S1503, the input recovery module 1406 restores the input based on the key y using the input reconstructor 1405. i and DQ state s i To calculate the number of reconstructions x i ^. According to an exemplary embodiment, given the previous key y of the input i-(m-1) ,…,y i And the previous DQ state i-n ,…,s i-1 Either or both of state predictors 1204 and 1403 are actions. ij With output Q value v ij The action-value mapping function f(a) between them ij ,v i |y i-(m-1),…,y i s i-n ,…,s i-1 The output Q value v ij It is associated with actions j = 1, ..., J (assuming there are a total of J possible actions). Here, each action a ij Corresponding to the DQ states that the system can take, we have a total of J DQ states. For the i-th number x... i The state predictor calculates all possible actions a ij Q value v ij And select the one with the best Q value v i * Best action a i * With the best action a i * The corresponding DQ state is the system-selected state s. i The Q-value is designed to measure the target quantization performance associated with a sequence of actions. Therefore, selecting the optimal action yields the optimal target quantization performance. Further, according to an exemplary embodiment, such a deep Q-learning mechanism, particularly the DQN algorithm (which is an out-of-policy DRL method), is used as a preferred training method. For example, DQN finds an optimal action selection policy for any given finite Markov decision process, which learns an action-value mapping function to assign reward Q-values to actions. A policy is a rule that the system follows when selecting actions. Given a current state, the learning agent can choose from a set of candidate actions, resulting in different reward values. By experiencing various states and trying various actions in those states, the learning agent optimizes the reward through time-lapse learning so that it can perform optimally in any given state it is in in the future.
[0112] According to an exemplary embodiment, the state predictor (such as state predictors 1204, 1404 and any one or more of the following state predictors 1604, 1823 and 2004) is a DNN, which can act as a function approximator to estimate the action-value mapping function f(a ij ,v i |y i-(m-1) ,…,y i s i-n ,…,s i-1Such a state predictor DNN typically comprises a set of convolutional layers followed by one or more fully connected layers, and both the key generator (such as key generator 1202 and any one or more of key generators 1602 and 2002 below) and the input reconstructor (such as input reconstructor 1405 and any one or more of input reconstructors 1607 and 2022 described below) are DNNs (e.g., several convolutional layers followed by fully connected layers). According to an exemplary embodiment, such a state predictor, key generator, and input reconstructor can be jointly trained in an end-to-end manner.
[0113] According to an exemplary embodiment, Figure 16 The simplified diagram 1600 illustrates an exemplary workflow for the training phase and is described below. Figure 17 An exemplary flowchart 1700. For example, at S1701, let state(t) s -1) is the current state predictor (such as state predictor 1604), let Key(t) k -1) represents the current key generator (such as key generator 1602), and let Recon(t) r -1) represents the current input reconstructor (such as input reconstructor 1607); where t s t k and t r These can be different, allowing such state predictors, key generators, and input reconstructors to be updated at different times and at different frequencies.
[0114] At S1702, given the training input stream X = x1, x2, ..., for each number x i At S1703, the key calculation module 1601 uses the current key generator Key(t) k -1) Based on x i To calculate key y i Furthermore, similar to the testing phase, the input to the state prediction module 1603 includes m previous keys y. i-(m-1) , ..., y i (m≥1) and n previous DQ states s i-n , ..., s i-1 (n≥1), based on these, the state prediction module 1603 uses the current state predictor state (t) s -1), to calculate DQ state s i Then, at S1704, the input recovery module 1606 uses the current input reconstructor Recon(t) to... r -1), based on key y i and DQ state s i To calculate the number of reconstructions x′ iAt S1706, distortion D can be calculated in distortion calculation module 1608. i To measure the original input x1, ..., x i With the number of reconstructions x′1, ... (x′ i In number x i The difference between (before); where, for example, D i It can be L, the difference between corresponding elements in the stream. k The average of norms (e.g., the L1 norm as mean absolute error and the L2 norm as mean squared error):
[0115]
[0116] Meanwhile, at S1705, the rate loss R can be calculated in the rate calculation module 1609. i To measure in y i The previous keys y1, ..., y i Bit consumption; where, for example, y1, ..., y i Compression can be achieved using any entropy coding method, and R i This is the bit count of the compressed bitstream. Then, at S707, the system continues processing the next number x. i+1 .
[0117] Figure 18 Exemplary simplified diagram 1803 and Figure 19 The associated flowchart 1900 illustrates the details of the state prediction module according to an exemplary embodiment, for example... Figure 16 The state prediction module 1603 and similar Figure 20 The state prediction module 2003. For example, at S1901, given m keys Y... i =y i-(m-1) , ..., y i and n previous DQ states S i-1 =s i-n , ..., s i-1 As input, at S1902, the state predictor DNN State(t) s -1) Calculate all possible actions a in the state value calculation module 1821. ij The Q value v of J = 1, ... ij Then, at S1903, the state selection module 1822 selects the DQ state s using, for example, an ∈-greedy method. i , where ∈ is the probability between 0 and 1; for probability ∈, a random action a can be chosen. ij As the optimal action a i * And for probability (1-∈), the optimal action a can be chosen.i * With the best action a i * The corresponding DQ state is s i According to an exemplary embodiment, for an adjacent pair of numbers x i and x i+1 Based on distortion D i and D i+1 and rate loss R i and R i+1 The reward Φ can be calculated. i+1 The measurement state predictor 1823 measures the current Q input (key Y) by... i =y i-(m-1) , ..., y i and DQ state S i-1 =s i-n , ..., s i-1 Take action a in the following situation i * What you can get in return:
[0118] φ i+1 =D i+1 +λR i+1 (Equation 2)
[0119] Here, λ is a hyperparameter used to balance rate loss and rate distortion in rewards.
[0120] According to an exemplary embodiment, the experience E(Φ) i+1 a i * v i * Y i S i-1 (That is, based on key Y) i And the previous DQ state S i-1 To select the associated Q value v i * action a i * And then, for example, the reward Φ is obtained at the reward calculation module 1610. i+1 Added to the playback memory, such as... Figure 16 The replay memory 1612 and Figure 20 Any of the replay memory options in 2012. Such replay memory typically has a maximum storage limit, and once its limit is reached, the oldest experience will be replaced by the newest experience.
[0121] When it is time to update the state predictor 1823, key generator 1602, and input reconstructor 1607, the system samples a batch of experience from the replay memory 1612 and uses this sampled experience to update the model parameters in the memory replay & weight update module 1611.
[0122] Figure 20 Exemplary simplified diagram 2000 and its associated Figure 21 Flowchart 2100 provides an exemplary detailed workflow for the memory replay & weight update module 1611 described above. For example, during the training phase, processing can be implemented to maintain the target state predictor at S2101. T Key generator T and target input reconstructor Recon T They all have the exact same DNN model structure as the State Predictor 2004, Key Generator 2002, and Input Reconstructor 2022, respectively. The only difference is the model parameters (i.e., the weighting coefficients of the DNN), which are defined at each T... s T k and T r The parameter update cycle is cloned from the corresponding state predictor 2004, key generator 2002, and input reconstructor 2022.
[0123] Specifically, during each parameter update cycle, in S2102, the system samples a set of empirical values 2021, {E(Φ}, from a replay memory such as a replay memory 2012. l+1 a1 * v1 * Y1, S l-1 For each experience E(Φ) in experience 2021 l+1 a1 * v1 * Y1, S l-1 In the state prediction module 2003, the target state predictor, target state predictor 2023, and State... T At S2102, based on the input key Y1 and DQ state S in the user experience... l-1 To predict the target DQ state Based on the target DQ state Target key generator, Target key generator 2024, Key T The calculation key module 2001 calculates the target key at S2003. Based on target key and target DQ state Target Input Reconstructor, Target Input Reconstructor 2028, Recon TThe target to be reconstructed in the recovery input module 2006 can be calculated at S2104. Then, the distortion calculation module 2025 calculates the distortion at S2105 based on the empirical 2021. and original x l+1 To calculate target distortion Furthermore, the computation rate module 2009 is based on S2106. To calculate target rate loss According to an exemplary embodiment, steps S2106 and S2107 can be implemented sequentially or in parallel. At S2107, the calculation of the reward module 2010 can be used as a basis for... and To calculate the target reward Subsequently, the loss calculation module 2026 can also calculate the target reward T(a1) at S2107. * Y1, S l-1 ):
[0124]
[0125] in, In the given input key And state S1 = S i-1 =s 1-(n-1) ,..., In this case, the target state predictor is State. T For action a (l+1)j The Q-value is used for prediction. The hyperparameter γ is a discount rate that takes values between 0 and 1, determining the system's weighting of long-term rewards relative to short-term rewards. The smaller the discount rate, the smaller the system's weighting of long-term rewards, but the system only cares about short-term rewards. Then, the target loss... The calculation can be based on the target reward T(a) l * Y l S l-1 ) and the original v from experience l * And it happens, for example, the difference L between these two rewards. k Norm:
[0126]
[0127] Then, at S2109, the gradient of the target loss is calculated, which is backpropagated to update the weight parameters of the DNN of the state predictor 2004 to State(t) through the weight update module 2027. s Key generator Key, Key generator 2002(t) k) and input reconstructor, input reconstructor2022, Recon(t r As mentioned earlier, the state predictor 2004, key generator 2002, and input reconstructor 2022 can be updated at different timestamps. That is, in S2110, the gradient of the loss can be backpropagated to update each of the state predictor 2004, key generator 2002, and input reconstructor 2022 respectively.
[0128] Furthermore, at S2111, for each T in, for example, flowchart 2100 s T k and T r Iterating, the weight parameters of state predictor 2004, key generator 2002, and input reconstructor 2022 will be cloned into the target state predictor, target state predictor 2023, and State predictor 2022, respectively. T Target key generator, Target key generator 2024, Key T And Target Input Reconstructor, Target Input Reconstructor 2028, Recon T Furthermore, according to an exemplary embodiment, using the replay memory 2012 and the target state predictor 2023, target key generator 2024, and target input reconstructor 2028 can stabilize the training process. Furthermore, according to an exemplary embodiment, the replay memory 2012 may only have one most recent experience, which is equivalent to not having a replay memory in some cases. Additionally, T s T k and T r All of these can be equal to 1, so that the target state predictor 2023, target key generator 2024, and target input reconstructor 2028 will be updated for each iteration. According to the exemplary embodiment, this is equivalent to not having another set of target state predictors 2023, target key generators 2024, and target input reconstructors 2028.
[0129] Accordingly, referring to the above disclosure, an embodiment of learning-based E2E DQ with DQN is proposed, which can support any number of DQ states, wherein the transitions between different DQ states can be automatically determined based on the Deep Q-Network (DQN) algorithm, and thus, a flexible and general framework is disclosed that is advantageously adaptable to different DNN structures of state predictors, key generators and input reconstructors.
[0130] The techniques described above can be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable media, or implemented by one or more specially configured hardware processors. For example, Figure 22A computer device 2200 is shown that is suitable for implementing certain embodiments of the disclosed subject matter.
[0131] The computer software can be encoded using any suitable machine code or computer language, and code including instructions can be created through mechanisms such as assembly, compilation, and linking. These instructions can be executed directly by the computer's central processing unit (CPU), graphics processing unit (GPU), or through decoding, microcode, or other means.
[0132] These instructions can be executed on various types of computers or their components, including, for example, personal computers, tablets, servers, smartphones, gaming devices, Internet of Things devices, etc.
[0133] Figure 22 The components shown for computer device 2200 are exemplary in nature and are not intended to impose any limitation on the scope or functionality of computer software used to implement embodiments of this disclosure. The configuration of the components should also not be construed as having any dependency or requirement on any component or combination thereof illustrated in the exemplary embodiments of computer device 2200.
[0134] Computer device 2200 may include certain human-machine interface (HMI) input devices. These HMI input devices may respond to input from one or more human users through tactile input (e.g., keyboard input, swiping, data glove movement), audio input (e.g., sound, applause), visual input (e.g., gestures), and olfactory input (not shown). The HMI devices may also be used to capture certain media that are not necessarily directly related to conscious human input, such as audio (e.g., speech, music, ambient sound), images (e.g., scanned images, photographic images obtained from still cameras), and video (e.g., two-dimensional video, three-dimensional video including stereoscopic video).
[0135] Human-machine interface input devices may include one or more of the following (only one is depicted): keyboard 2201, mouse 2202, touchpad 2203, touch screen 2210, joystick 2205, microphone 2206, scanner 2208, and camera 2207.
[0136] Computer device 2200 may also include certain human-machine interface (HMI) output devices. These HMI output devices can stimulate the senses of one or more human users through, for example, tactile output, sound, light, and smell / taste. The HMI output devices may include tactile output devices (e.g., tactile feedback via touchscreen 2210 or joystick 2205, but may also include tactile feedback devices that are not input devices), audio output devices (e.g., speakers 2209, headphones (not shown)), visual output devices (e.g., screen 2210 including cathode ray tube screens, liquid crystal screens, plasma screens, organic light-emitting diode screens, each with or without touchscreen input functionality, tactile feedback functionality—some of which may output two-dimensional or higher-dimensional visual outputs through means such as stereoscopic image output; virtual reality glasses (not shown), holographic displays, and smoke boxes (not shown)), and printers (not shown).
[0137] Computer device 2200 may also include human-accessible storage devices and their associated media, such as optical media including media such as CD / DVD ROM / RW 2220 with CD / DVD, thumb drives 2222, removable hard disk drives or solid-state drives 2223, conventional magnetic media such as magnetic tapes and floppy disks (not shown), dedicated devices based on ROM / ASIC / PLD such as security software protectors (not shown), etc.
[0138] Those skilled in the art should also understand that the term "computer-readable medium" as used in connection with the subject matter of this invention does not include transmission media, carrier waves, or other transient signals.
[0139] Computer device 2200 may also include an interface 2299 to one or more communication networks 2298. For example, network 2298 may be wireless, wired, or optical. Network 2298 may also be a local area network (LAN), wide area network (WAN), metropolitan area network (MAN), vehicular and industrial network, real-time network, latency-tolerant network, etc. Network 2298 also includes LANs such as Ethernet, wireless LAN, cellular networks (GSM, 3G, 4G, 5G, LTE, etc.), cable or wireless wide area digital networks (including cable TV, satellite TV, and terrestrial broadcast TV), vehicular and industrial networks (including CANBus), etc. Some networks 2298 typically require external network interface adapters to connect to certain general-purpose data ports or peripheral buses (2250 and 2251) (e.g., the USB port of computer device 2200); other systems are typically integrated into the core of computer device 2200 via a system bus as described below (e.g., an Ethernet interface integrated into a PC computer system or a cellular network interface integrated into a smartphone computer system). By using any of these networks 2298, computer device 2200 can communicate with other entities. This communication can be unidirectional, used only for receiving (e.g., wireless television), unidirectional, used only for sending (e.g., CAN bus to certain CAN bus devices), or bidirectional, such as via a local area or wide area digital network to other computer systems. Each of the aforementioned networks and network interfaces can use certain protocols and protocol stacks.
[0140] The aforementioned human-computer interface device, human-accessible storage device, and network interface can be connected to the core 2240 of the computer device 2200.
[0141] Core 2240 may include one or more central processing units (CPUs) 2241, graphics processing units (GPUs) 2242, graphics adapters 2217, dedicated programmable processing units in the form of field-programmable gate arrays (FPGAs) 2243, task-specific hardware accelerators 2244, etc. These devices, along with read-only memory (ROM) 2245, random access memory (RAM) 2246, and internal mass storage (e.g., internal non-user-accessible hard disk drives, SSDs, etc.) 2247, can be connected via system bus 2248. In some computer systems, system bus 2248 can be accessed via one or more physical connectors for expansion with additional CPUs, GPUs, etc. Peripheral devices can be directly attached to the core's system bus 2248 or connected via peripheral bus 2249. Peripheral bus architectures include external controller interfaces (PCI), universal serial buses (USB), etc.
[0142] The CPU 2241, GPU 2242, FPGA 2243, and accelerator 2244 can execute certain instructions, which, when combined, constitute the aforementioned computer code. This computer code can be stored in ROM 2245 or RAM 2246. Transient data can also be stored in RAM 2246, while permanent data can be stored, for example, in internal mass storage 2247. Fast storage and retrieval of any memory device can be achieved through the use of a cache, which can be closely associated with one or more CPUs 2241, GPU 2242, mass storage 2247, ROM 2245, RAM 2246, etc.
[0143] The computer-readable medium may have computer code for performing various computer-implemented operations. The medium and computer code may be specially designed and constructed for the purposes of this invention, or they may be media and code well known and usable by those skilled in the art of computer software.
[0144] By way of example and not limitation, a computer system having architecture 2200, particularly core 2240, can function as a processor (including CPU, GPU, FPGA, accelerator, etc.) to execute software contained in one or more tangible computer-readable media. Such computer-readable media can be media associated with user-accessible mass storage as described above, as well as specific memory of core 2240 having a non-transitory nature, such as internal mass storage 2247 or ROM 2245. Software implementing various embodiments of the invention can be stored in such a device and executed by core 2240. Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software can cause core 2240, particularly the processor therein (including CPU, GPU, FPGA, etc.), to execute specific processes or specific portions of specific processes described herein, including defining data structures stored in RAM 2246 and modifying such data structures according to software-defined processes. Alternatively or concurrently, the computer system may provide logic hardwired or otherwise incorporated into circuitry (e.g., accelerator 2244) that may replace or operate with the software to perform the specific process or a specific portion of the specific process described herein. Where appropriate, references to software may include logic, and vice versa. Where appropriate, references to computer-readable media may include circuitry storing the execution of software (such as an integrated circuit (IC)), circuitry containing the execution logic, or both. This invention includes any suitable combination of hardware and software.
[0145] While numerous exemplary embodiments have been described herein, various modifications, substitutions, and alternatives to the embodiments are within the scope of this invention. Therefore, it should be understood that those skilled in the art can design various systems and methods that, while not explicitly shown or described herein, embody the principles of this invention and are thus within its spirit and scope.
Claims
1. A video encoding method, characterized in that, The method includes: Obtain the input stream of video data; Calculate multiple keys based on multiple floating-point numbers in the input stream; The current DQ state is predicted based on a state predictor, multiple previous keys, and multiple previous dependency quantization DQ states; wherein the state predictor includes an action-value mapping function between actions and output Q-values, the output Q-values being associated with the actions; the actions correspond to at least one of the DQ states; the state predictor further includes a correspondence between some of the multiple actions and some of the DQ states, the multiple actions including the actions, and the DQ states including the at least one of the DQ states; wherein the current DQ state is predicted by selecting the action with the optimal Q-value. Reconstruct the plurality of floating-point numbers based on the plurality of keys and at least the current DQ state; and The video is encoded based on multiple reconstructed floating-point numbers.
2. The method according to claim 1, characterized in that, The calculation of the plurality of keys and the reconstruction of the plurality of floating-point numbers includes implementing one or more deep neural networks (DNNs).
3. The method according to claim 1, characterized in that, Predicting the current DQ state includes implementing an action-value mapping function between actions and output Q values associated with those actions.
4. The method according to claim 1, characterized in that, The output Q value represents a measurement of the target quantization performance associated with the action sequence, which includes the actions.
5. The method according to claim 1, characterized in that, Predicting the current DQ state based on the state predictor includes: calculating a Q value, including the output Q value, for each action in the actions.
6. The method according to claim 5, characterized in that, Select the output Q value from the calculated Q values.
7. A video encoding apparatus, characterized in that, The device includes: At least one memory is configured to store computer program code; At least one processor is configured to access the computer program code and operate as instructed by the computer program code, the computer program code comprising: The code is configured to enable the at least one processor to obtain an input stream of video data; The computation code is configured to cause the at least one processor to compute multiple keys based on multiple floating-point numbers in the input stream; Prediction code is configured to cause the at least one processor to predict the current DQ state based on a state predictor, a plurality of previous keys, and a plurality of previous dependency quantizations of DQ states; wherein the state predictor includes an action-value mapping function between an action and an output Q-value associated with the action; the action corresponds to at least one of the DQ states; the state predictor further includes a correspondence between some of the plurality of actions and some of the DQ states, the plurality of actions including the action, and the DQ states including the at least one of the DQ states; wherein the current DQ state is predicted by selecting the action with the optimal Q-value. Reconstruction code is configured to cause the at least one processor to reconstruct the plurality of floating-point numbers based on the plurality of keys and at least the current DQ state; and The encoding code is configured to cause the at least one processor to encode the video based on a plurality of reconstructed floating-point numbers.
8. A non-volatile computer-readable medium storing a program that causes a computer to perform the method as described in any one of claims 1 to 6.
9. A computer device, characterized in that, It includes a processor and a memory; the memory stores a computer program that, when executed by the processor, causes the processor to perform the method as described in any one of claims 1 to 6.
10. A method for storing video streams, characterized in that, The method of claim 1 is used to generate a video stream and to store the video stream.
11. A method for transmitting video streams, characterized in that, The method of claim 1 is used to generate a video stream and transmit the video stream.
12. A computer-readable storage medium storing a computer program / instructions and a video stream thereon, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method of claim 1 to generate the video stream.
