Method and apparatus for video encoding and decoding
By adaptively selecting motion vector accuracy and optimizing motion estimation methods, the efficiency and complexity problems of affine motion models in video decoding are solved, and decoding performance and accuracy are improved.
Patent Information
- Application Number
- CN202410736220.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2018-12-31
- Filing Date
- 2019-08-28
- Publication Date
- 2024-08-23
AI Technical Summary
Existing video decoding technology has limitations in improving decoding efficiency. Especially when using affine motion models, there is a contradiction between efficiency and complexity in the accuracy selection of motion vectors and motion estimation methods, resulting in poor decoding performance. good.
An adaptive motion vector precision selection method is proposed. By independently selecting motion vectors of different precisions in the affine motion model, combined with the optical flow formula and the least squares method, the motion estimation process is optimized, signaling overhead is reduced and motion compensation is improved. Accuracy. Specifically, a multi-precision set is adopted to select the precision of control points, and rounded to a lower precision at the decoder side to reduce information loss.
It improves the decoding efficiency and accuracy of the affine motion model, reduces the coding complexity and signaling overhead, and achieves better video decoding performance.
Smart Images

Figure CN118540472A_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application with application number 201980055939.9 filed on August 28, 2019 and invention name “Adaptive motion vector accuracy for video decoding based on affine motion model”.
[0002] CROSS-REFERENCE TO RELATED APPLICATIONS
[0003] This application is a non-provisional application and claims the benefit of the following applications under 35 U.S.C. §119(e): U.S. Provisional Patent Application No. 62 / 724,500 (filed on August 29, 2018), U.S. Provisional Patent Application No. 62 / 773,069 (filed on November 29, 2018), and U.S. Provisional Patent Application No. 62 / 786,768 (filed on December 31, 2018), all of which are entitled "Adaptive Motion Vector Precision for Affine Motion Model Based Video Coding", and their entire contents are incorporated herein by reference. Background Art
[0004] Video coding systems are widely used to compress digital video signals to reduce the storage requirements and / or transmission bandwidth of such signals. Among various types of video coding systems (e.g., block-based, wavelet-based, and object-based systems), block-based hybrid video coding systems are the most widely used and deployed today. Examples of block-based video coding systems include international video coding standards such as MPEG1 / 2 / 4 Part 2, H.264 / MPEG-4 Part 10 AVC, VC-1, and the latest video coding standard called High Efficiency Video Coding (HEVC), which is developed by ITU-T / SG16 / Q.6 / VCEG and JCT-VC (Joint Collaboration on Video Coding) of ISO / IEC / MPEG.
[0005] The first version of the HEVC standard was completed in October 2013, which provides about 50% bit rate savings or equivalent perceptual quality compared to the previous generation video decoding standard H.264 / MPEG AVC. Although the HEVC standard provides significant decoding improvements over its predecessor, there is evidence that decoding efficiency superior to HEVC can be achieved with additional decoding tools. Based on this, both VCEG and MPEG began to explore new decoding technologies for future video decoding standardization. In October 2015, ITU-T VECG and ISO / IEC MPEG formed the Joint Video Exploration Team (JVET) to begin important research on advanced technologies that can enable decoding efficiency to be substantially enhanced relative to HEVC. In the same month, a software code base called the Joint Exploration Model (JEM) was established for future video decoding exploration work. The JEM reference software is based on the HEVC Test Model (HM), which was developed by JCT-VC for HEVC. Any additional proposed decoding tools can be integrated into the JEM software and tested using the JVET Common Test Conditions (CTC).
[0006] In October 2017, ITU-T and ISO / IEC proposed a joint proposal (CfP) for video compression with capabilities beyond HEVC. In April 2018, 22 CfP responses for standard dynamic range categories were received and evaluated at the 10th JVET meeting, demonstrating a compression efficiency gain of about 40% relative to HEVC. Based on such evaluation results, the Joint Video Experts Group (JVET) launched a new project to develop a next-generation video decoding standard called Universal Video Coding (VVC). In the same month, a reference software code library called the VVC Test Model (VTM) was established to demonstrate the reference implementation of the VVC standard. For the initial VTM-1.0, in addition to using a multi-type tree-based block partitioning structure in VTM, most decoding modules including intra-frame prediction, inter-frame prediction, transform / inverse transform and quantization / dequantization and in-loop filters follow the existing HEVC design. At the same time, in order to facilitate the evaluation of new decoding tools, another reference software library called the benchmark set (BMS) was also generated. In the BMS code base, the list of decoding tools inherited from JEM provides higher decoding efficiency and moderate implementation complexity. The list is included on top of VTM and is used as a benchmark when evaluating similar decoding techniques during the VVC standardization process. Specifically, 9 JEM decoding tools are integrated in BMS-1.0, including 65 angle intra prediction directions, modified coefficient decoding, advanced multiple transform (AMT) + 4×4 non-separable secondary transform (NSST), affine motion model, generalized adaptive loop filter (GALF), advanced temporal motion vector prediction (ATMVP), adaptive motion vector precision, decoder-side motion vector refinement (DMVR) and linear model (LM) chroma mode. Summary of the invention
[0007] Embodiments described herein include methods used in video encoding and decoding (collectively referred to as "decoding"). In some embodiments, a method for decoding a video from a bitstream is provided, wherein the method includes, for at least one current block in the video: reading information identifying at least a first motion vector predictor and a second motion vector predictor from the bitstream; reading information identifying one of a plurality of accuracies in a predetermined precision set from the bitstream; reading at least a first motion vector difference and a second motion vector difference from the bitstream, the first and second motion vector differences having the identified accuracies; at least (i) generating a first control point motion vector based on the first motion vector predictor and the first motion vector difference, and (ii) generating a second control point motion vector based on the second motion vector predictor and the second motion vector difference; and generating a prediction about the current block using an affine motion model, the affine motion model being characterized by at least the first control point motion vector and the second control point motion vector.
[0008] The plurality of precisions in the predetermined set of precisions may include 1 / 4 pixel (-pel), 1 / 16 pixel, and 1 pixel precisions. The predetermined set of precisions is different from a predetermined set of precisions used for non-affine inter-coding in the same video.
[0009] The affine motion model may be a four-parameter motion model or a six-parameter motion model. In the case where the affine motion model is a six-parameter motion model, the method may further include: reading information identifying a third motion vector prediction value from the bitstream; reading a third motion vector difference having the identified precision from the bitstream; and generating a third control point motion vector according to the third motion vector prediction value and the third motion vector difference; wherein the affine motion model is represented by the first control point motion vector, the second control point motion vector, and the third control point motion vector.
[0010] The information identifying one of the multiple precisions may be read from the bitstream on a block-by-block basis, thereby allowing different blocks within a picture to use different precisions.
[0011] In some embodiments, the motion vector prediction value is rounded to the identified precision.Each of the control point motion vectors may be generated by adding a corresponding motion vector difference to a corresponding motion vector prediction value.
[0012] In some embodiments, the prediction about the current block is generated by: using the affine motion model, determining a corresponding sub-block motion vector for each of a plurality of sub-blocks of the current block; and generating an inter-frame prediction about each of the sub-blocks using the corresponding sub-block motion vectors.
[0013] In some embodiments, the method further comprises: reading a residual of the current block from the bitstream; and reconstructing the current block by adding the residual to the prediction about the current block.
[0014] Systems and methods for adaptively selecting the precision of affine motion vectors and for performing motion estimation for an affine motion model are also described.
[0015] In further embodiments, encoder and decoder systems are provided to perform the methods described herein. The encoder or decoder system may include a processor and a non-transitory computer-readable medium storing instructions for performing the methods described herein. Further embodiments include a non-transitory computer-readable storage medium storing a video encoded using any of the methods disclosed herein. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1Ais a system diagram illustrating an exemplary communication system in which one or more disclosed embodiments may be implemented.
[0017] Figure 1B is a diagram showing that according to an embodiment, Figure 1A A system diagram of an exemplary wireless transmit / receive unit (WTRU) for use within a communication system is shown.
[0018] Figure 2A is a functional block diagram of a block-based video encoder (eg, an encoder for VVC).
[0019] Figure 2B is a functional block diagram of a block-based video decoder (eg, a decoder for VVC).
[0020] Figures 3A-3E shows the block partitioning in multiple types of tree structures: quad partitioning ( Figure 3A ); vertical binary partition ( Figure 3B ); horizontal binary partition ( Figure 3C ); vertical ternary partition ( Figure 3D ); horizontal ternary partitioning ( Figure 3E ).
[0021] Figures 4A to 4B A four-parameter affine motion model is shown. Figure 4A An affine model is shown. Figure 4B Sub-block level motion derivation for affine blocks is shown.
[0022] Figure 5 Affine merge candidates are shown. The candidate availability check order is N0, N1, N2, N3, N4.
[0023] Figure 6 The derivation of motion vectors at control points for an affine motion model is shown.
[0024] Figure 7 The construction of affine motion vector predictors from motion vectors in blocks {A, B, C}, {D, E}, and {F, G} is shown.
[0025] Figure 8 An example of motion vector (MV) temporal scaling for affine MV predictor generation is shown.
[0026] Fig. 9 Shown for block B C The context-derived neighboring blocks.
[0027] Fig.10 A mode decision method for CU coding without splitting is shown.
[0028] Fig.11Motion models and precision selection methods for precisions other than the default precision (1 / 4-pel for translational motion model, (1 / 4-pel, 1 / 4-pel) for affine motion model are shown.
[0029] Fig.12 An affine motion estimation method with (p0-pel, p1-pel) accuracy is shown.
[0030] Fig.13 It is shown that MV0 is refined using the nearest 8 positions. Step 1: Select the best position among {P1, P2, P3, P4}; Step 2: If MV0 is updated in step 1, select the best one from the two neighbors.
[0031] Fig.14 A six-parameter affine model is shown: V0, V1, and V2 are control points; (MV x , MV y ) is the motion vector of the sub-block centered at position (x, y).
[0032] Fig.15 is a diagram showing an example of a decoded bit stream structure.
[0033] Fig.16 is a diagram illustrating an example communication system.
[0034] Fig.17 Motion vector derivation for sub-blocks of an 8x4 coding unit is shown.
[0035] Fig.18 A method performed by a decoder in some embodiments is shown.
[0036] Example network for implementation of embodiments
[0037] Figure 1A 1 is a schematic diagram of an exemplary communication system 100 in which one or more disclosed embodiments may be implemented. The communication system 100 may be a multiple access system that provides content such as voice, data, video, messaging, broadcast, etc. to multiple wireless users. The communication system 100 may enable multiple wireless users to access such content by sharing system resources including wireless bandwidth. For example, the communication system 100 may use one or more channel access methods such as code division multiple access (CDMA), time division multiple access (TDMA), frequency division multiple access (FDMA), orthogonal FDMA (OFDMA), single carrier FDMA (SC-FDMA), zero tail unique word DFT-spread OFDM (ZT UW DTS-s OFDM), unique word OFDM (UW-OFDM), resource block filtered OFDM, and filter bank multi-carrier (FBMC), etc.
[0038] like Figure 1A As shown, the communication system 100 may include wireless transmit / receive units (WTRUs) 102a, 102b, 102c, 102d, a RAN 104, a CN 106, a public switched telephone network (PSTN) 108, the Internet 110, and other networks 112, although it should be appreciated that the disclosed embodiments contemplate any number of WTRUs, base stations, networks, and / or network components. Each of the WTRUs 102a, 102b, 102c, 102d may be any type of device configured to operate and / or communicate in a wireless environment. By way of example, any of the WTRUs 102a, 102b, 102c, 102d may be referred to as a “station” and / or “STA”, which may be configured to transmit and / or receive wireless signals, and may include a user equipment (UE), a mobile station, a fixed or mobile subscriber unit, a subscription-based unit, a pager, a cellular phone, a personal digital assistant (PDA), a smart phone, a laptop, a netbook, a personal computer, a wireless sensor, a hotspot or Mi-Fi device, an Internet of Things (IoT) device, a watch or other wearable device, a head-mounted display (HMD), a vehicle, a drone, medical devices and applications (e.g., remote surgery), industrial devices and applications (e.g., robots and / or other wireless devices working in an industrial and / or automated process chain environment), consumer electronic devices, and devices working on a commercial and / or industrial wireless network, etc. Any of the WTRUs 102a, 102b, 102c, 102d may be interchangeably referred to as a UE.
[0039] The communication system 100 may also include a base station 114a and / or a base station 114b. Each of the base stations 114a, 114b may be any type of device configured to facilitate access to one or more communication networks (e.g., the CN 106, the Internet 110, and / or other networks 112) by wirelessly interfacing with at least one of the WTRUs 102a, 102b, 102c, 102d. For example, the base stations 114a, 114b may be a base transceiver station (BTS), a Node B, an eNode B, a Home Node B, a Home eNode B, a gNB, a New Radio (NR) Node B, a site controller, an access point (AP), a wireless router, and the like. Although each of the base stations 114a, 114b is depicted as a single component, it should be appreciated that the base stations 114a, 114b may include any number of interconnected base stations and / or network components.
[0040] The base station 114a may be part of the RAN 104, and the RAN may also include other base stations and / or network components (not shown), such as a base station controller (BSC), a radio network controller (RNC), a relay node, and the like. The base station 114a and / or the base station 114b may be configured to transmit and / or receive wireless signals on one or more carrier frequencies called cells (not shown). These frequencies may be in a licensed spectrum, an unlicensed spectrum, or a combination of licensed and unlicensed spectrum. A cell may provide wireless service coverage for a specific geographic area that is relatively fixed or may change over time. A cell may be further divided into cell sectors. For example, a cell associated with the base station 114a may be divided into three sectors. Thus, in one embodiment, the base station 114a may include three transceivers, i.e., each transceiver corresponds to a sector of the cell. In an embodiment, the base station 114a may use multiple input multiple output (MIMO) technology, and may use multiple transceivers for each sector of the cell. For example, by using beamforming, signals may be transmitted and / or received in a desired spatial direction.
[0041] The base stations 114a, 114b may communicate with one or more of the WTRUs 102a, 102b, 102c, 102d over an air interface 116, which may be any suitable wireless communication link (e.g., radio frequency (RF), microwave, centimeter wave, millimeter wave, infrared (IR), ultraviolet (UV), visible light, etc.). The air interface 116 may be established using any suitable radio access technology (RAT).
[0042] More specifically, as described above, the communication system 100 may be a multiple access system and may use one or more channel access schemes, such as CDMA, TDMA, FDMA, OFDMA, SC-FDMA, and the like. For example, the base station 114a in the RAN 104 and the WTRUs 102a, 102b, 102c may implement a radio technology such as Universal Mobile Telecommunications System (UMTS) Terrestrial Radio Access (UTRA), which may use Wideband CDMA (WCDMA) to establish the air interface 116. WCDMA may include communication protocols such as High Speed Packet Access (HSPA) and / or Evolved HSPA (HSPA+). HSPA may include High Speed Downlink (DL) Packet Access (HSDPA) and / or High Speed UL Packet Access (HSUPA).
[0043] In an embodiment, the base station 114a and the WTRUs 102a, 102b, 102c may implement a radio technology such as Evolved UMTS Terrestrial Radio Access (E-UTRA), which may establish the air interface 116 using Long Term Evolution (LTE) and / or Advanced LTE (LTE-A) and / or Advanced LTE Pro (LTE-A Pro).
[0044] In an embodiment, the base station 114a and the WTRUs 102a, 102b, 102c may implement a radio technology that may use new radio (NR) to establish the air interface 116, such as NR radio access.
[0045] In an embodiment, the base station 114a and the WTRUs 102a, 102b, 102c may implement multiple radio access technologies. For example, the base station 114a and the WTRUs 102a, 102b, 102c may jointly implement LTE radio access and NR radio access (e.g., using dual connectivity (DC) principles). Thus, the air interface used by the WTRUs 102a, 102b, 102c may be characterized by multiple types of radio access technologies and / or transmissions sent to / from multiple types of base stations (e.g., eNBs and gNBs).
[0046] In other embodiments, the base station 114a and the WTRUs 102a, 102b, 102c may implement radio technologies such as IEEE 802.11 (i.e., Wireless Fidelity (WiFi)), IEEE 802.16 (i.e., Worldwide Interoperability for Microwave Access (WiMAX)), CDMA2000, CDMA2000 1X, CDMA2000EV-DO, Interim Standard 2000 (IS-2000), Interim Standard 95 (IS-95), Interim Standard 856 (IS-856), Global System for Mobile Communications (GSM), Enhanced Data Rates for GSM Evolution (EDGE), and GSM EDGE (GERAN), among others.
[0047] Figure 1AThe base station 114b in the example may be, for example, a wireless router, a Home NodeB, a Home eNodeB, or an access point, and may use any appropriate RAT to facilitate wireless connectivity in a local area, such as a business location, a residence, a vehicle, a campus, an industrial facility, an air corridor (e.g., for use by drones), a road, and the like. In one embodiment, the base station 114b and the WTRUs 102c, 102d may establish a wireless local area network (WLAN) by implementing a radio technology such as IEEE 802.11. In an embodiment, the base station 114b and the WTRUs 102c, 102d may establish a wireless personal area network (WPAN) by implementing a radio technology such as IEEE 802.15. In another embodiment, the base station 114b and the WTRUs 102c, 102d may establish a picocell or a femtocell by using a cellular-based RAT (e.g., WCDMA, CDMA2000, GSM, LTE, LTE-A, LTE-A Pro, NR, and the like). As Figure 1A As shown, the base station 114b may be directly connected to the Internet 110. Thus, the base station 114b does not need to access the Internet 110 via the CN 106.
[0048] The RAN 104 may be in communication with the CN 106, which may be any type of network configured to provide voice, data, applications, and / or Voice over Internet Protocol (VoIP) services to one or more of the WTRUs 102a, 102b, 102c, 102d. The data may have different quality of service (QoS) requirements, such as different throughput requirements, latency requirements, fault tolerance requirements, reliability requirements, data throughput requirements, mobility requirements, etc. The CN 106 may provide call control, billing services, mobile location-based services, pre-paid calling, Internet connectivity, video distribution, etc., and / or may perform advanced security functions such as user authentication. Although in Figure 1A Although not shown, it will be appreciated that the RAN 104 and / or the CN 106 may be in direct or indirect communication with other RANs that employ the same RAT or a different RAT as the RAN 104. For example, in addition to being connected to the RAN 104 employing NR radio technology, the CN 106 may also be in communication with another RAN (not shown) employing GSM, UMTS, CDMA 2000, WiMAX, E-UTRA, or WiFi radio technology.
[0049] The CN 106 may also act as a gateway for the WTRUs 102a, 102b, 102c, 102d to access the PSTN 108, the Internet 110, and / or other networks 112. The PSTN 108 may include a circuit-switched telephone network that provides plain old telephone service (POTS). The Internet 110 may include a global system of interconnected computer network devices that use common communication protocols, such as TCP, User Datagram Protocol (UDP), and / or IP in the Transmission Control Protocol / Internet Protocol (TCP / IP) Internet protocol suite. The networks 112 may include wired or wireless communication networks owned and / or operated by other service providers. For example, the networks 112 may include another CN connected to one or more RANs, where the one or more RANs may use the same RAT or a different RAT as the RAN 104.
[0050] Some or all of the WTRUs 102a, 102b, 102c, 102d in the communication system 100 may include multi-mode capabilities (e.g., the WTRUs 102a, 102b, 102c, 102d may include multiple transceivers for communicating with different wireless networks over different wireless links). Figure 1A The illustrated WTRU 102c may be configured to communicate with the base station 114a, which may employ a cellular-based radio technology, and with the base station 114b, which may employ an IEEE 802 radio technology.
[0051] Figure 1B is a system diagram illustrating an exemplary WTRU 102. Figure 1B As shown, the WTRU 102 may include a processor 118, a transceiver 120, a transmit / receive element 122, a speaker / microphone 124, a numeric keypad 126, a display / touchpad 128, a non-removable memory 130, a removable memory 132, a power source 134, a global positioning system (GPS) chipset 136, and / or peripherals 138. It should be appreciated that the WTRU 102 may also include any sub-combination of the foregoing components while remaining consistent with an embodiment.
[0052] The processor 118 may be a general purpose processor, a special purpose processor, a conventional processor, a digital signal processor (DSP), a plurality of microprocessors, one or more microprocessors associated with a DSP core, a controller, a microcontroller, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) circuit, any other type of integrated circuit (IC), a state machine, and the like. The processor 118 may perform signal decoding, data processing, power control, input / output processing, and / or any other functionality that enables the WTRU 102 to operate in a wireless environment. The processor 118 may be coupled to the transceiver 120, which may be coupled to the transmit / receive element 122. Although Figure 1B The processor 118 and the transceiver 120 are depicted as separate components, however it should be appreciated that the processor 118 and the transceiver 120 may also be integrated together in one electronic component or chip.
[0053] The transmit / receive component 122 may be configured to transmit or receive signals to or from a base station (e.g., base station 114a) via the air interface 116. For example, in one embodiment, the transmit / receive component 122 may be an antenna configured to transmit and / or receive RF signals. As an example, in an embodiment, the transmit / receive component 122 may be an emitter / detector configured to transmit and / or receive IR, UV, or visible light signals. In another embodiment, the transmit / receive component 122 may be configured to transmit and / or receive RF and light signals. It should be appreciated that the transmit / receive component 122 may be configured to transmit and / or receive any combination of wireless signals.
[0054] Although in Figure 1B 102 as a single component, but the WTRU 102 may include any number of transmit / receive components 122. More specifically, the WTRU 102 may employ MIMO technology. Thus, in one embodiment, the WTRU 102 may include two or more transmit / receive components 122 (e.g., multiple antennas) for transmitting and receiving wireless signals over the air interface 116.
[0055] The transceiver 120 may be configured to modulate signals to be transmitted by the transmit / receive component 122 and to demodulate signals received by the transmit / receive component 122. As described above, the WTRU 102 may have multi-mode capabilities. Thus, the transceiver 120 may include multiple transceivers that allow the WTRU 102 to communicate via multiple RATs, such as NR and IEEE 802.11.
[0056] The processor 118 of the WTRU 102 may be coupled to the speaker / microphone 124, the keypad 126, and / or the display / touchpad 128 (e.g., a liquid crystal display (LCD) display unit or an organic light emitting diode (OLED) display unit), and may receive user input data from these components. The processor 118 may also output user data to the speaker / microphone 124, the keypad 126, and / or the display / touchpad 128. In addition, the processor 118 may access information from and store information in any suitable memory such as the non-removable memory 130 and / or the removable memory 132. The non-removable memory 130 may include a random access memory (RAM), a read-only memory (ROM), a hard disk, or any other type of memory storage device. The removable memory 132 may include a subscriber identity module (SIM) card, a memory stick, a secure digital (SD) memory card, and the like. In other embodiments, the processor 118 may access information from and store data in memories that are not physically located in the WTRU 102, such as, for example, a server or a home computer (not shown).
[0057] The processor 118 may receive power from the power source 134, and may be configured to distribute and / or control power for use by other components in the WTRU 102. The power source 134 may be any suitable device for powering the WTRU 102. For example, the power source 134 may include one or more dry cell batteries (e.g., nickel-cadmium (Ni-Cd), nickel-zinc (Ni-Zn), nickel-metal hydride (NiMH), lithium-ion (Li-ion), etc.), solar cells, fuel cells, and the like.
[0058] The processor 118 may also be coupled to the GPS chipset 136, which may be configured to provide location information (e.g., longitude and latitude) related to the current location of the WTRU 102. In addition to or in lieu of the information from the GPS chipset 136, the WTRU 102 may receive location information from a base station (e.g., base stations 114a, 114b) via the air interface 116 and / or determine its location based on the timing of signals received from two or more nearby base stations. It will be appreciated that the WTRU 102 may acquire location information using any suitable positioning method while remaining consistent with an embodiment.
[0059] The processor 118 may also be coupled to other peripheral devices 138, wherein the peripheral devices may include one or more software and / or hardware modules that provide additional features, functions, and / or wired or wireless connectivity. For example, the peripheral devices 138 may include an accelerometer, an electronic compass, a satellite transceiver, a digital camera (for photos and / or video), a universal serial bus (USB) port, a vibration device, a television transceiver, a hands-free headset, a Bluetooth Modules, frequency modulation (FM) radio units, digital music players, media players, video game console modules, Internet browsers, virtual reality and / or augmented reality (VR / AR) devices, and activity trackers, etc. The peripheral device 138 may include one or more sensors, which may be one or more of the following: gyroscopes, accelerometers, Hall effect sensors, magnetometers, orientation sensors, proximity sensors, temperature sensors, time sensors, geographic location sensors, altimeters, light sensors, touch sensors, magnetometers, barometers, gesture sensors, biometric sensors, and / or humidity sensors, etc.
[0060] The WTRU 102 may include a full-duplex radio in which reception or transmission of some or all signals (e.g., associated with specific subframes for UL (e.g., for transmission) and downlink (e.g., for reception)) may be concurrent and / or simultaneous for the radio. A full-duplex radio may include an interference management unit that reduces and / or substantially eliminates self-interference by means of hardware (e.g., chokes) or by signal processing by a processor (e.g., a separate processor (not shown) or by the processor 118). In an embodiment, the WTRU 102 may include a half-duplex radio that transmits and receives some or all signals (e.g., associated with specific subframes for UL (e.g., for transmission) or downlink (e.g., for reception)).
[0061] Although in Figure 1A-1B Although the WTRU is described as a wireless terminal, it should be appreciated that in certain representative embodiments, such a terminal may use a (eg, temporary or permanent) wired communication interface with a communication network.
[0062] In a representative embodiment, the other network 112 may be a WLAN.
[0063] In view of Figure 1A-1B As well as the corresponding description, one or more or all of the functions described herein may be performed by one or more simulation devices (not shown). These simulation devices may be one or more devices configured to simulate one or more or all of the functions described herein. For example, these simulation devices may be used to test other devices and / or simulate network and / or WTRU functions.
[0064] The simulation device can be designed to implement one or more tests about other devices in a laboratory environment and / or an operator network environment. For example, the one or more simulation devices can perform one or more or all functions while being implemented and / or deployed as a part of a wired and / or wireless communication network in whole or in part to test other devices inside the communication network. The one or more simulation devices can perform one or more or all functions while being temporarily implemented or deployed as a part of a wired and / or wireless communication network. The simulation device can be directly coupled to other equipment to perform the test, and / or can use over-the-air wireless communication to perform the test.
[0065] The one or more simulation devices can perform one or more functions, including all functions, while not being implemented or deployed as part of a wired and / or wireless communication network. For example, the simulation device can be used in a test lab and / or a test scenario of a wired and / or wireless communication network that is not deployed (e.g., tested) to implement tests on one or more components. The one or more simulation devices can be test devices. The simulation device can transmit and / or receive data using direct RF coupling and / or wireless communication with the aid of RF circuits (e.g., which can include one or more antennas). DETAILED DESCRIPTION
[0066] Block-based video decoding
[0067] Similar to HEVC, VVC is built on a block-based hybrid video coding framework. Figure 2A A block diagram of an example of a block-based hybrid video coding system is given. The input video signal 103 is processed block by block, called a coding unit (CU). In VTM-1.0, a CU can be up to 128×128 pixels. However, unlike HEVC, which divides blocks based only on a quadtree, in VTM-1.0, a coding tree unit (CTU) is divided into multiple CUs to adapt to the changing local characteristics based on quadtree / binary tree / ternary tree. In addition, the concept of multiple partition unit types in HEVC is removed, that is, there is no separation of CU, prediction unit PU, and transform unit TU in VVC-1.0; instead, each CU is always used as a basic unit for both prediction and transformation without further division. In the multi-type tree structure, a CTU is first divided by a quadtree structure. Then, each quadtree leaf node can be further divided by a binary tree and a ternary tree structure. As Figures 3A-3E As shown in , there are five types of splits, quaternary, horizontal binary, vertical binary, horizontal ternary, and vertical ternary. Figure 2AIn the video encoding process, spatial prediction (160) and / or temporal prediction (162) may be performed. Spatial prediction (or "intra-frame prediction") uses pixels from samples of coded neighboring blocks in the same video picture / slice (which are called reference samples) to predict the current video block. Spatial prediction reduces the spatial redundancy inherent in video signals. Temporal prediction (also known as "inter-frame prediction" or "motion compensated prediction") uses reconstructed pixels from coded video pictures to predict the current video block. Temporal prediction reduces the temporal redundancy inherent in video signals. The temporal prediction signal for a given CU is typically signaled by one or more motion vectors (MVs) indicating the amount and direction of motion between the current CU and its temporal reference. In addition, if multiple reference pictures are supported, a reference picture index is additionally sent, which is used to identify which reference picture in the reference picture store (164) the temporal prediction signal comes from. After spatial and / or temporal prediction, a mode decision block (180) in the encoder selects the best prediction mode, for example based on a rate-distortion optimization method. The prediction block is then subtracted from the current video block (117); and the prediction residual is decorrelated and quantized (107) using a transform (105). The quantized residual coefficients are inverse quantized (111) and inverse transformed (113) to form a reconstructed residual, which is then added back to the prediction block (127) to form a reconstructed signal for the CU. Further in-loop filtering, such as a deblocking filter, may be applied (166) to the reconstructed CU before it is placed in a reference picture store (164) and used to decode future video blocks. To form the output video bitstream 121, the coding mode (inter or intra), prediction mode information, motion information, and quantized residual coefficients are all sent to an entropy decoding unit (109) to be further compressed and packed to form the bitstream.
[0068] Figure 2B A block diagram of an example of a block-based video decoder is given. The video bitstream 202 is first unpacked and entropy decoded at the entropy decoding unit 208. The decoding mode and prediction information are sent to the spatial prediction unit 260 (if intra-frame coding) or the temporal prediction unit 262 (if inter-frame decoding) to form the prediction block. The residual transform coefficients are sent to the inverse quantization unit 210 and the inverse transform unit 212 to reconstruct the residual block. The prediction block and the residual block are then added together at 226. The reconstructed block can be further in-loop filtered before being stored in the reference picture repository 264. The reconstructed video in the reference picture repository is then sent out to drive the display device and used to predict future video blocks.
[0069] As mentioned above, BMS-1.0 complies with Figure 2A and 2BThe same encoding / decoding workflow as shown in VTM-1.0. However, several decoding modules are further extended and enhanced, especially those associated with temporal prediction. Below, affine motion compensation is briefly described as an inter-coding tool included in BMS-1.0 or the previous JEM.
[0070] Affine mode
[0071] In HEVC, only the translational motion model is applied to motion compensated prediction. On the other hand, in the real world, there are many kinds of motions, such as zoom-in / out, rotation, perspective motion, and other irregular motions. In BMS, simplified affine transform motion compensated prediction is applied. A flag for each inter-coded CU is signaled to indicate whether the translational motion or the affine motion model is applied to inter prediction.
[0072] The simplified affine motion model is a four-parameter model: two parameters for translation motion in the horizontal and vertical directions, one parameter for scaling motion, and one parameter for rotation motion. The horizontal scaling parameter is equal to the vertical scaling parameter. The horizontal rotation parameter is equal to the vertical rotation parameter. The four-parameter affine motion model is decoded in the BMS using two motion vectors at two control point locations defined by the upper left and upper right corners of the current CU as a pair. Figure 4A As shown in , the affine motion field of a block is described by two control point motion vectors (V0, V1). Based on the control point motion, the motion field (v x , v y ) is described as:
[0073]
[0074] Where (v 0x , v 0y ) is the motion vector of the upper left control point, (v 1x , v 1y ) is the motion vector of the upper right control point, such as Figure 4A In addition, when decoding a block in affine mode, its motion field is derived based on the granularity of the sub-block. Specifically, in order to derive the motion vector of each sub-block, the motion vector of the center sample of each sub-block (such as Figure 4B (shown) is calculated according to (1) and rounded to 1 / 16 pixel precision. Then, the derived motion vector is used in the motion compensation stage to generate the prediction signal for each sub-block inside the current block. In addition, the sub-block size applied to affine motion compensation is calculated as:
[0075]
[0076] Where (v 2x , v2y ) is the motion vector of the lower left control point, w and h are the CU width and CU height, as calculated according to (1); M and N are the width and height of the derived sub-block size.
[0077] The four affine model parameters can be estimated iteratively. The MV pair of step k is represented as Original luminance signal I(i, j), predicted luminance signal I′ k (i, j). Spatial gradient g x (i, j) and g y (i, j) is the prediction signal I′ applied to the horizontal and vertical directions respectively. k The inverse of formula (1) is:
[0078]
[0079] where (a, b) are the incremental translation parameters and (c, d) are the incremental scaling and rotation parameters for step k.
[0080]
[0081] Based on the optical flow formula, the relationship between brightness change, spatial gradient and temporal movement is formulated as:
[0082]
[0083] Substituting formula (1) and We get the formula for the parameters (a, b, c, d).
[0084]
[0085] Since all samples in the CU satisfy formula (7), the parameter set (a, b, c, d) can be solved using the least squares method. Formulas (4) and (5) can be used to solve the two control points in step (k+1) And they are rounded to a specified precision (ie, 1 / 4 pel). By using the iterations, the MV at the two control points can be refined until it converges when the parameters (a, b, c, d) are all zero or the number of iterations meets a predetermined limit.
[0086] like Fig.14As shown in , there are three control points for the 6-parameter affine decoding CU: upper left, upper right and lower left. The motion of the upper left control point is a translation motion, the motion of the upper right control point is related to the rotation and scaling motion in the horizontal direction, and the motion of the lower left control point is related to the rotation and scaling motion in the vertical direction. For the 4-parameter affine motion model, the rotation and scaling motion in the horizontal and vertical directions are the same. The motion vector (MV x , MV y ) is derived using three MVs at the control points as follows:
[0087]
[0088] Where (x, y) is the center position of the sub-block, and w and h are the width and height of the CU.
[0089] Affine merge mode
[0090] If the CU is decoded in affine mode, two sets of motion vectors for each reference list of the two control points are signaled using predictive decoding. The difference between the MV and its prediction value is losslessly decoded, and the signaling overhead is not negligible, especially at low bit rates. In order to reduce the signaling overhead, the affine merge mode is also applied to the BMS by considering the local continuity of the motion field. The motion vectors at the two control points of the current CU are derived using the affine motion of its affine merge candidate selected from its neighboring blocks. If the current CU is decoded in affine merge mode, then Figure 5 As shown in , there are five neighboring blocks, which are checked in the order from N0 to N4. And the first affine-coded neighboring blocks will be used as affine merge candidates. For example, Figure 6 As shown in , the current CU is decoded into the affine merge mode, and its lower left neighbor block (N0) is selected as the affine merge candidate. The width and height of the CU containing block N0 are denoted as nw and nh. The width and height of the current CU are denoted as cw and ch. i The MV of the position is expressed as (v ix , v iy ). At the control point P0, the MV(v 0x , v 0y ) is derived as follows:
[0091]
[0092]
[0093] At the control point P1, the MV(v 1x , v 1y ) is derived as follows:
[0094]
[0095] At the control point P2, the MV(v 2x , v 2y ) is derived as follows:
[0096]
[0097] After deriving the MVs at the two control points (P0 and P1), the MV of each subblock within the current CU is derived as described above, and the derived subblock MV can be used for subblock-based motion compensation and temporal motion vector prediction for future picture decoding.
[0098] Affine MV prediction
[0099] For those non-merged affine-coded CUs, signaling about MVs at control points is expensive, and predictive decoding is used to reduce signaling overhead. In BMS, affine MV prediction values are generated from the motion of its neighboring coded blocks. For MV prediction of affine-coded CUs, there are two kinds of prediction values: (a) affine motion generated from neighboring blocks of control points; (b) translation motion for traditional MV prediction, and it is only used when the number of affine prediction values obtained by (a) is insufficient (less than 2 in BMS).
[0100] Use three MV sets to generate multiple affine motion prediction values. Figure 7 As shown, the three MV sets are: (1) The MVs of the neighboring blocks {A, B, C} from the corner P0 are composed of the set S1, which is represented as {MV A , MV B , MV C}; (2) The MV of the neighboring block {D, E} from the corner P1 is composed of the set S2, which is represented as {MV D , MV E}; (3) The MV of the neighboring block {F, G} from the corner P2 consists of the set S3, which is represented as {MV F , MV G}. The MV from the neighboring block is derived in the following way. First, check the spatial neighboring block; if the neighboring block is an inter-frame decoding block, use the MV directly, and the reference picture of the neighboring block is the same as the reference picture of the current decoding unit; or, if the reference picture of the neighboring block is different from the reference picture of the current decoding unit, scale the MV according to the temporal distance. Figure 8 As shown, the temporal distance between the current picture and the reference picture of the current CU is represented as TB, and the temporal distance between the current picture and the reference picture of the neighboring block is represented as TD. The MV1 of the neighboring block is scaled as:
[0101]
[0102] MV2 is used for motion vector set.
[0103] If the neighboring block is not an inter-coded block, the collocated block in the collocated reference picture is checked. If the temporally co-located block is an inter-coded block, the MV is scaled based on the temporal distance using formula (18). If the temporally co-located block is not an inter-coded block, the MV in the neighboring block is set to zero.
[0104] After obtaining three MV sets, the affine MV prediction value is generated by selecting an MV from each of the three MV sets. The sizes of S1, S2, and S3 are 3, 2, and 2, respectively. In summary, we can get 12 (3×2×2) combinations. In BMS, if the scaling or rotation related parameters represented by the three MVs are greater than a predetermined threshold, the candidate will be discarded. For the three corners of the CU: top left, top right, and bottom left, a combination is represented as (MV0, MV1, MV2). Check the following conditions.
[0105]
[0106] Where T is (1 / 2). If this condition is met, it means that the scaling or rotation is too large, and the candidate is discarded.
[0107] All remaining candidates are sorted in the BMS. The triplet of three MVs represents a 6-parameter motion model including translation, scaling and rotation in the horizontal and vertical directions. The sorting criterion is the difference between this 6-parameter motion model and the 4-parameter motion model represented by (MV0, MV1). Candidates with smaller differences will have smaller indices in the sorted candidate list. Equation (18) is used to estimate the value of (MV o , MV1, MV2) and the difference between the affine motion model represented by (MV0, MV1).
[0108] D=|(v 1x -v 0x )*h-(v 2y -v 0y )*w|+|(v 1y -v 0y )*h+(v 2x -v 0x )*w| (18)
[0109] Affine MV Coding
[0110] If the CU is coded as an affine mode, it can be an affine merge mode or an affine non-merge mode. For the affine merge mode, as described above, the affine MVs at those control points are derived from the affine MVs of their neighboring affine-coded CUs. Therefore, there is no need to signal the MV information of the affine merge mode. For the affine non-merge mode, the MVs at the control points are coded using differential coding. As described above, the MV prediction values are generated using neighboring MVs, and the difference between the current MV and its prediction value is coded. The MV difference to be signaled is called MVD. The affine four-parameter model has two control points, so two MVDs are used for signaling of uni-prediction, and four MVDs are used for signaling of bi-prediction. The affine six-parameter model has three control points, so three MVDs are used to signal uni-prediction, and six MVDs are used to signal bi-prediction. The MVD is difficult to compress because it is a two-dimensional vector (horizontal and vertical components) and is losslessly coded. In the current VVC design (VTM-1.0 / BMS-1.0), the precision of the MVD used for signaling is quarter-pixel precision.
[0111] Adaptive MVI) accuracy
[0112] For CUs decoded as non-merged and non-affine inter-frame modes, the MVD between the MV of the current CU and its prediction value can be decoded at different resolutions. It can be 1 / 4 pixel, 1 pixel or 4 pixel precision. 1 / 4 pixel is fractional precision. Both 1 pixel and 4 pixels belong to integer precision. Each CU uses two flags to signal the precision to indicate the MVD precision. The first flag is used to indicate whether the precision is 1 / 4 pixel. If the precision is not 1 / 4 pixel, the second flag is signaled to indicate that it is 1 pixel or 4 pixel precision. In motion estimation, the incremental MV is usually searched around the initial MV regarded as the starting position. The starting position can be selected from its spatial and temporal prediction values. For ease of implementation, the starting MV is rounded to the precision of the MVD signaling, and then only those MVD candidates with the desired precision are searched. The MV prediction value is also rounded to the MVD precision. In the VTM / BMS reference software, the encoder will check the rate-distortion (RD) cost of different MVD precisions and select the best MVD precision with the minimum RD cost. The RD cost is calculated by a weighted sum of the sample value distortion and the decoding rate and is a measure of the decoding performance. A decoding mode with a lower RD cost will give better overall decoding performance. To reduce signaling overhead, the MVD precision-related flag is signaled only when the signaled MVD is non-zero. If the signaled MVD is zero, 1 / 4 pixel precision is inferred.
[0113] MVI) decoding
[0114] In VVC, the MVD entropy decoding method is the same for both affine and non-affine decoding modes. It decodes two components independently. The sign of the MVD of each component is decoded with 1 bit. The absolute value is decoded into two parts: (1) Values 0 and 1 are decoded with a flag. The first flag is used to indicate whether the absolute value is greater than 0; if the value is greater than 0, the second flag indicates whether the absolute value is greater than 1. (2) If the absolute value v is greater than 1, the remainder (v-2) is binarized with a first-order exponential-Golomb (EG) code, and these binarized bins are decoded in a fixed-length decoding manner. For example, the binarization of the remainder (v-2) using a first-order EG code is listed in Table 1.
[0115] Table 1. Binarization of the absolute value of a component's MVI using a first-order EG code
[0116] Absolute value (v-2) Binarization for decoding 0 00 1 01 2 1000 3 1001 4 1010 5 1011 6 110000 … …
[0117] For the same value to be decoded, the codeword lengths of EG codes with different orders can be different. With smaller orders, the codeword lengths for small values are generally shorter, and for large values, the codeword lengths are longer. For affine decoding mode, the MVDs of those control points may have different statistics. EG codes with the same order may not be optimal for MVD decoding of all control points.
[0118] Problems Solved in Some Embodiments
[0119] As described above, MVD signaling brings extraordinary signaling overhead to explicitly affine coded CUs compared to inter CUs coded with translational motion models, because they have more MVDs to signal: two sets of MVDs for 4-parameter affine models and 3 MVDs for 6-parameter affine models. Adaptive MVD precision for signaling helps to obtain a better trade-off between efficiency of motion compensation and signaling overhead. However, the use of motion vectors at control points in the affine model is different from that of the conventional translational motion model: the MVs at the control points are not used directly for motion compensation; they are used to derive the MVs of the sub-blocks, and the MVs of the sub-blocks are used for motion compensation of the sub-blocks.
[0120] The motion estimation (ME) process of the above-mentioned affine motion model is different from the motion search method of the traditional translation motion model in VTM / BMS. The ME process for finding the best MV at two control points is based on optical flow field estimation. For each iteration, the incremental MV derived from the optical flow estimation is different, and it is difficult to control the step size in each iteration. In contrast, the ME of the translation motion model to find the best MV for the decoding block is usually a method of searching one position at a time within a certain range. Within the search range around the starting MV, it can evaluate and compare the ME cost of each possible position such as in the full search scheme, and then select the best position with the minimum ME cost. The ME cost is usually evaluated as a weighted sum of the prediction error and the bits used for MV-related signaling including the reference picture index and MVD. The prediction error can be measured by the sum of absolute differences (SAD) between the original signal and the predicted signal of the decoding block.
[0121] In this deterministic ME process of the translational motion model, there are many fast search methods to adaptively adjust the search step size during iterations. For example, the search can start with a coarse step size within the search window. Once it obtains the best position with the coarse step size, the step size can be reduced, and the search window is also reduced to a smaller window centered on the last best position obtained from the previous search window. The iterative search can be terminated when the search step size is reduced to a value not greater than a predefined threshold, or when the total search time meets a predefined threshold.
[0122] The ME process for affine models is different from the ME process for transformation models. This invention describes the ME method for affine models of different MVD precisions.
[0123] Overview of Some Embodiments
[0124] In order to provide motion estimation for affine models, the present invention describes an adaptive MVD accuracy method for improving the coding efficiency of affine motion models. Some embodiments provide an improved trade-off between signaling and motion compensated prediction efficiency. A method for determining the adaptive MVD accuracy is also proposed.
[0125] In some embodiments, the MVD precision of the affine model is adaptively selected from a multiple precision set for two control points.The precision of the MVD may be different at different control points.
[0126] In some embodiments, an MV search method for affine models of different MVD precisions is proposed to improve accuracy and reduce decoding complexity.
[0127] In some embodiments, the affine control point motion vector predictor (MVP) and MV are kept in high precision, but the MVD is rounded to low precision. This allows for improved accuracy of motion compensation using high precision MVs.
[0128] For ease of explanation, in the following discussion, the use of a 4-parameter affine motion model is given as an example, but the proposed method can also be directly extended to a 6-parameter affine motion model.
[0129] Adaptive MVD Accuracy for Affine Models
[0130] In VTM / BMS, the MVD at the control points of the affine model is always signaled at 1 / 4 point accuracy. Fixed accuracy does not provide a good compromise between MVD signaling overhead and affine motion compensation efficiency. By increasing the accuracy of the MVD at those control points, the MV of each sub-block derived from formula (1) will be more accurate. Therefore, motion prediction can be improved. But it will use more bits for MVD signaling. In the present invention, a method for adaptive MVD accuracy at control points is proposed. The motion of the upper left control point is related to the translation motion of each sub-block within the CU, and the motion difference between the two control points is related to the scaling and rotation motion of each sub-block. Those blocks decoded with the affine motion model may have different motion characteristics. Some affine blocks may have high-precision translation and rotation motion, and some affine blocks may have low-precision translation motion. In some embodiments, the translation motion and rotation / scaling motion of the affine block may have different precisions. Based on this, some example embodiments signal different precisions of MVD decoding at different control points.
[0131] Signaling the precision of each control point separately will increase the signaling overhead for affine-coded CUs. One embodiment is to signal the precision of two control points jointly. Only those combinations that are frequently used are signaled. For example, the precision pair (prec0, prec1) can be used to indicate the precision "prec0" for the top left control point and the precision "prec1" for the top right control point. The example embodiment uses the following four precision sets:
[0132] S1{(1-pel, 1 / 4-pel), (1 / 4-pel, 1 / 4-pel)},
[0133] S2{(1-pel, 1 / 4-pel), (1 / 4-pel, 1 / 4-pel), (1 / 4-pel, 1 / 8-pel)},
[0134] S3{(1-pel, 1 / 4-pel), (1 / 4-pel, 1 / 4-pel), (1 / 8-pel, 1 / 8-pel)}, and
[0135] S4{(1-pel, 1 / 4-pel), (1 / 4-pel, 1 / 4-pel), (1 / 4-pel, 1 / 8-pel), (1 / 8-pel, 1 / 8-pel)}.
[0136] (1 / 4-pel, 1 / 4-pel) precision is used for affine modules as normal precision. (1-pel, 1 / 4-pel) is used for affine modules with low precision translational motion, but rotation / scaling still has normal precision. (11 / 4-pel, 1 / 8-pel) is used for affine modules with high precision rotation / scaling. (1 / 8-pel, 1 / 8-pel) is used for affine modules with translational motion and high precision rotation / scaling. The precision sets may be signaled, for example, at a sequence parameter set, a picture parameter set, or a slice header.
[0137] In some embodiments, if the current affine CU is decoded in bi-prediction mode, the precision of one control point will be applied to the MVD in both lists. In some embodiments, in order to reduce signaling redundancy, the precision is signaled only when the MVD at the control point is not zero. If the MVD is zero at the control point, there is no need to signal the precision information of the control point because the precision has no effect on the zero MVD. For example, if the upper left MVD is zero, the (1-pel, 1 / 4-pel) precision will be invalid for the current CU. Therefore, in this case, if the precision set is S1, there is additional precision signaling. If the precision set is S3, (1 / 4-pel, 1 / 4-pel) and (1 / 8-pel, 1 / 8-pel) are valid. The precision of zero MVD can be inferred as the default precision, such as (1 / 4-pel, 1 / 4-pel). Another embodiment can always signal the precision even when the MVD is zero, because it can obtain a high-precision MV from its prediction value. For example, the MV prediction value is derived from the neighboring affine decoded CU. High precision will lead to high-precision MV prediction values, so the final MV accuracy is high.
[0138] Table 2, Table 3, Table 4 and Table 5 are proposed for the binarization of those precision sets, and the binarized bits of the binarization will be decoded.
[0139] Table 2. Binarization of S1
[0140]
[0141] Table 3. Binarization of S2
[0142]
[0143] Table 4. Binarization of S3
[0144]
[0145] Table 5. Binarization of S4
[0146]
[0147] For precision decoding, we use S3 as an example. According to Table 4, after binarization, there are two bits to be decoded for the S3 set, and the second bit is decoded only when the first bit is 0. This bit will be decoded using context-adaptive binary arithmetic coding (CABAC). The context of a bit in CABAC is used to record the probability of zero or one. The context of the first bit can be derived from its upper left neighbor, such as Fig. 9 As shown. We define two functions: (1) Model(CU), which is used to indicate whether the motion model of CU is an affine model; (2) Prec(CU), which is used to indicate whether the precision (1-pel, 1 / 4-pel) is used for the CU.
[0148]
[0149] We compare the accuracy of the adjacent CU and the current CU and get two flags: equalPrec(B L ), equalPrec(B A ), as evaluated using formulas (21) and (22).
[0150]
[0151] The index of the context of the first binary bit is constructed as formula (23).
[0152] Context_idx(B C )=equalPrec(B A )+equalPrec(B L ) (twenty three)
[0153] The second binary bit can be coded using a fixed context. Or it can be coded using a 1-bit fixed length coding.
[0154] As an alternative, the 1-pixel precision for the top-left control point may be replaced by the 1 / 2-pixel precision in the precision pair-based signaling scheme described above.
[0155] Another embodiment is to signal the precision of each control point separately. For example, we will signal one precision for the upper left control point selected from the set {1-pel, 1 / 4-pel, 1 / 8-pel}, and signal one precision for the upper right control point selected from the set {1 / 2-pel, 1 / 4-pel, 1 / 8-pel}. The reason why the precision sets of the two control points are different is that 1 pixel precision is too coarse for the upper right MV associated with rotation and scaling motion, because rotation and scaling motion have more complex distortion effects than translation motion. If the affine module has low-precision translation motion, the upper left control point can choose 1 pixel precision; if the affine module has high-precision translation motion, the upper left control point can choose 1 / 8 pixel precision. If the affine module has high-precision rotation or scaling motion, the upper right control point can choose 1 / 8 pixel precision. Based on statistics, the following binary tables (Table 6, Table 7) can be used to decode the precisions selected for the two control points. Binary codes are codewords, and they can be decoded using different entropy coding methods (such as CABAC). At the decoder end, the affine MV prediction value at each control point can be rounded to the precision of the MVD and then scaled to the high precision stored in the MV field (e.g. 1 / 16-pel in VVC). First, the decoded MVD is first scaled to the high precision for MV field storage according to its precision. The scaled MVD is then added to the MV prediction value to obtain a reconstructed MV with the precision for motion field storage. Using formula (1), the MV reconstructed at the control point will be used to derive the MV of each sub-block for motion compensation of each sub-block, thereby obtaining the sample value prediction of the sub-block.
[0156] Table 6. Binarization of the precision decoding of the upper left control point
[0157]
[0158] Table 7. Binarization of the precision decoding of the upper right control point
[0159]
[0160] In another embodiment, the precision set for the two control points may be the same, such as {1 / 2-pel, 1 / 4-pel, 1 / 8-pel}, but the binarization of the precision encoding for the two control points may be different. An example of the binarization of the precision encoding for the two control points is presented in Table 8.
[0161] Table 8. Binarization of the precision encoding of control points
[0162]
[0163] In some embodiments, the precision control of the control points is applied only to those large CUs to save signaling overhead, because affine motion models are usually more frequently used for large CUs. For example, in some embodiments, the MVD precision of the control points can be signaled only when the CU has an area larger than a threshold (e.g., 16x16). For small CUs, for two control points, the precision can be inferred to be (1 / 4-pel).
[0164] In some embodiments, the precision set changes at the picture level. In a random access configuration, there are different temporal layers, and different quantization parameters (QP) can be used at different layers. For example, for a low temporal layer picture with a small QP, it may have more precision options, and a high precision such as 1 / 8-pel may be preferred. And we can use the precision set {1 / 2-pel, 1 / 4-pel, 1 / 8-pel}. For a high temporal layer picture with a large QP, it may have fewer precision options and may prefer low precision, such as 1 pixel. And we can use the precision set {1-pel, 1 / 4-pel} or {1-pel, 1 / 2-pel, 1 / 4-pel}.
[0165] For the 6-parameter affine model, the motion at the upper left is related to the translation motion, the motion difference between the upper right and the upper left is related to the rotation and scaling in the horizontal direction, and the motion difference between the lower left and the upper left is related to the rotation and scaling in the vertical direction. We specify a triplet of precision (p0, p1, p2) for the 6-parameter affine model, where p0 and p1 and p2 are the precisions of the upper left, upper right and lower left control points. One embodiment is to set the same precision for MVD signaling at the upper right and lower left control points. For example, the precision of the three control points can be one of the sets {(1-pel, 1 / 4-pel, 1 / 4-pel), (1 / 4-pel, 1 / 4-pel, 1 / 4-pel), (1 / 8-pel, 1 / 8-pel, 1 / 8-pel)}. Another embodiment is to set different precisions for the upper right and lower left control points. In order to save signaling overhead, it is best to reduce the options for precision settings as much as possible. In some embodiments, the precision set is selected based on the shape of the CU. If the width is equal to the height (i.e., a square CU), the precision of the upper right and lower left control points can be the same, for example, the precision set is {(1-pel, 1 / 4-pel, 1 / 4-pel), (1 / 4-pel, 1 / 4-pel, 1 / 4-pel), (1 / 8-pel, 1 / 8-pel, 1 / 8-pel)}. If the width is greater than the height (i.e., a long CU), the precision of the upper right control point can be equal to or higher than the precision of the lower left control point, for example, the precision set is {(1-pel, 1 / 4-pel, 1 / 4-pel), (1 / 4-pel, 1 / 4-pel, 1 / 4-pel), (1 / 8-pel, 1 / 8-pel, 1 / 4-pel)}. If the width is smaller than the height (i.e., high CU), the precision of the upper right control point can be equal to or lower than the precision of the lower left control point, for example, the precision set is {(1-pel, 1 / 4-pel, 1 / 4-pel), (1 / 4-pel, 1 / 4-pel, 1 / 4-pel), (1 / 8-pel, 1 / 4-pel, 1 / 8-pel)}.
[0166] In some embodiments, an example of a method performed by a decoder is Fig.18. The decoder receives a bitstream (box 1802) and reads from the bitstream: information identifying at least a first motion vector predictor (box 1804) and a second motion vector predictor (box 1806), information identifying one of a plurality of accuracies in a predetermined set of accuracies (box 1808), and at least a first motion vector difference (box 1810) and a second motion vector difference (box 1812). The first and second motion vector differences have accuracies identified by the information read at box 1808. The syntax and semantics by which the information is decoded in the bitstream may be different for different embodiments. The decoder generates a first control point motion vector (box 1814) based on at least the first motion vector predictor and the first motion vector difference, and generates a second control point motion vector (box 1816) based on the second motion vector predictor and the second motion vector difference. The decoder then uses an affine motion model to generate a prediction about the current block (box 1818). The affine motion model is characterized by at least the first control point motion vector and the second control point motion vector.
[0167] Motion Estimation for Affine Motion Models with Adaptive MVD Accuracy
[0168] When applying adaptive MVD precision to two affine control points, the encoder operates to determine the optimal precision, which will affect the decoding performance of the affine motion model. The encoder also operates to apply a good motion estimation method with a given precision to determine the affine model parameters.
[0169] In VVC, the flowchart of CU mode decision is in Fig.10 As shown in the figure, the encoder will check different decoding modes and select the best decoding mode with the minimum RD cost. For explicit inter-frame modes with different precisions, there are three RD cost checking processes for the transformation model: 1 / 4 pixel, 1 pixel, and 4 pixels. In order to reduce the coding complexity, the RD cost based on 4-pel precision is calculated only when the RD cost of 1-pel precision is less than or equal to the RD component of 1 / 4-pel. In the RD cost calculation process of 1 / 4 point precision, the encoder will compare the costs of motion estimation of the translation model and the affine motion model, and select the motion model with the minimum ME cost. The precision of the affine motion model is (1 / 4-pel, 1 / 4-pel) for two control points.
[0170] In some embodiments, for the adaptive MVD accuracy of the affine motion model, more accuracy is introduced. For example, in addition to the accuracy (1 / 4-pel, 1 / 4-pel), (1-pel, 1 / 4-pel), (1 / 8-pel, 1 / 8-pel) are added to the affine model. The following discussion uses these three accuracy of the affine model as an example. However, other embodiments may use other accuracy or a combination of more accuracy. The (1 / 4-pel, 1 / 4-pel) accuracy of the affine model can be used as the default accuracy. In order to reduce complexity, we keep the 1 / 4-pel RD cost check process, in which the affine model with (1 / 4-pel, 1 / 4-pel) accuracy will be evaluated. We add the remaining affine accuracy checks to the RD cost check of the 1-pel accuracy.
[0171] Fig.11 A flow chart of an embodiment using RD cost check with 1-pel precision is shown. One motion estimation (box 1102) of a translation model with precision of 1-pel, and two affine motion estimations (box 1104) with precisions of (1-pel, 1 / 4-pel) and (1 / 8-pel, 1 / 8-pel) are performed respectively (box 1106). The motion model and the corresponding precision are selected by comparing the ME costs of the motion model and the corresponding precision (box 1108). In order to reduce encoding complexity, affine motion estimation at those two precisions is performed only when the current best mode is the inter-frame decoding mode with the affine motion model after the encoder has checked the (1 / 4-pel, 1 / 4-pel) precision of the affine model. The reason is that different affine model precisions are only valid when the current CU has affine motion. To further reduce encoding complexity, in some embodiments, the encoder may check those ME costs of the affine model only when the current best decoding mode is affine non-merge mode or the current best decoding mode is affine non-skip mode, because the merge and skip modes indicate that the current CU is already efficiently decoded and the improvement may be very limited.
[0172] The (1-pel, 1 / 4-pel) and (1 / 2-pel, 1 / 4-pel) precisions are lower than the default precision (1 / 4-pel, 1 / 4-pel). It can be observed that the iterative search method based on optical flow is insufficient because the precision of the upper left control point is coarse and the encoder is more likely to get a local minimum. Here, we propose a combined search method for this low precision. Fig.12 is a flowchart of an example of a search method.
[0173] First, we apply the iterative search based on optical flow in the "Affine Mode" section above. We then get (MV0, MV1) as the input for the next step, where MV0 is the MV at the top left control point and MV1 is the MV at the top right control point (box 1202). The next step is to refine MV0 by checking its nearest 8 neighbors (box 1204). Fig.13 An example is shown. If P0 is the position pointed to by MV0, it has 8 nearest neighboring positions. The distance between P0 and P4 and P1 is the accuracy of MV0, such as 1-pel or 1 / 2-pel. When MV0 is changed to point to a neighboring position, the corresponding MV1 is estimated using an optical flow-based search method, and the ME cost is calculated using the updated (MV0, MV1). These 8 neighboring points are grouped into two groups. The first group is its 4 nearest neighbors {P1, P2, P3, P4}, and {P5, P6, P7, P8} is the second group. Initially, we compare the ME cost at position P0 with the ME cost of the neighbors from {P1, P2, P3, P4}. If P0 has the minimum cost, the refinement of MV0 stops. If a neighbor from the first group has a lower ME cost than P0, the other two neighbors from {P5, P6, P7, P8} will be further compared. For example, if P2 has the minimum cost in the first round, P5 and P6 will be further checked. In this way, the maximum number of cost checks is 6 instead of 8.
[0174] Once MV0 is determined, MV1 is further refined (box 1204). The refinement is an iterative search using a square pattern. For each iteration, there is a center position that is the best position for the last iteration. The encoder will calculate the ME cost at its 8 neighboring positions and compare it with the current best ME cost, and move the center position to a new position with the minimum ME cost among the center and the 8 neighboring positions. If the neighboring position has been checked in the previous iteration, the position check will be skipped in the current iteration. If there is no update in the current iteration, which means that the center is the best position, the search will terminate. Or if the number of searches meets a predefined threshold (e.g., 8 or 16), the search will terminate.
[0175] For the 6-parameter affine model, the search method proposed for the 4-parameter affine model can be extended. Assume that it is desired to search for (MV0, MV1, MV2) of a 6-parameter affine motion. The search can be performed using at least three steps: initial motion search, translation motion parameter refinement, rotation and scaling motion parameter refinement. The first and second steps are the same as those in the 4-parameter affine search. The third step is to refine MV1 and MV2. In order to reduce the complexity of the search, we can use iterative refinement to refine both. For example, we fix MV0, MV2, and refine MV1 using the same scheme as the MV1 refinement of the 4-parameter affine model. After refining MV1, we fix MV0, MV1, and use the same scheme to refine MV2. Then we refine MV1 again. In this way, we can iteratively refine the two MVs associated with the rotation and scaling motion until one MV does not change or the number of iterations meets the predetermined threshold. In order to converge quickly, the starting MV for refinement can be selected in the iterative refinement scheme in the following manner. The MV1 or MV2 selected for refinement first may depend on their own accuracy. Typically, the MV with lower precision is refined first. If they have the same precision, we can choose the MV whose control points have a larger distance to the upper left control point.
[0176] To further reduce coding complexity, the CU size and temporal layer may be considered when the encoder tests various precisions at control points for affine model-based decoding. Precision decisions may be performed only for large CUs. For example, the example precision determination method may be applied only to those CUs with an area larger than a predefined threshold (e.g., 16x16). For those CUs whose areas are smaller than the threshold, (1 / 4-pel, 1 / 4-pel) precision is used for two control points. For different temporal layer pictures with different QP settings, the encoder may test only those possible precisions at each temporal layer. For example, for higher temporal layer pictures (e.g., the highest temporal layer pictures), only (1-pel, 1 / 4-pel) (1 / 4-pel, 1 / 4-pel) may be tested. And for lower temporal layer pictures (e.g., the lowest temporal layer pictures), only (1 / 4-pel, 1 / 4-pel) (1 / 8-pel, 1 / 8-pel) may be tested. For those intermediate layer pictures, a full set of precisions may be tested.
[0177] Sub-block based affine motion compensation and estimation
[0178] Affine motion estimation is an iterative estimation process. In each iteration, the relationship between the time difference between the original signal and the motion compensated prediction signal using the current motion vector, spatial gradient and local affine parameters (a, b, c, d in formula (3)) is expressed by formula (7), which is based on the optical flow formula. However, in order to reduce the memory access bandwidth on the decoder side, affine motion compensated prediction is based on sub-blocks (e.g., 4×4) rather than samples. The reason is that when the motion vector points to a fractional position, there will usually be an interpolation filter to derive the sample value during motion compensation. This interpolation process can greatly improve the prediction compared to the method of directly using the sample value at its nearest neighboring integer position. However, interpolation involves multiple neighboring samples at integer positions. Given the MV at the control point, the MV of each sub-block can be derived based on the center position of the sub-block using formula (1). If the sub-block size is 1×1, this means that motion compensation is based on samples and each sample can have different motions. Assume that we have a separable interpolation filter with a tap length of N and a sub-block size of SxS. For one sample, it operates to extract (S+N-1)x(S+N-1) integer samples around the reference position pointed to by MV for interpolation in the horizontal and vertical directions. On average, it obtains ((S+N-1)x(S+N-1) / (SxS)) reference samples at the integer position of each sample. For sample-based affine motion compensation, where S is equal to 1, it is NxN. For example, in HEVC and VTM, N is 8, and if the sub-block size is 4×4, the memory access for each sample is (121 / 16). While for sample-based interpolation, the memory access amount per sample is 64, which is 8.5 times that of 4×4 sub-block-based motion compensation. Therefore, sub-block-based motion compensation is used for affine motion prediction. In the affine motion estimation method described in the "Affine Mode" section, sample-based prediction is used, and this sub-block-based motion compensation is not considered. From formula (3), we know that given these affine parameters, the incremental motion of each position is related to its position within the CU. Therefore, if we use the center position of the sub-block to derive the motion of all samples within a sub-block using formula (3), then these samples belonging to a sub-block will have the same incremental motion. For example, if the sample position is (i, j) within the CU, then the center position of the sub-block to which it belongs is evaluated as formula (24).
[0179]
[0180] Then, formula (3) is obtained by using (i b , j b ) replaces (i, j) and is changed into formula (25).
[0181]
[0182] Use formula (25) to replace the use of formula (6) and Then we get formula (26).
[0183]
[0184] In some embodiments, formula (26) is used to estimate the optimal affine parameters (a, b, c, d) using the least squares method. In such an embodiment for motion estimation, the incremental motion of those samples belonging to a sub-block is the same. Therefore, compared with the sample-based estimation method using formula (7), for sub-block-based motion compensation prediction, the final MV at the control point will be more accurate.
[0185] In affine motion compensation, the position of the MV derived for a sub-block within a CU may not be the actual center position of the sub-block. Fig.17 As shown, the affine CU is 8x4 and the motion compensated sub-block size is 4x4. Given the sample position (i, j), the position for sub-block MV derivation can be calculated using formula (24). For the left 4x4 sub-block and the right 4x4 sub-block, these positions are P0 and P1, respectively. Based on the coordinates of P0 and P1, the MV is derived using formula (1) for the 4-parameter affine model, and the MV is derived using formulas (8) and (9) for the 6-parameter affine model. However, using formula (24), P0 and P1 are not the centers of the two sub-blocks. MV0 and MV1 may not be accurate for sub-block motion compensation prediction. In one embodiment, we propose to use formula (27) to calculate the position of the sub-block MV derivation.
[0186]
[0187] Using formula (27), P0 will be replaced by P0', which is the center of the left 4x4 sub-block. Therefore, the corresponding MV0' is more accurate than MV0. In the affine motion estimation method described herein, formula (27) can replace formula (24) to improve the accuracy of affine motion estimation. Given the MV at the control point of the affine decoded CU, the MV of the sub-block of the chrominance component can reuse the MV of the luminance component, or they can be derived separately by using formula (27).
[0188] Affine MVD rounding
[0189] In some implementations of affine motion compensation, although the sub-block MV derived from the control point MV is 1 / 16-pel precision, the control point MV is rounded to 1 / 4-pel precision. The control point MV is derived by adding the MVD to the MV prediction value. The MVD is signaled in 1 / 4 pixel precision. The MV prediction value is rounded to 1 / 4 pixel precision before being used to derive the control point MV. Using adaptive affine MVD precision, the MV prediction value used to derive the control point MV of the current decoding block can have a higher precision than the MV precision of the current CU. In this case, the MV prediction value will be rounded to a lower precision. This rounding will result in information loss. In some embodiments presented here, the control point MV and MV prediction value are maintained at the highest precision, such as 1 / 16-pel, and the MVD is rounded to the desired precision.
[0190] In affine motion estimation, the affine parameters can be estimated iteratively. For each iteration, the incremental control point MV can be derived using the optical flow method described in formulas (4) and (5). In the implementation in VTM, the control point MV of step k is updated by the following formula:
[0191]
[0192] where i is the index of the control point MV. This function Used for rounding to the desired precision preci. And, The initial control point MV is rounded to the desired precision. This is also within the expected accuracy.
[0193] In an exemplary embodiment of the method proposed here, the control point MV of step k is updated by the following steps: The upper left control point MV is updated according to formulas (29)-(31).
[0194]
[0195]
[0196] For i being 1 or 2, the upper right and lower left control point MVs are updated according to Eq. (32)-(33).
[0197]
[0198] In formulas (29)-(34), is the high-precision MVD of step k. Then, as shown in equations (30) and (33), the high-precision MVD is rounded to the desired precision. The control point MV at step k is derived in equations (31) and (34).
[0199] Because MVP i It is 1 / 16 pixel accuracy. This is also 1 / 16 pixel accuracy. The MVD sent by signal (which is derived in equations (33) and (34)) is at a desired accuracy (e.g., low accuracy). In this way, even if the MVD sent by signal is at a low accuracy, the accuracy of the MV is maintained. Therefore, the accuracy of motion compensated prediction using the MV is improved.
[0200] Adaptive affine MVD decoding
[0201] Affine MVDs with different precision may have different characteristics. Control point MVDs may have different physical meanings. For example, the absolute value of the MVD may be smaller on average for (1 / 8-pel, 1 / 8-pel, 1 / 8-pel) or (1 / 16-pel, 1 / 16-pel, 1 / 16-pel) precision compared to (1 / 4-pel, 1 / 4-pel, 1 / 4-pel) precision. As described in the "MVD Decoding" section above, the lengths of EG codes with different orders are different. In general, if the order of EG is smaller, the length of the EG code for smaller values will be shorter, and the length of the EG code for larger values will be longer. Some embodiments employ adaptive EG order for MVD decoding to take into account the MVD precision and its physical motion meaning (e.g., rotation, scaling in different directions). In some embodiments, the upper left MVD (MVD 0x , MVD 0y ) has the same EG order as the non-affine MVD decoding, because the MVD components MVD 0x and MVD 0y For translational motion. For the 6-parameter affine model, the MVD component MVD 1y and MVD 2x Related to rotational motion, and the MVD component MVD 1x and MVD 2y Related to the scaling motion. For the 4-parameter affine model, the MVD component MVD 1y Related to rotational motion, the MVD component MVD 1x Related to scaling motion.
[0202] In some embodiments, since MVD values have different characteristics, the order of the EG code is different for different MVD decodings. In some embodiments, for the translation motion-related MVD (MVD 0x , MVD 0y ), the EG order is not signaled; instead, this MVD may use the same EG order (e.g., 1) as the non-affine MVD decoding.
[0203] In some embodiments, the EG order is signaled for Exponential-Golomb codes used for different MVD components corresponding to non-translational motion, such as those listed in Table 9 for three MVD precisions. In the embodiment of Table 9, six EG orders (EG-Order[0] to EG-Order[5]) are signaled in the bitstream. The EG order range is from 0 to 3, which is decoded using 2 bits. The MVD precision indicator indicates different MVD precisions. For example, MVD precision indicator "0" is for (1 / 4-pel, 1 / 4-pel, 1 / 4-pel) precision; MVD precision indicator "1" is for (1 / 16-pel, 1 / 16-pel, 1 / 16-pel) precision; MVD precision indicator "2" is for (1-pel, 1-pel, 1-pel) precision. Those signaled EG orders will indicate the EG orders used for EG binarization of different MVD components with different MVD precisions. For example, EG-order[0] will be used for the MVD component MVD 1y and MVD 2x , where the MVD precision indicator is "0" (i.e., (1 / 4-pel, 1 / 4-pel, 1 / 4-pel) precision set). For a 4-parameter affine model, MVD 2x and MVD 2y No coding is required, and only MVD is used in Table 9 1x and MVD 1y Decoded.
[0204] Table 9. EG order signaling for exponential Golomb codes for subsequent MVD components
[0205]
[0206] Signaling about the EG order can be performed, for example, in a picture parameter set or a slice header. In embodiments where the EG order is signaled at the slice header, the encoder can select the EG order based on previously coded pictures at the same temporal layer. After decoding each inter picture, the encoder can compare the total number of bins using different EG codes with different orders for all MVDs in that category. For example, for all MVDs with MVD precision of "0", the EG order is 0. 1y and MVD 2x , the encoder compares the total number of binary bits with EG order 0, EG order 1, EG order 2, and EG order 3, and selects the order with the minimum value of the total number of binary bits. Then, the selected order will be used for decoding subsequent pictures in the same temporal layer, and the selected order will also be decoded at the slice header of the subsequent picture in the same temporal layer.
[0207] Further embodiments
[0208] In some embodiments, a method of decoding a video from a bitstream is provided. The method comprises, for at least one block in the video: reading from the bitstream information identifying one of a plurality of elements in a selected set of predetermined precisions, wherein the identified element of the selected set of predetermined precisions indicates at least a selected first precision and a selected second precision; and decoding the block using an affine motion model characterized by at least a first motion vector having the selected first precision and a second motion vector having the selected second precision. The method may include reading from the bitstream information indicating the first motion vector and the second motion vector. The information indicating the first motion vector and the second motion vector may include a first motion vector difference and a second motion vector difference.
[0209] In some embodiments, the information identifying one of the plurality of elements is read from the bitstream on a block-by-block basis.
[0210] In some embodiments, the first motion vector is associated with a first control point of the block and the second motion vector is associated with a second control point of the block.
[0211] In some embodiments, each of the elements of the selected predetermined precision set includes an available first precision and an available second precision. The available second precision may be no less than the available first precision.
[0212] In some embodiments, information identifying the selected set of predetermined precisions from a plurality of available sets of predetermined precisions is read from the bitstream. In some such embodiments, the information identifying the selected set of predetermined precisions is signaled in a picture parameter set, in a sequence parameter set, or in a slice header. Examples of sets of predetermined positions include:
[0213] {(1-pel, 1 / 4-pel), (1 / 4-pel, 1 / 4-pel)},
[0214] {(1-pel, 1 / 4-pel), (1 / 4-pel, 1 / 4-pel), (1 / 4-pel, 1 / 8-pel)},
[0215] {(1-pel, 1 / 4-pel), (1 / 4-pel, 1 / 4-pel), (1 / 8-pel, 1 / 8-pel)}, and
[0216] {(1-pel, 1 / 4-pel), (1 / 4-pel, 1 / 4-pel), (1 / 4-pel, 1 / 8-pel), (1 / 8-pel, 1 / 8-pel)}.
[0217] In some embodiments, the affine motion model is further characterized by a third motion vector having a selected third precision, wherein the identified element of the selected predetermined set of precisions is further indicative of the selected third precision.
[0218] In some embodiments, said information identifying one of said plurality of elements is decoded in said bitstream using context adaptive binary arithmetic coding.
[0219] In some embodiments, it is determined whether the size of the block is greater than a threshold size, wherein the information identifying one of the plurality of elements is read from the bitstream only if the size of the block is greater than the threshold size.
[0220] In some embodiments, the selected predetermined set of precisions is selected based on a temporal layer of a picture comprising the block.
[0221] In some embodiments, the selected predetermined set of precisions is selected based on a shape of the block.
[0222] In some embodiments, a method of decoding a video in a bitstream is provided. The method includes, for at least one block in the video: reading from the bitstream (i) first information indicating a first precision from a first predetermined set of available precisions and (ii) second information indicating a second precision from a second predetermined set of available precisions; decoding the block using an affine motion model characterized by at least a first motion vector having the selected first precision and a second motion vector having the selected second precision; and signaling in the bitstream (i) the first information indicating the first precision from the first predetermined set of available precisions and (ii) the second information indicating the second precision from the second predetermined set of available precisions. The first predetermined set and the second predetermined set may be different.
[0223] In some embodiments, the first predetermined set is {1-pel, 1 / 4-pel, 1 / 8-pel} and the second predetermined set is {1 / 2-pel, 1 / 4-pel, 1 / 8-pel}.
[0224] In some embodiments, the first motion vector is associated with a first control point of the block and the second motion vector is associated with a second control point of the block.
[0225] In some embodiments, a method for encoding a video in a bitstream is provided. The method includes, for at least one block in the video: encoding the block using an affine motion model, the affine motion model being characterized by at least a first motion vector having a selected first precision and a second motion vector having a selected second precision; and signaling in the bitstream information identifying one of a plurality of elements in a selected set of predetermined precisions, wherein the identified element of the selected set of predetermined precisions indicates at least the selected first precision and the selected second precision. The method may further include signaling in the bitstream information indicating the first motion vector and the second motion vector. The information indicating the first motion vector and the second motion vector may include a first motion vector difference and a second motion vector difference.
[0226] In some embodiments, said information identifying one of said plurality of elements is sent on a block-by-block basis.
[0227] In some embodiments, the first motion vector is associated with a first control point of the block and the second motion vector is associated with a second control point of the block.
[0228] In some embodiments, each of the elements of the selected predetermined precision set includes an available first precision and an available second precision. In some embodiments, the available second precision is not lower than the available first precision.
[0229] In some embodiments, the method includes signaling in the bitstream information identifying the selected predetermined precision set from a plurality of available predetermined precision sets. The information identifying the selected predetermined precision set may be signaled in, for example, a picture parameter set, a sequence parameter set, or a slice header.
[0230] Examples of predefined location sets include:
[0231] {(1-pel, 1 / 4-pel), (1 / 4-pel, 1 / 4-pel)},
[0232] {(1-pel, 1 / 4-pel), (1 / 4-pel, 1 / 4-pel), (1 / 4-pel, 1 / 8-pel)},
[0233] {(1-pel, 1 / 4-pel), (1 / 4-pel, 1 / 4-pel), (1 / 8-pel, 1 / 8-pel)}, and
[0234] {(1-pel, 1 / 4-pel), (1 / 4-pel, 1 / 4-pel), (1 / 4-pel, 1 / 8-pel), (1 / 8-pel, 1 / 8-pel)}.
[0235] In some embodiments, the affine motion model is further characterized by a third motion vector having a selected third precision, and the identified element of the selected predetermined set of precisions is further indicative of the selected third precision.
[0236] In some embodiments, said information identifying one of said plurality of elements is coded in said bitstream using context adaptive binary arithmetic coding.
[0237] In some embodiments, the method includes determining whether a size of the block is greater than a threshold size, and signaling in the bitstream the information identifying one of the plurality of elements only if the size of the block is greater than the threshold size.
[0238] In some embodiments, the selected predetermined set of precisions is selected based on a temporal layer of a picture comprising the block.
[0239] In some embodiments, the selected predetermined set of precisions is selected based on a shape of the block.
[0240] In some embodiments, a method for encoding a video in a bitstream is provided. The method includes, for at least one block in the video: encoding the block using an affine motion model, the affine motion model being characterized by at least a first motion vector having a selected first precision and a second motion vector having a selected second precision; and signaling in the bitstream (i) first information indicating a first precision from a first predetermined set of available precisions and (ii) second information indicating a second precision from a second predetermined set of available precisions. The first predetermined set and the second predetermined set may be different.
[0241] In some embodiments, the first predetermined set is {1-pel, 1 / 4-pel, 1 / 8-pel} and the second predetermined set is {1 / 2-pel, 1 / 4-pel, 1 / 8-pel}.
[0242] In some embodiments, the first motion vector is associated with a first control point of the block and the second motion vector is associated with a second control point of the block.
[0243] Some embodiments include a method of encoding a video in a bitstream, wherein the method includes, for at least one block in the video: determining a first rate-distortion cost for encoding the block using a translational motion model; determining a second rate-distortion cost for encoding the block using an affine prediction model having a first set of affine model precisions; determining whether the second rate-distortion cost is less than the first rate-distortion cost; in response to determining that the second rate-distortion cost is less than the first rate-distortion cost, determining at least a third rate-distortion cost for encoding the block using an affine prediction model having a second set of affine model precisions; and encoding the block in the bitstream using the coding model associated with the lowest determined rate-distortion cost.
[0244] In some embodiments, in response to determining that the second rate-distortion cost is less than the first rate-distortion cost, a fourth rate-distortion cost for encoding the block using an affine prediction model with a fourth affine model precision set is determined.
[0245] In some embodiments, a method for encoding a video in a bitstream is provided. The method includes, for at least one block in the video: determining affine parameters a, b, c, and d using the following formula:
[0246] I′ k (i, J)-I(i, j)=(g x (i, j)*i b +g y (i, j)*j b )*c+(-g x (i, j)*j b +g y (i, j)*i b )*d
[0247] Among them, I(i, j) is the original brightness signal, I′ k (i, j) is the predicted brightness signal, and g x (i, j) and g y (i, j) is applied to I′ k The spatial gradient on (i, j), and
[0248]
[0249] wherein S is a sub-block size greater than one; and the block in the bitstream is encoded using the determined affine parameters a, b, c, and d.
[0250] In some embodiments, a method of decoding a video is provided. The method includes, for at least one block in the video: identifying a motion vector prediction value (MVP) of at least one control point, the motion vector prediction value having a first precision; identifying a motion vector difference (MVD) value of the control point, the motion vector difference value having a second precision lower than the first precision; calculating a motion vector of the control point by at least adding the motion vector difference value to the motion vector prediction value, the calculated motion vector having the first precision; and predicting the block using affine prediction using the motion vector calculated for the at least one control point. The motion vector difference value may be signaled in a bitstream by an encoder or parsed from a bitstream by a decoder.
[0251] In some embodiments, the method is performed by an encoder, and identifying a motion vector difference includes iteratively: determining a motion vector increment for the control point based on an initial motion vector; updating the motion vector difference based on the motion vector increment; rounding the motion vector difference to the second precision; and adding the rounded motion vector difference to the motion vector prediction value to generate an updated motion vector, the motion vector prediction value and the updated motion vector having the first precision.
[0252] In some embodiments, the first precision is 1 / 16 pixel precision and the second precision is 1 / 4 pixel precision.
[0253] In some embodiments, predicting the block using affine prediction is performed using two control points, wherein for each control point a respective motion vector difference is identified, and wherein each respective motion vector difference has said second precision.
[0254] In some embodiments, predicting the block using affine prediction is performed using three control points, wherein for each control point a corresponding motion vector difference is identified, and wherein each corresponding motion vector difference has the second precision.
[0255] In some embodiments, a method of decoding video from a bitstream is provided. The method includes, for at least one block in the video: determining a corresponding decoding order for each of a plurality of motion vector difference (MVD) components based at least in part on information decoded in the bitstream; reading each of the MVD components from the bitstream using the corresponding determined decoding order; and decoding the block using an affine motion model, the affine motion model being characterized at least in part by the MVD components.
[0256] In some embodiments, the method includes reading information identifying a respective precision of the MVD component from the bitstream, wherein the coding order of the MVD component is determined based in part on the respective precision. The MVD component may be coded using Exponential-Golomb coding, and the coding order may be an Exponential-Golomb coding order.
[0257] Some embodiments include a method of decoding video from a bitstream. The method includes, for at least one block in the video: determining a respective coding order for each of a plurality of motion vector difference (MVD) components, wherein the respective coding order for the MVD components is determined based on (i) a precision of the MVD components and (ii) whether the components are associated with rotational motion or scaling motion; reading each of the MVD components from the bitstream using the respective determined coding order; and decoding the block using an affine motion model, the affine motion model being at least partially characterized by the MVD components.
[0258] Some embodiments further comprise reading order information from the bitstream, wherein the order information identifies:
[0259] A first decoding order associated with (i) 1 / 4-pel accuracy and (ii) rotational motion;
[0260] a second decoding order associated with (i) 1 / 4-pel precision and (ii) scaling motion;
[0261] A third decoding order associated with (i) 1 / 16-pel accuracy and (ii) rotational motion;
[0262] a fourth decoding order associated with (i) 1 / 16-pel precision and (ii) scaling motion;
[0263] a fifth decoding order associated with (i) 1-pel precision and (ii) rotational motion; and
[0264] Sixth coding order associated with (i) 1-pel precision and (ii) scaled motion.
[0265] The corresponding coding order is performed using the order information. The order information may be coded in, for example, a picture parameter set or a slice header.
[0266] In some embodiments, the MVD component is coded using Exponential-Golomb coding, and the coding order is an Exponential-Golomb coding order.
[0267] In some embodiments, a method for encoding a video in a bitstream is provided, the method comprising, for at least one block in the video: selecting order information, wherein the order information identifies a decoding order of a motion vector difference (MVD) component based on (i) the accuracy of the MVD component and (ii) whether the component is related to a rotational motion or a scaling motion; encoding the order information in the bitstream; and encoding the block using an affine motion model, the affine motion model being at least partially characterized by multiple MVD components, wherein each of the multiple MVD components is encoded in the bitstream using a decoding order determined by the order information.
[0268] In some embodiments, the order information identifies:
[0269] A first decoding order associated with (i) 1 / 4-pel accuracy and (ii) rotational motion;
[0270] a second decoding order associated with (i) 1 / 4-pel precision and (ii) scaling motion;
[0271] A third decoding order associated with (i) 1 / 16-pel accuracy and (ii) rotational motion;
[0272] a fourth decoding order associated with (i) 1 / 16-pel precision and (ii) scaling motion;
[0273] a fifth decoding order associated with (i) 1-pel precision and (ii) rotational motion; and
[0274] Sixth coding order associated with (i) 1-pel precision and (ii) scaled motion.
[0275] Determining the corresponding coding order may be performed using the order information.The order information may be coded in, for example, a picture parameter set or a slice header.
[0276] In some embodiments, the MVD component is coded using Exponential-Golomb coding, and the coding order is an Exponential-Golomb coding order.
[0277] Some embodiments include a non-transitory computer-readable storage medium storing video encoded using any of the methods disclosed herein. Some embodiments include a non-transitory computer-readable storage medium storing instructions operable to perform any of the methods disclosed herein.
[0278] Decoded bitstream structure
[0279] Fig.1513 is a diagram showing an example of a decoded bitstream structure. The decoded bitstream 1300 consists of a plurality of NAL (Network Abstraction Layer) units 1301. The NAL unit may contain decoded sample data, such as a decoded slice 1306; or high-level syntax metadata, such as parameter set data, slice header data 1305, or supplemental enhancement information data 1307 (which may be referred to as a SEI message). A parameter set is a high-level syntax structure containing basic syntax elements, which may be applied to multiple bitstream layers (e.g., video parameter set 1302 (VPS)), or may be applied to a decoded video sequence within a layer (e.g., sequence parameter set 1303 (SPS)), or may be applied to several decoded pictures within a decoded video sequence (e.g., picture parameter set 1304 (PPS)). The parameter set may be sent together with the decoded pictures of the video bitstream, or sent by other means (including out-of-band transmission using a reliable channel, hard decoding, etc.). The slice header 1305 is also a high-level syntax structure that may contain some picture-related information that is relatively small or only relevant to certain slices or picture types. The SEI message 1307 carries information that may not be required by the decoding process but can be used for various other purposes, such as picture output timing or display and loss detection and concealment.
[0280] Communication equipment and systems
[0281] Fig.16 1400 may include an encoder 1402, a communication network 1404, and a decoder 1406. The encoder 1402 may communicate with the network 1404 via a connection 1408, which may be a wired connection or a wireless connection. The encoder 1402 may be similar to Figure 2A The encoder 1402 may include a single-layer codec (e.g., Figure 2A ) or a multi-layer codec. The decoder 1406 can communicate with the network 1404 via a connection 1410, which can be a wired connection or a wireless connection. The decoder 1406 can be similar to Figure 2B The decoder 1406 may include a single-layer codec (e.g., Figure 2B ) or multi-layer codec.
[0282] The encoder 1402 and / or the decoder 1406 may be incorporated into a variety of wired communication devices and / or wireless transmit / receive units (WTRUs), such as, but not limited to, digital televisions, wireless broadcast systems, network elements / terminals, servers (e.g., content or network servers (e.g., such as hypertext transfer protocol (HTTP) servers)), personal digital assistants (PDAs), laptop or desktop computers, tablet computers, digital cameras, digital recording devices, video game consoles, cellular or satellite radio telephones, digital media players, and / or the like.
[0283] The communication network 1404 may be a communication network of a suitable type. For example, the communication network 1404 may be a multiple access system that provides content such as voice, data, video, messaging, broadcasting, etc. to multiple wireless users. The communication network 1404 may enable multiple wireless users to access such content by sharing system resources including wireless bandwidth. For example, the communication network 1404 may use one or more channel access methods, such as code division multiple access (CDMA), time division multiple access (TDMA), frequency division multiple access (FDMA), orthogonal FDMA (OFDMA), single carrier FDMA (SC-FDMA) and / or similar methods. The communication network 1404 may include multiple connected communication networks. The communication network 1404 may include the Internet and / or one or more dedicated commercial networks, such as cellular networks, WiFi hotspots, and / or Internet service provider (ISP) networks, etc.
[0284] Note that the various hardware elements of one or more described embodiments are referred to as "modules" that perform (i.e., implement, run, etc.) the various functions described herein in conjunction with the corresponding modules. As used herein, a module includes hardware that a person skilled in the relevant art deems suitable for a given implementation (e.g., one or more processors, one or more microprocessors, one or more microcontrollers, one or more microchips, one or more application specific integrated circuits (ASICs), one or more field programmable gate arrays (FPGAs), one or more memory devices). Each described module may also include executable instructions for performing one or more functions described as being performed by the corresponding module, and note that these instructions may take the form of or include hardware (i.e., hardwired) instructions, firmware instructions, and / or software instructions, etc., and may be stored in any suitable non-transitory computer-readable medium or media, such as what is commonly referred to as RAM, ROM, etc.
[0285] Although the features and elements are described above in specific combinations, it will be understood by those skilled in the art that each feature or element may be used alone or in any combination with other features and elements. In addition, the methods described herein may be implemented in a computer program, software, or firmware embedded in a computer-readable medium and executed by a computer or processor. Examples of computer-readable storage media include, but are not limited to, read-only memory (ROM), random access memory (RAM), registers, buffer memory, semiconductor storage devices, magnetic media such as internal hard disks and removable disks, magneto-optical media, and optical media such as CD-ROM disks and digital versatile disks (DVDs). A processor associated with the software may be used to implement a radio frequency transceiver used in a WTRU, UE, terminal, base station, RNC, or any host computer.
Claims
1. A video encoding method, include: obtaining a first cost for predicting a block in a video using affine inter prediction with a first motion vector difference precision; Based on the first cost, determining to use affine inter prediction to encode the block; After determining to use affine inter prediction to encode the block, obtaining at least a second cost of predicting the block using affine inter prediction with a second motion vector difference precision; selecting a motion vector difference precision for the block based at least on the first cost and the second cost; as well as The first block is encoded using affine inter prediction with the selected motion vector precision. 2 . The method according to claim 1 , wherein the first motion vector difference has an accuracy of ¼ pixel. The method according to claim 1 , wherein the second motion vector difference accuracy is 1 pixel accuracy. The method according to claim 1 , wherein the second motion vector difference has an accuracy of 1 / 8 pixel.
5. The method of claim 1 , further comprising obtaining a third cost for predicting the block using affine inter prediction with a third motion vector difference precision, wherein the motion vector difference precision of the block is selected based on at least the first cost, the second cost, and the third cost. 6 . The method of claim 1 , further comprising obtaining a fourth cost of predicting the block using translational inter prediction, wherein using affine inter prediction is determined based on a comparison between the first cost and the fourth cost. 7 . The method of claim 6 , wherein the first motion vector difference precision is ¼ pixel precision, and the fourth cost is acquired using 1 pixel precision.
8. The method according to claim 1, in, The second cost of predicting the block using affine inter prediction is obtained only after determining that the current best coding mode is the affine non-merge mode.
9. The method according to claim 1, in, The second cost of predicting the block using affine inter prediction is obtained only after determining that the current best coding mode is affine non-skipped mode.
10. The method of claim 1, wherein obtaining the second cost is performed in response to determining that the block is encoded using affine inter prediction.
11. A video encoding apparatus, comprising a processor configured to perform at least the following: obtaining a first cost for predicting a block in a video using affine inter prediction with a first motion vector difference precision; Based on the first cost, determining to use affine inter prediction to encode the block; After determining to use affine inter prediction to encode the block, obtaining at least a second cost of predicting the block using affine inter prediction with a second motion vector difference precision; selecting a motion vector difference precision for the block based at least on the first cost and the second cost; and The first block is encoded using affine inter prediction with the selected motion vector precision. 12 . The apparatus according to claim 11 , wherein the first motion vector difference has a precision of ¼ pixel. The apparatus according to claim 11 , wherein the second motion vector difference precision is 1 pixel precision. The apparatus according to claim 11 , wherein the second motion vector difference has an accuracy of 1 / 8 pixel.
15. The apparatus of claim 11, further configured to obtain a third cost for predicting the block using affine inter prediction with a third motion vector difference precision, wherein the motion vector difference precision of the block is selected based on at least the first cost, the second cost, and the third cost. 16 . The apparatus of claim 11 , further configured to obtain a fourth cost of predicting the block using translational inter prediction, wherein using affine inter prediction is determined based on a comparison between the first cost and the fourth cost. 17 . The apparatus of claim 16 , wherein the first motion vector difference precision is 1 / 4 pixel precision, and the fourth cost is acquired using 1 pixel precision.
18. The device according to claim 11, in, The second cost of predicting the block using affine inter prediction is obtained only after determining that the current best coding mode is the affine non-merge mode.
19. The device according to claim 11, in, The second cost of predicting the block using affine inter prediction is obtained only after determining that the current best coding mode is affine non-skipped mode.
20. The apparatus of claim 11, wherein obtaining the second cost is performed in response to determining that the block is encoded using affine inter prediction.
21. A video encoding method, include: Obtain the set of affine parameters used to predict the current block by following these steps: Obtaining a prediction signal of the current block using a candidate set of affine parameters; as well as refining the candidate set of affine parameters based at least in part on a gradient of the prediction signal, a difference between an input block and the prediction signal, and a corresponding position associated with each sample of the current block; wherein the current block includes a plurality of sub-blocks, each sub-block includes a plurality of samples, and wherein all samples within the same sub-block use the same sub-block position to refine the candidate set of affine parameters; and The current block is encoded using the selected set of affine parameters.
22. The method according to claim 21, in, The obtaining of the prediction signal and the refinement of the candidate set of affine parameters are performed iteratively.
23. The method according to claim 21, in, For each sample at position (i, j) in a sub-block of size S, the sub-block position (i b , j b ),in 24. The method according to claim 21, in, For each sample at position (i, j) in a sub-block of size S, the sub-block position (i b , j b ),in 25. The method of claim 21, wherein refining the candidate set of affine parameters comprises refining parameters a, b, c, and d, wherein refining the parameters a, b, c, and d comprises selecting values of the parameters a, b, c, and d based on the following equations: I′ k (i,j)-I(i,j)=(g x (i,j)*i b +g y (i,j)*j b )*c+(-g x (i,j)*j b +g y (i,j)*i b )*d+g x (i,j)*a+g y (i,j)*b Where I′ k (i, j) is the predicted signal, I(i, j) is the original signal of the current block, g x (i, j) is the horizontal gradient of the prediction signal, g y (i, j) is the vertical gradient of the prediction signal, i b is the horizontal sub-block coordinate, and j b is the vertical sub-block coordinate.
26. The method of claim 25, wherein the parameters a, b, c and d are selected using a least squares method.
27. A video encoding apparatus comprising one or more processors configured to perform at least the following: The set of affine parameters used to predict the current block is obtained by the following steps: Obtaining a prediction signal of the current block using a candidate set of affine parameters; and refining the candidate set of affine parameters based at least in part on a gradient of the prediction signal, a difference between an input block and the prediction signal, and a corresponding position associated with each sample of the current block; wherein the current block comprises a plurality of sub-blocks, each sub-block comprises a plurality of samples, and wherein all samples within the same sub-block use the same sub-block position to refine the candidate set of affine parameters; and The current block is encoded using the selected set of affine parameters.
28. The device according to claim 27, in, The obtaining of the prediction signal and the refinement of the candidate set of affine parameters are performed iteratively.
29. The device according to claim 27, in, For each sample at position (i, j) in a sub-block of size S, the sub-block position (i b , j b ),in 30. The device according to claim 27, in, For each sample at position (i, j) in a sub-block of size S, the sub-block position (i b , j b ),in 31. The apparatus of claim 27, wherein refining the candidate set of affine parameters comprises refining parameters a, b, c, and d, wherein refining the parameters a, b, c, and d comprises selecting values of the parameters a, b, c, and d based on the following equations: I′ k (i,j)-I(i,j)=(g x (i,j)*i b +g y (i,j)*j b )*c+(-g x (i,j)*j b +g y (i,j)*i b )*d+g x (i,j)*a+g y (i,j)*b Where I′ k (i, j) is the predicted signal, I(i, j) is the original signal of the current block, g x (i, j) is the horizontal gradient of the prediction signal, g y (i, j) is the vertical gradient of the prediction signal, i b is the horizontal sub-block coordinate, and j b is the vertical sub-block coordinate.
32. The apparatus of claim 31, wherein the parameters a, b, c and d are selected using a least squares method.
