Joint Termination of Bidirectional Data Blocks for Parallel Coding
Patent Information
- Application Number
- JP2023521759
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-04-07
- Filing Date
- 2021-09-20
- Publication Date
- 2024-08-29
- Estimated Expiration
- 2041-09-20
AI Technical Summary
Existing video coding techniques face challenges in efficiently compressing high-quality video data due to the large amounts of data required, leading to strain on communication networks and devices, and sequential coding methods create throughput bottlenecks that limit hardware capabilities.
The implementation of bidirectional data packing and co-termination bytes for parallel entropy encoding and decoding, which optimizes termination points in pairs of bitstreams to reduce overhead and enable simultaneous processing without degrading compression efficiency.
This approach significantly reduces bitstream overhead and compression losses, allowing for more efficient parallel processing of video data, thereby enhancing the throughput and reducing the burden on communication networks and devices.
Abstract
Description
[Technical Field]
[0001] The present invention relates to systems and techniques for coding (e.g., encoding and / or decoding) image and / or video content. [Background technology]
[0002]
[0001] Many devices and systems enable video data to be processed and output for consumption. Digital video data involves large amounts of data to meet the demands of consumers and video providers. For example, consumers of video data want high-quality video, including high fidelity, resolution, and frame rate. As a result, the large amounts of video data required to meet these demands burden communication networks and devices that process and store the video data.
[0003]
[0002] Video coding techniques can be used to compress video data. The goal of video coding is to compress video data into a format that uses a lower bitrate while avoiding or minimizing any degradation in video quality. As video services are constantly evolving and more readily available, coding techniques with better coding efficiency are needed. [Overview of the project]
[0004]
[0003] Systems and techniques for coding (e.g., encoding and / or decoding) image and / or video content are described. One exemplary example provides a method for processing video data. This method includes: obtaining encoded video data; determining the intersection of values between a value for the first termination byte of a first parcel of the encoded video data and a value for the second termination byte of a second parcel of the encoded video data; determining a joint termination byte for the first termination byte of the first parcel and the second termination byte of the second parcel, thereby generating entropy-coded data in which the value for the joint termination byte includes the joint termination bytes for the first and second parcels, based on the intersection of values (value of the intersection).
[0005]
[0004] In another example, a device for processing video data is provided, comprising a memory configured to store video data and a processor coupled to the memory (for example, implemented in a circuit). In some examples, two or more processors may be coupled to the memory and may be used to perform one or more of the operations. One or more processors are configured to acquire encoded video data, determine the intersection of values between a value for the first termination byte of a first parcel of the encoded video data and a value for the second termination byte of a second parcel of the encoded video data, determine a joint termination byte for the first termination byte of the first parcel and the second termination byte of the second parcel, thereby generating entropy-coded data in which the value for the joint termination byte includes the joint termination bytes for the first and second parcels, based on the intersection of values (value of the intersection).
[0006]
[0005] In another example, a non-temporary computer-readable medium is provided which stores instructions, and when the instructions are executed by one or more processors, causes one or more processors to: acquire encoded video data; determine the intersection of a value for the first termination byte of a first parcel of the encoded video data and the value for the second termination byte of a second parcel of the encoded video data; determine a joint termination byte for the first termination byte of the first parcel and the second termination byte of the second parcel, thereby generating entropy-coded data in which the value for the joint termination byte includes the joint termination bytes for the first and second parcels, based on the intersection of values (value of the intersection).
[0007]
[0006] In another example, a device for processing video data is provided. The device includes means for acquiring encoded video data, determining the intersection of values between a value for the first termination byte of a first parcel of encoded video data and a value for the second termination byte of a second parcel of encoded video data, determining a joint termination byte for the first termination byte of the first parcel and the second termination byte of the second parcel, and means for generating entropy-coded data in which the value for the joint termination byte includes a joint termination byte for the first and second parcels based on the intersection of values (value of the intersection).
[0008]
[0007] In some embodiments, entropy-coded data is generated using arithmetic coding.
[0009]
[0008] In some embodiments, the value for the first terminating byte includes a first range of terminating byte values that are allowed to be decoded, the value for the second terminating byte includes a second range of terminating byte values that are allowed to be decoded, and the intersection of the values (the value at the intersection) includes values that are in the first range and the second range.
[0010]
[0009] In some embodiments, the entropy-coded data is generated using binary coding.
[0011]
[0010] In some embodiments, the value for the first terminating byte includes a first number of bits, the value for the second terminating byte includes a second number of bits, and the intersection of the values (the value of the intersection) includes a common value in the first and second number of bits and at least one of a subset of the value from the first number of bits and a subset of the value from the second number of bits. In some cases, the order of the first number of bits and the order of the second number of bits are not changed in the joint terminating byte compared to the order of the first number of bits in the first terminating byte and the order of the second number of bits in the second terminating byte.
[0012]
[0011] In some embodiments, generating entropy-coded data involves performing parallel entropy coding on a first parcel and a second parcel.
[0013]
[0012] In some embodiments, the first parcel is encoded using a first encoder, and the first parcel is encoded using a second encoder.
[0014]
[0013] In some embodiments, the methods, apparatus, and computer-readable media described above include storing a first parcel in a first buffer and storing a second parcel in a second buffer.
[0015]
[0014] In some embodiments, the methods, apparatus, and computer-readable media described above include transmitting a bitstream containing entropy-coded data.
[0016]
[0015] In some embodiments, the methods, apparatus, and computer-readable media described above include storing a bitstream containing entropy-coded data.
[0017]
[0016] In some embodiments, the methods, apparatus, and computer-readable media described above include performing parallel entropy decoding of the first parcel and the second parcel using a joint-terminating byte for the first parcel and the second parcel.
[0018]
[0017] In some embodiments, the methods, apparatus, and computer-readable media described above include reading a first parcel in a forward order and reading a second parcel in a reverse order.
[0019]
[0018] In some embodiments, the methods, apparatus, and computer-readable media described above include converting the bytes of a second parcel in reverse order.
[0020]
[0019] In some embodiments, the joint termination byte is the final termination byte of the first parcel and the second parcel for processing.
[0021]
[0020] In some embodiments, the encoded video data comprises one or more syntax elements of a video bitstream. In some embodiments, one or more syntax elements indicate one or more parameters that define a neural network for decoding the encoded video data. In some embodiments, one or more parameters that define the neural network comprises at least one of the weights of the neural network and the activation function of the neural network.
[0022]
[0021] In another exemplary example, a method for processing video data is provided. The method includes obtaining a first parcel of entropy-coded data and a second parcel of entropy-coded data, where the first parcel and the second parcel share a common end byte, and where the value of the common end byte is based on an intersection of values between the value of the first end byte of the first parcel and the value of the second end byte of the second parcel, and performing parallel entropy decoding of the first parcel and the second parcel using the common end byte for the first parcel and the second parcel.
[0023]
[0022] In another example, an apparatus for processing video data is provided that includes a memory configured to store video data and a processor coupled to the memory (e.g., implemented in a circuit). In some examples, two or more processors may be coupled to the memory and used to perform one or more of the operations. One or more processors are configured to obtain a first parcel of entropy-coded data and a second parcel of entropy-coded data, where the first parcel and the second parcel share a common end byte, and where the value of the common end byte is based on an intersection of values between the value of the first end byte of the first parcel and the value of the second end byte of the second parcel, and perform parallel entropy decoding of the first parcel and the second parcel using the common end byte for the first parcel and the second parcel.
[0024]
[0023] In another example, a non - transitory computer - readable medium stores instructions that, when executed by one or more processors, cause the one or more processors to obtain a first parcel of entropy - encoded data and a second parcel of entropy - encoded data, where the first parcel and the second parcel share a common end byte, and where the value of the common end byte is based on an intersection of values between the value of the first end byte of the first parcel and the value of the second end byte of the second parcel, and to perform a parallel entropy decoding of the first parcel and the second parcel using the common end byte for the first parcel and the second parcel. A non - transitory computer - readable medium is provided.
[0025]
[0024] In another example, an apparatus for processing video data is provided. The apparatus includes means for obtaining a first parcel of entropy - encoded data and a second parcel of entropy - encoded data, and means for performing a parallel entropy decoding of the first parcel and the second parcel using a common end byte for the first parcel and the second parcel, where the first parcel and the second parcel share a common end byte, and where the value of the common end byte is based on an intersection of values between the value of the first end byte of the first parcel and the value of the second end byte of the second parcel.
[0026]
[0025] In some embodiments, the entropy - encoded data is encoded using arithmetic coding. <00001
[0027] In some embodiments, the entropy-coded data is generated using binary coding.
[0029]
[0028] In some embodiments, the value for the first terminating byte includes a first number of bits, the value for the second terminating byte includes a second number of bits, and the intersection of the values (the value of the intersection) includes a common value between the first number of bits and the second number of bits, and at least one of a subset of the value from the first number of bits and a subset of the value from the second number of bits.
[0030]
[0029] In some embodiments, the order of the first number of bits and the order of the second number of bits are not changed in the joint-termining byte compared to the order of the first number of bits in the first-termining byte and the order of the second number of bits in the second-termining byte.
[0031]
[0030] In some embodiments, the methods, apparatus, and computer-readable media described above include obtaining a first parcel from a first buffer and obtaining a second parcel from a second buffer.
[0032]
[0031] In some embodiments, the methods, apparatus, and computer-readable media described above include reading a first parcel in a forward order and reading a second parcel in a reverse order.
[0033]
[0032] In some embodiments, the methods, apparatus, and computer-readable media described above include converting the bytes of a second parcel in reverse order.
[0034]
[0033] In some embodiments, the joint termination byte is the final termination byte of the first parcel and the second parcel for processing.
[0035]
[0034] In some embodiments, the methods, apparatus, and computer-readable media described above include receiving a video bitstream, the video bitstream including a first parcel, a second parcel, and one or more syntax elements. In some embodiments, the one or more syntax elements indicate one or more parameters that define a neural network for decoding the encoded video data. In some embodiments, the one or more parameters that define the neural network include at least one of the weights of the neural network and the activation function of the neural network.
[0036]
[0035] In some embodiments, the device comprises a mobile device (e.g., a mobile phone or so-called "smartphone", a tablet computer, or other type of mobile device), a wearable device, an extended reality device (e.g., a virtual reality (VR) device, an augmented reality (AR) device, or a mixed reality (MR) device), a personal computer, a laptop computer, a video server, a television (e.g., a network-connected television), a vehicle (or a computing device in a vehicle), or other device. In some embodiments, the device includes at least one camera for capturing one or more images or video frames. For example, the device may include a camera (e.g., an RGB camera) or multiple cameras for capturing one or more videos, including one or more images and / or video frames. In some embodiments, the device includes a display for displaying one or more images, videos, notifications, or other displayable data. In some embodiments, the device includes a transmitter configured to transmit one or more video frames and / or syntax data to at least one device via a transmission medium. In some embodiments, the processor includes a neural processing unit (NPU), a central processing unit (CPU), a graphics processing unit (GPU), or other processing devices or components.
[0037]
[0036] The summary of the present invention is not intended to identify the main or essential features of the claimed subject matter, nor to be used independently to determine the scope of the claimed subject matter. The subject matter should be understood by referring to the entire specification of this patent, any or all of the drawings, and the appropriate portion of each claim.
[0038]
[0037] The above will become clearer with reference to the following specification, claims, and accompanying drawings, along with other features and embodiments.
[0039]
[0038] Exemplary embodiments of this application will be described in detail below with reference to the following figures. [Brief explanation of the drawing]
[0040] [Figure 1]
[0039] A diagram showing an exemplary implementation form of a system-on-a-chip (SOC) by several examples. [Figure 2]
[0040] Block diagrams showing encoding and decoding devices in several examples. [Figure 3]
[0041] A diagram illustrating an example of a system that includes a device capable of performing image and / or video coding (encoding and decoding) using a neural network-based system, with several examples. [Figure 4]
[0042] A diagram illustrating an example of the data organization and coding process for bidirectional byte packing, using several examples. [Figure 5]
[0043] A diagram illustrating an example of extending bidirectional byte packing to support parallel entropy coding and decoding, using several examples. [Figure 6]
[0044] A diagram illustrating the factors used for correct arithmetic coding termination, using several examples. [Figure 7A]
[0045] A diagram illustrating an example of byte termination in bidirectional byte packing when bits are written in reverse order within a byte in a reverse stream, using several examples of byte concatenation. [Figure 7B]
[0046] A diagram illustrating an example of byte termination in bidirectional byte packing when bits are written in reverse order within a byte in a reverse stream, where bits are copied to a shared termination byte if there is no overlap in the bit positions used, using several examples. [Figure 8A]
[0047] A diagram illustrating an example of byte termination in bidirectional byte packing where byte concatenation is used, and bits are written in the same order for both streams, using several examples. [Figure 8B]
[0048] A diagram illustrating an example of byte termination in bidirectional byte packing where bits are written in the same order for both streams, with bits copied to the shared termination byte if the first bit values are equivalent, using several examples. [Figure 9A]
[0049] A diagram showing examples of valid arithmetic coding termination byte values (gray area) and equal values (dashed lines) where non-empty intersections (bold dashed areas) exist, with several examples. [Figure 9B]
[0050] A diagram showing examples of valid arithmetic coding termination byte values (gray area) and equal values (dashed lines) with empty intersections, using several examples. [Figure 10A]
[0051] A diagram illustrating an example of bidirectional byte packing of arithmetic-coded streams, defined by a set of allowable termination bytes where no intersections exist between sets, using several examples. [Figure 10B]
[0052] A diagram illustrating an example of bidirectional byte packing of arithmetic-coded streams, defined by a set of allowable termination bytes, where one byte at the intersection is used for the shared termination, using several examples. [Figure 11A]
[0053] A diagram illustrating, with several examples, how range intervals around the terminating byte can be split when an arithmetic carry operation is possible in the addition. [Figure 11B] A diagram illustrating, with several examples, how range intervals around the terminating byte can be split when arithmetic coding carry operations are possible in the addition. [Figure 12A]
[0054] Several examples are shown, similar to the example in Figure 9A, but in the reverse stream, the bits are stored in reverse order. [Figure 12B] Several examples are shown, similar to the example in Figure 9B, but in the reverse stream, the bits are stored in reverse order. [Figure 13]
[0055] A flowchart illustrating an example of a process for processing video data, using several examples. [Figure 14]
[0056] A flowchart illustrating another example of a process for processing video data, using several examples. [Figure 15A]
[0057] A diagram illustrating an example of a fully connected neural network, using several examples. [Figure 15B]
[0058] A diagram illustrating an example of a locally connected neural network, using several examples. [Figure 15C]
[0059] A diagram illustrating an example of a convolutional neural network using several examples. [Figure 15D]
[0060] A diagram illustrating detailed examples of deep convolutional networks (DCNs) designed to recognize visual features from images, using several examples. [Figure 16]
[0061] Block diagrams illustrating deep convolutional networks (DCNs) using several examples. [Figure 17]
[0062] A diagram showing an exemplary computing device architecture of an exemplary computing device capable of implementing the various techniques described herein. [Modes for carrying out the invention]
[0041]
[0063] Several aspects and embodiments of this disclosure are provided below. As will be apparent to those skilled in the art, some of these aspects and embodiments may be applied independently, and some may be applied in combination. For illustrative purposes, specific details are provided in the following description to provide a complete understanding of the embodiments of this application. However, it will be apparent that various embodiments may be carried out without these specific details. The figures and description are not limiting.
[0042]
[0064] The following description provides only exemplary embodiments and does not limit the scope, applicability, or configuration of the disclosure. Rather, the following description of exemplary embodiments will provide a description that enables the implementation of exemplary embodiments for those skilled in the art. It should be understood that various modifications can be made to the function and configuration of the elements without departing from the spirit and scope of this application, as described in the appended claims.
[0043]
[0065] Digital video data can contain massive amounts of data, especially as the demand for high-quality video data continues to grow. For example, video data consumers generally desire increasingly higher quality video with higher fidelity, resolution, and frame rates. However, the large amounts of video data required to meet such demands can place a significant burden on communication networks and the devices that process and store the video data.
[0044]
[0066] Various techniques can be used to code video data. Video coding may be performed according to a specific video coding standard, or using one or more machine learning systems or algorithms. Exceptional video coding standards include, in particular, General-Purpose Video Coding (VVC), High-Efficiency Video Coding (HEVC), Advanced Video Coding (AVC), Moving Picture Expert Group (MPEG) coding (e.g., MPEG-5 Essential Video Coding (EVC) or other MPEG-based coding), and AOMedia Video 1 (AV1). Video coding often uses predictive methods such as inter-prediction or intra-prediction, which exploit redundancy present in video images or sequences. A common goal of video coding techniques is to compress video data into a format that uses a lower bitrate while avoiding or minimizing degradation of video quality. As demand for video services increases and new video services become available, coding techniques with better coding efficiency, performance, and rate control are needed.
[0045]
[0067] Video coding devices implement video compression techniques for efficiently encoding and decoding video data. Video compression techniques may include applying different prediction modes, including spatial prediction (e.g., intra-frame prediction or intra-prediction), temporal prediction (e.g., inter-frame prediction or inter-prediction), inter-layer prediction (across different layers of video data), and / or other prediction techniques, to reduce or eliminate redundancy inherent in the video sequence. A video encoder can divide each picture in the original video sequence into rectangular regions called video blocks or coding units (described in more detail below). These video blocks may be encoded using a specific prediction mode.
[0046]
[0068] A video block can be divided in one or more ways into one or more groups of smaller blocks. A block may include a coding tree block, a prediction block, a transformation block, and / or other suitable blocks. Generally, references to a “block” can refer to such a video block (e.g., a coding tree block, a coding block, a prediction block, a transformation block, or other suitable block or subblock, as understood by those skilled in the art). Furthermore, each of these blocks may also be interchangeably referred to herein as a “unit” (e.g., a coding tree unit (CTU), a coding unit, a prediction unit (PU), a transformation unit (TU), etc.). In some cases, a unit may represent a coding logic unit encoded in a bitstream, and a block may represent a portion of a video frame buffer that the process is targeting.
[0047]
[0069] In interprediction mode, the video encoder can search for a block similar to the one being encoded in a frame (or picture) at a different time location, called a reference frame or reference picture. The video encoder may limit its search to a spatial displacement from the block to be encoded. The best match may be identified using a two-dimensional (2D) motion vector that includes horizontal and vertical displacement components. In intraprediction mode, the video encoder may use spatial prediction techniques to form a predicted block based on data from previously encoded adjacent blocks within the same picture.
[0048]
[0070] A video encoder can determine a prediction error. For example, the prediction may be determined as the difference between the pixel value in the encoded block and the predicted pixel value in the block. The prediction error is sometimes called the residual. The video encoder may also apply a transformation to the prediction error (for example, using the form of a discrete cosine transform (DCT), a discrete sine transform (DST), or other suitable transformation) to generate transformation coefficients. After the transformation, the video encoder may quantize the transformation coefficients. The quantized transformation coefficients and motion vectors can be represented using syntax elements and, together with control information, form a coded representation of the video sequence. In some cases, the video encoder may entropy code the syntax elements, thereby further reducing the number of bits required for their representation.
[0049]
[0071] A video decoder can use the syntax elements and control information described above to construct prediction data (e.g., prediction blocks) for decoding the current frame. For example, a video decoder may add the predicted blocks to the compressed prediction error. The video decoder may determine the compressed prediction error by weighting the transformation basis function using quantized coefficients. The difference between the reconstructed frame and the original frame is called the reconstruction error.
[0050]
[0072] Arithmetic coding is used by many video compression standards, including VVC, HEVC, VP9, and AV1. Such widespread use is at least in part because arithmetic coding allows for robust data modeling and results in compression very close to the theoretical limit. One problem with using arithmetic coding for video coding / compression is that as video resolution and frame rates continue to increase, sequential coding can create a throughput bottleneck, which can increase costs up to the point where the limits of current hardware are reached. One solution to offset such problems is to employ parallelism, for example, by dividing the bitstream into independent data blocks that can be processed concurrently. Furthermore, new coding (encoding and decoding) methods based on machine learning techniques (e.g., using neural networks or other machine learning tools) have been developed to satisfy coding requirements. Such machine learning techniques can also employ arithmetic coding and / or parallelism. Dividing the bitstream into data blocks allows for concurrent processing of data, but it can severely degrade compression. For example, when arithmetic coding is terminated, extra bits are needed to ensure correct decoding and, in some cases, for padding to the next byte boundary.
[0051]
[0073] As will be described in more detail below, systems, apparatus, methods (also called processes), and computer-readable media for performing arithmetic coding (e.g., encoding, decoding, or both encoding and decoding) are described herein (collectively referred to as “systems and techniques”). The systems and techniques described herein can significantly reduce the overhead and resulting compression losses. In some cases, embodiments of the systems and techniques described herein are based on the discovery that it is possible to jointly optimize the termination of pairs of arithmetic coding bitstreams using a form of bidirectional data packing that is more efficient for split bitstreams, leading to significantly more efficient results than conventional termination. Theoretical analyses and simulations of realistic coding conditions are provided below to confirm the effectiveness of the proposed systems and techniques.
[0052]
[0074] Various aspects of this disclosure will be described with reference to the figures. Figure 1 shows an exemplary implementation of a system-on-a-chip (SOC) 100 which may include a central processing unit (CPU) 102 or a multicore CPU configured to perform one or more of the functions described herein. Among the information, parameters or variables (e.g., neural signals and synaptic weights), system parameters related to computation devices (e.g., weighted neural networks), delays, frequency bin information, and task information may be stored in memory blocks associated with a neural processing unit (NPU) 108, memory blocks associated with the CPU 102, memory blocks associated with a graphics processing unit (GPU) 104, memory blocks associated with a digital signal processor (DSP) 106, memory block 118, and / or distributed across multiple blocks. Instructions executed in the CPU 102 may be loaded from program memory associated with the CPU 102 or from memory block 118.
[0053]
[0075] The SOC100 may also include additional processing blocks adapted to specific functions, such as a GPU104 and a DSP106, a connectivity block 110 which may include fifth-generation (5G) connectivity, fourth-generation Long-Term Evolution (4G LTE®) connectivity, Wi-Fi® connectivity, USB connectivity, Bluetooth® connectivity, etc., and a multimedia processor 112 which may be capable of detecting and recognizing gestures, for example. In one implementation, the NPU is implemented in the CPU102, DSP106, and / or GPU104. The SOC100 may also include a navigation module 120 which may include a sensor processor 114, an image signal processor (ISP) 116, and / or a global positioning system.
[0054]
[0076] The SOC100 may be based on the ARM instruction set. In one aspect of this disclosure, instructions loaded into the CPU102 may include code for retrieving a stored multiplication result in a lookup table (LUT) corresponding to the multiplication product of an input value and a filter weight. Instructions loaded into the CPU102 may also include code for disabling the multiplier during the multiplication operation of the multiplication product when a lookup table hit is detected for the multiplication product. Furthermore, instructions loaded into the CPU102 may include code for storing the calculated multiplication product of an input value and a filter weight when a lookup table miss is detected for the multiplication product.
[0055]
[0077] SOC100 and / or its components may be configured to perform video compression and / or decompression (also known as video coding and / or decoding, collectively referred to as video coding) using standards-based video coding and / or machine learning techniques. Examples of standards-based and machine learning-based video coding systems are described with reference to Figures 2 and 3.
[0056]
[0078] Figure 2 is a block diagram showing an example of a system 200, including an encoding device 204 and a decoding device 212, which can encode and decode video data, respectively, according to examples described herein. In some examples, the encoding device 204 and / or the decoding device 212 may include the SOC 100 in Figure 1. The encoding device 204 may be part of a source device, and the decoding device 212 may be part of a receiving device (also called a client device). In some examples, the source device may also include a decoding device similar to the decoding device 212. In some examples, the receiving device may also include an encoding device similar to the encoding device 204. Source devices and / or receiving devices may include electronic devices such as mobile or landline telephone handsets (e.g., smartphones, cellular phones, etc.), desktop computers, laptop or notebook computers, tablet computers, set-top boxes, televisions, cameras, display devices, digital media players, video game consoles, Internet Protocol (IP) cameras, server devices in a server system including one or more server devices (e.g., a video streaming server system or other suitable server system), head-mounted displays (HMDs), head-up displays (HUDs), smart glasses (e.g., virtual reality (VR) glasses, augmented reality (AR) glasses, or other smart glasses), or any other suitable electronic devices.
[0057]
[0079] The system components 200 may include and / or be implemented using electronic circuits or other electronic hardware that can include the SOC 100 and / or one or more programmable electronic circuits (e.g., a microprocessor, a graphics processing unit (GPU), a digital signal processor (DSP), a central processing unit (CPU), a neural processing unit (NPU), and / or other suitable electronic circuits) to perform the various operations described herein, and / or may include and / or be implemented using computer software, firmware, or any combination thereof.
[0058]
[0080] While System 200 is shown to include several components, those skilled in the art will understand that System 200 may include more or fewer components than those shown in Figure 2. For example, System 200 may also, in some examples, include one or more memory devices other than Storage 208 and Storage 218 (e.g., one or more random access memory (RAM) components, read-only memory (ROM) components, cache memory components, buffer components, database components, and / or other memory devices), one or more processing devices communicating with and / or electrically connected to one or more memory devices (e.g., one or more CPUs, GPUs, NPUs, and / or other processing devices), one or more wireless interfaces for performing wireless communication (e.g., including one or more transceivers and baseband processors for each wireless interface), one or more wired interfaces for performing communication via one or more wired connections (e.g., serial interfaces such as Universal Serial Bus (USB) inputs, Lightning connectors, and / or other wired interfaces), and / or other components not shown in Figure 2.
[0059]
[0081] The coding techniques described herein are applicable to video coding in a variety of multimedia applications, including, for example, streaming video transmission (over the Internet), television broadcasting or transmission, encoding of digital video for storage on a data storage medium, decoding of digital video stored on a data storage medium, or other applications. In some examples, system 200 can support one-way or two-way video transmission to support applications such as video conferencing, video streaming, video playback, video broadcasting, games, and / or video telephony.
[0060]
[0082] In some examples, the encoding device 204 (or encoder) may be used to encode video data using a video coding standard or protocol to produce an encoded video bitstream. Examples of video coding standards include ITU-T H.261, ISO / IEC MPEG-1 Visual, ITU-T H.262 or ISO / IEC MPEG-2 Visual, ITU-T H.263, ISO / IEC MPEG-4 Visual, ITU-T H.264 (also known as ISO / IEC MPEG-4 AVC), High Efficiency Video Coding (HEVC) or ITU-T H.265, General Purpose Video Coding (VVC) or ITU-T H.266, and / or other video coding standards. One or more of these video coding standards have extensions related to other aspects of video coding. For example, various extensions to HEVC address multi-layer video coding, including range and screen content coding extensions, 3D video coding (3D-HEVC), multi-view extensions (MV-HEVC), and scalable extensions (SHVC).
[0061]
[0083] Many embodiments described herein may be implemented using video codecs such as VVC, HEVC, AVC, and / or extensions thereof. However, the techniques and systems described herein may also be applicable to other coding standards such as MPEG, JPEG (or other coding standards for still images), VP9, AV1, and their extensions, or to other suitable coding standards that are already available, not yet available, or have not yet been developed, such as machine learning-based video coding described below. Thus, although the techniques and systems described herein may be described with reference to a particular video coding standard, those skilled in the art will understand that the descriptions should not be interpreted as applying only to that particular standard.
[0062]
[0084] Referring to Figure 2, the video source 202 may provide video data to the encoding device 204. The video source 202 may be part of a source device or part of a device other than a source device. The video source 202 may include a video capture device (e.g., a video camera, camera phone, videophone, etc.), a video archive containing stored video, a video server or content provider providing video data, a video feed interface receiving video from a video server or content provider, a computer graphics system for generating computer graphics video data, a combination of such sources, or any other suitable video source.
[0063]
[0085] Video data from video source 202 may contain one or more input pictures. A picture is sometimes called a “frame.” A picture, or frame, is a still image that is part of a video in some cases. In some examples, data from video source 202 may be still images that are not part of a video. In HEVC, VVC, and other video coding specifications, a video sequence may contain a series of pictures. A picture is S L SCb , and S Cr It may include three sample arrays, as shown. L This is a two-dimensional array of lumens samples, S Cb This is a two-dimensional array of Cb chrominance samples, and S Cr This is a two-dimensional array of Cr chrominance samples. Chrominance samples are sometimes referred to as "chroma" samples in this specification. In other cases, the picture may be monochrome and may contain only an array of chroma samples.
[0064]
[0086] The encoder engine 206 (or encoder) of the encoding device 204 encodes video data to produce an encoded video bitstream. In some examples, an encoded video bitstream (or "video bitstream" or "bitstream") is a series of one or more coded video sequences. According to HEVC, a coded video sequence (CVS) includes a series of AUs, starting with an access unit (AU) in the base layer having a random access point picture with certain properties (e.g., a RASL flag equal to 1 (e.g., NoRaslOutputFlag)), and continuing to the next AU in the base layer having a random access point picture with certain properties, without including the next AU. Each AU includes one or more coded pictures and control information corresponding to the coded pictures that share the same output time. At the bitstream level, coded slices of pictures are encapsulated in data units called network abstraction layer (NAL) units. For example, an HEVC video bitstream may include one or more CVSs, each containing a NAL unit. Each NAL unit has a NAL unit header. Syntax elements in a NAL unit header take the specified bits and are therefore visible to all types of system and transport layers, particularly transport streams, real-time transport (RTP) protocols, and file formats.
[0065]
[0087] Two classes of NAL units exist in the HEVC standard: Video Coding Layer (VCL) NAL units and non-VCL NAL units. VCL NAL units contain coded picture data that forms a coded video bitstream. For example, a sequence of bits that forms a coded video bitstream resides within a VCL NAL unit. A VCL NAL unit may contain a single slice or slice segment (as described below) of coded picture data, while a non-VCL NAL unit contains control information relating to one or more coded pictures. In some cases, NAL units are referred to as packets. An HEVC AU includes VCL NAL units containing coded picture data and non-VCL NAL units corresponding to the coded picture data (if any). In addition to other information, non-VCL NAL units may contain parameter sets with high-level information relating to the coded video bitstream. For example, parameter sets may include a video parameter set (VPS), a sequence parameter set (SPS), and a picture parameter set (PPS). In some cases, each slice or other portion of the bitstream may refer to a single active PPS, SPS, and / or VPS to allow the decryption device 212 to access information that can be used to decrypt the slice or other portion of the bitstream.
[0066]
[0088] A NAL unit may contain a sequence of bits that form a coded representation of video data, such as a coded representation of a picture in a video (e.g., an encoded video bitstream, a CVS of the bitstream, etc.). The encoder engine 206 generates a coded representation of a picture by dividing each picture into multiple slices. Each slice is independent of other slices so that the information in the slice is coded without depending on data from other slices within the same picture. Each slice includes one or more slice segments containing independent slice segments and, if present, one or more dependent slice segments that depend on the previous slice segment.
[0067]
[0089] In HEVC, a slice is divided into coding tree blocks (CTBs) of lumar and chromar samples. One or more CTBs of lumar and chromar samples, along with the syntax for the samples, are called coding tree units (CTUs). CTUs are sometimes called "tree blocks" or "largest coding units" (LCUs). A CTU is the basic processing unit for HEVC coding. A CTU can be split into multiple coding units (CUs) of varying sizes. A CU contains lumar and chromar sample arrays called coding blocks (CBs).
[0068]
[0090] The lumar and chroma CBs can be further split into prediction blocks (PBs). A PB is a block of samples of a lumar or chroma component that uses the same motion parameters for inter-prediction or intra-block copy (IBC) prediction (when available or enabled for use). The lumar PB and one or more chroma PBs, along with their associated syntax, form a prediction unit (PU). For inter-prediction, a set of motion parameters (e.g., one or more motion vectors, reference indices, etc.) is signaled in the bitstream for each PU and used for inter-prediction of the lumar PB and one or more chroma PBs. Motion parameters are sometimes called motion information. The CBs can also be divided into one or more transformation blocks (TBs). A TB represents a square block of samples of a color component to which a residual transformation (e.g., in some cases, the same 2D transformation) is applied to code the prediction residual signal. A transformation unit (TU) represents the TBs of the lumar and chroma samples and their corresponding syntax elements. Transform coding is described in more detail below.
[0069]
[0091] The size of the CU corresponds to the size of the coding mode and may be square in shape. For example, the size of the CU may be 8×8 samples, 16×16 samples, 32×32 samples, 64×64 samples, or any other suitable size up to the size of the corresponding CTU. The phrase "N×N" is used herein to refer to the pixel dimensions of a video block with respect to its vertical and horizontal dimensions (e.g., 8 pixels × 8 pixels). Pixels in a block may be arranged in rows and columns. In some embodiments, a block may not have the same number of pixels horizontally as it does vertically. Syntax data associated with a CU may, for example, represent a division of the CU into one or more PUs. The division mode may differ between intra-predictive mode coding and inter-predictive mode coding of the CU. PUs may be divided so that their shape is non-square. Syntax data associated with a CU may also represent a division of the CU into one or more TUs following a CTU. TUs may be square or non-square in shape.
[0070]
[0092] According to HEVC, the transformation can be performed using transformation units (TUs). TUs can differ in different CUs. TUs can be sized based on the size of PUs within a given CU. TUs can be the same size as PUs or smaller. In some examples, residual samples corresponding to CUs can be subdivided into smaller units using a quad tree structure known as a residual quad tree (RQT). Leaf nodes in the RQT can correspond to TUs. Pixel difference values associated with TUs can be transformed to produce transformation coefficients. These transformation coefficients can be quantized by the encoder engine 206.
[0071]
[0093] Once the video data picture is divided into CUs, the encoder engine 206 predicts each PU using a prediction mode. The prediction unit or prediction block is subtracted from the original video data to obtain the residual (described below). For each CU, the prediction mode may be signaled in the bitstream using syntax data. The prediction mode may include intra-prediction (or in-picture prediction) or inter-prediction (or inter-picture prediction). Intra-prediction leverages correlations between spatially adjacent samples within a picture. For example, using intra-prediction, each PU is predicted from adjacent image data within the same picture using, for example, a DC prediction to find the mean about the PU, a plane prediction to fit a flat surface to the PU, a direction prediction to extrapolate from adjacent data, or any other suitable type of prediction. Inter-prediction uses temporal correlations between pictures to derive motion-compensated predictions about blocks of image samples. For example, using inter-prediction, each PU is predicted using motion-compensated predictions from image data in one or more reference pictures (before or after the current picture in output order). The decision of whether to use cross-picture prediction or intra-picture prediction to code a picture area can be made, for example, at the CU level.
[0072]
[0094] As described above, in some cases, the encoder engine 206 and the decoder engine 216 (described in more detail below) may be configured to operate according to VVC. According to VVC, a video coder (such as the encoder engine 206 and / or decoder engine 216) divides a picture into multiple coding tree units (CTUs) (where the CTB of a lumen sample and one or more CTBs of a chroma sample, along with the syntax for the sample, are called CTUs). The video coder may divide the CTUs according to a tree structure, such as a quad-tree binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure eliminates the concept of multiple division types, such as the separation between CUs and PUs and TUs in HEVC. The QTBT structure includes two levels, a first level divided according to quad-tree division and a second level divided according to binary tree division. The root node of the QTBT structure corresponds to a CTU. The leaf nodes of the binary tree correspond to coding units (CUs).
[0073]
[0095] In an MTT partitioning structure, blocks can be partitioned using quad-tree partitions, binary-tree partitions, and one or more types of triple-tree partitions. A triple-tree partition is a partition in which a block is split into three subblocks. In some examples, a triple-tree partition divides a block into three subblocks without splitting the original block through a center. The partitioning types in an MTT (e.g., quad-tree, binary-tree, and triple-tree) can be symmetrical or asymmetrical.
[0074]
[0096] In some examples, a video coder may use a single QTBT or MTT structure to represent each of the luminance and chrominance components, while in other examples, a video coder may use two or more QTBT or MTT structures, such as one QTBT or MTT structure for the luminance component and another QTBT or MTT structure for both chrominance components (or two QTBT and / or MTT structures for each chrominance component).
[0075]
[0097] A video coder may be configured to use a quad-tree segmentation, QTBT segmentation, MTT segmentation, or other segmentation structure by HEVC. For illustrative purposes, the description herein may refer to a QTBT segmentation. However, it should be understood that the techniques of this disclosure may also apply to video coders configured to use a quad-tree segmentation, or similarly other types of segmentation.
[0076]
[0098] As described above, in-picture prediction utilizes correlations between spatially adjacent samples within a picture. There are multiple intra-prediction modes (also called "intra-modes"). In some examples, intra-prediction for a rumablock includes 35 modes, including a planar mode, a DC mode, and 33 angular modes (e.g., a diagonal intra-prediction mode and angular modes adjacent to the diagonal intra-prediction mode). The 35 modes of intra-prediction are indexed as shown in Table 1 below. In other examples, more intra-modes may be defined, including prediction angles not yet represented by the 33 angular modes. In other examples, the prediction angles associated with the angular modes may differ from those used in HEVC.
[0077] [Table 1]
[0078]
[0099] Picture-to-picture prediction uses time correlation between pictures to derive motion-compensated predictions for blocks of image samples. Using a translational motion model, the position of a block in a previously decoded picture (reference picture) is represented by a motion vector (Δx, Δy), where Δx specifies the horizontal displacement of the reference block relative to its current position, and Δy specifies its vertical displacement. In some cases, the motion vector (Δx, Δy) can be integer sample precision (also called integer precision), in which case the motion vector points to an integer Pell grid (or integer pixel sampling grid) of the reference frame. In some cases, the motion vector (Δx, Δy) can be fractional sample precision (also called fractional Pell precision or non-integer precision) to more accurately capture the movement of the underlying object without being limited to an integer Pell grid of the reference frame. The precision of the motion vector can be represented by the quantization level of the motion vector. For example, the quantization level can be integer precision (e.g., 1 pixel) or fractional Pell precision (e.g., 1 / 4 pixel, 1 / 2 pixel, or other subpixel values). When the corresponding motion vector has fractional sample precision, interpolation is applied to the reference picture to derive the prediction signal. For example, samples available at integer positions may be filtered (e.g., using one or more interpolation filters) to estimate values at fractional positions. The previously decoded reference picture is indicated by its reference index (refIdx) in the reference picture list. The motion vector and reference index are sometimes called motion parameters. Two types of picture-to-picture predictions can be performed, including single and bi-prediction.
[0079]
[0100] In interpretation using biprediction, two sets of motion parameters (Δx0, y0, refIdx0, and Δx1, y1, refIdx1) are used to generate two motion-compensated predictions (from the same reference picture, or possibly different reference pictures). For example, in biprediction, each prediction block uses two motion-compensated prediction signals to generate a B-prediction unit. The two motion-compensated predictions are combined to obtain the final motion-compensated prediction. For example, the two motion-compensated predictions may be combined by averaging. In another example, weighted prediction may be used, in which case different weights may be applied to each motion-compensated prediction. The reference pictures that may be used in biprediction are stored in two separate lists, shown as List 0 and List 1. The motion parameters may be derived in the encoder using a motion estimation process.
[0080]
[0101] In the case of interpretation using single predictions, a single set of motion parameters (Δx0, y0, refIdx0) is used to generate motion-compensated predictions from a reference picture. For example, in the case of single predictions, each prediction block uses at most one motion-compensated prediction signal to generate a P-prediction unit.
[0081]
[0102] A PU may include data related to the prediction process (e.g., motion parameters or other preferred data). For example, when a PU is encoded using intra-prediction, the PU may include data representing the intra-prediction mode for the PU. As another example, when a PU is encoded using inter-prediction, the PU may include data defining the motion vector for the PU. The data defining the motion vector for the PU may represent, for example, the horizontal component (Δx) of the motion vector, the vertical component (Δy) of the motion vector, the resolution of the motion vector (e.g., integer precision, 1 / 4 pixel precision, or 1 / 8 pixel precision), the reference picture pointed to by the motion vector, the reference index, a list of reference pictures for the motion vector (e.g., list 0, list 1, or list C), or any combination thereof.
[0082]
[0103] After performing predictions using intra-prediction and / or inter-prediction, the encoding device 204 can perform transformations and quantization. For example, after prediction, the encoder engine 206 may compute residual values corresponding to the PU. The residual values may consist of pixel difference values between the current block (PU) of the pixels being coded and the prediction block used to predict the current block (e.g., the predicted version of the current block). For example, after generating a prediction block (e.g., using inter-prediction or intra-prediction), the encoder engine 206 may generate a residual block by subtracting the prediction block produced by the prediction unit from the current block. The residual block contains a set of pixel difference values that quantify the difference between the pixel values of the current block and the pixel values of the prediction block. In some examples, the residual block may be represented in a two-dimensional block format (e.g., a two-dimensional matrix or array of pixel values). In such examples, the residual block is a two-dimensional representation of the pixel values.
[0083]
[0104] Any residual data that may remain after the prediction is performed is transformed using block transforms that may be based on the discrete cosine transform (DCT), discrete sine transform (DST), integer transform, wavelet transform, other suitable transform functions, or any combination thereof. In some cases, one or more block transforms (e.g., kernels of size 32×32, 16×16, 8×8, 4×4, or other suitable sizes) may be applied to the residual data in each CU. In some examples, TUs may be used for the transform and quantization processes implemented by the encoder engine 206. A given CU having one or more PUs may also include one or more TUs. As will be described in more detail below, the residual values may be transformed into transform coefficients using block transforms and may be quantized and scanned using TUs to produce serial transform coefficients for entropy coding.
[0084]
[0105] In some embodiments, after intra-predictive coding or inter-predictive coding of the CU using the PU, the encoder engine 206 may compute residual data for the TU of the CU. The PU may comprise pixel data in the spatial domain (or pixel domain). As described above, the residual data may correspond to pixel difference values between the pixels of the unencoded picture and the predicted values corresponding to the PU. The encoder engine 206 may form one or more TUs containing residual data for the CU (including the PU) and transform the TUs to produce transformation coefficients for the CU. The TUs may comprise coefficients in the transformation domain after the application of block transformations.
[0085]
[0106] The encoder engine 206 may perform quantization of the conversion coefficients. Quantization provides further compression by quantizing the conversion coefficients to reduce the amount of data used to represent the coefficients. For example, quantization may reduce the bit depth associated with some or all of the coefficients. In one example, a coefficient with an n-bit value may be truncated to an m-bit value during quantization, where n is greater than m.
[0086]
[0107] Once quantization is performed, the coded video bitstream includes quantized transformation coefficients, prediction information (e.g., prediction mode, motion vector, block vector, etc.), piecewise information, and any other suitable data such as other syntax data. Different elements of the coded video bitstream can be entropy coded by the encoder engine 206. In some examples, the encoder engine 206 may utilize a predefined scan order to scan the quantized transformation coefficients to produce a serialized vector that can be entropy coded. In some examples, the encoder engine 206 may perform adaptive scanning. After scanning the quantized transformation coefficients to form a vector (e.g., a one-dimensional vector), the encoder engine 206 may entropy coded the vector. For example, the encoder engine 206 may use context-adaptive variable-length coding, context-adaptive binary arithmetic coding, syntax-based context-adaptive binary arithmetic coding, probability interval piecewise entropy coding, or another preferred entropy coding technique.
[0087]
[0108] The output unit 210 of the encoding device 204 may send NAL units constituting encoded video bitstream data to the decoding device 212 of the receiving device via the communication link 220. The input unit 214 of the decoding device 212 may receive the NAL units. The communication link 220 may include a channel provided by a wireless network, a wired network, or a combination of a wired network and a wireless network. The wireless network may include any wireless interface or combination of wireless interfaces, and may include any suitable wireless network (e.g., the Internet or other wide area networks, packet-based networks, WiFi®, radio frequency (RF), UWB, WiFi-Direct, cellular, Long-Term Evolution (LTE), WiMAX®, etc.). The wired network may include any wired interface (e.g., fiber, Ethernet®, power line Ethernet, Ethernet over coaxial cable, digital signal line (DSL), etc.). The wired and / or wireless network may be implemented using various devices such as base stations, routers, access points, bridges, gateways, switches, etc. The encoded video bitstream data can be modulated according to a communication standard, such as a wireless communication protocol, and transmitted to a receiving device.
[0088]
[0109] In some examples, the encoding device 204 may store the encoded video bitstream data in storage 208. The output unit 210 may retrieve the encoded video bitstream data from the encoder engine 206 or from storage 208. Storage 208 may include any of a variety of distributed or locally accessed data storage media. For example, storage 208 may include a hard drive, a storage disk, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing the encoded video data. Storage 208 may also include a decoded picture buffer (DPB) for storing a reference picture for use in interpretation. In further examples, storage 208 may correspond to a file server or another intermediate storage device capable of storing the encoded video generated by the source device. In such cases, a receiving device including a decoded device 212 can access the stored video data from the storage device via streaming or download. The file server may be any type of server capable of storing the encoded video data and transmitting that encoded video data to the receiving device. An exemplary file server may include a web server (for a website, for example), an FTP server, a network-attached storage (NAS) device, or a local disk drive. A receiving device may access the encoded video data through any standard data connection, including an internet connection. Access may include wireless channels (e.g., Wi-Fi connection), wired connections (e.g., DSL, cable modem, etc.), or a combination of both, which are suitable for accessing the encoded video data stored on the file server. Transmission of the encoded video data from storage 208 may be streaming transmission, download transmission, or a combination thereof.
[0089]
[0110] The input 214 of the decoding device 212 may receive encoded video bitstream data and provide the video bitstream data to the decoder engine 216 or to storage 218 for later use by the decoder engine 216. For example, storage 218 may include a DPB for storing reference pictures for use in interpretation. A receiving device including the decoding device 212 may receive encoded video data to be decoded via storage 208. The encoded video data may be modulated according to a communication standard such as a wireless communication protocol and transmitted to a receiving device. The communication medium for the transmitted encoded video data may comprise any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include routers, switches, base stations, or any other equipment that may be useful to enable communication from the source device to the receiving device.
[0090]
[0111] The decoder engine 216 can decode the encoded video bitstream data by entropy decoding (for example, using an entropy decoder) and extracting elements of one or more coded video sequences that make up the encoded video data. The decoder engine 216 can rescale the encoded video bitstream data and perform an inverse transform on the encoded video bitstream data. The residual data is passed to the prediction stage of the decoder engine 216. The decoder engine 216 predicts blocks of pixels (for example, PUs). In some examples, the predictions are added to the output of the inverse transform (residual data).
[0091]
[0112] The video decoding device 212 may output the decoded video to the video destination device 222, which may include a display or other output device for displaying the decoded video data to the content consumer. In some embodiments, the video destination device 222 may be part of a receiving device that includes the decoding device 212. In some embodiments, the video destination device 222 may be part of a separate device other than the receiving device.
[0092]
[0113] In some embodiments, the video encoding device 204 and / or the video decoding device 212 may be integrated with an audio encoding device and an audio decoding device, respectively. The video encoding device 204 and / or the video decoding device 212 may also include other hardware or software necessary to implement the coding techniques described above, such as one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. The video encoding device 204 and the video decoding device 212 may be integrated as part of a composite encoder / decoder (codec) in each device.
[0093]
[0114] The exemplary system shown in Figure 2 is one exemplary example that may be used herein. The techniques for processing video data using the techniques described herein can be implemented by any digital video encoding and / or decoding device. Generally, the techniques of the Disclosure are implemented by video encoding devices or video decoding devices, but the techniques can also be implemented by a composite video encoder-decoder, commonly referred to as a “codec”. Furthermore, the techniques of the Disclosure can also be implemented by a video preprocessor. Source devices and receiving devices are merely examples of coding devices, such that the source device generates video data encoded for transmission to the receiving device. In some examples, the source devices and receiving devices may operate substantially symmetrically, such that each device includes a video encoding component and a video decoding component. Thus, exemplary systems may support one-way or two-way video transmission between video devices for, for example, video streaming, video playback, video broadcasting, or video telephony.
[0094]
[0115] As described above, in some examples, the SOC100 and / or its components may be configured to perform video compression and / or decompression (also known as video coding and / or decoding, collectively referred to as video coding) using machine learning techniques. For example, the coding device 204 (or encoder) may be used to code video data using a machine learning system with a deep learning architecture (for example, by utilizing the NPU108 of the SOC100 in Figure 1). In some cases, using a deep learning architecture to perform video compression and / or decompression can increase the efficiency of video compression and / or decompression on the device. For example, the coding device 204 may use a machine learning-based video coding technique to compress video more efficiently, send the compressed video to the decoding device 212, and the decoding device 212 may use a machine learning-based technique to decompress the compressed video.
[0095]
[0116] A neural network is an example of a machine learning system that can include an input layer, one or more hidden layers, and an output layer. Data is provided from the input nodes of the input layer, processing is carried out by the hidden nodes of one or more hidden layers, and the output is produced through the output nodes of the output layer. Deep learning networks generally include multiple hidden layers. Each layer of a neural network can include a feature map or activation map that can include artificial neurons (or nodes). Feature maps can include filters, kernels, etc. Nodes can include one or more weights used to indicate the importance of one or more nodes in the layer. In some cases, a deep learning network can have a series of many hidden layers, with the initial layers used to determine simple, low-level characteristics of the input, and later layers accumulating a hierarchy of more complex and abstract characteristics.
[0096]
[0117] Deep learning architectures can learn feature hierarchies. For example, given visual data, a first layer might learn to recognize relatively simple features in the input stream, such as edges. In another example, given auditory data, a first layer might learn to recognize spectral power at a specific frequency. A second layer, taking the output of the first layer as input, might learn to recognize combinations of features, such as simple shapes in the case of visual data, or combinations of sounds in the case of auditory data. For example, a higher layer might learn to represent complex shapes in visual data, or words in auditory data. A higher layer might learn to recognize common visual objects or speech phrases.
[0097]
[0118] Deep learning architectures can work particularly well when applied to problems with natural hierarchical structures. For example, classifying motorized vehicles can benefit from initial learning to recognize wheels, windshields, and other features. These features can then be combined in different ways in higher layers to recognize cars, trucks, and airplanes.
[0098]
[0119] Neural networks can be designed using various connectivity patterns. In a feedforward network, information is passed from lower layers to higher layers, and each neuron in a given layer communicates with neurons in higher layers. As described above, hierarchical representations can be accumulated in the successive layers of a feedforward network. Neural networks can also have recurrent or (also called top-down) feedback connectivity. In recurrent connectivity, the output from a neuron in a given layer can communicate with another neuron in the same layer. Recurrent architectures can be useful for recognizing patterns across two or more chunks of input data delivered sequentially to the neural network. Connectivity from a neuron in a given layer to a neuron in a lower layer is called feedback (or top-down) connectivity. Networks with many feedback connectivitys can be useful when the recognition of a high-level concept can help discriminate specific low-level features of the input. Connectivity between layers in a neural network can be fully connected or locally connected. Various examples of neural network architectures are described below with respect to Figures 15A–16.
[0099]
[0120] Figure 3 shows a system 300 including a device 302 configured to perform video encoding and decoding using a machine learning coding system 310. Device 302 is coupled to a camera 307 and a storage medium 314 (e.g., a data storage device). In some implementations, the camera 307 is configured to provide image data 308 (e.g., a video data stream) to a processor 304 for encoding by the machine learning coding system 310. In some implementations, device 302 may be coupled to and / or include multiple cameras (e.g., a dual-camera system, three cameras, or any other number of cameras). In some cases, device 302 may be coupled to a microphone and / or other input devices (e.g., touch input devices such as a keyboard, mouse, touchscreen and / or touchpad, as well as / or other input devices). In some examples, the camera 307, storage medium 314, microphone, and / or other input devices may be part of device 302.
[0100]
[0121] Device 302 is also coupled to a second device 390 via a transmission medium 318, such as one or more wireless networks, one or more wired networks, or a combination thereof. For example, the transmission medium 318 may include channels provided by wireless networks, wired networks, or a combination of wired and wireless networks. The transmission medium 318 may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The transmission medium 318 may include routers, switches, base stations, or any other equipment that may be useful to enable communication from a source device to a receiving device. The wireless network may include any wireless interface or combination of wireless interfaces, and may include any suitable wireless network (e.g., the Internet or other wide area networks, packet-based networks, WiFi, radio frequency (RF), UWB, WiFi-Direct, cellular, Long-Term Evolution (LTE), WiMax, etc.). The wired network may include any wired interface (e.g., fiber, Ethernet, power line Ethernet, Ethernet over coaxial cable, digital signaling line (DSL), etc.). Wired and / or wireless networks can be implemented using a variety of equipment, such as base stations, routers, access points, bridges, gateways, and switches. Encoded video bitstream data can be modulated according to communication standards, such as wireless communication protocols, and transmitted to a receiving device.
[0101]
[0122] Device 302 includes a memory 306 and one or more processors 304 (referred to herein as “processors”) coupled to a first interface (“I / F 1”) 312 and a second interface (“I / F 2”) 316. The processors 304 are configured to receive image data 308 from the camera 307, from the memory 306, and / or from the storage medium 314. The processors 304 are coupled to the storage medium 314 via the first interface 312 (e.g., via a memory bus) and to the transmission medium 318 via the second interface 316 (e.g., a network interface device, a wireless transceiver and antenna, one or more other network interface devices, or a combination thereof).
[0102]
[0123] The processor 304 includes a machine learning coding system 310. The machine learning coding system 310 includes an encoder section 362 and a decoder section 366. In some implementations, the machine learning coding system 310 may include one or more autoencoders. The encoder section 362 is configured to receive input data 370 and process the input data 370 to generate output data 374 based at least partially on the input data 370.
[0103]
[0124] In some implementations, the encoder portion 362 of the machine learning coding system 310 is configured to perform irreversible compression of the input data 370 to produce output data 374, so that the output data 374 has fewer bits than the input data 370. The encoder portion 362 may be trained to compress the input data 370 (e.g., an image or video frame) without using motion compensation based on any previous representation (e.g., one or more previously reconstructed frames). For example, the encoder portion 362 may compress a video frame using only the video data from that video frame and without using any data from previously reconstructed frames. In this specification, video frames processed by the encoder portion 362 may be referred to as intra-prediction frames (I-frames). In some examples, I-frames may be generated using legacy video coding techniques (e.g., HEVC, VVC, MPEG-4, or according to other video coding standards). In such an example, the processor 304 may include, or be coupled to, a video coding device (e.g., an encoding device) configured to perform block-based intra-prediction, such as those described above with respect to the HEVC standard. In such an example, the machine learning coding system 310 may be excluded from the processor 304.
[0104]
[0125] In some implementations, the encoder portion 362 of the machine learning coding system 310 may be trained to compress input data 370 (e.g., video frames) using motion compensation based on previous representations (e.g., one or more previously reconstructed frames). For example, the encoder portion 362 may compress a video frame using video data from that video frame and data from a previously reconstructed frame. For the purposes of this specification, video frames processed by the encoder portion 362 may be referred to as intra-prediction frames (P-frames). Motion compensation may be used to determine the data of the current frame by describing how pixels from a previously reconstructed frame, along with residual information, have moved to new positions in the current frame.
[0105]
[0126] As shown in the figure, the encoder portion 362 of the machine learning coding system 310 may include a neural network 363 and a quantizer 364. The neural network 363 may include one or more convolutional neural networks (CNNs), one or more fully connected neural networks, one or more gated recurrent units (GRUs), one or more long short-term memory (LSTM) networks, one or more ConvRNNs, one or more ConvGRUs, one or more ConvLSTMs, one or more GANs, any combination thereof, and / or other types of neural network architectures that generate intermediate data 372. The intermediate data 372 is the input to the quantizer 364. The quantizer 364 may be implemented using a machine learning system (for example, using a neural network system) or using standards-based quantization and / or entropy coding techniques (for example, arithmetic coding). For example, in some cases, the encoder portion 362 can compress the input data 370 using neural network techniques described herein and output the intermediate data 372 to a quantizer 364 for performing standards-based quantization and / or entropy coding (e.g., arithmetic coding).
[0106]
[0127] The quantizer 364 is configured to perform quantization of the intermediate data 372, and in some cases, entropy coding, to produce output data 374. The output data 374 may contain quantized (and in some cases, entropy-coded) data. The quantization operation performed by the quantizer 364 can result in the generation of a quantized code (or data representing the quantized code generated by the machine learning coding system 310) from the intermediate data 372. The quantized code (or data representing the quantized code) may also be called a laten code or laten (denoted as z). In this specification, the entropy model applied to the laten may be called a “prior”. In some examples, the quantization and / or entropy coding operation may be performed using existing quantization and entropy coding operations performed when encoding and / or decoding video data according to existing video coding standards. In some examples, the quantization and / or entropy coding operation may be performed by the machine learning coding system 310. In one exemplary example, a machine learning coding system 310 may be trained using supervised training, where residual data is used as input during training, and quantized codes and entropy codes are used as known outputs (labels).
[0107]
[0128] The decoder portion 366 of the machine learning coding system 310 is configured to receive output data 374 (for example, directly from the quantizer 364 and / or from the storage medium 314). The decoder portion 366 can process the output data 374 to generate a representation 376 of the input data 370 based at least partially on the output data 374. In some examples, the decoder portion 366 of the machine learning coding system 310 includes a neural network 368 which may include one or more CNNs, one or more fully connected neural networks, one or more GRUs, one or more long short-term memory (LSTM) networks, one or more ConvRNNs, one or more ConvGRUs, one or more ConvLSTMs, one or more GANs, any combination thereof, and / or other types of neural network architectures.
[0108]
[0129] The processor 304 is configured to send output data 374 to at least one of the transmission medium 318 or the storage medium 314. For example, the output data 374 may be stored in the storage medium 314 for later retrieval and decoding (or restoration) by the decoder unit 366 to generate a representation 376 of the input data 370 as reconstructed data. The reconstructed data may be used for various purposes, such as for playback of video data encoded / compressed to generate the output data 374. In some implementations, the output data 374 may be decoded in another decoder device matching the decoder unit 366 (for example, in device 302, in a second device 390, or in another device) to generate a representation 376 of the input data 370 as reconstructed data. For example, the second device 390 may include a decoder matching (or substantially matching) the decoder unit 366, and the output data 374 may be transmitted to the second device 390 via the transmission medium 318. The second device 390 can process the output data 374 to generate a representation 376 of the input data 370 as reconstructed data.
[0109]
[0130] The system components 300 may include and / or be implemented using one or more programmable electronic circuits (e.g., a microprocessor, a graphics processing unit (GPU), a digital signal processor (DSP), a central processing unit (CPU), and / or other suitable electronic circuits) to perform the various operations described herein, and / or may include and / or be implemented using computer software, firmware, or any combination thereof.
[0110]
[0131] While System 300 is shown to include several components, those skilled in the art will understand that System 300 may include more or fewer components than those shown in Figure 3. For example, System 300 may also include, or be part of, a computing device including input and output devices (not shown). In some implementations, System 300 may also include, or be part of, a computing device including one or more memory devices (e.g., one or more random access memory (RAM) components, read-only memory (ROM) components, cache memory components, buffer components, database components, and / or other memory devices), one or more processing devices communicating with and / or electrically connected to one or more memory devices (e.g., one or more CPUs, GPUs, and / or other processing devices), one or more wireless interfaces for performing wireless communication (e.g., including one or more transceivers and baseband processors for each wireless interface), one or more wired interfaces for performing communication via one or more wired connections (e.g., serial interfaces such as Universal Serial Bus (USB) inputs, Lightning connectors, and / or other wired interfaces), and / or other components not shown in Figure 3.
[0111]
[0132] In some implementations, System 300 may be locally implemented by and / or contained within a computing device. For example, the computing device may include a mobile device, a personal computer, a tablet computer, a virtual reality (VR) device (e.g., a head-mounted display (HMD) or other VR device), an augmented reality (AR) device (e.g., an HMD, AR glasses, or other AR device), a wearable device, a server (e.g., in a Software as a Service (SaaS) system or other server-based system), a television, and / or any other computing device having the resource capacity to implement the techniques described herein.
[0112]
[0133] In one example, the machine learning coding system 310 may be incorporated into a portable electronic device that includes a memory 306 coupled to a processor 304 and configured to store instructions executable by the processor 304, and an antenna and a wireless transceiver coupled to the processor 304 and capable of transmitting output data 374 to a remote device.
[0113]
[0134] As explained above, entropy coding is one of the final stages (and in some cases, the final stage) of encoding (compression), defining the value and number of bits to be added to the compressed data bitstream. Modern standards-based video encoding methods (e.g., VVC, HEVC, AV1, etc.) employ adaptive arithmetic coding to enable high-quality compression performance. Bitstreams produced by adaptive arithmetic coding can only be encoded and decoded sequentially. For example, a data element can only be restored by decoding all previous elements first, since the decoder must reach the same state the encoder was in when the encoder coded that element.
[0114]
[0135] Parallel entropy coding can be implemented, where throughput requests are divided so that they can be processed by less complex circuits. To enable parallel entropy coding, the compressed data is separated into independently encoded bitstream segments that can be encoded and decoded simultaneously. Such independently encoded bitstream segments are referred to herein as data parcels or parcels. It is assumed that parcels can be decoded without information from other parcels (this requirement pertains to the decoding process, and the interpretation of data in a parcel may depend on information from other parcels), and that each parcel is expanded to an integer number of bytes.
[0115]
[0136] Whenever there are two or more bitstreams to be decrypted simultaneously, in addition to using compressed data, information indicating the entry point (e.g., the byte position where decryption can begin) may be provided for decryption. The data structure containing the entry point is referred to herein as a parcel index. In some cases, the parcel index containing the entry point may be included in the header of the video data, in a parameter set (e.g., a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), etc.), and / or in any other message or signaling related to the video data.
[0116]
[0137] Bidirectional byte packing is one technique that can be used to process parcels. For example, bidirectional byte packing can be used to reduce the number of entry points that need to be specified in the parcel index. Bidirectional byte packing is based on the fact that the location of the entry point must be known before decoding begins, but the termination location does not need to be stored.
[0117]
[0138] Figure 4 is a diagram showing an example of a data arrangement and coding process for bidirectional byte packing. As shown, data from two encoded bitstreams (including bitstream 402 and bitstream 404) is first stored in a memory buffer (including memory buffer 406 for bitstream 402 and memory buffer 408 for bitstream 404). After encoding is complete and the final number of bytes required for each stream (byte l a for bitstream 402 and byte l b for bitstream 404) is known, a compressed data byte array 410 with l a +l b bytes is created. The forward stream (shown as "forward" in Figure 4) is copied starting from the beginning of the compressed data byte array 410 in the conventional increasing byte order (from left to right in Figure 4), and the reverse stream (shown as "reverse" in Figure 4) is copied starting from the end of the compressed data byte array 410 in the reverse order of byte positions (from right to left in Figure 4). Since the decoder knows the number of compressed data bytes (l a +l b ), the decoder can start decoding simultaneously from the beginning and the end of the compressed data byte array 410.
[0118]
[0139] Figure 5 is a diagram showing an example of extending the bidirectional byte packing technique to support parallel entropy encoding and decoding. Similar to the example in Figure 4, an encoded (or compressed) bitstream is, for example, divided into several independent parcels (such as parcel l1, l2, l3, ~l NThe data is divided into parcels. Independent parcels can be stored in separate buffers (for example, parcel l1 is stored in buffer 506). Pairs of parcels can be combined using bidirectional byte packing. For example, bidirectional byte packing can be used to combine parcel l1 and parcel l2, parcel l3 and parcel l4, and so on. The compressed data arrangement of compressed data byte array 510 in Figure 5 enables parallel entropy coding. The compressed data is organized into multiple bidirectional byte arrays, including bidirectional byte arrays 512, bidirectional byte arrays 514, ~ bidirectional byte arrays 516.
[0119]
[0140] Multiple decoders (e.g., decoder 518, decoder 520, etc.) are also shown in Figure 5. As illustrated, a forward decoder (FDEC) and a reverse decoder (BDEC) may be used for each bidirectional byte array. For example, decoder 518 (which is an FDEC) and decoder 520 (which is a BDEC) may be used to decode the bidirectional byte array 512. The FDEC decoder and the BDEC decoder may differ only in the order in which they read the compressed data bytes. The compressed data byte array 510 is accompanied by a parcel index 522. The parcel index 522 is a data structure that contains an indication of the number of bytes in each parcel (and therefore the decoded entry point, indicated as the "entry point position"). One technique that may be used to efficiently code the entry point information (called the "NBC" method) is a sequence with the number of bytes in each parcel.
[0120]
number
[0121]
[0141] but,
[0122]
number
[0123] This is based on the concept that it can be encoded with an average number of bits per parcel that is approximately equal to the total number of bits per parcel.
[0124]
[0142] When using bidirectional byte packing, the following sequence needs to be encoded instead (for simplicity, we assume N is even):
[0125]
number
[0126]
[0143] The corresponding average number of bits is,
[0127]
number
[0128] That is the case.
[0129]
[0144] This means that bidirectional byte packing can reduce the overhead resulting from encoding parcel index 522 by approximately half.
[0130]
[0145] Arithmetic coding stream termination is a form of arithmetic coding. Arithmetic coding differs from other forms of entropy coding for various reasons. For example, arithmetic coding maintains a "range" state (half-closed interval) during encoding and decoding, corresponding to a fractional number of pending bits in the information theory sense. Also, when the number of fractional bits reaches a certain threshold, an integer number of bits are written to the output stream, and the state is updated to store information corresponding to the fractional part of the remaining bits. When encoding is complete, it may be necessary to "flush" the pending bits and add bits to convert the pending information into an integer number of output stream bits. To increase efficiency and to avoid checking for stream termination conditions whenever a byte is read, the decoder may preload some bytes, which ultimately include some bytes from beyond the end of the current stream. The goal of stream termination is to ensure that decoding is correct regardless of the value of the bits beyond the end of the stream.
[0131]
[0146] Figure 6 is a schematic diagram illustrating the factors used for a correct arithmetic coding termination. In Figure 6, the interval [u,v) represents the final state of the arithmetic encoder. For example, the interval [u,v) defined by u and v represents a fraction of bytes (for example, a 34-bit dataset contains 4.2 bytes, and u and v represent 0.2 bytes). Any bit value within the interval [u,v) is valid for the termination byte. For the sake of simplicity in presentation, an implementation with byte output (byte-based renormalization) is used, and u and v are,
[0132]
number
[0133] It can be assumed that the number is a real number such that...
[0134]
[0147] The minimum number of extra bits required to guarantee correct decoding is:
[0135]
number
[0136] It is equal to the minimum value of the exponent s that satisfies the condition.
[0137]
[0148] The most significant bits of the s bits of the terminating byte are:
[0138]
number
[0139]
[0149] It can be defined by , and the values of the remaining 8-s bits are arbitrary (referred to herein as "do not care bits").
[0140]
[0150] However, when it is possible to select all bits in the terminating byte,
[0141]
number
[0142] For any terminal byte value b that satisfies the condition, the correct decoding is obtained.
[0143]
[0151] There are several special cases, such as those related to carry operations and the need for additional bytes when s > 8.
[0144]
[0152] The following
[0145]
number
[0146]
[0153] Also, note that since vu < 1, the condition s ≥ 1 always holds (there is always at least one extra bit that needs to be added to the output stream).
[0147]
[0154] The resulting overhead differs for each endpoint and is equal to s + log2(vu). The average value can be calculated from a coding simulation. For high-precision implementations, the average value is:
[0148]
number
[0149] It can be measured as equal to .
[0150]
[0155] As described above, systems and techniques capable of reducing such overhead and resulting compression losses are described herein. For example, the systems and techniques deal with the bit overhead that occurs when parcel coding is completed. Furthermore, file and data stream formats require that bits be grouped into 8-bit bytes, in which case there is additional overhead defined by byte boundaries in addition to the overhead associated with parcel indexing and coding termination. In unidirectional byte packing, the average overhead per data parcel (for example, based on unused bits) (here, additional bits required to properly terminate arithmetic coding are not taken into account, and such additional bits must be added to this value to obtain the total average overhead per parcel) is:
[0151]
number
[0152] That is the case.
[0153]
[0156] There are two selections related to bidirectional byte packing. The first option is to concatenate the bytes and have the same average overhead per parcel. Figure 7A shows an example of concatenating bytes. For example, as shown in Figure 7A, the first terminating byte 702 contains the value 11011 and the second terminating byte 704 contains the value 0010. Bits identified as "x" are called "do not care" bits. In one exemplary example, video data may be coded in 37 bits. Each byte contains 8 bits. In the exemplary example of video coded in 37 bits, there would be 4 bytes (containing a total of 32 bits) and the remaining 5 bits. The remaining 5 bits and 3 "uninterested" bits may be contained within the byte (for example, the bit values 11011 and the "xxx" bit contained in the first terminating byte 702 in Figure 7A). The encoder and / or decoder can write and / or read (and in some cases must write and / or read) all 5 8-bit bytes, including the last byte containing the "uninterested" bits, but the decoder will parse only the bits up to the "uninterested" bits, and for this reason the encoder can set the "uninterested" bits to any value. As shown by bitstream 706, the first terminating byte 702 is concatenated with the second terminating byte 704.
[0154]
[0157] A second option is to encode the bits in the reverse stream in reverse order within each byte as well, so that a single (also called a co-termining byte) shared terminator can be used when the patterns of bits used do not overlap. This is in contrast to the example in Figure 7A, where two bytes are used in bitstream 706. Figure 7B shows an example using a shared terminator byte 716. For example, as shown in Figure 7B, the shared terminator byte 716 contains bits 0 and 1 from the first terminator byte 712, bits 1, 1, and 1 from the second terminator byte 714, and three bits of no interest. Since there are a total of 5 bits (less than 8 bits) from the first terminator byte 712 and the second terminator byte 714, the bits can be combined to form the shared terminator byte 716.
[0155]
[0158] When the second option is used (for example, as shown in Figure 7B), the fraction of the shared terminating bytes is:
[0156]
number
[0157]
[0159] Therefore, the average overhead per parcel is,
[0158]
number
[0159] It is reduced to this extent.
[0160]
[0160] The systems and techniques described herein offer novel solutions to the problems described above, and in some cases consider applications for large-scale parallelization (when termination overhead is important), and at least two cases consider applications. In the first case, writing bits in reverse order within a byte may be relatively easy when encoding “raw” bits, but this is not always advantageous. For example, in arithmetic coding, the order of bits comes from the arithmetic operation, and therefore, for a reverse stream, each byte must have its bits reversed before writing and after reading. In the second case, as described below, the correct termination of arithmetic coding is not inherent. In unidirectional byte packing, there is no advantage in choosing among many correct options. However, in bidirectional byte packing, as described below, a subset of the selection allows for the sharing of termination bytes and thus reduces the average overhead.
[0161]
[0161] In some cases, the systems and techniques described herein may be applied to joint binary coding terminations. For example, the concept of a shared termination byte may be used when the same convention for filling bits in a byte is used in both a forward and a reverse stream. Figure 8A is a diagram illustrating an example using concatenation, and Figure 8B is a diagram illustrating an example using a shared termination byte with the techniques described herein. For example, a byte value may be shared if the bit positions used for both streams (for example, for both termination bytes of both streams) have the same bit value, and the resulting shared termination byte does not change the order of the bits in the termination byte of the forward stream and the termination byte of the reverse stream. In some cases, the encoder may determine that a shared termination byte can be used based on the determination that the bit positions used in the first termination byte of the first parcel (for the forward stream) and the bit positions used in the second termination byte of the second parcel (for the reverse stream) have the same (or common) bit value, and the resulting shared termination byte does not change the order of the bits in the first and second termination bytes. In some examples, the encoder can determine that a bit position in the first terminating byte has a common value with a bit position in the second terminating byte by determining the intersection of the values of the first and second terminating bytes. The encoder can include the common bit value (for example, the one found to intersect) in the shared terminating byte, and then include the other values of the first terminating byte and the other values of the second terminating byte.
[0162]
[0162] In the example of Figure 8A, the three bit positions containing the value of the first three bit positions (value "101") are used in both the first termination byte 802 of the forward stream and the second termination byte 804 of the reverse stream. However, if a shared termination byte is used, the resulting bits in the shared termination byte become "101100", which changes the order of the bits in the second termination byte 804 of the reverse stream (which has the value "10100"). The order of the bits in each termination byte must be maintained so that correct decoding can be performed by the decoder.
[0163]
[0163] In Figure 8B, the three bit positions containing the value of the first three bit positions (value "100") are used in both the first termination byte 812 of the forward stream and the second termination byte 814 of the reverse stream. Since both the first termination byte 812 and the second termination byte 814 have the first three bit values equal to "100", the termination byte can be shared (in the shared termination byte 816) if the bit values at all occupied positions are copied and the order of the bits in termination bytes 812 and 814 is maintained (or not changed). Such a condition exists in the example in Figure 8B. The first group of bits (with the value "100") in the shared termination byte 816, 818, contains the three common bits (the first three bits) from the first termination byte 812 and the second termination byte 814. The next group of bits 820 (with the value "1011") includes bits from the second termination byte 814 that are unique (not common) to the first termination byte 812. The last bit of the shared termination byte 816 is a "not of interest" bit (represented by "x"). As illustrated, the order of the bits in the termination byte 812 from the forward stream ("100") and the bits in the termination byte 814 from the reverse stream ("1001011") is maintained in the shared termination byte 816.
[0164]
[0164] The decoder is aware of where the bits for the (forward stream) termination byte 812 are located in the shared termination byte 816, and where the bits for the (reverse stream) termination byte 814 are located in the shared termination byte 816. For example, bits are processed by the decoder according to the data being read and its interpretation. In one exemplary example, the decoder may be defined in such a way that it is to read exactly 1024 values, each value being entropy coded with a different number of bits according to its value (e.g., value 0 coded with 2 bits, value +1, -1 coded with 4 bits, etc.). Since the decoder must know how many bits are used for each value, the decoder is aware that after the decoder has decoded the 1024 (numbered) values, it has reached the end of a particular stream (e.g., the end of the forward stream, and therefore the end of termination byte 812, the end of the reverse stream, and therefore the end of termination byte 814, etc.). Continuing with such examples, there may be two arrays of 1024 values each, coded independently in a similar manner and combined using bidirectional packing. A decoder for each stream can decode its own set of 1024 values and process the bits sequentially. Each decoder will terminate when it has decoded all 1024 values. In some cases, the decoder does not know a priori how many bits it should read, but the number of data elements that the decoder must decode is clearly defined, in which case the decoder can continue reading bits from the input stream until it knows it must stop.
[0165]
[0165] The technique shown in Figure 8B relies on an event in which groups of random bit values become equal. Such coincidence is most common when the number of “not of interest” bits (or “wasted bits”) is at its maximum. For example, if there is only one extra bit in each stream, the terminal byte can be shared in 50% of cases. This can mean that instead of always having 14 unused bits for those cases, there may be 7 unused bits in 1 / 2 cases, and on average there may be 10.5 unused bits. The exact ratio of terminal bytes that can be shared can be shown as follows:
[0166]
number
[0167]
[0166] Also, the average overhead per parcel is,
[0168]
number
[0169] It can be calculated as follows.
[0170]
[0167] In some cases, the systems and techniques described herein can be applied to joint arithmetic coding termination (with the same bit order). For example, if arithmetic coding termination is performed using equation (7) from above, it is straightforward to use a shared termination byte based on the concept of "not of interest" bits, using the techniques described with respect to equations (11) to (13) and Figures 7A to 7B, and / or the techniques described with respect to Figures 8A to 8B.
[0171]
[0168] However, as explained above with respect to equations (5) to (10) and Figure 6, the terminating byte can be freely selected according to equation (8). For unidirectional byte packing, there may be no advantage in selecting a particular value. In bidirectional byte packing, the systems and techniques described herein can take advantage of the freedom to select the terminating byte by selecting a value that can reduce the average overhead. Figures 9A and 9B provide two examples illustrating such concepts.
[0172]
[0169] In Figure 9A, the gray area is (b min and b max Equation (8), which defines the range for, represents two sets or ranges, F and B, which have ranges of validly decoded terminal byte values for the forward and reverse streams (gray area 920 represents set F and gray area 922 represents set B). Sets F and B may be defined as follows:
[0173]
number
[0174]
[0170] The dashed line 925 in Figures 9A and 9B represents the use of the same termination byte value in both the forward stream (represented on the x-axis in Figures 9A and 9B) and the reverse stream (represented on the y-axis). In the example in Figure 9A, there is an intersection between set F and set B (the intersection between set F and set B is not empty), and all byte values in the intersecting sets (shown as a bold solid segment 926 along the dashed line) can be used for the shared termination byte. In the example in Figure 9B, the intersection between set F and set B is empty (because the dashed line 925 does not pass through both set F and set B at the same time), meaning that the shared termination byte cannot be shared.
[0175]
[0171] The calculation of the range intersection can be determined as follows.
[0176]
number
[0177]
[0172] Here, ∩ represents an intersection operation. Figures 10A and 10B illustrate the termination byte selection process based on the concepts shown in Figures 9A and 9B. Figure 10A shows an example where there is no intersection between set F and set B. In Figure 10B, the encoder can determine that a shared termination byte 1016 may be used based on the determination that there is an intersection between the bit value of the first termination byte 1012 of the first parcel (forward stream in Figure 10B) and the bit value of the second termination byte 1014 of the second parcel (reverse stream in Figure 10B). For example, the value for the shared termination byte 1016 may be calculated by determining the intersection of the values between the value of the first termination byte 1012 and the value of the second termination byte 1014. The shared-termining byte 1016 is represented as byte c in Figure 10B and contains all values in the intersecting set or range F' and set or range B' (represented by segment 926 in Figure 9A), as shown in Figure 10B as follows:
[0178]
number
[0179]
[0173] Therefore, the values that may be contained in the shared termination byte 1016 include the intersection of the first termination byte 1012 and the second termination byte 1014.
[0180]
[0174] By maximizing the use of shared-terminated bytes (for example, using the techniques described with respect to Figures 8A to 10B), the systems and techniques described herein can reduce bitstream and compression loss overhead. For example, the encoded bitstream will contain fewer bytes, resulting in reduced overhead in the bitstream. Such solutions can result in significant overhead reduction in parallel entropy coding where many forward and reverse streams are included in the bitstream (for example, as shown in Figure 5, including bidirectional byte arrays 512, 514, 516, etc.).
[0181]
[0175] Note that in the examples shown in Figures 7A, 7B, 8A, and 8B, the only factor considered was the bit value. In the examples of arithmetic coding in Figures 10A and 10B, there is a more general concept of a valid set of terminating bytes. For example, as shown in Figures 10A and 10B, there is a notation a∈F', b∈B', because the range defined in equation (16) is greater than 256.
[0182]
number
[0183] and,
[0184]
number
[0185] This is because it can have a carry, which can occur in arithmetic coding addition, including during termination. Therefore, those sets are
[0186]
number
[0187] It is defined as follows.
[0188]
[0176] Additionally, during termination, it may be necessary to identify the termination byte value corresponding to the carry. Figures 11A and 11B show examples where such a case occurs. In Figures 11A and 11B, it may be observed that the determination of the intersection is slightly more complex (compared to, for example, the examples in Figures 9A and 9B) because it is necessary to take into account four possible conditions (i.e., whether or not to carry for the forward and reverse streams), which means that equation (17) must be modified for each specific case.
[0189]
[0177] According to the simulation results, such carry cases may only need to be considered for 24.6% of the end of each stream, and carry occurs in 5.5% of the end of each stream.
[0190]
[0178] In some cases, the systems and techniques described herein may be applied to co-arithmetic coding termination (with different bit orders). For example, if the bytes generated by arithmetic coding in a reverse stream are converted to reverse bit order using the function R(n), the set of valid termination bytes shown in Figures 10A and 10B is:
[0191]
number
[0192] Defined by:
[0193]
[0179] Figures 12A and 12B show a new set based on reverse bit order, using the same termination range as the examples in Figures 9A and 9B. In practice, bit reversal in the bytes of a reverse stream can be observed to "spread" the value of the valid termination byte in the interval [0,255], increasing the occurrence of valid intersections. This is confirmed in the simulation results described below. In some cases, the same result can be obtained when the function R(n) is a randomly generated substitution of byte values.
[0194]
[0180] In some examples, the systems and techniques described herein for determining a shared (or joint) termination byte may be used to encode syntax elements for video coding (e.g., syntax elements in an encoded video bitstream) using legacy standards-based coding and / or machine learning-based coding. For example, a joint termination byte may be determined to signal the bits of a syntax element in a bitstream.
[0195]
[0181] Next, the simulation results will be described. The bidirectional byte packing and termination techniques described herein were tested in an implementation of 32-bit precision arithmetic coding using random data from an alphabet of 23 symbols and an entropy equal to 2.61 bits / symbol. The average was 2 25 Measured after coding (33 million) parcels.
[0196]
[0182] Table I below shows the simulation results. From the results, it can be observed that using the systems and techniques described herein for performing co-termination of arithmetic coding (AC) in forward and reverse bitstreams significantly increases the proportion of termination bytes that can be shared, and therefore reduces the average overhead per parcel.
[0197] [Table 2]
[0198]
[0183] The following Table II shows the overall advantages of bidirectional byte packing, co-termination, and efficient NBC methods (described with respect to equations (1) to (4)) for coding parcel indices. Relative overhead is the average number of overhead bits divided by the number of data bits in the parcel.
[0199] [Table 3]
[0200]
[0184] From the simulation results in Tables I and II, it can be observed that in conventional methods using unidirectional byte packing with a universal code (e.g., exponential golomb), the number of bits defining the parcel index coding + parcel termination overhead is extremely large for small parcel sizes, increasing at twice the logarithm of the average number of bytes per parcel.
[0201]
[0185] In comparison, using the systems and techniques described herein, the overhead for parcels with a small number of bytes is reduced by a significant proportion, and the number of overhead bits increases by half the logarithm of the average number of bytes per parcel. In practice, the above simulation results show that using the systems and techniques described herein, the scope of parallelization can be extended to be employed for entropy coding, reducing the cost of achieving high data throughput without compromising compression efficiency.
[0202]
[0186] Figure 13 is a flowchart illustrating an example of a process 1300 for processing video using the co-termination technique described herein. In block 1302, the process 1300 includes obtaining encoded video data. In some cases, the encoded video data may include video data encoded according to a specific video coding standard (e.g., HEVC, VVC, AVC, EVC, etc.) using a machine learning-based video coding system (e.g., video frames are coded using one or more neural networks) and / or other video coding techniques. When obtained in block 1302, the encoded video data is not entropy coded. In block 1304, the process 1300 includes determining the intersection of values between the value for the first termination byte of the first parcel of the encoded video data and the value for the second termination byte of the second parcel of the encoded video data. Referring to Figure 9A as an illustrative example, the bold solid segment 926 along the dashed line shows the intersection of values between the termination byte of the reverse stream and the termination byte of the forward stream.
[0203]
[0187] In block 1306, process 1300 determines a joint (or shared) terminal byte for the first terminal byte of the first parcel and the second terminal byte of the second parcel, wherein the value for the joint terminal byte is based on the intersection of values (value of the intersection). The joint terminal byte may be the final terminal byte of the first and second parcels for processing. For example, referring to Figure 10B as an illustrative example, the joint (or shared) terminal byte 1016 is the final terminal byte of the forward and reverse streams.
[0204]
[0188] In block 1308, process 1300 includes generating entropy-coded data, which includes a co-terminant byte for a first parcel and a second parcel. In some examples, the entropy-coded data is generated using arithmetic coding. For example, in some cases, the value for the first terminant byte includes a first range of terminant byte values that are allowed to be decoded, and the value for the second terminant byte includes a second range of terminant byte values that are allowed to be decoded. In such cases, the intersection of the values determined in block 1304 (the value of the intersection) includes values in the first range and the second range. For example, referring to Figure 10B as an illustrative example, the intersection may be determined as the intersection between a range F' and a range or set B', in which case the co-terminant byte may be determined as byte c ∈ F' ∩ B', as described above.
[0205]
[0189] In some examples, entropy-coded data is generated using binary coding. In some cases, the value for the first terminating byte includes a first number of bits, and the value for the second terminating byte includes a second number of bits. In such cases, the intersection of the values determined in block 1304 includes a common value in the first and second number of bits, and at least one of a subset of the value from the first number of bits and a subset of the value from the second number of bits. In some examples, the order of the first number of bits and the order of the second number of bits are not changed in the joint terminating byte compared to the order of the first number of bits in the first terminating byte and the order of the second number of bits in the second terminating byte. For example, referring to Figure 8B as an illustrative example, the value "100" is common to both the first terminating byte 812 and the second terminating byte 814. The common bit "100" is included in the first group of bits (having the value "100") of the joint or shared terminating byte 816. The next group of bits 820 following the bits of the shared termination byte 816 (which has the value "1011") includes bits from the second termination byte 814 that are unique (not common) to the first termination byte 812. The last bit of the shared termination byte 816 is a "not of interest" bit (represented by "x"). As illustrated, the order of the bits in the termination byte 812 from the forward stream ("100") and the bits in the termination byte 814 from the reverse stream ("1001011") is not changed in the shared termination byte 816.
[0206]
[0190] In some examples, process 1300 can generate entropy-coded data by performing parallel entropy coding of a first parcel and a second parcel. For example, the first parcel may be coded using a first encoder, and the second parcel may be coded using a second encoder. Referring to Figure 5 as an illustrative example, the first parcel may be coded by encoder 502 (for example, to generate parcel l1 of entropy-coded data), and the second parcel may be coded by encoder 504 (for example, to generate parcel l2 of entropy-coded data).
[0207]
[0191] In some examples, process 1300 includes storing a first parcel in a first buffer and storing a second parcel in a second buffer. Referring to Figure 5 as an illustrative example, a first parcel of entropy-coded data (for example, parcel l1 encoded by encoder 502) may be stored in buffer 506.
[0208]
[0192] In some examples, process 1300 may include transmitting a bitstream containing entropy-coded data (for example, using the transmitter of the encoding device 204 in Figure 2). In some examples, process 1300 may include storing the bitstream containing the entropy-coded data (for example, stored in the storage 208 of the encoding device 204 in Figure 2).
[0209]
[0193] In some examples, process 1300 may perform parallel entropy decoding of the first and second parcels using the joint-terminated bytes for the first and second parcels. Parallel entropy decoding may be performed using the techniques described above. For example, process 1300 may read the first parcel in forward order and the second parcel in reverse order. In some cases, process 1300 may convert the bytes of the second parcel in reverse order. In some cases, once the data has been entropy-decoded, other decoding operations may be performed (for example, by performing intra-prediction, inter-prediction, etc.).
[0210]
[0194] In some cases, the encoded video data comprises one or more syntax elements of a video bitstream. In some embodiments, one or more syntax elements indicate one or more parameters that define a neural network for decoding the encoded video data. For example, one or more parameters that define a neural network may include the weights of the neural network (trained using backpropagation, for example, as described below), one or more activation functions of the neural network, and / or other parameters of the neural network.
[0211]
[0195] Figure 14 is a flowchart of another example of a process 1400 that processes video using the co-termination technique described herein. In block 1402, the process 1400 includes obtaining a first parcel of entropy-coded data and a second parcel of entropy-coded data. In some examples, the process 1400 includes obtaining a first parcel from a first buffer and obtaining a second parcel from a second buffer. Referring to Figure 5 as an illustrative example, the first parcel of entropy-coded data (for example, parcel l1 encoded by encoder 502) may be obtained from buffer 506. In some examples, the entropy-coded data includes video data. In some examples, the entropy-coded data includes image data.
[0212]
[0196] The first parcel and the second parcel share a common (or shared) termination byte. The value for the common termination byte is based on the intersection (intersection value) of the value for the first termination byte of the first parcel and the value for the second termination byte of the second parcel. Referring to Figure 9A as an illustrative example, the bold solid line segment 926 along the dashed line shows the intersection of the values between the termination byte of the reverse stream and the termination byte of the forward stream.
[0213]
[0197] In some cases, process 1400 includes receiving an encoded video bitstream containing a first parcel and a second parcel. In some examples, the encoded video bitstream contains one or more syntax elements. In some embodiments, one or more syntax elements indicate one or more parameters that define a neural network for decoding the encoded video data. For example, one or more parameters that define a neural network may include the weights of the neural network (trained using backpropagation, for example, as described below), one or more activation functions of the neural network, and / or other parameters of the neural network.
[0214]
[0198] In some cases, entropy-coded data can be generated using arithmetic coding. For example, in some cases, the value for the first terminating byte includes a first range of terminating byte values that are allowed to be decoded, and the value for the second terminating byte includes a second range of terminating byte values that are allowed to be decoded. In such cases, the intersection of values (the value of the intersection) includes values that are in the first range and the second range. For example, referring to Figure 10B as an exemplary example, the intersection may be determined as the intersection between range F' and range or set B', in which case the co-terminating byte may be determined as byte c ∈ F' ∩ B', as described above.
[0215]
[0199] In some examples, entropy-coded data may be generated using binary coding. In some cases, the value for the first terminating byte contains a first number of bits, and the value for the second terminating byte contains a second number of bits. In such cases, the intersection of the values (the value of the intersection) contains a common value in the first and second number of bits, and at least one of a subset of the value from the first number of bits and a subset of the value from the second number of bits. In some examples, the order of the first number of bits and the order of the second number of bits are not changed in the joint terminating byte compared to the order of the first number of bits in the first terminating byte and the order of the second number of bits in the second terminating byte. For example, referring to Figure 8B as an illustrative example, the value "100" is common to both the first terminating byte 812 and the second terminating byte 814 and is contained in the first group of bits (having the value "100") of the joint or shared terminating byte 816. The next group of bits 820 following the bits of the shared termination byte 816 (which has the value "1011") includes bits from the second termination byte 814 that are unique (not common) to the first termination byte 812. The last bit of the shared termination byte 816 is a "not of interest" bit (represented by "x"). As illustrated, the order of the bits in the termination byte 812 from the forward stream ("100") and the bits in the termination byte 814 from the reverse stream ("1001011") is not changed in the shared termination byte 816.
[0216]
[0200] In some examples, a first parcel of entropy-coded data may be decoded using a first decoder, and a second parcel of entropy-coded data may be decoded using a second decoder. Referring to Figure 5 as an illustrative example, the first parcel may be decoded by decoder 518, and the second parcel may be encoded by decoder 520.
[0217]
[0201] In block 1404, process 1400 includes performing parallel entropy decoding of the first parcel and the second parcel using the joint-terminated bytes for the first and second parcels. Parallel entropy decoding may be performed using the techniques described herein. For example, process 1400 may include reading the first parcel in forward order and reading the second parcel in reverse order. In some cases, process 1400 may include converting the bytes of the second parcel in reverse order. Once the data has been entropy-decoded, other decoding operations may be performed (for example, by performing intra-prediction, inter-prediction, etc.).
[0218]
[0202] In some examples, the processes described herein (for example, process 1300, process 1400, and / or other processes described herein) may be carried out by a computing device or apparatus, such as a computing device having the computing device architecture 1700 shown in Figure 17. In some examples, the computing device may include mobile devices (for example, mobile phones, tablet computing devices, etc.), wearable devices, extended reality devices (for example, virtual reality (VR) devices, augmented reality (AR) devices, or mixed reality (MR) devices), personal computers, laptop computers, video servers, televisions, vehicles (or computing devices in vehicles), robotic devices, and / or any other computing devices that have the resource capacity to carry out the processes described herein, including process 1300 and / or process 1400.
[0219]
[0203] In some cases, a computing device or apparatus may include a variety of components, such as one or more input devices, one or more output devices, one or more processors, one or more microprocessors, one or more microcomputers, one or more transmitters, receivers or combined transmitter-receivers (for example, called transceivers), one or more cameras, one or more sensors, and / or one or more other components configured to perform steps of the processes described herein. In some examples, a computing device may include a display, a network interface configured to communicate and / or receive data, any combination thereof, and / or one or more other components. The network interface may be configured to communicate and / or receive Internet Protocol (IP) based data or other types of data.
[0220]
[0204] Components of a computing device can be implemented in a circuit. For example, a component may include and / or be implemented using one or more programmable electronic circuits (e.g., a microprocessor, a graphics processing unit (GPU), a digital signal processor (DSP), a central processing unit (CPU), a neural processing unit (NPU), and / or other suitable electronic circuits) to perform the various operations described herein, and / or may include and / or be implemented using computer software, firmware, or any combination thereof.
[0221]
[0205] Processes 1300 and 1400 are shown as logical flowcharts, and their operations represent a sequence of operations that may be performed in hardware, computer instructions, or a combination thereof. In the context of computer instructions, an operation represents a computer executable instruction stored in one or more computer-readable storage media that, when executed by one or more processors, performs the described operation. Generally, computer executable instructions include routines, programs, objects, components, data structures, etc., that perform a particular function or implement a particular data type. The order in which operations are described is not to be interpreted as limiting, and any number of described operations may be combined in any order and / or in parallel to implement a process.
[0222]
[0206] Furthermore, the processes described herein (including process 1300, process 1400, and / or other processes described herein) may be carried out under the control of one or more computer systems comprising executable instructions and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) that is executed collectively on one or more processors, by hardware, or in combination thereof. As described above, the code may be stored in a computer-readable or machine-readable storage medium in the form of a computer program comprising, for example, a number of instructions executable by one or more processors. The computer-readable or machine-readable storage medium may be non-temporary.
[0223]
[0207] As mentioned above, some video coding systems utilize neural networks or other machine learning systems to compress video and / or image data. Neural networks can be designed using various connectivity patterns. In a feedforward network, information is passed from lower layers to higher layers, and each neuron in a given layer communicates with neurons in higher layers. As described above, a hierarchical representation can be accumulated in the successive layers of a feedforward network. Neural networks can also have recurrent or (also called top-down) feedback connectivity. In recurrent connectivity, the output from a neuron in a given layer can communicate with another neuron in the same layer. Recurrent architectures can be useful for recognizing patterns across two or more chunks of input data delivered sequentially to the neural network. Connectivity from a neuron in a given layer to a neuron in a lower layer is called feedback (or top-down) connectivity. Networks with many feedback connectivity can be useful when the recognition of a high-level concept can help discriminate certain low-level features of the input.
[0224]
[0208] The connections between layers of a neural network can be fully connected or locally connected. Figure 15A shows an example of a fully connected neural network 1502. In the fully connected neural network 1502, neurons in the first layer can communicate their outputs to any neuron in the second layer, such that each neuron in the second layer receives input from any neuron in the first layer. Figure 15B shows an example of a locally connected neural network 1504. In the locally connected neural network 1504, neurons in the first layer can be connected to a limited number of neurons in the second layer. More generally, the locally connected layers of the locally connected neural network 1504 can be configured such that each neuron in the layer has the same or similar connectivity pattern, but with different connection strengths (e.g., 1510, 1512, 1514, and 1516). The connectivity patterns of local connections can give rise to spatially distinct receptive fields in the upper layers, as upper-layer neurons in a given region may receive inputs that have been tuned through training to the properties of a limited portion of the total input to the network.
[0225]
[0209] An example of a locally connected neural network is a convolutional neural network. Figure 15C shows an example of a convolutional neural network 1506. The convolutional neural network 1506 may be configured such that the connection strengths related to the input for each neuron in the second layer are shared (e.g., 1508). Convolutional neural networks may be suitable for problems where the spatial location of the input is meaningful. The convolutional neural network 1506 may be used to perform one or more embodiments of video compression and / or restoration according to aspects of the present disclosure.
[0226]
[0210] One type of convolutional neural network is a deep convolutional network (DCN). Figure 15D shows a detailed example of a DCN1500 designed to recognize visual features from an image 1526 input from an image capture device 1530 such as an in-vehicle camera. In this example, the DCN1500 can be trained to identify traffic signs and the numbers provided on the traffic signs. Of course, the DCN1500 can be trained for other tasks, such as identifying lane markings or traffic signals.
[0227]
[0211] DCN1500 can be trained using supervised learning. During training, DCN1500 may be presented with images, such as image 1526 of a speed limit sign, and then a forward pass may be calculated to produce output 1522. DCN1500 may include a feature extraction section and a classification section. Upon receiving image 1526, the convolutional layer 1532 may apply a convolutional kernel (not shown) to image 1526 to generate a first set of feature maps 1518. As an example, the convolutional kernel for convolutional layer 1532 may be a 5x5 kernel that generates a 28x28 feature map. In this example, four different feature maps are generated in the first set of feature maps 1518, so four different convolutional kernels were applied to image 1526 in convolutional layer 1532. Convolutional kernels are sometimes called filters or convolutional filters.
[0228]
[0212] The first set of feature maps 1518 may be subsampled by a max pooling layer (not shown) to generate a second set of feature maps 1520. The max pooling layer reduces the size of the first set of feature maps 1518. That is, the size of the second set of feature maps 1520, such as 14×14, is smaller than the size of the first set of feature maps 1518, such as 28×28. The reduced size provides similar information to subsequent layers while reducing memory consumption. The second set of feature maps 1520 may be further convolved through one or more subsequent convolutional layers (not shown) to generate one or more subsequent sets of feature maps (not shown).
[0229]
[0213] In the example of Figure 15D, a second set of feature maps 1520 is convolved to generate a first feature vector 1524. Furthermore, the first feature vector 1524 is further convolved to generate a second feature vector 1528. Each feature in the second feature vector 1528 may contain a number corresponding to a possible feature of image 1526, such as "label", "60", and "100". A softmax function (not shown) can be used to convert the numbers in the second feature vector 1528 into probabilities. Thus, the output 1522 of DCN1500 is the probability that image 1526 contains one or more features.
[0230]
[0214] In this example, the probabilities in output 1522 for “label” and “60” are higher than the probabilities for other outputs in output 1522, such as “30”, “40”, “50”, “70”, “80”, “90”, and “100”. Before training, the outputs 1522 produced by DCN1500 may be inaccurate. Therefore, an error can be calculated between output 1522 and the target output. The target output is the ground truth of image 1526 (e.g., “label” and “60”). The weights of DCN1500 can then be adjusted so that the output 1522 of DCN1500 is more closely matched to the target output.
[0231]
[0215] To adjust the weights, the learning algorithm may calculate a gradient vector for the weights. The gradient may indicate the amount by which the error increases or decreases when the weights are adjusted. In the top layer, the gradient may directly correspond to the weight values connecting the activated neurons in the second-to-last layer to the neurons in the output layer. In the lower layers, the gradient may depend on the weight values and the calculated error gradients of the upper layers. The weights can then be adjusted to reduce the error. This method of adjusting weights is sometimes called "backpropagation" because it involves a "backward path" through the neural network.
[0232]
[0216] In practice, the error gradient of the weights can be calculated over a small number of examples so that the calculated gradient approximates the true error gradient. This approximation method is sometimes called stochastic gradient descent. Stochastic gradient descent can be repeated until the achievable error rate for the entire system no longer decreases or until the error rate reaches a target level. After training, the DCN may be presented with a new image, and the forward pass through the network may yield an output 1522 which can be considered the DCN's inference or prediction.
[0233]
[0217] A deep belief network (DBN) is a probabilistic model with multiple layers of hidden nodes. DBNs can be used to extract a hierarchical representation of a training dataset. DBNs can be obtained by stacking layers of restricted Boltzmann machines (RBMs). An RBM is a type of artificial neural network that can learn a probability distribution over a set of inputs. RBMs are often used in unsupervised learning because they can learn a probability distribution in the absence of information about the class to which each input should be categorized. Using a hybrid unsupervised and supervised paradigm, the lower RBM of a DBN can be trained in an unsupervised manner and can act as a feature extractor, while the upper RBM can be trained in a supervised manner (on a joint distribution of inputs from previous layers and the target class) and can act as a classifier.
[0234]
[0218] A deep convolutional network (DCN) is a network of convolutional networks consisting of additional pooling and normalization layers. DCNs have achieved state-of-the-art performance for many tasks. DCNs can be trained using supervised learning, where both the input and output targets are known for many samples and the network weights are modified by using gradient descent.
[0235]
[0219] A DCN can be a feedforward network. Furthermore, as described above, the connections from neurons in the first layer of a DCN to groups of neurons in the next higher layer are shared across the neurons in the first layer. The feedforward and covalent connections of a DCN can be leveraged for high-speed processing. The computational burden of a DCN can be much less than that of a similarly sized neural network with recurrent or feedback connections, for example.
[0236]
[0220] The processing of each layer of a convolutional network can be considered as a spatially invariant template or basis projection. If the input is initially decomposed into multiple channels, such as the red, green, and blue channels of a color image, the convolutional network trained on that input can be considered three-dimensional, with two spatial dimensions along the image axes and a third dimension capturing the color information. The output of the convolutional connections can be thought to form a feature map in subsequent layers, where each element of the feature map (e.g., 1520) may receive input from various neurons in the previous layer (e.g., feature map 1518) and from each of the multiple channels. The values in the feature map can be further processed using nonlinearity, such as rectification or max(0,x). Values from adjacent neurons can be further pooled, which corresponds to downsampling and can give further local invariance and dimensionality reduction.
[0237]
[0221] Figure 16 is a block diagram showing an example of a deep convolutional network 1650. The deep convolutional network 1650 may include several different types of layers based on connectivity and weight sharing. As shown in Figure 16, the deep convolutional network 1650 includes convolutional blocks 1654A and 1654B. Each of the convolutional blocks 1654A and 1654B may consist of a convolutional layer (CONV) 1656, a normalization layer (LNorm) 1658, and a maximum pooling layer (MAX POOL) 1660.
[0238]
[0222] The convolutional layer 1656 may include one or more convolutional filters which may be applied to the input data 1652 to generate a feature map. Although only two convolutional blocks 1654A and 1654B are shown, the disclosure is not limited in this way, and instead, any number of convolutional blocks (e.g., blocks 1654A and 1654B) may be included in the deep convolutional network 1650 according to design preferences. A normalization layer 1658 may normalize the output of the convolutional filters. For example, the normalization layer 1658 may perform whitening or lateral suppression. A maximum pooling layer 1660 may perform downsampling aggregation across space for local invariance and dimensionality reduction.
[0239]
[0223] For example, the parallel filter bank of the deep convolutional network may be loaded onto the CPU 102 or GPU 104 of the SOC 100 to achieve high performance and low power consumption. In an alternative embodiment, the parallel filter bank may be loaded onto the DSP 106 or ISP 116 of the SOC 100. Furthermore, the deep convolutional network 1650 may have access to other processing blocks that may reside on the SOC 100, such as the sensor processor 114 and the navigation module 120, which are dedicated to sensors and navigation, respectively.
[0240]
[0224] The deep convolutional network 1650 may also include one or more fully-connected layers, such as layer 1662A (labeled as "FC1") and layer 1662B (labeled as "FC2"). The deep convolutional network 1650 may further include a logistic regression (LR) layer 1664. There are weights (not shown) to be updated between each layer 1656, 1658, 1660, 1662A, 1662B, 1664 of the deep convolutional network 1650. The output of each of the layers (e.g., 1656, 1658, 1660, 1662A, 1662B, 1664) can serve as the input to a subsequent layer in the deep convolutional network 1650 to learn hierarchical feature representations from the input data 1652 (e.g., image, audio, video, sensor data, and / or other input data) supplied in the first of the convolutional blocks 1654A. The output of the deep convolutional network 1650 is a classification score 1666 for the input data 1652. The classification score 1666 can be a set of probabilities, where each probability is the probability that the input data contains features from a set of features.
[0241]
[0225] Figure 17 shows an exemplary computing device architecture 1700 of an exemplary computing device that can implement various techniques described herein. In some examples, the computing device may include a mobile device, a wearable device, an extended reality device (e.g., a virtual reality (VR) device, an augmented reality (AR) device, or a mixed reality (MR) device), a personal computer, a laptop computer, a video server, a vehicle (or a computing device in a vehicle), or other devices. For example, the computing device architecture 1700 may be used as part of system 200 in Figure 2 and / or system 300 in Figure 3. Components of the computing device architecture 1700 are shown communicating with each other using a connection 1705 such as a bus. An exemplary computing device architecture 1700 includes a processing unit (CPU or processor) 1710 and a computing device connection 1705, the computing device connection 1705 connecting various computing device components, including computing device memory 1715 such as read-only memory (ROM) 1720 and random access memory (RAM) 1725, to the processor 1710.
[0242]
[0226] The computing device architecture 1700 can include a cache of high-speed memory that is directly connected to the processor 1710, very close to the processor 1710, or integrated as part of the processor 1710. The computing device architecture 1700 can copy data from the memory 1715 and / or the storage device 1730 to the cache 1712 for quick access by the processor 1710. In this way, the cache can provide a performance improvement that avoids processor 1710 delays while waiting for data. These modules and other modules can control the processor 1710 or be configured to control the processor 1710 to perform various actions. Other computing device memory 1715 may also be available for use. The memory 1715 can include multiple different types of memory with different performance characteristics. The processor 1710 can include any general-purpose processor, as well as hardware or software services such as service1 1732, service2 1734, and service3 1736 stored in the storage device 1730 and configured to control the processor 1710, and dedicated processors in which software instructions are incorporated into the processor design. The processor 1710 can be a self-contained system that includes multiple cores or processors, a bus, a memory controller, a cache, etc. The multi-core processor can be symmetric or asymmetric.
[0243]
[0227] To enable user interaction with the computing device architecture 1700, the input device 1745 can represent any number of input mechanisms, such as a microphone for voice, a touch-sensitive screen for gesture or graphical input, a keyboard, a mouse, motion input, and voice. The output device 1735 can also be one or more of several output mechanisms known to those skilled in the art, such as a display, a projector, a television, and a speaker device. In some cases, a multimodal computing device can allow a user to provide multiple types of inputs to communicate with the computing device architecture 1700. The communication interface 1740 can generally control and manage user inputs and computing device outputs. There are no restrictions on operating on any particular hardware configuration, and therefore the basic features here can be easily substituted with improved hardware or firmware configurations as they are developed.
[0244]
[0228] The storage device 1730 is a non-volatile memory and may be a hard disk or other type of computer-readable medium capable of storing computer-accessible data, such as a magnetic cassette, flash memory card, solid memory device, digital versatile disk, cartridge, random access memory (RAM) 1725, read-only memory (ROM) 1720, and hybrids thereof. The storage device 1730 may include services 1732, 1734, and 1736 for controlling the processor 1710. Other hardware modules or software modules are intended. The storage device 1730 may be connected to the computing device connection 1705. In one embodiment, a hardware module performing a particular function may include software components stored on a computer-readable medium with respect to the necessary hardware components, such as the processor 1710, the connection 1705, and the output device 1735, in order to perform that function.
[0245]
[0229] Aspects of the present disclosure are applicable to any suitable electronic device (such as a security system, smartphone, tablet, laptop computer, vehicle, drone, or other device) that includes or is coupled with one or more active depth sensing systems. While a device having or being coupled with one optical projector is described below, aspects of the present disclosure are applicable to devices having any number of optical projectors and are therefore not limited to any particular device.
[0246]
[0230] The term “device” is not limited to one or a specific number of physical objects (such as one smartphone, one controller, or one processing system). A device as used herein may be any electronic device having one or more parts that may implement at least some parts of the Disclosure. The following descriptions and examples use the term “device” to illustrate various aspects of the Disclosure, but the term “device” is not limited to a specific configuration, type, or number of objects. Furthermore, the term “system” is not limited to multiple components or a specific embodiment. For example, a system may be mounted on one or more printed circuit boards or other substrates and may have movable or static components. The following descriptions and examples use the term “system” to illustrate various aspects of the Disclosure, but the term “system” is not limited to a specific configuration, type, or number of objects.
[0247]
[0231] Specific details are provided above in order to provide a complete understanding of the embodiments and examples provided herein. However, those skilled in the art will understand that embodiments may be carried out without these specific details. For the sake of clarity of description, in some cases the Art may be presented as including individual functional blocks, which include devices, device components, steps or routines in a method embodied in software, or combinations of hardware and software. Additional components other than those shown in the figures and / or described herein may be used. For example, circuits, systems, networks, processes, and other components may be shown as components in the form of block diagrams so as not to obscure the embodiments with unnecessary details. In other cases, well-known circuits, processes, algorithms, structures, and techniques may be shown without unnecessary details to avoid obscuring the embodiments.
[0248]
[0232] Individual embodiments may be described above as processes or methods shown as flowcharts, flow diagrams, data flow diagrams, structural diagrams, or block diagrams. While flowcharts may describe operations as sequential processes, many operations may be performed in parallel or simultaneously. Furthermore, the order of operations may be rearranged. When the operations of a process are completed, the process terminates, but it may have additional steps not shown in the diagram. A process may correspond to a method, function, procedure, subroutine, subprogram, etc. When a process corresponds to a function, its termination may correspond to the function returning to a calling function or main function.
[0249]
[0233] The processes and methods described above may be implemented using computer executable instructions, which are stored or otherwise available from a computer-readable medium. Such instructions may include instructions and data that cause a general-purpose computer, a dedicated computer, or a processing device to perform a certain function or a group of functions, or otherwise configure it to perform them. The portion of the computer resources used may be accessible over a network. Computer executable instructions may include, for example, binaries, intermediate format instructions such as assembly language, firmware, source code, etc.
[0250]
[0234] The term “computer-readable medium” includes, but is not limited to, portable or non-portable storage devices, optical storage devices, and various other media capable of storing, containing, or carrying (one or more) instructions and / or data. Computer-readable medium may include non-temporary media on which data can be stored, and it does not include carrier waves and / or temporary electronic signals that propagate wirelessly or through wired connections. Examples of non-temporary media include, but are not limited to, magnetic disks or tapes, optical storage media such as flash memory, memory or memory devices, magnetic or optical disks, flash memory, USB devices with non-volatile memory, network-connected storage devices, compact discs (CDs) or digital multipurpose discs (DVDs), and any suitable combination thereof. Computer-readable medium may store thereon code and / or machine-executable instructions that can represent any combination of procedures, functions, subprograms, programs, routines, subroutines, modules, software packages, classes, or instructions, data structures, or program statements. A code segment may be coupled to another code segment or hardware circuit by passing and / or receiving information, data, arguments, parameters, or memory contents. Information, arguments, parameters, data, etc., may be passed, forwarded, or transmitted via any preferred means, including memory sharing, message passing, token passing, network transmission, etc.
[0251]
[0235] In some embodiments, computer-readable storage devices, media, and memory may include cable signals or wireless signals, such as bitstreams. However, as stated, non-transient computer-readable storage media explicitly exclude media such as energy, carrier signals, electromagnetic waves, and the signals themselves.
[0252]
[0236] Devices implementing the processes and methods described herein may include hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof, and may take any of a variety of form factors. When implemented in software, firmware, middleware, or microcode, program code or code segments (e.g., computer program products) for performing the required tasks may be stored in a computer-readable or machine-readable medium. One or more processors may perform the required tasks. Common examples of form factors include laptops, smartphones, mobile phones, tablet devices or other small form factor personal computers, personal digital assistants, rackmount devices, and standalone devices. The functions described herein may also be embodied in peripherals or add-in cards. Such functions may also, as a further example, be implemented on a circuit board between different chips or different processes running in a single device.
[0253]
[0237] Instructions, a medium for transmitting such instructions, computing resources for executing them, and other structures for supporting such computing resources are exemplary means for providing the functionality described herein.
[0254]
[0238] While the above description has described aspects of this application with reference to specific embodiments thereof, those skilled in the art will recognize that this application is not limited thereto. Accordingly, although exemplary embodiments of this application are described in detail herein, it should be understood that, except as limited by the prior art, the inventive concept may be embodied and employed in various ways, and the appended claims should be interpreted to include such variations. The various features and aspects of the applications described above may be used individually or together. Furthermore, the embodiments may be used in any number of environments and applications other than those described herein without departing from the broader spirit and scope of this specification. Accordingly, this specification and the drawings should be considered illustrative and not restrictive. For explanatory purposes, the methods have been described in a specific order. It should be understood that in alternative embodiments, the methods may be carried out in an order different from that described.
[0255]
[0239] Those skilled in the art will understand that the symbols or terms used herein for less than ("<") and greater than (">") may be replaced, without departing from the scope of this specification, with the symbols for less than or equal to ("≦") and greater than or equal to ("≧").
[0256]
[0240] When a component is described as being "configured to" perform a certain operation, such configuration may be achieved, for example, by designing an electronic circuit or other hardware to perform the operation, by programming a programmable electronic circuit (e.g., a microprocessor or other suitable electronic circuit) to perform the operation, or by any combination thereof.
[0257]
[0241] The phrase “combined” means any component that is physically connected to another component, either directly or indirectly, and / or any component that communicates with another component, either directly or indirectly (for example, connected to another component via a wired or wireless connection and / or other preferred communication interface).
[0258]
[0242] Claim language or other language that states “at least one of” a set and / or “one or more” of a set indicates that one member of a set or multiple members of a set (in any combination) will satisfy the claim. For example, claim language that states “at least one of A and B” or “at least one of A or B” means A, B, or A and B. In another example, claim language that states “at least one of A, B, and C” or “at least one of A, B, or C” means A, B, C, or A and B, or A and C, or B and C, or A and B and C. The language “at least one of” a set and / or “one or more” of a set does not limit the set to the items listed in the set. For example, claim language stating "at least one of A and B" or "at least one of A or B" could mean A, B, or A and B, and could also include items not listed in the set of A and B.
[0259]
[0243] Various exemplary logic blocks, modules, circuits, and algorithmic steps described in relation to the embodiments disclosed herein may be implemented as electronic hardware, computer software, firmware, or a combination thereof. To clearly demonstrate this hardware- and software compatibility, various exemplary components, blocks, modules, circuits, and steps have been described above in general terms with respect to their function. Whether such function is implemented as hardware or as software depends on the specific application and the design constraints imposed on the overall system. A person skilled in the art may implement the described function in various ways for each specific application, but such a decision on implementation should not be construed as resulting in a departure from the scope of this application.
[0260]
[0244] The techniques described herein may also be implemented in electronic hardware, computer software, firmware, or any combination thereof. Such techniques may be implemented in any of a variety of devices, such as general-purpose computers, wireless communication device handsets, or integrated circuit devices having multiple applications, including applications in wireless communication device handsets and other devices. Features described as modules or components may be implemented together in an integrated logic device, or separately as individual but interoperable logic devices. When implemented in software, the techniques may be at least partially implemented by a computer-readable data storage medium having program code that, when executed, performs one or more of the methods described above. The computer-readable data storage medium may form part of a computer program product, which may include packaging materials. The computer-readable medium may comprise memory or data storage media such as random access memory (RAM), read-only memory (ROM), non-volatile random access memory (NVRAM), electro-erasable programmable read-only memory (EEPROM®), flash memory, magnetic or optical data storage media, etc. This technique can be implemented, at least in part, by computer-readable communication media, such as propagating signals or radio waves, which carry or transmit program code in the form of instructions or data structures and can be accessed, read, and / or executed by a computer.
[0261]
[0245] The program code can be executed by a processor that can include one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field-programmable logic arrays (FPGAs), or other equivalent integrated circuits or discrete logic circuits. Such a processor can be configured to implement any of the techniques described in this disclosure. The general-purpose processor can be a microprocessor, but alternatively, the processor can be any conventional processor, controller, microcontroller, or state machine. The processor can also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors cooperating with a DSP core, or any other such configuration. Thus, the term "processor" as used herein can refer to any of the above structures, any combination of the above structures, or any other structure or device suitable for implementing the techniques described herein.
[0262]
[0246] Exemplary aspects of the present disclosure include the following.
[0263]
[0247] Aspect 1: A method for processing video data. The method includes obtaining encoded video data, determining an intersection of values between a value of a first end byte of a first parcel of the encoded video data and a value of a second end byte of a second parcel of the encoded video data, and determining a common end byte for the first end byte of the first parcel and the second end byte of the second parcel, wherein generating entropy-coded data including the common end byte for the first and second parcels based on the intersection of values.
[0264]
[0248] Aspect 2: The method according to aspect 1, further comprising generating entropy-coded data using arithmetic coding.
[0265]
[0249] Embodiment 3: The method according to either Embodiment 1 or 2, wherein the value for the first terminating byte includes a first range of decryptable terminating byte values, wherein the value for the second terminating byte includes a second range of decryptable terminating byte values, wherein the intersection of the values includes values that lie in the first range and the second range.
[0266]
[0250] Embodiment 4: The method according to Embodiment 1, wherein the entropy-coded data is generated using binary coding.
[0267]
[0251] Embodiment 5: The method according to any one of Embodiments 1 or 4, wherein the value for the first terminating byte includes a first number of bits, wherein the value for the second terminating byte includes a second number of bits, wherein the intersection of the values includes a common value between the first number of bits and the second number of bits, and at least one of a subset of the value from the first number of bits and a subset of the value from the second number of bits.
[0268]
[0252] Embodiment 6: The method according to Embodiment 5, wherein the order of the first number of bits and the order of the second number of bits are not changed in the joint-termining byte compared to the order of the first number of bits in the first-termining byte and the order of the second number of bits in the second-termining byte.
[0269]
[0253] Embodiment 7: The method according to any one of Embodiments 1 to 6, wherein generating entropy-coded data includes performing parallel entropy coding of a first parcel and a second parcel.
[0270]
[0254] Embodiment 8: The method according to any one of embodiments 1 to 7, wherein a first parcel is encoded using a first encoder, and a second parcel is encoded using a second encoder.
[0271]
[0255] Embodiment 9: The method according to any one of Embodiments 1 to 8, further comprising storing a first parcel in a first buffer and storing a second parcel in a second buffer.
[0272]
[0256] Embodiment 10: The method according to any one of embodiments 1 to 9, further comprising transmitting a bitstream containing entropy-coded data.
[0273]
[0257] Embodiment 11: The method according to any one of embodiments 1 to 10, further comprising storing a bitstream containing entropy-coded data.
[0274]
[0258] Embodiment 12: The method according to any one of embodiments 1 to 11, further comprising performing parallel entropy decoding of the first parcel and the second parcel using a joint termination byte for the first parcel and the second parcel.
[0275]
[0259] Embodiment 13: The method according to any one of Embodiments 1 to 12, further comprising reading a first parcel in forward order and reading a second parcel in reverse order.
[0276]
[0260] Embodiment 14: The method according to any one of embodiments 1 to 13, further comprising converting the bytes of a second parcel in reverse order.
[0277]
[0261] Embodiment 15: The method according to any one of Embodiments 1 to 14, wherein the joint termination byte is the final termination byte of the first parcel and the second parcel for processing.
[0278]
[0262] Embodiment 16: The method according to any one of Embodiments 1 to 15, wherein the encoded video data comprises one or more syntax elements of a video bitstream.
[0279]
[0263] Embodiment 17: The method of Embodiment 16, wherein one or more syntax elements indicate one or more parameters that define a neural network for decoding encoded video data.
[0280]
[0264] Embodiment 18: The method according to Embodiment 17, wherein one or more parameters defining the neural network comprises at least one of the weights of the neural network and the activation function of the neural network.
[0281]
[0265] Embodiment 19: Apparatus for processing video data. The apparatus includes a memory configured to store video data and one or more processors coupled to the memory (for example, implemented in a circuit). One or more processors are configured to acquire encoded video data, determine the intersection of values between a value for the first termination byte of a first parcel of the encoded video data and a value for the second termination byte of a second parcel of the encoded video data, determine a joint termination byte for the first termination byte of the first parcel and the second termination byte of the second parcel, thereby generating entropy-coded data in which the value for the joint termination byte includes the joint termination bytes for the first and second parcels based on the intersection of values.
[0282]
[0266] Embodiment 20: The apparatus according to Embodiment 19, wherein one or more processors are configured to use arithmetic coding to generate entropy-coded data.
[0283]
[0267] Embodiment 21: The apparatus according to any one of Embodiments 19 or 20, wherein the value for a first terminating byte includes a first range of decryptable terminating byte values, wherein the value for a second terminating byte includes a second range of decryptable terminating byte values, wherein the intersection of the values includes values that are in the first range and the second range.
[0284]
[0268] Embodiment 22: The apparatus according to Embodiment 19, wherein one or more processors are configured to use binary coding to generate entropy-coded data.
[0285]
[0269] Embodiment 23: The apparatus according to any one of Embodiments 19 or 22, wherein the value for a first terminating byte includes a first number of bits, wherein the value for a second terminating byte includes a second number of bits, wherein the intersection of the values includes a common value between the first number of bits and the second number of bits, and at least one of a subset of the value from the first number of bits and a subset of the value from the second number of bits.
[0286]
[0270] Embodiment 24: The apparatus according to Embodiment 23, wherein the order of the first number of bits and the order of the second number of bits are not changed in the joint-termining byte compared to the order of the first number of bits in the first-termining byte and the order of the second number of bits in the second-termining byte.
[0287]
[0271] Embodiment 25: The apparatus according to any one of embodiments 19 to 24, wherein one or more processors are configured to perform parallel entropy coding of a first parcel and a second parcel in order to generate entropy-coded data.
[0288]
[0272] Embodiment 26: The apparatus according to any one of embodiments 19 to 25, further comprising a first encoder configured to encode a first parcel and a second encoder configured to encode a second parcel.
[0289]
[0273] Embodiment 27: The apparatus according to any one of embodiments 19 to 26, further comprising a first buffer configured to store a first parcel and a second buffer configured to store a second parcel.
[0290]
[0274] Embodiment 28: The apparatus according to any one of Embodiments 19 to 27, wherein one or more processors are configured to transmit a bitstream containing entropy-coded data.
[0291]
[0275] Embodiment 29: The apparatus according to any one of Embodiments 19 to 28, wherein one or more processors are configured to store a bitstream containing entropy-coded data.
[0292]
[0276] Embodiment 30: The apparatus according to any one of embodiments 19 to 29, wherein one or more processors are configured to perform parallel entropy decoding of the first parcel and the second parcel using co-terminating bytes for the first parcel and the second parcel.
[0293]
[0277] Embodiment 31: The apparatus according to any one of Embodiments 19 to 30, wherein one or more processors are configured to read a first parcel in forward order and a second parcel in reverse order.
[0294]
[0278] Embodiment 32: The apparatus according to any one of Embodiments 19 to 31, wherein one or more processors are configured to convert the bytes of a second parcel in reverse order.
[0295]
[0279] Embodiment 33: The apparatus according to any one of Embodiments 19 to 32, wherein the joint termination byte is the final termination byte of a first parcel and a second parcel for processing.
[0296]
[0280] Embodiment 34: The apparatus according to any one of Embodiments 19 to 33, wherein the encoded video data comprises one or more syntax elements of a video bitstream.
[0297]
[0281] Embodiment 35: The apparatus according to Embodiment 34, wherein one or more syntax elements indicate one or more parameters that define a neural network for decoding encoded video data.
[0298]
[0282] Embodiment 36: The apparatus according to Embodiment 35, wherein one or more parameters defining the neural network comprises at least one of the weights of the neural network and the activation function of the neural network.
[0299]
[0283] Embodiment 37: The apparatus according to any one of Embodiments 19 to 36, wherein the processor includes a neural processing unit (NPU).
[0300]
[0284] Embodiment 38: The apparatus according to any one of Embodiments 19 to 37, wherein the apparatus is a mobile device.
[0301]
[0285] Embodiment 39: The apparatus according to any one of Embodiments 19 to 37, wherein the apparatus is an extended reality device.
[0302]
[0286] Embodiment 40: The apparatus according to any one of Embodiments 19 to 37, wherein the apparatus is a television.
[0303]
[0287] Embodiment 41: The apparatus according to any one of Embodiments 19 to 40, further comprising a display.
[0304]
[0288] Embodiment 42: The apparatus according to any one of embodiments 19 to 41, wherein the apparatus comprises a camera configured to capture one or more video frames.
[0305]
[0289] Embodiment 43: A computer-readable storage medium that stores instructions that, when executed, cause one or more processors to perform any of the operations described in Embodiments 1 to 42.
[0306]
[0290] Embodiment 44: An apparatus comprising means for performing any of the operations described in Embodiments 1 to 42.
[0307]
[0291] Embodiment 45: A method for processing video data, the method comprising: obtaining a first parcel of entropy-coded data and a second parcel of entropy-coded data; and performing parallel entropy decoding of the first parcel and the second parcel using the joint termination bytes for the first and second parcels, wherein the first and second parcels share a joint termination byte, and the value of the joint termination byte is based on the intersection of the value of the first termination byte of the first parcel and the value of the second termination byte of the second parcel.
[0308]
[0292] Embodiment 46: The method according to Embodiment 45, wherein the entropy-coded data is encoded using arithmetic coding.
[0309]
[0293] Embodiment 47: The method according to any one of Embodiments 45 or 46, wherein the value for a first terminating byte includes a first range of decryptable terminating byte values, wherein the value for a second terminating byte includes a second range of decryptable terminating byte values, wherein the intersection of the values includes values that are in the first range and the second range.
[0310]
[0294] Embodiment 48: The method of Embodiment 45, wherein the entropy-coded data is generated using binary coding.
[0311]
[0295] Embodiment 49: The method according to any one of Embodiments 45 or 48, wherein the value for a first terminating byte includes a first number of bits, wherein the value for a second terminating byte includes a second number of bits, wherein the intersection of the values includes a common value between the first number of bits and the second number of bits, and at least one of a subset of the value from the first number of bits and a subset of the value from the second number of bits.
[0312]
[0296] Embodiment 50: The method according to Embodiment 49, wherein the order of the first number of bits and the order of the second number of bits are not changed in the joint-termining byte compared to the order of the first number of bits in the first-termining byte and the order of the second number of bits in the second-termining byte.
[0313]
[0297] Embodiment 51: A method according to any one of embodiments 45 to 50, further comprising obtaining a first parcel from a first buffer and obtaining a second parcel from a second buffer.
[0314]
[0298] Embodiment 52: The method according to any one of embodiments 45 to 51, further comprising reading a first parcel in forward order and reading a second parcel in reverse order.
[0315]
[0299] Embodiment 53: The method according to any one of embodiments 45 to 52, further comprising converting the bytes of a second parcel in reverse order.
[0316]
[0300] Embodiment 54: The method according to any one of embodiments 45 to 53, wherein the joint termination byte is the final termination byte of the first parcel and the second parcel for processing.
[0317]
[0301] Embodiment 55: The method according to any one of embodiments 45 to 54, further comprising receiving a video bitstream, the video bitstream comprising a first parcel, a second parcel, and one or more syntax elements.
[0318]
[0302] Embodiment 56: The method of Embodiment 55, wherein one or more syntax elements indicate one or more parameters that define a neural network for decoding encoded video data.
[0319]
[0303] Embodiment 57: The method according to Embodiment 56, wherein one or more parameters defining the neural network comprises at least one of the weights of the neural network and the activation function of the neural network.
[0320]
[0304] Embodiment 58: Apparatus for processing video data. The apparatus includes a memory configured to store video data and one or more processors coupled to the memory (for example, implemented in a circuit). One or more processors are configured to acquire a first parcel of entropy-coded data and a second parcel of entropy-coded data, and to perform parallel entropy decoding of the first and second parcels using the joint termination bytes for the first and second parcels, wherein the first and second parcels share a joint termination byte, and the value of the joint termination byte is based on the intersection of the values between the value of the first termination byte of the first parcel and the value of the second termination byte of the second parcel.
[0321]
[0305] Embodiment 59: The apparatus according to Embodiment 58, wherein entropy-coded data is encoded using arithmetic coding.
[0322]
[0306] Embodiment 60: The apparatus according to any one of Embodiments 58 or 59, wherein the value for a first terminating byte includes a first range of decryptable terminating byte values, wherein the value for a second terminating byte includes a second range of decryptable terminating byte values, wherein the intersection of the values includes values that are in the first range and the second range.
[0323]
[0307] Embodiment 61: The apparatus according to Embodiment 58, wherein entropy-coded data is generated using binary coding.
[0324]
[0308] Embodiment 62: The apparatus according to any one of Embodiments 58 or 61, wherein the value for a first terminating byte includes a first number of bits, wherein the value for a second terminating byte includes a second number of bits, wherein the intersection of the values includes a common value between the first number of bits and the second number of bits, and at least one of a subset of the value from the first number of bits and a subset of the value from the second number of bits.
[0325]
[0309] Embodiment 63: The apparatus according to Embodiment 62, wherein the order of the first number of bits and the order of the second number of bits are not changed in the joint-termining byte compared to the order of the first number of bits in the first-termining byte and the order of the second number of bits in the second-termining byte.
[0326]
[0310] Embodiment 64: The apparatus according to any one of embodiments 58 to 63, wherein one or more processors are configured to acquire a first parcel from a first buffer and a second parcel from a second buffer.
[0327]
[0311] Embodiment 65: The apparatus according to any one of embodiments 58 to 64, wherein one or more processors are configured to read a first parcel in forward order and a second parcel in reverse order.
[0328]
[0312] Embodiment 66: The apparatus according to any one of embodiments 58 to 65, wherein one or more processors are configured to convert the bytes of a second parcel in reverse order.
[0329]
[0313] Embodiment 67: The apparatus according to any one of embodiments 58 to 66, wherein the joint termination byte is the final termination byte of a first parcel and a second parcel for processing.
[0330]
[0314] Embodiment 68: The apparatus according to any one of embodiments 58 to 67, wherein one or more processors are configured to receive a video bitstream, the video bitstream comprising a first parcel, a second parcel, and one or more syntax elements.
[0331]
[0315] Embodiment 69: The apparatus according to Embodiment 68, wherein one or more syntax elements indicate one or more parameters that define a neural network for decoding encoded video data.
[0332]
[0316] Embodiment 70: The apparatus according to Embodiment 69, wherein one or more parameters defining the neural network comprises at least one of the weights of the neural network and the activation function of the neural network.
[0333]
[0317] Embodiment 71: The apparatus according to any one of Embodiments 58 to 70, wherein the processor includes a neural processing unit (NPU).
[0334]
[0318] Embodiment 72: The apparatus according to any one of embodiments 58 to 71, wherein the apparatus is a mobile device.
[0335]
[0319] Embodiment 73: The apparatus according to any one of embodiments 58 to 71, wherein the apparatus is an extended reality device.
[0336]
[0320] Embodiment 74: The apparatus according to any one of embodiments 58 to 71, wherein the apparatus is a television.
[0337]
[0321] Embodiment 75: The apparatus according to any one of embodiments 58 to 74, further comprising a display.
[0338]
[0322] Embodiment 76: The apparatus according to any one of embodiments 58 to 75, wherein the apparatus comprises a camera configured to capture one or more video frames.
[0339]
[0323] Embodiment 77: A computer-readable storage medium that stores instructions that, when executed, cause one or more processors to perform any of the operations described in Embodiments 58 to 76.
[0340]
[0324] Embodiment 78: An apparatus comprising means for performing any of the operations described in Embodiments 58 to 76.
[0341]
[0325] Embodiment 79: A method configured to perform any of the operations described in Embodiments 1 to 42 and Embodiments 58 to 76.
[0342]
[0326] Embodiment 80: Apparatus for processing video data. The apparatus includes a memory configured to store video data and one or more processors coupled to the memory (for example, implemented in a circuit). One or more processors are configured to perform any of the operations described in Embodiments 1 to 42 and Embodiments 58 to 76.
[0343]
[0327] Embodiment 81: A computer-readable storage medium that stores instructions that, when executed, cause one or more processors to perform any of the operations described in Embodiments 1 to 42 and Embodiments 58 to 76.
[0344]
[0328] Embodiment 82: An apparatus comprising means for performing any of the operations described in Embodiments 1 to 42 and Embodiments 58 to 76.
Claims
1. 1. A method for processing video data, comprising the steps of: Obtaining encoded video data; determining an intersection of values between a value for a first termination byte of a first parcel of the encoded video data and a value for a second termination byte of a second parcel of the encoded video data, where the value for the first termination byte includes a first range of termination byte values that are permitted to be decoded and the value for the second termination byte includes a second range of termination byte values that are permitted to be decoded, and the intersection of values includes values that are in the first range and the second range. determining a joint termination byte for the first termination byte of the first parcel and the second termination byte of the second parcel, wherein a value for the joint termination byte is based on the intersection of values; generating entropy coded data including the joint termination byte for the first parcel and the second parcel; A method comprising:
2. The method of claim 1 , wherein the entropy coded data is generated using arithmetic coding.
3. The entropy coded data is generated using binary coding, preferably the values for the first termination byte include a first number of bits and the values for the second termination byte include a second number of bits, and the intersection of values includes at least one of a common value in the first and second number of bits and a subset of values from the first and second number of bits, preferably 2. The method of claim 1 , wherein an order of the first number of bits and an order of the second number of bits are unchanged in the co-termination byte compared to an order of the first number of bits in the first termination byte and an order of the second number of bits in the second termination byte.
4. Generating the entropy coded data includes performing parallel entropy coding of the first parcel and the second parcel, preferably 2. The method of claim 1, wherein the first parcel is encoded using a first encoder and the second parcel is encoded using a second encoder.
5. performing parallel entropy decoding of the first parcel and the second parcel using the joint termination byte for the first parcel and the second parcel; and preferably further comprising reading the first parcel in forward order; reading the second parcel in reverse order; and preferably further comprising converting the bytes of the second parcel into reverse order; The method of claim 1 further comprising:
6. 2. The method of claim 1, wherein the joint termination byte is a final termination byte of the first parcel and the second parcel for processing.
7. The encoded video data comprises one or more syntax elements of a video bitstream, preferably The one or more syntax elements indicate one or more parameters defining a neural network for decoding the encoded video data, preferably The method of claim 1 , wherein the one or more parameters defining the neural network comprise at least one of weights of the neural network and an activation function of the neural network.
8. 1. An apparatus for processing video data, comprising: a memory configured to store video data; one or more processors coupled to the memory; wherein the processor: Obtaining encoded video data; determining an intersection of values between a value for a first termination byte of a first parcel of the encoded video data and a value for a second termination byte of a second parcel of the encoded video data, where the value for the first termination byte includes a first range of termination byte values that are permitted to be decoded and the value for the second termination byte includes a second range of termination byte values that are permitted to be decoded, and the intersection of values includes values that are in the first range and the second range. determining a joint termination byte for the first termination byte of the first parcel and the second termination byte of the second parcel, wherein a value for the joint termination byte is based on the intersection of values; generating entropy coded data including the joint termination byte for the first parcel and the second parcel; An apparatus configured to:
9. The apparatus of claim 8 , wherein the one or more processors are configured to use arithmetic coding to generate the entropy coded data.
10. The one or more processors are configured to use binary coding to generate the entropy coded data, preferably the values for the first termination byte include a first number of bits and the values for the second termination byte include a second number of bits, and the intersection of values includes at least one of a common value in the first and second number of bits and a subset of values from the first and second number of bits, preferably 9. The apparatus of claim 8, wherein an order of the first number of bits and an order of the second number of bits are unchanged in the co-termination byte compared to an order of the first number of bits in the first termination byte and an order of the second number of bits in the second termination byte.
11. To generate the entropy coded data, the one or more processors are configured to perform parallel entropy coding of the first parcel and the second parcel, preferably a first encoder configured to encode the first parcel; a second encoder configured to encode the second parcel; The apparatus of claim 8 further comprising:
12. The one or more processors: performing parallel entropy decoding of the first parcel and the second parcel using the joint termination byte for the first parcel and the second parcel; and preferably configured to The one or more processors: reading the first parcel in forward order; reading the second parcel in reverse order; The apparatus of claim 8 configured to:
13. the joint termination byte being the final termination byte of the first parcel and the second parcel for processing; and / or The encoded video data comprises one or more syntax elements of a video bitstream, preferably 10. The apparatus of claim 8, wherein the one or more syntax elements indicate one or more parameters defining a neural network for decoding the encoded video data.
14. 14. The apparatus of claim 13, wherein the one or more parameters defining the neural network comprise at least one of weights of the neural network and an activation function of the neural network.
15. 10. The device of claim 8, wherein the device is one of a mobile device, an extended reality device, or a television, the device further comprising at least one of a display and a camera configured to capture one or more video frames.
