Video encoding and decoding method, device, computer system and readable medium
By detecting edges in video data and calculating gradient values, AV1 is encoded and decoded, which solves the problems of artifacts and information loss in AV1 loop filtering processing, and improves encoding and decoding efficiency and visual quality.
Patent Information
- Application Number
- CN202180005515.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-10-22
- Filing Date
- 2021-03-31
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-03-31
AI Technical Summary
AOMedia Video 1 (AV1) has artifacts and information loss problems in the loop filtering process, resulting in a decrease in encoding and decoding efficiency and visual quality, especially the weakening or disappearance of edges in the lossy encoding and decoding module.
By detecting edges in the video data, calculating gradient values to determine the edge direction, and encoding and decoding the video data based on these gradient values, the loop filtering process is improved and applied to all color components to reduce information loss.
The encoding and decoding efficiency of video data is improved, visual quality is enhanced, and information loss is avoided, especially in edge processing.
Smart Images

Figure CN114450722B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to U.S. Provisional Patent Application No. 63 / 011,895 filed in the U.S. Patent and Trademark Office on April 17, 2020 and U.S. Patent Application No. 17 / 077,488 filed in the U.S. Patent and Trademark Office on October 22, 2020, the entire text of both applications are incorporated herein by reference. Technical Field
[0003] The present disclosure relates generally to the field of data processing, and more particularly to video encoding and decoding. Background Art
[0004] AOMedia Video 1 (AV1) is an open video codec designed for video delivery over the Internet. It is the successor to VP9 developed by the Alliance for Open Media (AOMedia), a consortium of semiconductor companies, video-on-demand providers, video content producers, software development companies, and web browser vendors formed in 2015. Many components of the AV1 project derive from previous research work by members of the alliance. Independent contributors started experimental technology platforms several years ago: Xiph / Mozilla's Daala published code in 2010, Google's experimental VP9 evolution project VP10 was announced on September 12, 2014, and Cisco's Thor was announced on August 11, 2015. Building on the VP9 base code, AV1 incorporates additional technologies, several of which were developed in these experimental forms. The first version of the AV1 reference codec (version 0.1.0) was announced on April 7, 2016. The alliance announced the release of the AV1 bitstream specification, as well as software-based reference encoders and decoders on March 28, 2018. On June 25, 2018, the validated version 1.0.0 of the specification was released. On January 8, 2019, the validated version 1.0.0 of the specification with Errata 1 was released. The AV1 bitstream specification includes a reference video codec. Summary of the invention
[0005] Embodiments relate to methods, apparatus, computer systems, and readable media for video encoding and decoding. According to one aspect, a method for video encoding and decoding is provided. The method may include receiving and / or sending video data. Detecting edges present in samples of the received video data. Calculating a gradient value, the gradient value corresponding to a direction associated with the detected edge. Based on the calculated gradient value, decoding and / or encoding the video data.
[0006] According to another aspect, a computer system for video encoding and decoding is provided. The computer system may include one or more processors, one or more computer-readable random access memories, one or more computer-readable tangible storage devices, and program instructions stored on at least one of the one or more storage devices, the program instructions are for at least one of the one or more processors to execute through at least one of the one or more random access memories, whereby the computer system is capable of performing a method. The method may include receiving and / or sending video data. Detecting edges present in samples of the received video data. Calculating a gradient value, the gradient value corresponding to a direction associated with the detected edge. Based on the calculated gradient value, decoding and / or encoding the video data.
[0007] According to another aspect, a computer-readable medium for video encoding and decoding is provided. The computer-readable medium may include one or more computer-readable memories and program instructions stored on at least one of one or more tangible storage devices. The program instructions may be executed by a processor to perform a corresponding method, which may include receiving and / or sending video data. Detect edges present in a sample of video data. Calculate a gradient value corresponding to a direction associated with the detected edge. Decode and / or encode the video data based on the calculated gradient. According to another aspect, a device for video encoding and decoding is provided, comprising: a receiving module for receiving video data; a detection module for detecting edges present in a sample of the received video data; a calculation module for calculating a gradient value, the gradient value corresponding to a direction associated with the detected edge; and a decoding module for decoding the video data based on the calculated gradient value. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The above and other purposes, features and advantages of the present application will become apparent from the following detailed description of exemplary embodiments in conjunction with the accompanying drawings. The various features of the accompanying drawings are not drawn to scale because the illustrations are for the sake of clarity, so as to facilitate the understanding of the technical solutions of the present application by those skilled in the art in conjunction with the detailed description. In the accompanying drawings:
[0009] Figure 1 illustrates a networked computer environment according to at least one embodiment;
[0010] Figure 2 is a schematic diagram of edge directions according to at least one embodiment;
[0011] Figure 3 is a schematic diagram of gradient calculation according to at least one embodiment;
[0012] Figure 4An operational flow chart illustrating steps performed by a program for encoding and decoding video data based on detecting edges present in the video data in accordance with at least one embodiment is shown;
[0013] Figure 5 According to at least one embodiment Figure 1 block diagrams of the internal and external components of the computers and servers shown;
[0014] Figure 6 According to at least one embodiment, Figure 1 A block diagram of an illustrative cloud computing environment of a computer system is shown; and
[0015] Figure 7 According to at least one embodiment Figure 6 A schematic block diagram of the functional layers of a cloud computing environment. DETAILED DESCRIPTION
[0016] The present application discloses specific embodiments of the claimed structures and methods. However, it should be understood that the disclosed embodiments are only examples of the claimed structures and methods that can be embodied in various forms. However, these structures and methods can be embodied in many different forms and should not be interpreted as being limited to the exemplary embodiments described in the present application. On the contrary, these exemplary embodiments are provided to make the present application more comprehensive and complete, and to fully convey the scope to those skilled in the art. In the specification, the details of well-known features and technologies may be omitted to avoid unnecessary confusion of the presented embodiments.
[0017] Embodiments generally relate to the field of data processing, and more specifically, to video encoding and decoding. The exemplary embodiments described below provide a system, method, and computer program for encoding and decoding video data based on gradient calculations of edges detected within the video data. Thus, some embodiments have the ability to improve the field of computing by improving the encoding and decoding of video data through improved edge detection in the video data.
[0018] As mentioned earlier, AOMedia Video 1 (AV1) is an open video codec format designed for video delivery over the Internet. It is the successor to VP9 developed by the Alliance for Open Media (AOMedia), a consortium of semiconductor companies, video-on-demand providers, video content producers, software development companies, and web browser vendors that was founded in 2015. Many components of the AV1 project derive from previous research work by members of the alliance. Independent contributors started experimental technology platforms several years ago: Xiph / Mozilla's Daala published code in 2010, Google's experimental VP9 evolution project VP10 was announced on September 12, 2014, and Cisco's Thor was announced on August 11, 2015. Building on the base code of VP9, AV1 incorporates additional technologies, several of which were developed in these experimental forms. The first version of the AV1 reference codec (version 0.1.0) was announced on April 7, 2016. The alliance announced the release of the AV1 bitstream specification, as well as software-based reference encoders and decoders on March 28, 2018. On June 25, 2018, the validated version 1.0.0 of the specification was released. On January 8, 2019, the validated version 1.0.0 of the specification with Errata 1 was released. The AV1 bitstream specification includes a reference video codec.
[0019] In AV1, loop filtering handles artifacts and information loss during video compression. The loop filtering includes, but is not limited to, ALF (Adaptive Loop Filter), SAO (Sample Adaptive Offset), Deblocking, CDEF (Constrained Directional Enhanced Filter), CCALF (Cross Component Adaptive Loop Filter), and LR (In-loop Restoration). CCALF is a high-pass filter that enhances the edges of chroma components. First, like related filtering methods, CCALF requires multiple sets of filter coefficients to be notified by signal. In addition, CCALF is only applied to chroma components. However, lossy codec modules can cause information loss. An example of information loss is the weakening or disappearance of edges after compression. This may affect codec efficiency and visual quality. Therefore, it is advantageous to use samples belonging to the first and / or second color components to determine edge directions and edge positions, and to use samples and add offset values to calculate the gradient value of the increase or decrease of the specified sample value. The filter coefficients may not need to be signaled and the filtering may be applied to all color components, eg, Y / Cb / Cr and R / G / B.
[0020] Various aspects are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer-readable storage media of various embodiments. It should be understood that each box in the flowchart and / or block diagram, and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0021] Figure 1 is a functional block diagram of a networked computer environment, which illustrates a video encoding and decoding system 100 (hereinafter referred to as the "system"). It should be understood that Figure 1 This only provides an illustration of one implementation and does not imply any limitation on the environments in which different embodiments may be implemented. Various modifications may be made to the described environment based on design and implementation requirements.
[0022] System 100 may include computer 102 and server computer 114. Computer 102 may communicate with server computer 114 via communication network 110 (hereinafter referred to as "network"). Computer 102 may include processor 104 and software program 108 stored in data storage device 106 and capable of interfacing with a user and communicating with server computer 114. Figure 5As discussed, computer 102 may include internal components 800A and external components 900A, respectively, and server computer 114 may include internal components 800B and external components 900B, respectively. Computer 102 may be, for example, a mobile device, a phone, a personal digital assistant, a netbook, a laptop computer, a tablet computer, a desktop computer, or any type of computing device capable of running programs, accessing a network, and accessing a database.
[0023] The server computer 114 may also operate in a cloud computing service model, such as software as a service (SaaS), platform as a service (PaaS), or infrastructure as a service (IaaS), as described below with reference to Figure 6 and Figure 7 The server computer 114 may also be located in a cloud computing deployment model, such as a private cloud, a community cloud, a public cloud, or a hybrid cloud.
[0024] Server computer 114, which can be used to encode and decode video data based on detecting edges within the video data, can run a video encoding and decoding program 116 (hereinafter referred to as "program"), which can interact with database 112. Figure 4 The video codec program method is explained in more detail. In one embodiment, the computer 102 can operate as an input device including a user interface, and the program 116 can be primarily operated on the server computer 114. In an alternative embodiment, the program 116 can be primarily operated on one or more computers 102, and the server computer 114 can be used to process and store data used by the program 116. It should be noted that the program 116 can be a stand-alone program, or can be integrated into a larger video codec program.
[0025] However, it should be noted that in some cases, the processing of program 116 may be shared in any ratio between computer 102 and server computer 114. In another embodiment, program 116 may be executed on more than one computer, server computer, or some combination of computers and server computers, such as multiple computers 102 communicating with a single server computer 114 via network 110. In another embodiment, for example, program 116 may be executed on multiple server computers 114 communicating with multiple client computers via network 110. Alternatively, the program may be executed on a network server that communicates with the server and multiple client computers via the network.
[0026] The network 110 may include a wired connection, a wireless connection, a fiber optic connection, or some combination thereof. In general, the network 110 may be any combination of connections and protocols that support communication between the computer 102 and the server computer 114. The network 110 may include various types of networks, such as a local area network (LAN), a wide area network (WAN) such as the Internet, a telecommunications network such as a public switched telephone network (PSTN), a wireless network, a public switched network, a satellite network, a cellular network (e.g., a fifth generation (5G) network, a long term evolution (LTE) network, a third generation (3G) network, a code division multiple access (CDMA) network, etc.), a public land mobile network (PLMN), a metropolitan area network (MAN), a private network, an ad hoc network, an intranet, a fiber-based network, etc., and / or a combination of these or other types of networks.
[0027] Figure 1 The number and arrangement of devices and networks shown are provided as examples. Figure 1 There may be more devices and / or networks, fewer devices and / or networks, different devices and / or networks, or devices and / or networks arranged differently than those shown. Figure 1 Two or more of the devices shown may be implemented in a single device, or Figure 1 The single device shown may be implemented as multiple distributed devices. Additionally or alternatively, one set of devices (eg, one or more devices) of system 100 may perform one or more functions described as being performed by another set of devices of system 100.
[0028] Reference now Figure 2 , depicts a diagram of exemplary edge directions 200. An edge may represent a set of samples located at consecutive locations in video and image data where an abrupt change in intensity value occurs. An edge may have a direction that may represent a unit vector along the edge. An edge has a position corresponding to a sample position at which the edge is located. Thus, edge detection may correspond to a process for determining an edge direction and an edge position. For example, edge detection may be performed by determining a gradient along an edge. A gradient may correspond to an increase or decrease in sample value along a direction different from the edge direction. A negative gradient value may correspond to a sample intensity that changes to a smaller value along a given direction, whereas a positive gradient value may correspond to a sample intensity that changes to a larger value along a given direction. Edge directions 200 may include, for example, a horizontal edge 202, a vertical edge 204, a 45 degree edge 206, and a 135 degree edge 208. It will be appreciated that given a sufficiently large sample block size, substantially any edge angle may exist.
[0029] Edge detection can be applied to MxN blocks, where M and N are positive integers, and example values of M and N include, but are not limited to: 1, 2, 3, 4, 8, etc. The input to the process is an MxN sample block, and the output is the edge direction and edge position of the block. In one embodiment, when M=N=1, the edge detection process is performed at the pixel level. In one embodiment, when M>1 and / or N>1, edge detection is performed at the block level. In one embodiment, the edge direction is determined based on a directional search for the block with the minimum error value. Direction search is performed on reconstructed pixels just after deblocking filtering. Since these pixels are applicable to the decoder, the direction does not need to be signaled. The search is performed on 8×8 blocks, which are small enough to adequately handle non-straight edges, while being large enough to reliably estimate the direction when applied to quantized images. Having a constant direction over an 8×8 area also makes vectorization of filtering easier. For each block, the direction that best matches the pattern in the block can be determined by minimizing the sum of squared differences (SSD) between the quantized block and the closest fully oriented block. A fully oriented block is a block where all pixels along a line in one direction have the same value. In one embodiment, edge detection is performed using a Canny edge detector. In one embodiment, edge detection is performed using a Sobel edge detector.
[0030] Reference now Figure 3 , depicts a diagram of an exemplary gradient calculation 300. Gradients may be calculated along horizontal edges 302, vertical edges 304, 45 degree edges 306, and 135 degree edges 308. Gradient values may be calculated along a direction that specifies increasing or decreasing sample values. The input to this process may include an MxN block, and the output of this process may include a number k. In one example, when k>0, it indicates that sample values are increasing along that direction, and when k<0, it indicates that sample values are decreasing along that direction. The gradient along a direction is calculated as
[0031]
[0032] where x i and i can be pairs of sample values along that direction.
[0033] In one embodiment, the gradient may be calculated in a direction orthogonal to the edge direction. In one example, when the edge is horizontal, a vertical gradient is calculated. In another example, when the edge is vertical, a horizontal gradient is calculated. In another example, when the edge is 45 degrees, a 135 degree gradient is calculated. In another example, when the edge is 135 degrees, a 45 degree gradient is calculated.
[0034] The offset value may be an integer added to the sample. For example, the offset value may include 0, +1, -1, +2, -2, +3, -3, etc. In one embodiment, the offset is added to the color component, which is a different color component to which edge detection is applied. In one example, edge detection is applied to Y (luminance component) and the offset is added to Cb (blue difference chrominance component) and / or Cr (red difference chrominance component). In one embodiment, the offset is added to the color component, which is the same color component to which edge detection is applied. In one example, edge detection is applied to Y and the offset is added to Y.
[0035] In one embodiment, the offset is added to all samples within the block. In one example, when edge detection is applied to an 8x8 luma block, the offset is added to all samples within the 8x8 luma block. In one example, when edge detection is applied to an 8x8 luma block, the offset is added to all samples within the corresponding 4x4 chroma block. In one embodiment, the offset is added only to samples located on an edge, such as an edge position. In one example, when edge detection is applied to an 8x8 luma block, the offset is added only to samples located on an edge within the 8x8 luma block. In one example, when edge detection is applied to an 8x8 luma block, the offset is added only to samples located on an edge within the corresponding 4x4 chroma block.
[0036] In one embodiment, clipping is performed when the offset is added to ensure that the sample value does not exceed the maximum or minimum value. In one example, clipping is performed as clip(x)=max(min(x, max_val), min_val), where max and min refer to the maximum operator and the minimum operator, max_val and min_val represent the maximum sample value and the minimum sample value, and x is the sample value to be clipped.
[0037] In one embodiment, the offset value is derived based on the edge direction and the gradient. In one example, a lookup table is predefined, given the derived edge direction i and gradient value g as input to the lookup table, and the output is the offset value. The lookup table can be signaled at the advanced parameter set (Decoder Parameter Set (DPS), Video Parameter Set (VPS), Sequence Parameter Set (SPS), Picture Parameter Set (PPS), Adaptation Parameter Set (APS)), slice header, picture header, Supplementary Enhancement Information (SEI) message or Coding Tree Unit (CTU) level. In one example, the offset value is derived based on the edge direction and the gradient sign. In one example, the offset values applied to the same edge direction but different gradient signs have different sign values. For example, the offset value of a 45-degree edge with a positive gradient value and the offset value of a 45-degree edge with a negative gradient value have opposite signs.
[0038] Reference now Figure 4 , depicts an operational flow chart illustrating the steps of a method 400 for encoding and decoding video data. In some embodiments, the computer 102 ( Figure 1 ) and server computer 114 ( Figure 1 ) to execute Figure 4 In some embodiments, the processing blocks may be performed by another device or group of devices separate from or including the computer 102 and the server computer 114. Figure 4 One or more processing blocks.
[0039] At 402 , method 400 includes receiving video data.
[0040] At 404, method 400 includes detecting edges present in received samples of the video data.
[0041] At 406 , method 400 includes calculating a gradient value corresponding to a direction associated with the detected edge.
[0042] At 408 , method 400 includes decoding the video data based on the calculated gradient value.
[0043] It should be understood that Figure 4Only an illustration of one embodiment is provided, and no limitation on the environment in which different embodiments may be implemented is implied. Various modifications may be made to the described environment based on design and implementation requirements. For example, a method that does not depart from the spirit of the described embodiments may include detecting edges present in a sample of video data, calculating a gradient value corresponding to a direction associated with the detected edge, encoding the video data based on the calculated gradient, and transmitting the encoded video data.
[0044] Figure 5 According to an exemplary embodiment Figure 1 A block diagram 500 of the internal and external components of the computer is shown. It should be understood that Figure 5 This only provides an illustration of one implementation and does not imply any limitation to the environments in which different embodiments may be implemented. Various modifications may be made to the described environment based on design and implementation requirements.
[0045] Computer 102 ( Figure 1 ) and server computer 114 ( Figure 1 ) can include Figure 5 Respective sets of internal components 800A, 800B and external components 900A, 900B are shown. Each set of internal components 800 includes one or more processors 820 connected to one or more buses 826, one or more computer-readable random access memories (RAM) 822 and one or more computer-readable read-only memories (ROM) 824, including one or more operating systems 828, and one or more computer-readable tangible storage devices 830.
[0046] Processor 820 is implemented in hardware, firmware or a combination of hardware and software. Processor 820 is a central processing unit (CPU), a graphics processing unit (GPU), an accelerated processing unit (APU), a microprocessor, a microcontroller, a digital signal processor (DSP), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC) or other types of processing components. In some embodiments, processor 820 includes one or more processors that can be programmed to perform functions. Bus 826 includes components that allow communication between internal components 800A and 800B.
[0047] One or more operating systems 828, and server computer 114 ( Figure 1 ) on the software program 108 ( Figure 1 ) and video codec program 116 ( Figure 1 ) are stored on one or more corresponding computer-readable tangible storage devices 830 for execution by one or more corresponding processors 820 via one or more corresponding RAMs 822 (which typically include cache memories). Figure 5In the illustrated embodiment, each computer-readable tangible storage device 830 is a magnetic disk storage device of an internal hard drive. Alternatively, each computer-readable tangible storage device 830 is a semiconductor storage device such as ROM 824, an erasable programmable read-only memory (EPROM), a flash memory, an optical disk, a magneto-optical disk, a solid-state disk, a compact disk (CD), a digital versatile disk (DVD), a floppy disk, a cassette, a magnetic tape, and / or other types of non-volatile computer-readable tangible storage devices capable of storing computer programs and digital information.
[0048] Each set of internal components 800A, 800B also includes a read / write (R / W) drive or interface 832 for reading from or writing to one or more portable computer readable tangible storage devices 936 (e.g., CD-ROMs, DVDs, memory sticks, tapes, disks, optical disks, or semiconductor storage devices). Figure 1 ) and video codec program 116 ( Figure 1 ) can be stored on one or more corresponding portable computer-readable tangible storage devices 936, read via the corresponding R / W drive or interface 832 and loaded into the corresponding computer-readable tangible storage device 830.
[0049] Each set of internal components 800A, 800B also includes a network adapter or interface 836, such as a TCP / IP adapter card, a wireless Wi-Fi interface card, or a 3G, 4G or 5G wireless interface card or other wired or wireless communication link. Figure 1 ) on the software program 108 ( Figure 1 ) and video codec program 116 ( Figure 1 ) can be downloaded from an external computer to the computer 102 via a network (eg, the Internet, a local area network or other network, a wide area network) and a corresponding network adapter or interface 836 ( Figure 1 ) and the server computer 114. The software program 108 and the video codec program 116 on the server computer 114 are loaded into the corresponding computer-readable tangible storage device 830 from the network adapter or interface 836. The network may include copper wire, fiber optic, wireless transmission, routers, firewalls, switches, gateway computers and / or edge servers.
[0050] Each set of external components 900A, 900B may include a computer display 920, a keyboard 930, and a computer mouse 934. External components 900A, 900B may also include a touch screen, a virtual keyboard, a touch pad, a pointing device, and other human-computer interface devices. Each set of internal components 800A, 800B also includes a device driver 840 to interface with the computer display 920, the keyboard 930, and the computer mouse 934. The device driver 840, the R / W driver or interface 832, and the network adapter or interface 836 include hardware and software (stored in the computer-readable tangible storage device 830 and / or the ROM 824).
[0051] It should be understood that although the present application includes a detailed description of cloud computing, the embodiments listed herein are not limited to cloud computing environments. Instead, certain embodiments can be implemented in conjunction with any other type of computing environment now known or later developed.
[0052] Cloud computing is a service delivery model for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal management effort or interaction with the service provider. Cloud models can include at least five characteristics, at least three service models, and at least four deployment models.
[0053] Features are as follows:
[0054] On-demand self-service: Cloud users can automatically and unilaterally provision computing capabilities, such as server time and network storage, as needed without manual interaction with the service provider.
[0055] Broad network access: Capabilities are available over the network and accessed through standard mechanisms that facilitate use on heterogeneous thin or thick client platforms (e.g., mobile phones, laptops, and personal digital assistants).
[0056] Resource pooling: Pooling a provider's computing resources to serve multiple users using a multi-tenant model, dynamically allocating and reallocating different physical and virtual resources based on demand. Location independence means that users typically have no control or knowledge of the exact location of the resources provided, but are able to specify the location at a higher level of abstraction (e.g., country, state, or data center).
[0057] Rapid elasticity: Capabilities that can be provisioned quickly and elastically, and in some cases automatically provisioned to scale out quickly, and released quickly to scale in quickly. To the user, the capabilities available for provisioning often appear to be unlimited and can be purchased in any quantity at any time.
[0058] Measured service: Cloud systems automatically control and optimize resource usage by leveraging metering capabilities at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency to providers and users of the services being used.
[0059] The service model is as follows:
[0060] Software as a Service (SaaS): The functionality provided to users is to use the provider's applications running on a cloud infrastructure. Applications can be accessed from a variety of client devices through a thin client interface such as a web browser (e.g., web-based email). Users do not manage or control the underlying cloud infrastructure including networks, servers, operating systems, storage, or even individual application functions, but may be limited to user-specific application configuration settings.
[0061] Platform as a Service (PaaS): The functionality provided to users is to deploy user-created or acquired applications on cloud infrastructure. The user-created or acquired applications are created using programming languages and tools supported by the provider. Users do not manage or control the underlying cloud infrastructure including networks, servers, operating systems or storage, but control the deployed applications and possible application hosting environment configuration.
[0062] Infrastructure as a Service (IaaS): The functionality provided to users is the provision of processing, storage, networking, and other basic computing resources, where users can deploy and run arbitrary software including operating systems and applications. Users do not manage or control the underlying cloud infrastructure, but control the operating system, storage, deployed applications, and may have limited control over selected network components (e.g., host firewalls).
[0063] The deployment model is as follows:
[0064] Private cloud: Cloud infrastructure is run only for an organization. It can be managed by the organization or a third party and can exist on-premises or off-premises.
[0065] Community cloud: The cloud infrastructure is shared by multiple organizations and supports a specific community with shared concerns (e.g., mission, security requirements, policies, and compliance considerations). It can be managed by the organization or a third party and can exist on-premises or off-premises.
[0066] Public cloud: Cloud infrastructure is available to the general public or large industrial groups and is owned by an organization that sells cloud services.
[0067] Hybrid cloud: A cloud infrastructure composed of two or more clouds (private, community, or public) that remain unique entities but are bound together by standardized or proprietary technologies to enable data and application portability (e.g., cloud bursting for load balancing between clouds).
[0068] The cloud computing environment is service-oriented, focusing on statelessness, low coupling, modularity, and semantic interoperability. The core of cloud computing is the infrastructure consisting of a network of interconnected nodes.
[0069] Reference Figure 6 , which shows an exemplary cloud computing environment 600. As shown, the cloud computing environment 600 includes one or more cloud computing nodes 10, and local computing devices used by cloud users (such as personal digital assistants (PDAs) or cellular phones 54A, desktop computers 54B, laptop computers 54C and / or automobile computer systems 54N) can communicate with these cloud computing nodes 10. The cloud computing nodes 10 can communicate with each other. They can be physically or virtually grouped in one or more networks, such as the private clouds, community clouds, public clouds, hybrid clouds, or combinations thereof described above (not shown). This allows the cloud computing environment 600 to provide infrastructure, platforms and / or software as services without the cloud users needing to maintain resources for these services on local computing devices. It should be understood that Figure 6 The types of computing devices 54A-N shown are exemplary only, and cloud computing node 10 and cloud computing environment 600 may communicate with any type of computer device over any type of network and / or network-addressable connection (eg, using a web browser).
[0070] Reference Figure 7 , which shows a cloud computing environment 600 ( Figure 6 ) provides a set of functional abstraction layers 700. It should be understood that Figure 7 The components, layers and functions shown are exemplary only, and the embodiments are not limited thereto. As shown in the figure, the following layers and corresponding functions are provided:
[0071] The hardware and software layer 60 includes hardware and software components. Examples of hardware components include: a host 61, a server 62 based on a RISC (Reduced Instruction Set Computer) architecture, a server 63, a blade server 64, a storage device 65, and a network and network components 66. In some embodiments, software components include network application server software 67 and database software 68.
[0072] Virtualization layer 70 provides an abstraction layer from which examples of virtual entities may be provided: virtual servers 71 , virtual storage 72 , virtual networks 73 including virtual private networks, virtual applications and operating systems 74 , and virtual clients 75 .
[0073] In one example, the management layer 80 may provide the following functions. Resource provisioning 81 provides dynamic procurement of computing resources and other resources for performing tasks in a cloud computing environment. Metering and pricing 82 provides cost tracking when resources are utilized in a cloud computing environment and bills or invoices for the consumption of these resources. In one example, these resources may include application software licenses. Security provides authentication for cloud users and tasks and provides protection for data and other resources. User portal 83 provides access to the cloud computing environment for users and system administrators. Service level management 84 provides allocation and management of cloud computing resources to meet the required service levels. Service level agreement (SLA) planning and implementation 85 provides pre-arrangement and acquisition of cloud computing resources in anticipation of future needs according to the SLA.
[0074] The workload layer 90 provides examples of functions that can utilize the cloud computing environment. Examples of workloads and functions that can be provided from this layer include: mapping and navigation 91, software development and lifecycle management 92, virtual classroom teaching implementation 93, data analysis processing 94, transaction processing 95, and video encoding and decoding 96. Video encoding and decoding 96 can encode and decode video data based on the edge of monitoring video data.
[0075] Some embodiments may involve systems, methods and / or computer-readable media at any possible level of technical detail integration. In an embodiment of the present application, the computer-readable medium may include a non-volatile computer-readable storage medium (or medium) on which computer-readable program instructions for causing a processor to perform operations are stored. For example, when the program instructions are executed by a computer for encoding / decoding, the computer performs the method for performing video post-processing using SEI messages as described above.
[0076] A computer-readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer-readable storage media includes the following: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disc (DVD), a memory stick, a floppy disk, a mechanical encoding device (such as a punch card or a structure protruding in a groove on which instructions are recorded), and any suitable combination of the foregoing. The computer-readable storage medium used herein should not be interpreted as being a volatile signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0077] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a corresponding computing / processing device, or downloaded to an external computer or external storage device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network). The network may include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to store them in a computer-readable storage medium in the corresponding computing / processing device.
[0078] The computer readable program code / instruction for performing the operation can be an assembly instruction, an instruction set architecture (ISA, instruction-set-architecture) instruction, a machine instruction, a machine-dependent instruction, a microcode, a firmware instruction, a state setting data, a configuration data for an integrated circuit, or a source code or object code written in any combination of one or more programming languages, the programming language includes object-oriented programming languages such as Smalltalk, C++, and a procedural programming language (e.g., "C" programming language) or similar programming languages. The computer readable program instruction can be executed completely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or completely on a remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any type of network (including a local area network (LAN) or a wide area network (WAN)), or can be connected to an external computer (e.g., by using the Internet of an Internet service provider). In some embodiments, electronic circuits including, for example, programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs) may execute computer-readable program instructions by utilizing state information of the computer-readable program instructions to personalize the electronic circuits to perform aspects or operations.
[0079] These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine, so that the instructions are executed via the processor of the computer or other programmable data processing device to create a device for implementing the functions / actions specified by one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, which can instruct a computer, a programmable data processing device, and / or other equipment to operate in a specific manner, so that the computer-readable storage medium in which the instructions are stored contains an article of manufacture, which includes instructions for implementing various aspects of the functions / actions specified by one or more blocks in the flowchart and / or block diagram.
[0080] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operating steps to be performed on the computer, other programmable apparatus, or other device, thereby producing a computer-implemented process, so that the instructions executed on the computer, other programmable apparatus, or other device implement the functions / actions specified by one or more boxes of the flowchart and / or block diagram.
[0081] The flow chart and block diagram in the accompanying drawings illustrate the architecture, function and operation of the possible implementation of the system, method and computer-readable medium according to various embodiments. In this regard, each frame in the flow chart or block diagram can represent a module, a fragment or a part of an instruction, which includes one or more executable instructions for implementing a specified logical function. Compared to what is depicted in the figure, the method, computer system and computer-readable medium may include more blocks, fewer blocks, different blocks or blocks of different arrangements. In some optional embodiments, the function marked in the frame may not occur in the order marked in the accompanying drawings. For example, depending on the function involved, the two frames shown in succession can actually be performed simultaneously or substantially simultaneously, or the frame can sometimes be performed in reverse order. It should also be noted that each frame of the block diagram and / or flow chart and the combination of the frames of the block diagram and / or flow chart can be implemented by a system based on dedicated hardware that performs a specified function or action or performs a combination of dedicated hardware and computer instructions.
[0082] It is apparent that the systems and / or methods described herein may be implemented in various forms of hardware, firmware, or a combination of hardware and software. The actual dedicated control hardware or software code used to implement these systems and / or methods is not limited by these embodiments. Therefore, the operation and behavior of these systems and / or methods are described herein without reference to specific software code - it should be understood that software and hardware can be designed based on the description herein to implement these systems and / or methods.
[0083] Unless explicitly stated, the elements, actions or instructions used in this article shall not be interpreted as key or necessary. In addition, as used herein, the articles "a" and "an" are intended to include one or more items, and can be used interchangeably with "one or more". In addition, as used herein, the term "set" is intended to include one or more items (e.g., related items, unrelated items, combinations of related items and unrelated items, etc.), and can be used interchangeably with "one or more". In the case of only wishing one item, the term "one" or similar language is used. In addition, as used herein, the terms "has", "have", "having" etc. are intended to be open terms. Further, the phrase "based on" is intended to mean "based at least in part on", unless explicitly stated otherwise.
[0084] Descriptions of various aspects and embodiments have been given for illustrative purposes, but are not intended to be exhaustive or limited to the disclosed embodiments. Even if combinations of features are described in the claims and / or disclosed in the specification, these combinations are not intended to limit the disclosure of possible implementations. In fact, many of these features can be combined in ways that are not specifically described in the claims and / or not disclosed in the specification. Although each dependent claim listed below may be directly subordinate to only one claim, the disclosure of possible implementations includes the combination of each dependent claim with each other claim in the claim set. Without departing from the scope of the described embodiments, many modifications and variations will be apparent to those of ordinary skill in the art. The terms used herein are selected to best explain the principles of the embodiments of the present application, the practical application or technical improvement of the technology found on the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A video decoding method, characterized in that: include: receiving video data; detecting edges present in received samples of said video data; calculating a gradient value corresponding to a direction associated with the detected edge; deriving the one or more offset values based on the detected direction of the edge and the calculated gradient value; adding one or more offset values to said samples of said received video data; as well as The video data is decoded based on the calculated gradient value.
2. The method according to claim 1, wherein: The edges are detected based on one or more of a Sobel edge detector, a Canny edge detector, and a directional search based on comparing a received block of the video data with one or more predetermined edge directions.
3. The method according to claim 2, wherein: The direction search includes: For each block of the video data received, the direction that best matches the pattern in each block is determined by minimizing the sum of squared differences (SSD) between the quantized block and the closest perfectly oriented block, where all pixels along a line in one direction have the same value.
4. The method according to claim 1, wherein: The detection of the edges is performed at one of a pixel level and a block level based on a size associated with the samples of the received video data.
5. The method according to claim 1, wherein: The gradient value specifies an increase or decrease in sample values associated with the detected edge.
6. The method according to any one of claims 1 to 5, wherein: The gradient value is calculated in a direction orthogonal to the direction associated with the detected edge.
7. The method according to any one of claims 1 to 5, wherein: The gradient value is calculated by summing the differences of pairs of sample values along the detected edge.
8. The method according to claim 1, wherein: The adding one or more offset values to the received samples of the video data includes adding the one or more offset values to a color component different from a color component to which edge detection is applied.
9. The method according to claim 1, wherein: The adding one or more offset values to the received samples of the video data comprises adding the one or more offset values to the same color component as the color component to which edge detection is applied.
10. The method according to claim 1, wherein: The adding one or more offset values to the samples of the received video data comprises: adding the one or more offset values to all samples within a block of the received video data.
11. The method according to claim 1, wherein: The adding one or more offset values to the received samples of the video data includes adding the one or more offset values only to samples located on the detected edge.
12. The method according to claim 1, further comprising: pre-defining a lookup table containing the one or more offset values; The deriving the one or more offset values based on the detected direction of the edge and the calculated gradient value comprises: The direction of the edge and the gradient value are used as inputs of the lookup table, and the one or more offset values are output from the lookup table.
13. The method according to claim 1, wherein: The deriving the one or more offset values based on the detected direction of the edge and the calculated gradient value includes: deriving the one or more offset values based on the detected direction of the edge and the sign of the gradient value.
14. A video encoding method, characterized in that: include: receiving video data; detecting edges present in received samples of said video data; calculating a gradient value corresponding to a direction associated with the detected edge; Setting the one or more offset values based on the detected direction of the edge and the calculated gradient value; adding one or more offset values to said samples of said received video data; as well as The video data is encoded based on the calculated gradient value.
15. A computer system for video encoding or decoding, characterized in that: The computer system comprises: one or more computer readable non-volatile storage media configured to store computer program code; and One or more computer processors are configured to access the computer program code and operate according to instructions of the computer program code to perform the method according to any one of claims 1 to 14.
16. A video decoding device, characterized in that: include: A receiving module, receiving video data; A detection module, detecting edges present in the received samples of the video data; A calculation module calculates a gradient value corresponding to a direction associated with the detected edge; and deriving the one or more offset values based on the detected direction of the edge and the calculated gradient value; adding one or more offset values to said samples of said received video data; A decoding module is used to decode the video data based on the calculated gradient value.
17. A non-transitory computer-readable medium having a computer program for video encoding or decoding stored thereon, the computer program being configured to cause one or more computer processors to: execute the method according to any one of claims 1 to 14.
