WO2021000277A1 - Method and device for coding, decoding and storage medium - Google Patents

Method and device for coding, decoding and storage medium Download PDF

Info

Publication number
WO2021000277A1
WO2021000277A1 PCT/CN2019/094476 CN2019094476W WO2021000277A1 WO 2021000277 A1 WO2021000277 A1 WO 2021000277A1 CN 2019094476 W CN2019094476 W CN 2019094476W WO 2021000277 A1 WO2021000277 A1 WO 2021000277A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame
dependent
frames
rwp
parameters
Prior art date
Application number
PCT/CN2019/094476
Other languages
French (fr)
Inventor
Mary-Luc Georges Henry CHAMPEL
Original Assignee
Beijing Xiaomi Mobile Software Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co., Ltd. filed Critical Beijing Xiaomi Mobile Software Co., Ltd.
Priority to CN202111136232.6A priority Critical patent/CN113923459B/en
Priority to US17/624,250 priority patent/US11968374B2/en
Priority to PCT/CN2019/094476 priority patent/WO2021000277A1/en
Priority to EP19918520.8A priority patent/EP3782366A4/en
Priority to CN201980001391.XA priority patent/CN110959292B/en
Publication of WO2021000277A1 publication Critical patent/WO2021000277A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/172Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/597Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding specially adapted for multi-view video sequence encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • H04N19/88Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving rearrangement of data among different coding units, e.g. shuffling, interleaving, scrambling or permutation of pixel data or permutation of transform coefficient data among different blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/816Monomedia components thereof involving special video data, e.g 3D video
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/85406Content authoring involving a specific file format, e.g. MP4 format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3179Video signal processing therefor

Definitions

  • the disclosure relates to the field of video technology but is not limited to the field of video technology, and in particular, relates to a method and device for coding, decoding and storage medium.
  • Omnidirectional Media Format is known as an MPEG-I (Moving Picture Experts Group) standard. As most likely the first industry standard on virtual reality (VR) , the development of OMAF was derived from a desire in VR standardization of MPEG. In particular, OMAF defines a media format that enables omnidirectional media applications, which focus on 360° video, images, audio, etc. A projection and rectangular region-wise packing method is proposed for coding the 360° video, but this method results in a large signaling overhead.
  • MPEG-I Motion Picture Experts Group
  • VR virtual reality
  • the present disclosure provides a method and device for coding, decoding and storage medium.
  • a first aspect according to embodiments of the present disclosure provides a video coding method.
  • the method includes:
  • RWP region wise packing
  • RWP coding configuration of the dependent frame by coding parameters of the dependent frame based on difference and dependency between the parameters of the dependent frame and the parameters of an independent frame used as a reference for the coding of the dependent frame.
  • a second aspect according to embodiments of the present disclosure provides a video decoding method.
  • the method includes:
  • the dependent frame for each dependent frames, obtaining parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame, wherein the dependent frame at least includes a first type dependent frames;
  • unpacking frames of the video at least based on the parameters of the independent frames and the parameters of the first type of the dependent frames.
  • a third aspect according to embodiments of the present disclosure provides a video coding device.
  • the device includes:
  • a classifying module configured to classify frames of the video into independent frames and dependent frames, which include a first type of the dependent frames
  • a first coding module configured to generate RWP coding configuration of each of the independent frames by coding parameters of the respective one of the independent frames, wherein the RWP coding configuration of the independent frames includes the parameters to be unpacked to restore the video;
  • each of the first type of the dependent frames configured to generate RWP coding configuration of the dependent frame by coding parameters of the dependent frame based on difference and dependency between the parameters of the dependent frame and the parameters of an independent frame used as a reference for the coding of the dependent frame.
  • a fourth aspect according to embodiments of the present disclosure provides a video decoding device.
  • the device includes:
  • a first obtaining module configured to obtain parameters of each of independent frames by unpacking a RWP coding configuration of the respective independent frame
  • a second obtaining module for each dependent frames, configured to obtain parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame, wherein the dependent frame at least includes a first type dependent frames;
  • an unpacking module configured to unpack frames of the video, at least based on the parameters of the independent frames and the parameters of the first type of the dependent frames.
  • a fifth aspect according to embodiments of the present disclosure provides a processing device.
  • the device at least includes: a processor and a memory for storing executable instructions capable of running on the processor.
  • the processor When executing the executable instructions, the processor performs steps of the above coding method or steps of the above decoding method.
  • a sixth aspect according to embodiments of the present disclosure provides a non-transitory computer storage medium containing executable computer instructions for performing steps of the above coding method or steps of the above decoding method.
  • parameters of frames in a video are coded based on dependency established at least between the first type of the independent frames and dependent frames, if parameters of the dependent frames are the same as parameters of the first type of the independent frames, the same parameters in the dependent frames do not need to be coded in the RWP coding configurations of the dependent frames any more. Therefore, comparing with coding all parameters of the dependent frames, the signaling overhead of the dependent frames is reduced, and thus, the amount of signaling overhead of the whole video is reduced.
  • FIG. 1 is a flow chart of a coding method provided by embodiments of the present disclosure.
  • FIG. 1 is a flow chart of a coding method provided by embodiments of the present disclosure.
  • FIG. 2 is an application of RWP to equirectangular projection (ERP) image.
  • FIG. 3 is a flow chart of a coding method provided by embodiments of the present disclosure.
  • FIG. 4 is a flow chart of a decoding method provided by embodiments of the present disclosure.
  • FIG. 5 is a flow chart of a decoding method provided by embodiments of the present disclosure.
  • FIG. 6 is a structural diagram of a coding device provided by embodiments of the present disclosure.
  • FIG. 7 is a structural diagram of a decoding device provided by embodiments of the present disclosure.
  • FIG. 8 is a schematic diagram of a hardware entity of a coding or decoding device provided by embodiments of the present disclosure.
  • Embodiments of the present disclosure provide a video coding method. As illustrated in FIG. 1, the method includes:
  • RWP coding configuration of the dependent frame by coding parameters of the dependent frame based on difference and dependency between the parameters of the dependent frame and the parameters of an independent frame used as a reference for the coding of the dependent frame.
  • the above steps provide a method for coding a video.
  • the video includes at least two frames.
  • the video may be an OMAF 360° video.
  • a typical OMAF 360° video is a video, which may be a stereoscopic video, and supports three degrees of freedom (3DOF) navigation including yaw, roll, and pitch movements.
  • 3DOF degrees of freedom
  • the OMAF 360° videos can be used in virtual reality (VR) technology and/or augmented reality (AR) technology. And the OMAF 360° videos include the following aspects:
  • the coordinate system consists of a unit sphere and three coordinate axes, namely the x (back-to-front) axis, the y (lateral, side-to-side) axis, and the z (vertical, up) axis. From a user's view perspective, he or she is looking outward from the center towards an inside surface of the sphere;
  • the projection method relates to geometric operational processes used at the content production side for generating two dimensional (2D) video pictures from the sphere signal, the result of stitching of video signals captured by multiple cameras;
  • the RWP method allows building a packed image from the projected image within which some regions in the projected picture are given more pixels in the packed picture in order to improve their visual quality.
  • ISOBMFF ISO Base Media File Format
  • the RWP method allows dividing a projected picture, which has a representation format specified by an omnidirectional video projection format, into rectangular regions and applying transformations such as resizing, mirroring or rotation on regions.
  • a packed picture results from applying RWP on the projected picture.
  • RWP can only be defined statically. Static RWP merely allows regions in the packed picture and projected picture to be defined once and remain unchanged for the entire duration of the OMAF application.
  • OMAF is a system standard developed by MPEG.
  • a frame of a video refers to at least one picture such as a projected picture or a packed pictured. Sometimes, a frame of a video also refers to an audio. In the present disclosure, the frame at least refers to picture, but there is no limit to whether the frame also includes audio.
  • the projected picture is a picture of an omnidirectional video, and the video may have a format specified by OMAF, which may be regarded as a sphere picture.
  • the projected picture is a picture of a 3D video with a viewing angle less than 360 degrees, accordingly the projected picture may be regarded as a half-sphere picture or a fan-shaped picture as required.
  • a packed picture with regions is obtained.
  • Parameters can be used for describing the frame and/or the regions of the frame. And according to the object described, the parameters can be classified into frame parameters and region parameters.
  • the present technical disclosure concerns the possibility to define dynamic RWP in an OMAF application and proposes mechanisms to optimize the signaling of such dynamic RWP.
  • the first version of OMAF introduced RWP as a tool that allows dividing the projected picture into rectangular regions and then applying transformations such as resizing, mirroring or rotation to regions before packing them into the packed picture. In particular, this allows allocating more pixels to region that matters the most in the projected picture when building the packed picture.
  • FIG. 2 shows a packed picture in a rectangle, which is divided into several regions, and these regions correspond to the different area or position in the packed picture.
  • RWP is used to distribute more pixels (and therefore give more quality) to the front of the 360 video while moderately reducing the quality of left, right and back regions and drastically reducing the quality of top and bottom regions.
  • the frame parameters are parameters that describe attributes or situations about an entire frame, such as a size of a projected picture, a size of a packed picture, etc.
  • the region parameters are parameters that describer a region included in a frame, such as a size of a region, a projected location of a region in a sphere, etc.
  • RWP coding configuration of frames is obtained by at least coding the above two kinds of parameters and then transmitted to a decoder, which can restore the original video by decoding the RWP coding configuration.
  • the size of the picture may include the width of the picture of a frame and/or the height of the picture of a frame.
  • packed frames of the video are classified at least into the dependent frames and the first type of the dependent frames.
  • Parameters of the independent frame need to be coded to generate RWP coding configuration of the independent frame.
  • the coding on the independent frame here may be full coding, that is, coding of all of the parameters required for decoding the independent frame, and the RWP coding configuration of the independent frame may be called a full RWP coding configuration.
  • the dependent frame may have some parameters that are the same as the parameters of the independent frames, and then these same parameters can be inherited from the independent frames. This inheritance relationship is described as dependency.
  • the dependent frame may have some parameters that differ from the parameters of the independent frame, and then these different parameters refer to the above difference.
  • the RWP coding configuration of the dependent frames are coded according to the difference and dependency between the independent frame and the dependent frame, it means that the parameters reflecting the difference without inheritance relationship can be coded into the RWP coding configuration of the dependent frame, while the parameters inherited from the independent frames can be omitted in the RWP coding configuration of the dependent frames, then the amount of signaling overhead of the dependent frames is reduced and more compact signaling which carries more information by a smaller number of bits is generated.
  • the above independent frames include:
  • Each of the first type of the independent frames can establish dependency with the respective one of the dependent frames to be processed.
  • one of the first type of the independent frames may be selected as a reference for establishing dependency with the dependent frame.
  • the second type of independent frames refer to another kind of independent frame, of which the RWP coding configuration will carry all parameters needed to be decoded. While a difference between the second type of independent frames and the first type of the independent frames is that each of the second type of independent frames is desired to establish dependency with an immediately next dependent frame.
  • the second type of independent frames may be set in a case where parameters of frames significantly change in a very short period of time.
  • the RWP coding configuration of each of the independent frames has a frame-type flag
  • the frame-type flag of each of the first type of the independent frames has a first value
  • the frame-type flag of each of the second type of the independent frames has a second value
  • the second value differs from the first value.
  • the frame-type flag may be used to distinguish the type of frames with different values. That is to say, different values of the frame-type flag correspond to different types of the indicated frame.
  • the frame-type flag can distinguish the type of the independent frames at least.
  • the RWP coding configuration of each of the first type of the independent frames includes: a frame ID assigned to the respective one of the first type of the independent frames.
  • any of them may be selected as a reference for a subsequent dependent frame in the video to be coded for indicating the dependency easily.
  • a frame ID may be a frame number of one of the first type of the independent frames in the video or a frame number of each of frames in the video, configured for representing its place in the plurality of the first type of independent frames.
  • the RWP coding configuration of each of the first type of the dependent frames includes: a frame ID of the respective one of the first type of the independent frames to be depended on to indicate frames’ dependency.
  • a frame ID needs to be added into the generated RWP coding configuration of the dependent frame to indicate which independent frame is being referred to by the dependent frame.
  • the dependent frames further include a second type of the dependent frames, and the method further include:
  • RWP coding configuration of the dependent frame by coding parameters of the dependent frame based on difference and dependency between the parameters of the dependent frame and the parameters of a previous frame, which is immediately before and establishes the dependency with the dependent frame.
  • Both of the first type of the dependent frames and the second type of the dependent frames are dependent frames, and both of the RWP coding configurations of them can be coded according to the difference and dependency between them and the frame to be depended.
  • the difference between the first type of the dependent frames and the second type of the dependent frames is that each of the second type of the dependent frames depends on an immediately previous frame, and does not care about the type of the immediately previous frame, which may not be limited to the first type of the independent frames or the second type of the independent frames.
  • the current second type of dependent frame can also refer to the previous frame, that is, the dependent frame.
  • each of the above second type of the dependent frames can use an immediately previous frame as a reference. Furthermore, because parameters of adjacent projected frames are usually close to each other, signaling overhead may be decreased as much as possible in the coding process of the second type of dependent frames.
  • a type of the previous frame can be any one of the first type of the independent frames, the second type of the independent frames, the first type of the dependent frames, and the second type of the dependent frames.
  • An immediately previous frame of the second type of dependent frame may be an independent frame or a dependent frame, but the type of the immediately previous frame is not necessarily limited in the coding process.
  • the independent frame may be the first type or the second type.
  • the RWP coding configuration of each of the dependent frames includes a frame-type flag
  • the third value indicates that the dependent frames are the first type of the dependent frames
  • the fourth value indicates that the dependent frames are the second type of the dependent frames.
  • a frame-type flag same as that used for the independent frames is used for distinguishing the type of the above dependent frames.
  • a third value is used to indicate the first type of dependent frames, whereas a fourth value is used to indicate the second type of dependent frames.
  • the fourth value differs from the third value. Optically, the fourth value differs from both of the first value and the second value, and the third value also differs from both of the first value and the second value.
  • the frame-type flag can also distinguish the types of the dependent frames, that is to say, the frame-type flag can be used to indicate the type both of the independent frames and dependent frames.
  • the four values of the frame-type flag may be represented in table 1:
  • the RWP coding configuration of the dependent frame includes: at least one frame-inherited flag, which indicates that the frame parameters of the frame to be depended on are inherited; or
  • the RWP coding configuration of the dependent frame includes: at least one frame-inherited flag, which indicates that the frame parameters of the frame to be depended on are not inherited.
  • RWP coding configuration of the dependent frames can inherit frame parameters to be depended on.
  • a frame-inherited flag is introduced in the RWP coding configuration to indicate whether to inherit frame parameters.
  • Frame parameters are actually parameters of the entire picture of the frame, such as a size of the picture.
  • the size of the picture may include the width of the picture of a frame and/or the height of the picture of a frame.
  • the frame-inherited flag includes:
  • a first type of the frame-inherited flag which indicates whether a width and a height of the projected picture of the frame to be depended on is inherited or not;
  • a second type of the frame-inherited flag which indicates whether a width and a height of the packed picture of the frame to be depended on is inherited or not.
  • Frame-inherited flags can also include two types for indicating whether to inherit width and height parameters such as widths, heights, etc. of projected pictures and packed pictures, respectively.
  • the method further includes,
  • frame parameters of a dependent frame are not the same as that of a frame to be depended on, the frame parameters of the dependent frame may be coded directly, without inheriting the frame parameters of the frame to be depended on.
  • the RWP coding configuration of each of the dependent frames includes: a region-inherited flag, which indicates whether at least one region of the respective frame to be depended on are inherited or not.
  • a frame may be divided into multiple regions, each of which can be described by one or more region parameters.
  • region parameters of an independent frame are being coded, parameters required for decoding will be coded into the RWP coding configuration of the independent frames.
  • region parameters of a dependent frame are being coded, regions parameters that differ from that of a frame to be depended on will be coded into the RWP coding configuration of the dependent frames.
  • a region-inherited flag is set in RWP coding configuration based on regions so as to indicate whether at least one region of an independent frame to be depended on will be inherited by the dependent frame.
  • region parameters of the frame to be depended on cannot be inherited.
  • a region-inherited flag is set to have a value indicating the region corresponding to the region-inherited flag is not inherited.
  • at least one region parameter of a region of a dependent frame is the same as that of a region in a frame to be depended on, at least one region parameter of the frame to be depended on may be inherited.
  • a region-inherited flag can be set to have a value indicating at least one region will be inherited.
  • the RWP coding configuration of the dependent frame includes region parameters required to decode the respective region of the dependent frame.
  • a region-inherited flag is set to have a value indicating a region is not inherited, and region parameters of the region corresponding to the region-inherited flag need to be coded in the RWP coding configuration of the dependent frames.
  • one frame to be depended on has N regions, one dependent frame has M regions, and N and M are positive integers; and
  • the RWP coding configuration of the dependent frame includes:
  • the i is an integer, more than or equal to 0 and less than N
  • the j is an integer, greater than or equal to 0 and less than M.
  • a region ID is assigned at least to the first type of the independent frames.
  • Both i and j can be number of a region in the respective frame. Because i may be equal to or not equal to j, then the regions’ dependency can be more flexible, and the regions’ dependency can be performed in a fixed mode. If the regions’ dependency can be more flexible, regions’ dependency can be formed between the two most similar regions coming from the independent frame and dependent frame, then more signaling overhead can be reduced.
  • one frame to be depended on has N regions, one dependent frame has M regions, and N and M are positive integers; and
  • the RWP coding configuration of the dependent frame indicates, by a parameter-inherited flag, which of the region parameters of the i th region of the frame to be depended on are inherited, wherein, the i is an integer, more than or equal to 0 and less than N, and less than M.
  • the region ID used to mark which region to be dependent on can be omitted. That is to say, even there is no region ID indicating regions’ dependency, the above solution can also lead to a successfully regions’ dependency execution, as the regions’ dependency between regions can be determined in sequence.
  • the RWP coding configuration of the dependent frame indicates, by a parameter-inherited flag, which of the region parameters of the i th region of the frame to be depended on are inherited, wherein, the i is an integer, more than or equal to 0 and less than N, and less than M.
  • An i th region of a dependent frame establishes dependency with an i th region of a frame to be depended on.
  • a region of a dependent frame has a regions’ dependency with a region in the frame to be depended on, a parameter-inherited flag is configured to indicate which region parameters are to be depended on.
  • each of regions of a dependent frame has dependency with a corresponding region of a frame to be depended on. At this time, regions of the dependent frame can be processed accordingly.
  • the region parameters include but not limited to at least one of the following region parameters:
  • a size of a region including the width of the region and/or the height of the region
  • a transform type including rotating and/or mirroring etc.
  • the RWP coding configuration of the dependent frame when M is less than N, further includes: a region-discarded flag, present in N minus M regions parameters, which is configured to indicate discarding of a region, wherein the region is a region in the frame to be depended on, but not referenced by any region in the dependent frame; and
  • the RWP coding configuration of the dependent frame includes region parameters required to decode the last M-N regions of the respective dependent frame.
  • the RWP coding configuration of each of the additional regions may only include a region-discarded flag for indicating that there is no regions’ dependency with an indicated region-discarded flag.
  • a dependent frame When N is less than M, a dependent frame has more regions. In processing for an (N+1) th region to an M th region, none of the regions of the frame to be depended on can be referred to, and thus, it is impossible to compare a region from the (N+1) th region to the M th region with any of the regions of the frame to be depended on.
  • the excessive regions in the dependent frame do not have parameters to be inherited, and thus, region parameters of these excessive regions may be coded directly.
  • the step of classifying the frames of the video into the independent frames and the dependent frames includes:
  • the first frame In the coding process, multiple frames of the video need to be processed. Because no frame can be depended on for a first projected frame, the first frame needs to be completely coded. That is to say, the first frame is set to be one of the first type of independent frames.
  • multiple independent frames may be set in a specified number of intervals or time intervals, such as a preset seconds or a preset frames, and each of the independent frames may be completely coded.
  • a location of an independent frame may be determined by a stream switching/access point, so as to ensure there is at least one independent frame that is completed coded when a data stream changes remarkably, and avoid significant difference between a dependent frame and a frame to be depended on.
  • Embodiments of the present disclosure further provide a video decoding method. As illustrated in FIG. 4, the method includes:
  • the dependent frame for each of dependent frames, obtaining parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame, wherein the dependent frame at least includes a first type of dependent frames;
  • unpacking frames of the video at least based on the parameters of the independent frames and the parameters of the first type of the dependent frames.
  • the obtained RWP coding configuration needs to be unpacked, so as to acquire parameters of independent frames.
  • the parameters of the dependent frames should be decoded by combining the RWP coding configuration of the dependent frames and the RWP coding configuration of the frame that is depended on.
  • the video is unpacked based on the parameters of the independent frames and the parameters of the dependent frames, so as to restore pictures of the original video to be displayed.
  • the RWP coding configuration of the dependent frame is coded based on parameters of the independent frame, much of signaling overhead may be stored, the number of signaling received by a decoder may be reduced as many as possible, thereby decreasing transmission pressure, storing the use of storage space, and realizing the dynamic decoding on RWP coding configuration.
  • the step of obtaining parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame includes:
  • a frame-inherited flag can be configured to determine whether a current dependent frame inherits frame parameters of a frame that is depended on. When it is determined that the dependent frame inherits the frame parameters of the frame that is depended on, the dependent frame needs to be decoded, at least based on the frame parameters of the frame that is depended on. If the dependent frame does not inherit the frame parameters of the frame that is depended on, the frame parameters of the dependent frame are directly decoded according to the RWP coding configuration of the dependent frame.
  • decoding on the frame may be processed based on frame parameters, without the use of an amount of signaling overhead or repeated processes of decoding on same parameters.
  • the frame parameter includes but is not limited to the width of the projected picture, the height of the projected picture, the width of the packed picture, and the height of the packed picture, etc.
  • the step of unpacking frames of the video further includes:
  • the above-mentioned frame parameters refer to parameters belonging to each frame of a video.
  • a size of a picture of a frame of a video may be determined by frame parameters. Then, decoding on the frame is continued to obtain relevant parameters of the picture.
  • the size of a region includes the width of the region and/or the height of the region.
  • the step of obtaining the at least one frame parameter of the dependent frame, from the RWP coding configuration of the frame that is depended on includes:
  • a first type of the frame-inherited flag in the RWP coding configuration of the dependent frame indicates a height and a width of a projected picture of the frame that is depended on is inherited, obtaining the inherited height and width of the projected picture of the dependent frame, from the RWP coding configuration of the frame that is depended on;
  • a second type of the frame-inherited flag in the RWP coding configuration of the dependent frame indicates a height and a width of a packed picture of the frame that is depended on is inherited, obtaining the inherited height and width of the packed picture of the dependent frame, from the RWP coding configuration of the dependent frame.
  • the above-mentioned frame parameters may include width parameters and height parameters of projected frames, and may also include width parameters and height parameters of packed frames.
  • a value or a type of a frame-inherited flag may be configured to determine whether a dependent frame inherits frame parameters of a frame that is depended on and which frame parameters are inherited.
  • the method further includes:
  • first type of the dependent frames can depend on any one of the first type of the independent frames, and one of the second type of the dependent frames can depend on an immediately previous frame, and thus it is enough that the decoder can save the first type of the independent frames and the immediately previous frame.
  • the frame-type flag has a first value, then the first type of the independent frame can be recognized by the frame-type flag clearly and easily.
  • the immediately previous frame is just a previous frame just before the current frame to be decoded and it can be recognized by decoder without any doubts.
  • decoding on the dependent frame may be processed based on the RWP coding configuration of the previous frame and the RWP coding configuration of the dependent frame that is being decoded. If a frame that is depended on by a dependent frame is one of the first type of the independent frames, decoding on the dependent frame may be processed based on the RWP coding configuration of the independent frame that has been stored and the RWP coding configuration of the dependent frame that is being decoded.
  • the step of obtaining parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame includes:
  • the step of unpacking frames of the video further includes:
  • the above-mentioned dependent frame may also be one of the second type of dependent frames, which is a dependent frame that only refers to an immediately previous frame; whereas, one of the first type of dependent frames may refer to any of independent frames.
  • decoding on a dependent frame is also required to be based on one of RWP coding configuration of the second type of dependent frames as well as RWP coding configuration of the previous frame.
  • the previous frame can be any one of the first type of the independent frames, the second type of the independent frames, the first type of the dependent frames, and the second type of the dependent frames.
  • An immediately previous frame of one of the second type of dependent frames may be any frame type. That is to say, one of the first type of independent frames may have dependency with any further frame, and thus, it may have dependency with an immediately next frame; and one of the second type of independent frames can only have dependency with an immediately next frame, which means one of the second type of independent frames can be a reference of one of the second type of dependent frames; and one of the first type of dependent frames and the second type of dependent frames may also has dependency with one of the second type of dependent frames.
  • the method further includes:
  • a frame-type flag of each of the second type of the dependent frames has a third value.
  • a respective one of the first type of independent frames that is depended on by the dependent frame needs to be determined, by an frame ID in the RWP coding configuration of the dependent frame which is stored before the decoding of the current dependent frame.
  • the first type of independent frames is distinguished by a frame ID, and thus, the fame ID in the RWP coding configuration of the dependent frame may correspond to the frame ID of the respective one of the first type of the independent frames.
  • a frame-type flag of each of the second type of the dependent frames has a fourth value.
  • decoding on the dependent frame may be processed directly based on the RWP coding configuration of the dependent frame and the RWP coding configuration of an immediately previous frame, so as to obtain parameters of the dependent frame and restore pictures of the video at the end.
  • the step of obtaining parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame includes:
  • a region-inherited flag in the RWP coding configuration of a dependent frame indicates at least one region of the frame that is depended on are inherited, obtaining the region parameters of the inherited region, based on the RWP coding configuration of the dependent frame and the RWP coding configuration of the respective frame that is depended on.
  • the process proceeds to decoding on region parameters.
  • a region-inherited flag it is determined, by a region-inherited flag, whether a region of a frame that is depended on is inherited. If it is determined that a region of a frame that is depended on is inherited, it means that in the RWP coding configuration of the dependent frame, at least one region parameter is inherited from the frame that is depended on.
  • region-inherited flag indicates that a region does not have region parameters that are inherited
  • the region may be directly decoded
  • a region-inherited flag indicates a region has region parameters that are inherited
  • the region needs to be decoded based on the RWP coding configuration of the frame that is depended on and the RWP coding configuration of the current dependent frame, so as to obtain region parameters of the region.
  • the decoding may be processed by determining whether region parameters are to be inherited. Therefore, efficiency of the decoding process may be improved.
  • the step of obtaining the region parameters of the inherited region, based on the RWP coding configuration of the dependent frame and the RWP coding configuration of the respective frame that is depended on includes:
  • determination for regions’ dependency includes two types: one is that a part of region parameters of the inherited region may be inherited from the frame that is depended on, and the other part of the region parameters of the inherited region may be different from that of the frame that is depended on, which are obtained by decoding the RWP coding configuration of the dependent frame directly. The other is that all region parameters of the inherited region are inherited from the frame that is depended on.
  • an inherited region of the dependent frame it is also required to recognize whether each region parameter is inherited from a frame that is depended on by a parameter-inherited flag. If a region parameter is inherited from the frame that is depended on, the region parameter needs to be decoded based on the frame that is depended on; otherwise, the region parameter is directly decoded based on the RWP coding configuration of the dependent frame that is being coded.
  • the method before the step of the obtaining the region parameters, the method further includes:
  • determining an m th region in the frame that is depended on is inherited, when the region-inherited flag of an m th region in the dependent frame indicates having regions’ dependency, wherein m is zero or a positive integer, and m is less than or equal to M-1, M being a smaller of a total number of regions in the dependent frame and a total number of regions in the frame that is depended on.
  • the determination for dependency between a region of a dependent frame and a region of a frame that is depended on may be implemented in two ways. If each of regions carries a region ID to indicate which two regions have a dependency relationship, the regions’ dependency between regions can be directly determined by a region ID when a region-inherited flag indicates having a regions’ dependency.
  • the regions’ dependency between regions is determined according to the number of the current region when the region-inherited flag indicating having the p th region. For example, if the current region is the p th region of the dependent frame, the region-inherited flag of the p th region having a regions’ dependency, it means that the p th region of the dependent frame has a dependency with the p th region of the frame that is depended on.
  • the method further includes:
  • the RWP coding configuration of one of the dependent frames further includes a region-discarded flag, skipping comparing a region in the frame that is depended on indicated by the region-discarded flag with a region in the dependent frame.
  • the number of regions of a dependent frame may be different from that of a frame that is depended on, and thus, in the coding process, if the number of regions of a frame to be depended on is larger than that of a dependent frame; additional regions are added into RWP coding configuration of the dependent frame.
  • additional regions are added into RWP coding configuration of the dependent frame.
  • none of region parameters are inherited, and coding on the region parameters is not processed, either. Meanwhile, a region-discarded flag is added to mark the added region. Therefore, in the decoding process, when the decoding process proceeds to a region with a region-discarded flag, decoding on the region is skipped, and the process proceeds to the next region.
  • Embodiments of the present disclosure further provide a video coding device.
  • the coding device 600 includes:
  • a classifying module 601 configured for classifying frames of the video into independent frames and dependent frames, which include a first type of the dependent frames;
  • a first coding module 602 configured to generate RWP coding configuration of each of the independent frames by coding parameters of the respective one of the independent frames, wherein the RWP coding configuration of the independent frames includes the parameters to be unpacked to restore the video;
  • a second coding module 603 configured to generate RWP coding configuration of the dependent frame by coding parameters of the dependent frame based on difference and dependency between the parameters of the dependent frame and the parameters of an independent frame used as a reference for the coding of the dependent frame, for each of the first type of the dependent frames.
  • the independent frames include:
  • the RWP coding configuration of each of the independent frames has a frame-type flag
  • the frame-type flag of each of the first type of the independent frames has a first value
  • the frame-type flag of each of the second type of the independent frames has a second value
  • the RWP coding configuration of each of the first type of the independent frames includes: a frame ID assigned to the respective one of the first type of the independent frames.
  • the RWP coding configuration of each of the first type of the dependent frames includes: a frame ID of the respective one of the first type of the independent frames to be depended on to indicate frames’ dependency.
  • the dependent frames further include a second type of the dependent frames
  • the device further includes:
  • a third coding module configured to generate RWP coding configuration of the dependent frame by coding parameters of the dependent frame based on difference and dependency between the parameters of the dependent frame and the parameters of a previous frame, which is immediately before and establishes the dependency with the dependent frame, for each of the second type of the dependent frames.
  • a type of the previous frame can be any one of the first type of the independent frames, the second type of the independent frames, the first type of the dependent frames, and the second type of the dependent frames.
  • the RWP coding configuration of each of the dependent frames includes a frame-type flag
  • the third value indicates that the dependent frames are the first type of the dependent frames
  • the fourth value indicates that the dependent frames are the second type of the dependent frames.
  • the RWP coding configuration of the dependent frame when a dependent frame inherits frame parameters of the frame to be depended on, includes: at least one frame-inherited flag, which indicates that the frame parameters of the frame to be depended on are inherited; or
  • the RWP coding configuration of the dependent frame includes: at least one frame-inherited flag, which indicates that the frame parameters of the frame to be depended on are not inherited.
  • the frame-inherited flag includes:
  • a first type of the frame-inherited flag which indicates whether a height and a width of the projected picture of the frame to be depended on is inherited or not;
  • a second type of the frame-inherited flag which indicates whether a height and a width of the packed picture of the frame to be depended on is inherited or not.
  • the device further includes,
  • a fourth coding module configured to code the frame parameters into the RWP coding configuration of the dependent frame, when the dependent frame does not inherit the frame parameters.
  • the RWP coding configuration of each of the dependent frames includes: a region-inherited flag, which indicates whether at least part of regions of the respective frame to be depended on are inherited or not.
  • the RWP coding configuration of the dependent frame includes region parameters required to decoding the respective region of the dependent frame.
  • one frame to be depended on has N regions, one dependent frame has M regions, and N and M are positive integers; and
  • the RWP coding configuration of the dependent frame includes:
  • the i is an integer, more than or equal to 0 and less than N
  • the j is an integer, more than or equal to 0 and less than M.
  • one frame to be depended on has N regions, one dependent frame has M regions, and N and M are positive integers; and
  • the RWP coding configuration of the dependent frame indicates, by a parameter-inherited flag, which of the region parameters of the i th region of the frame to be depended on are inherited, wherein, the i is an integer, more than or equal to 0 and less than N, and less than M.
  • the RWP coding configuration of the dependent frame when M is less than N, further includes: a region-discarded flag, present in N-M regions parameters, which is configured to indicate discarding of a region, wherein the region is a region in the frame to be depended on, but not referenced by any region in the dependent frame; and
  • the RWP coding configuration of the dependent frame includes parameters required to decoding the last M-N regions of the respective dependent frame.
  • the classifying module includes:
  • a first setting submodule configured to set a first frame of the frames to be an independent frame
  • a second setting submodule after the first frame, configured to set an independent frame in a regular interval of a specified number of the dependent frames
  • a third setting submodule after the first frame, configured to set an independent frame based on a stream switching point, and setting the frames except for the independent frames to be the dependent frames.
  • Embodiments of the present disclosure further provide a video decoding device. As illustrated in FIG. 7, the decoding device 700 includes:
  • a first obtaining module 701 configured to obtain parameters of each of independent frames by unpacking a RWP coding configuration of the respective independent frame
  • a second obtaining module 702 for each dependent frames, configured to obtain parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame, wherein the dependent frame at least includes a first type dependent frames;
  • an unpacking module 703 configured to unpack frames of the video, at least based on the parameters of the independent frames and the parameters of the first type of the dependent frames.
  • the second obtaining module includes:
  • a first obtaining submodule configured to obtain the at least one frame parameter of the dependent frame, from the RWP coding configuration of the frame that is depended on, when a frame-inherited flag in the RWP coding configuration of an dependent frame indicates at least one frame parameter of the respective frame that is depended on is inherited;
  • a second obtaining submodule configured to obtain the frame parameters of the dependent frame, from the RWP coding configuration of the dependent frame, when the frame-inherited flag in the RWP coding configuration of one dependent frame indicates none of the frame parameter of respective frame that is depended on is inherited.
  • the unpacking module further configured to unpack frames of the video further based on the frame parameter obtained.
  • the first obtaining submodule further configured to,
  • a second type of the frame-inherited flag in the RWP coding configuration of the dependent frame indicates a height and a width of a packed picture of the frame that is depended on is inherited, obtaining the inherited height and width of the packed picture of the dependent frame, from the RWP coding configuration of the dependent frame.
  • the device further includes:
  • a first storing module configured to store the RWP coding configuration of the first type of the independent frame, when a frame-type flag of one of the independent frames has a first value
  • a second storing module configured to storing RWP coding configuration of an immediately previous frame, the immediately previous frame includes a second type of the independent frame, and
  • the second obtaining module includes:
  • a third obtaining submodule configured to obtain parameters of the dependent frame by decoding RWP coding configuration of the dependent frame, based on the parameters of a previous frame, which is immediately before and has the dependency with each of a second type of dependent frames, and
  • the unpacking module configured to unpack frames of the video, further based on the parameters of each of the second type of the dependent frames.
  • the previous frame can be any one of the first type of the independent frames, the second type of the independent frames, the first type of the dependent frames, and the second type of the dependent frames.
  • the device further includes:
  • a first determining module configured to determine which of the first type of the independent frames is depended, by matching a frame ID stored in the RWP coding configuration of the first type of independent frame, with a frame ID indicating frame that is depended on carried in the RWP coding configuration of the respective one of the dependent frames, when a frame-type flag of the RWP coding configuration of the respective one of the dependent frames has a third value;
  • a second determining module configured to determine that the immediately previous frame before the dependent frame is depended, when a frame-type flag of the RWP coding configuration of the respective one of the dependent frames has a fourth value.
  • the second obtaining module includes:
  • a fourth obtaining submodule configured to obtain the region parameters of the inherited region, based on the RWP coding configuration of the dependent frame and the RWP coding configuration of the respective frame that is depended on, when a region-inherited flag in the RWP coding configuration of a dependent frame indicates at least one region of the frame that is depended on are inherited.
  • the fourth obtaining submodule further configured to:
  • the device further includes:
  • a third determining module configured to determine which region in the frame that is depended on is inherited, according to a region ID indicating regions’ dependency, in the RWP coding configuration of the dependent frame;
  • a fourth determining module configured to determine an m th region in the frame that is depended on is inherited, if there is no region ID indicating regions’ dependency, when the region-inherited flag of an m th region in the dependent frame indicates having regions’ dependency, wherein the m is zero or a positive integer, and the m is less than or equal to M-1, the M is a smaller one between a total number of regions in the dependent frame and a total number of regions in the frame that is depended on.
  • the device further includes:
  • a stopping module configured to skip comparing a region in the frame that is depended on indicated by the region-discarded flag with a region in the dependent frame when the RWP coding configuration of each of the dependent frames further includes a region-discarded flag.
  • the technical solution of the embodiments of the present disclosure may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • Either an encoding or decoding device performs all or part of the method of the various embodiments of the present disclosure.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM) , a magnetic disk, or an optical disk.
  • embodiments of the present disclosure provide a terminal, including a memory and a processor, where the memory stores a computer program executable on a processor, and when the processor executes the program, the steps of the method provided in the foregoing embodiments are implemented
  • embodiments of the present disclosure provide a computer readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the method provided by the foregoing embodiment are implemented.
  • FIG. 8 is a schematic diagram of a hardware entity of a coding or decoding device according to an embodiment of the present disclosure.
  • the hardware entity of the computer device 800 includes: a processor 801, an I/O interface 802, and a memory 803.
  • the processor 801 typically controls the overall operation of the coding or decoding device 800.
  • the I/O interface 802 can enable a coding or decoding device to communicate with other terminals or servers over a network.
  • the memory 803 is configured to store instructions and applications executable by the processor 801, and may also cache data to be processed or processed by the processor 801 and various modules in the coding or decoding device 800 (e.g., image data, audio data, voice communication data, and Video communication data) can be realized by flash memory (FLASH) or random access memory (RAM) .
  • FLASH flash memory
  • RAM random access memory
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are only schematic.
  • the division of the modules is only a logical function division.
  • there may be another division manner for example, multiple modules or components may be combined, or may be integrated into another system, or some features may be ignored or not executed.
  • the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or modules, and may be electrical, mechanical or other forms.
  • modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed to multiple network modules; some or all of the modules may be selected according to actual needs to achieve the purpose of the solutions of the embodiments.
  • each functional module in each embodiment of the present disclosure may be integrated into one processing module, or each module may be separately used as one module, or two or more modules may be integrated into one module; the module can be implemented in the form of hardware or in the form of hardware plus software function modules.
  • the foregoing program may be stored in a computer storage medium, and when executed, the program includes the foregoing steps of the method embodiment; and the foregoing storage medium includes: a removable storage device, a read only memory (ROM) , a magnetic disk, or an optical disk, and the like, which can store program codes.
  • ROM read only memory
  • the above-described integrated unit of the present disclosure may be stored in a computer storage medium if it is implemented in the form of a software function module and sold or used as a standalone product.
  • the technical solution of the embodiments of the present disclosure may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a coding or decoding device is caused to perform all or part of the method of the various embodiments of the present disclosure.
  • the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

Provided are a method and device for coding, decoding and storage medium. The coding method includes: classifying frames of the video into independent frames and dependent frames, which comprise a first type of the dependent frames; generating region wise packing (RWP) coding configuration of each of the independent frames by coding parameters of the respective one of the independent frames, wherein the RWP coding configuration of the independent frames comprises the parameters to be unpacked to restore the video; and for each of the first type of the dependent frames, generating RWP coding configuration of the dependent frame by coding parameters of the dependent frame based on difference and dependency between the parameters of the dependent frame and the parameters of an independent frame used as a reference for the coding of the dependent frame.

Description

METHOD AND DEVICE FOR CODING, DECODING AND STORAGE MEDIUM TECHNICAL FIELD
The disclosure relates to the field of video technology but is not limited to the field of video technology, and in particular, relates to a method and device for coding, decoding and storage medium.
BACKGROUND
Omnidirectional Media Format (OMAF) is known as an MPEG-I (Moving Picture Experts Group) standard. As most likely the first industry standard on virtual reality (VR) , the development of OMAF was derived from a desire in VR standardization of MPEG. In particular, OMAF defines a media format that enables omnidirectional media applications, which focus on 360° video, images, audio, etc. A projection and rectangular region-wise packing method is proposed for coding the 360° video, but this method results in a large signaling overhead.
SUMMARY
The present disclosure provides a method and device for coding, decoding and storage medium.
A first aspect according to embodiments of the present disclosure provides a video coding method. The method includes:
classifying frames of the video into independent frames and dependent frames, which include a first type of the dependent frames;
generating region wise packing (RWP) coding configuration of each of the independent frames by coding parameters of the respective one of the independent frames, wherein the RWP coding configuration of the independent frames includes the parameters to be unpacked to restore the video; and
for each of the first type of the dependent frames, generating RWP coding  configuration of the dependent frame by coding parameters of the dependent frame based on difference and dependency between the parameters of the dependent frame and the parameters of an independent frame used as a reference for the coding of the dependent frame.
A second aspect according to embodiments of the present disclosure provides a video decoding method. The method includes:
obtaining parameters of each of independent frames by unpacking a RWP coding configuration of the respective independent frame;
for each dependent frames, obtaining parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame, wherein the dependent frame at least includes a first type dependent frames; and
unpacking frames of the video, at least based on the parameters of the independent frames and the parameters of the first type of the dependent frames.
A third aspect according to embodiments of the present disclosure provides a video coding device. The device includes:
a classifying module, configured to classify frames of the video into independent frames and dependent frames, which include a first type of the dependent frames;
a first coding module, configured to generate RWP coding configuration of each of the independent frames by coding parameters of the respective one of the independent frames, wherein the RWP coding configuration of the independent frames includes the parameters to be unpacked to restore the video; and
a second coding module, each of the first type of the dependent frames, configured to generate RWP coding configuration of the dependent frame by coding parameters of the dependent frame based on difference and dependency between the parameters of the dependent frame and the parameters of an independent frame used as a reference for the coding of the dependent frame.
A fourth aspect according to embodiments of the present disclosure provides a video decoding device. The device includes:
a first obtaining module, configured to obtain parameters of each of independent frames by unpacking a RWP coding configuration of the respective independent frame;
a second obtaining module, for each dependent frames, configured to obtain parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame, wherein the dependent frame at least includes a first type dependent frames; and
an unpacking module, configured to unpack frames of the video, at least based on the parameters of the independent frames and the parameters of the first type of the dependent frames.
A fifth aspect according to embodiments of the present disclosure provides a processing device. The device at least includes: a processor and a memory for storing executable instructions capable of running on the processor. When executing the executable instructions, the processor performs steps of the above coding method or steps of the above decoding method.
A sixth aspect according to embodiments of the present disclosure provides a non-transitory computer storage medium containing executable computer instructions for performing steps of the above coding method or steps of the above decoding method.
Based on technical solutions of the embodiments of the present disclosure, parameters of frames in a video are coded based on dependency established at least between the first type of the independent frames and dependent frames, if parameters of the dependent frames are the same as parameters of the first type of the independent frames, the same parameters in the dependent frames do not need to be coded in the RWP coding configurations of the dependent frames any more. Therefore, comparing with coding all parameters of the dependent frames, the signaling overhead of the dependent frames is reduced, and thus, the amount of signaling overhead of the whole video is reduced.
BRIEF DESCRIPTION OF DRAWINGS
FIG. 1 is a flow chart of a coding method provided by embodiments of the present disclosure.
FIG. 1 is a flow chart of a coding method provided by embodiments of the present disclosure.
FIG. 2 is an application of RWP to equirectangular projection (ERP) image.
FIG. 3 is a flow chart of a coding method provided by embodiments of the present disclosure.
FIG. 4 is a flow chart of a decoding method provided by embodiments of the present disclosure.
FIG. 5 is a flow chart of a decoding method provided by embodiments of the present disclosure.
FIG. 6 is a structural diagram of a coding device provided by embodiments of the present disclosure.
FIG. 7 is a structural diagram of a decoding device provided by embodiments of the present disclosure.
FIG. 8 is a schematic diagram of a hardware entity of a coding or decoding device provided by embodiments of the present disclosure.
DETAILED DESCRIPTION
Embodiments of the present disclosure provide a video coding method. As illustrated in FIG. 1, the method includes:
101, classifying frames of the video into independent frames and dependent frames, which include a first type of the dependent frames;
102, generating RWP coding configuration of each of the independent frames by coding parameters of the respective one of the independent frames, wherein the RWP coding configuration of the independent frames includes the parameters to be unpacked to restore the video; and
103, for each of the first type of the dependent frames, generating RWP coding configuration of the dependent frame by coding parameters of the dependent frame based on difference and dependency between the parameters of the dependent frame and the parameters of an independent frame used as a reference for the coding of the dependent frame.
The above steps provide a method for coding a video.
The video includes at least two frames. In the present disclosure, the video may be an OMAF 360° video. And a typical OMAF 360° video is a video, which may be a stereoscopic video, and supports three degrees of freedom (3DOF) navigation including yaw, roll, and pitch movements.
The OMAF 360° videos can be used in virtual reality (VR) technology and/or augmented reality (AR) technology. And the OMAF 360° videos include the following aspects:
1) a coordinate system:
the coordinate system consists of a unit sphere and three coordinate axes, namely the x (back-to-front) axis, the y (lateral, side-to-side) axis, and the z (vertical, up) axis. From a user's view perspective, he or she is looking outward from the center towards an inside surface of the sphere;
2) a projection and rectangular RWP method:
the projection method relates to geometric operational processes used at the content production side for generating two dimensional (2D) video pictures from the sphere signal, the result of stitching of video signals captured by multiple cameras; The RWP method allows building a packed image from the projected image within which some regions in the projected picture are given more pixels in the packed picture in order to improve their visual quality.
3) storage of omnidirectional media and the associated metadata using the ISO Base Media File Format (ISOBMFF) ;
4) encapsulation, signaling and streaming of omnidirectional media in the dynamic adaptive streaming over HTTP (DASH) or MPEG media transport (MMT) ; and
5) media profiles and presentation profiles.
The RWP method allows dividing a projected picture, which has a representation format specified by an omnidirectional video projection format, into rectangular regions and applying transformations such as resizing, mirroring or rotation on regions. A packed picture results from applying RWP on the projected picture. However, in the first version of OMAF, RWP can only be defined statically. Static RWP merely allows regions in the packed picture and projected picture to be defined once and remain unchanged for the entire duration of the OMAF application. OMAF is a system standard developed by MPEG.
A frame of a video refers to at least one picture such as a projected picture or a packed pictured. Sometimes, a frame of a video also refers to an audio. In the present disclosure, the frame at least refers to picture, but there is no limit to whether the  frame also includes audio.
The projected picture is a picture of an omnidirectional video, and the video may have a format specified by OMAF, which may be regarded as a sphere picture.
Sometimes the projected picture is a picture of a 3D video with a viewing angle less than 360 degrees, accordingly the projected picture may be regarded as a half-sphere picture or a fan-shaped picture as required.
After performing RWP processing on the projected frame of the video, a packed picture with regions is obtained. Parameters can be used for describing the frame and/or the regions of the frame. And according to the object described, the parameters can be classified into frame parameters and region parameters.
The present technical disclosure concerns the possibility to define dynamic RWP in an OMAF application and proposes mechanisms to optimize the signaling of such dynamic RWP.
The first version of OMAF introduced RWP as a tool that allows dividing the projected picture into rectangular regions and then applying transformations such as resizing, mirroring or rotation to regions before packing them into the packed picture. In particular, this allows allocating more pixels to region that matters the most in the projected picture when building the packed picture.
FIG. 2 shows a packed picture in a rectangle, which is divided into several regions, and these regions correspond to the different area or position in the packed picture. In the example given on FIG 2, RWP is used to distribute more pixels (and therefore give more quality) to the front of the 360 video while moderately reducing the quality of left, right and back regions and drastically reducing the quality of top and bottom regions.
The frame parameters are parameters that describe attributes or situations about an entire frame, such as a size of a projected picture, a size of a packed picture, etc.
The region parameters are parameters that describer a region included in a frame, such as a size of a region, a projected location of a region in a sphere, etc. RWP coding configuration of frames is obtained by at least coding the above two kinds of parameters and then transmitted to a decoder, which can restore the original video by decoding the RWP coding configuration. The size of the picture may include  the width of the picture of a frame and/or the height of the picture of a frame.
packed frames of the video are classified at least into the dependent frames and the first type of the dependent frames. Parameters of the independent frame need to be coded to generate RWP coding configuration of the independent frame.
The coding on the independent frame here may be full coding, that is, coding of all of the parameters required for decoding the independent frame, and the RWP coding configuration of the independent frame may be called a full RWP coding configuration.
The dependent frame may have some parameters that are the same as the parameters of the independent frames, and then these same parameters can be inherited from the independent frames. This inheritance relationship is described as dependency.
And the dependent frame may have some parameters that differ from the parameters of the independent frame, and then these different parameters refer to the above difference.
Thus, if the RWP coding configuration of the dependent frames are coded according to the difference and dependency between the independent frame and the dependent frame, it means that the parameters reflecting the difference without inheritance relationship can be coded into the RWP coding configuration of the dependent frame, while the parameters inherited from the independent frames can be omitted in the RWP coding configuration of the dependent frames, then the amount of signaling overhead of the dependent frames is reduced and more compact signaling which carries more information by a smaller number of bits is generated.
In some embodiments, the above independent frames include:
a first type of the independent frames, each of which can be referenced when establishing dependency with any of the dependent frames after the respective one of the first type of the independent frames in the video; and
a second type of the independent frames, each of which can be referenced when establishing dependency with an immediate next dependent frame after the respective one of the second type of the independent frames in the video.
Each of the first type of the independent frames can establish dependency with the respective one of the dependent frames to be processed. In an actual application, there may be one or more the first type of the independent frames. When a dependent  frame is processed, one of the first type of the independent frames may be selected as a reference for establishing dependency with the dependent frame.
The second type of independent frames refer to another kind of independent frame, of which the RWP coding configuration will carry all parameters needed to be decoded. While a difference between the second type of independent frames and the first type of the independent frames is that each of the second type of independent frames is desired to establish dependency with an immediately next dependent frame.
The second type of independent frames may be set in a case where parameters of frames significantly change in a very short period of time.
By classifying independent frames into the above two types, it is able to satisfy requirements for different videos and set coding modes flexibly.
In some embodiments,
the RWP coding configuration of each of the independent frames has a frame-type flag; and
the frame-type flag of each of the first type of the independent frames has a first value, and the frame-type flag of each of the second type of the independent frames has a second value.
The second value differs from the first value.
The frame-type flag may be used to distinguish the type of frames with different values. That is to say, different values of the frame-type flag correspond to different types of the indicated frame.
In the present disclosure, the frame-type flag can distinguish the type of the independent frames at least.
In some embodiments, the RWP coding configuration of each of the first type of the independent frames includes: a frame ID assigned to the respective one of the first type of the independent frames.
As a frame ID of the first type of independent frames is set, any of them (frame IDs) may be selected as a reference for a subsequent dependent frame in the video to be coded for indicating the dependency easily. A frame ID may be a frame number of one of the first type of the independent frames in the video or a frame number of each of frames in the video, configured for representing its place in the plurality of the first type of independent frames.
In some embodiments, the RWP coding configuration of each of the first type  of the dependent frames includes: a frame ID of the respective one of the first type of the independent frames to be depended on to indicate frames’ dependency.
When one of the first type of independent frames is used as a reference for one of the first type of dependent frames, a frame ID needs to be added into the generated RWP coding configuration of the dependent frame to indicate which independent frame is being referred to by the dependent frame.
In some embodiments, as illustrated in FIG. 3, the dependent frames further include a second type of the dependent frames, and the method further include:
104, for each of the second type of the dependent frames, generating RWP coding configuration of the dependent frame by coding parameters of the dependent frame based on difference and dependency between the parameters of the dependent frame and the parameters of a previous frame, which is immediately before and establishes the dependency with the dependent frame.
Both of the first type of the dependent frames and the second type of the dependent frames are dependent frames, and both of the RWP coding configurations of them can be coded according to the difference and dependency between them and the frame to be depended.
While, the difference between the first type of the dependent frames and the second type of the dependent frames is that each of the second type of the dependent frames depends on an immediately previous frame, and does not care about the type of the immediately previous frame, which may not be limited to the first type of the independent frames or the second type of the independent frames.
For example, its immediately previous frame is a dependent frame, the current second type of dependent frame can also refer to the previous frame, that is, the dependent frame.
That is to say, each of the above second type of the dependent frames can use an immediately previous frame as a reference. Furthermore, because parameters of adjacent projected frames are usually close to each other, signaling overhead may be decreased as much as possible in the coding process of the second type of dependent frames.
In some embodiments, a type of the previous frame can be any one of the first type of the independent frames, the second type of the independent frames, the first  type of the dependent frames, and the second type of the dependent frames.
An immediately previous frame of the second type of dependent frame may be an independent frame or a dependent frame, but the type of the immediately previous frame is not necessarily limited in the coding process. When a previous frame immediately before the second type of the dependent frame is an independent frame, the independent frame may be the first type or the second type.
In some embodiments,
the RWP coding configuration of each of the dependent frames includes a frame-type flag;
when the frame-type flag has a third value, the third value indicates that the dependent frames are the first type of the dependent frames; and
when the frame-type flag has a fourth value, the fourth value indicates that the dependent frames are the second type of the dependent frames.
A frame-type flag same as that used for the independent frames is used for distinguishing the type of the above dependent frames. A third value is used to indicate the first type of dependent frames, whereas a fourth value is used to indicate the second type of dependent frames.
The fourth value differs from the third value. Optically, the fourth value differs from both of the first value and the second value, and the third value also differs from both of the first value and the second value.
The frame-type flag can also distinguish the types of the dependent frames, that is to say, the frame-type flag can be used to indicate the type both of the independent frames and dependent frames.
The four values of the frame-type flag may be represented in table 1:
Figure PCTCN2019094476-appb-000001
Figure PCTCN2019094476-appb-000002
Table 1
According to table 1, it can be seen that a frame-type flag with two bits can distinguish four types of the frames in the video clearly and easily.
In some embodiments,
when a dependent frame inherits frame parameters of the frame to be depended on, the RWP coding configuration of the dependent frame includes: at least one frame-inherited flag, which indicates that the frame parameters of the frame to be depended on are inherited; or
when a dependent frame does not inherit frame parameters, the RWP coding configuration of the dependent frame includes: at least one frame-inherited flag, which indicates that the frame parameters of the frame to be depended on are not inherited.
When a dependent frame has frame parameters same as that of a frame to be depended on correspondingly, RWP coding configuration of the dependent frames can inherit frame parameters to be depended on. In this case, a frame-inherited flag is introduced in the RWP coding configuration to indicate whether to inherit frame parameters. Frame parameters are actually parameters of the entire picture of the frame, such as a size of the picture. The size of the picture may include the width of the picture of a frame and/or the height of the picture of a frame.
In some embodiments, the frame-inherited flag includes:
a first type of the frame-inherited flag, which indicates whether a width and a height of the projected picture of the frame to be depended on is inherited or not; and
a second type of the frame-inherited flag, which indicates whether a width and a height of the packed picture of the frame to be depended on is inherited or not.
Frame-inherited flags can also include two types for indicating whether to  inherit width and height parameters such as widths, heights, etc. of projected pictures and packed pictures, respectively.
In some embodiments, the method further includes,
when the dependent frame does not inherit the frame parameters, coding the frame parameters into the RWP coding configuration of the dependent frame.
If frame parameters of a dependent frame are not the same as that of a frame to be depended on, the frame parameters of the dependent frame may be coded directly, without inheriting the frame parameters of the frame to be depended on.
In some embodiments, the RWP coding configuration of each of the dependent frames includes: a region-inherited flag, which indicates whether at least one region of the respective frame to be depended on are inherited or not.
Using RWP, a frame may be divided into multiple regions, each of which can be described by one or more region parameters. When region parameters of an independent frame are being coded, parameters required for decoding will be coded into the RWP coding configuration of the independent frames. However, when region parameters of a dependent frame are being coded, regions parameters that differ from that of a frame to be depended on will be coded into the RWP coding configuration of the dependent frames.
Here, a region-inherited flag is set in RWP coding configuration based on regions so as to indicate whether at least one region of an independent frame to be depended on will be inherited by the dependent frame. When all of region parameters of a region of a dependent frame are different from that of a frame to be depended on, region parameters of the frame to be depended on cannot be inherited. At this time, a region-inherited flag is set to have a value indicating the region corresponding to the region-inherited flag is not inherited. When at least one region parameter of a region of a dependent frame is the same as that of a region in a frame to be depended on, at least one region parameter of the frame to be depended on may be inherited. At this time, a region-inherited flag can be set to have a value indicating at least one region will be inherited.
In some embodiments, when the region-inherited flag indicates none region of the respective frame to be depended on is inherited, the RWP coding configuration of the dependent frame includes region parameters required to decode the respective region of the dependent frame.
When all of region parameters of a region of a dependent frame are different from that of a frame to be depended on, a region-inherited flag is set to have a value indicating a region is not inherited, and region parameters of the region corresponding to the region-inherited flag need to be coded in the RWP coding configuration of the dependent frames.
In some embodiments, one frame to be depended on has N regions, one dependent frame has M regions, and N and M are positive integers; and
when an i th region of one of the frames to be depended on has at least one same region parameter as that of a j th region of the respective dependent frame,
the RWP coding configuration of the dependent frame includes:
a region ID of the j th region of the frame to be depended on to indicate regions’ dependency, and a parameter-inherited flag to indicate the at least one same region parameter of the i th region of the frame to be depended on is inherited;
wherein, the i is an integer, more than or equal to 0 and less than N, and the j is an integer, greater than or equal to 0 and less than M.
In this case, as a region ID is assigned at least to the first type of the independent frames. Both i and j can be number of a region in the respective frame. Because i may be equal to or not equal to j, then the regions’ dependency can be more flexible, and the regions’ dependency can be performed in a fixed mode. If the regions’ dependency can be more flexible, regions’ dependency can be formed between the two most similar regions coming from the independent frame and dependent frame, then more signaling overhead can be reduced.
In some embodiments, one frame to be depended on has N regions, one dependent frame has M regions, and N and M are positive integers; and
when an i th region of one of the frames to be depended on has at least one same region parameter as that of an i th region of the respective dependent frame, the RWP coding configuration of the dependent frame indicates, by a parameter-inherited flag, which of the region parameters of the i th region of the frame to be depended on are inherited, wherein, the i is an integer, more than or equal to 0 and less than N, and less than M.
In this case, the region ID used to mark which region to be dependent on can be omitted. That is to say, even there is no region ID indicating regions’ dependency, the above solution can also lead to a successfully regions’ dependency execution, as  the regions’ dependency between regions can be determined in sequence.
When an i th region of one of the frames to be depended on is inherited by an i th region of the respective dependent frame, the RWP coding configuration of the dependent frame indicates, by a parameter-inherited flag, which of the region parameters of the i th region of the frame to be depended on are inherited, wherein, the i is an integer, more than or equal to 0 and less than N, and less than M.
An i th region of a dependent frame establishes dependency with an i th region of a frame to be depended on. When a region of a dependent frame has a regions’ dependency with a region in the frame to be depended on, a parameter-inherited flag is configured to indicate which region parameters are to be depended on.
When N is equal to M, each of regions of a dependent frame has dependency with a corresponding region of a frame to be depended on. At this time, regions of the dependent frame can be processed accordingly.
The region parameters include but not limited to at least one of the following region parameters:
a size of a region, including the width of the region and/or the height of the region;
a packed type of a region;
a position of a region, which indicating where the region locates in the packed picture or the projected picture,
a transform type, including rotating and/or mirroring etc.
In some embodiments, when M is less than N, the RWP coding configuration of the dependent frame further includes: a region-discarded flag, present in N minus M regions parameters, which is configured to indicate discarding of a region, wherein the region is a region in the frame to be depended on, but not referenced by any region in the dependent frame; and
when M is more than N, the RWP coding configuration of the dependent frame includes region parameters required to decode the last M-N regions of the respective dependent frame.
When N is larger than M, there are redundant regions in a frame to be depended on. A region-discarded flag is set to each of the additional regions. There are neither parameters that are needed to be coded nor parameters that can be  inherited in the additional regions. Therefore, the RWP coding configuration of each of the additional regions may only include a region-discarded flag for indicating that there is no regions’ dependency with an indicated region-discarded flag.
When N is less than M, a dependent frame has more regions. In processing for an (N+1)  th region to an M th region, none of the regions of the frame to be depended on can be referred to, and thus, it is impossible to compare a region from the (N+1)  th region to the M th region with any of the regions of the frame to be depended on. The excessive regions in the dependent frame do not have parameters to be inherited, and thus, region parameters of these excessive regions may be coded directly.
In some embodiments, the step of classifying the frames of the video into the independent frames and the dependent frames includes:
setting a first frame of the frames to be an independent frame; and
after the first frame, setting an independent frame in a regular interval of a specified number of the dependent frames; or after the first frame, setting an independent frame based on a stream switching point, and setting the frames except for the independent frames to be the dependent frames.
In the coding process, multiple frames of the video need to be processed. Because no frame can be depended on for a first projected frame, the first frame needs to be completely coded. That is to say, the first frame is set to be one of the first type of independent frames.
In order to make sure accuracy of coding on a dependent frame, multiple independent frames may be set in a specified number of intervals or time intervals, such as a preset seconds or a preset frames, and each of the independent frames may be completely coded. Alternatively, a location of an independent frame may be determined by a stream switching/access point, so as to ensure there is at least one independent frame that is completed coded when a data stream changes remarkably, and avoid significant difference between a dependent frame and a frame to be depended on.
Embodiments of the present disclosure further provide a video decoding method. As illustrated in FIG. 4, the method includes:
201, obtaining parameters of each of independent frames by unpacking a RWP coding configuration of the respective independent frame;
202, for each of dependent frames, obtaining parameters of the dependent  frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame, wherein the dependent frame at least includes a first type of dependent frames; and
203, unpacking frames of the video, at least based on the parameters of the independent frames and the parameters of the first type of the dependent frames.
In the decoding process, the obtained RWP coding configuration needs to be unpacked, so as to acquire parameters of independent frames.
Since the RWP coding configuration of the dependent frame are coded according to difference and dependency between itself and the frame to be depended on, and thus, some parameters are written in the RWP coding configuration of the frame to be depended on, then the parameters of the dependent frames should be decoded by combining the RWP coding configuration of the dependent frames and the RWP coding configuration of the frame that is depended on.
The video is unpacked based on the parameters of the independent frames and the parameters of the dependent frames, so as to restore pictures of the original video to be displayed.
Because the RWP coding configuration of the dependent frame is coded based on parameters of the independent frame, much of signaling overhead may be stored, the number of signaling received by a decoder may be reduced as many as possible, thereby decreasing transmission pressure, storing the use of storage space, and realizing the dynamic decoding on RWP coding configuration.
In some embodiments, the step of obtaining parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame, includes:
when a frame-inherited flag in the RWP coding configuration of an dependent frame indicates at least one frame parameter of the respective frame that is depended on is inherited, obtaining the at least one frame parameter of the dependent frame, from the RWP coding configuration of the frame that is depended on; or
when the frame-inherited flag in the RWP coding configuration of one dependent frame indicates none of the frame parameter of respective frame that is depended on is inherited, obtaining the frame parameters of the dependent frame,  from the RWP coding configuration of the dependent frame.
A frame-inherited flag can be configured to determine whether a current dependent frame inherits frame parameters of a frame that is depended on. When it is determined that the dependent frame inherits the frame parameters of the frame that is depended on, the dependent frame needs to be decoded, at least based on the frame parameters of the frame that is depended on. If the dependent frame does not inherit the frame parameters of the frame that is depended on, the frame parameters of the dependent frame are directly decoded according to the RWP coding configuration of the dependent frame.
As such, it may be recognized, by a frame-inherited flag, whether one frame has at least one same frame parameter as another frame. Therefore, decoding on the frame may be processed based on frame parameters, without the use of an amount of signaling overhead or repeated processes of decoding on same parameters.
The frame parameter includes but is not limited to the width of the projected picture, the height of the projected picture, the width of the packed picture, and the height of the packed picture, etc.
In some embodiments, the step of unpacking frames of the video further includes:
unpacking frames of the video further based on the frame parameter obtained.
The above-mentioned frame parameters refer to parameters belonging to each frame of a video. When a video is unpacked, it is required to obtain descriptions corresponding to each frame by unpacking frame parameters. For example, a size of a picture of a frame of a video may be determined by frame parameters. Then, decoding on the frame is continued to obtain relevant parameters of the picture. The size of a region includes the width of the region and/or the height of the region.
In some embodiments, the step of obtaining the at least one frame parameter of the dependent frame, from the RWP coding configuration of the frame that is depended on, includes:
when a first type of the frame-inherited flag in the RWP coding configuration of the dependent frame indicates a height and a width of a projected picture of the frame that is depended on is inherited, obtaining the inherited height and width of the projected picture of the dependent frame, from the RWP coding configuration of the  frame that is depended on;
and/or
when a second type of the frame-inherited flag in the RWP coding configuration of the dependent frame indicates a height and a width of a packed picture of the frame that is depended on is inherited, obtaining the inherited height and width of the packed picture of the dependent frame, from the RWP coding configuration of the dependent frame.
The above-mentioned frame parameters may include width parameters and height parameters of projected frames, and may also include width parameters and height parameters of packed frames. In the decoding process, a value or a type of a frame-inherited flag may be configured to determine whether a dependent frame inherits frame parameters of a frame that is depended on and which frame parameters are inherited.
In some embodiments, the method further includes:
when a frame-type flag of one of the independent frames has a first value, storing the RWP coding configuration of the first type of the independent frame; and
storing RWP coding configuration of an immediately previous frame, and
wherein the RWP coding configuration stored is used for obtaining parameters of the dependent frame.
As one of the first type of the dependent frames can depend on any one of the first type of the independent frames, and one of the second type of the dependent frames can depend on an immediately previous frame, and thus it is enough that the decoder can save the first type of the independent frames and the immediately previous frame.
For the first type of independent frames, the frame-type flag has a first value, then the first type of the independent frame can be recognized by the frame-type flag clearly and easily. The immediately previous frame is just a previous frame just before the current frame to be decoded and it can be recognized by decoder without any doubts.
If a frame that is depended on by a dependent frame is an immediately previous frame, decoding on the dependent frame may be processed based on the RWP coding configuration of the previous frame and the RWP coding configuration of the dependent frame that is being decoded. If a frame that is depended on by a  dependent frame is one of the first type of the independent frames, decoding on the dependent frame may be processed based on the RWP coding configuration of the independent frame that has been stored and the RWP coding configuration of the dependent frame that is being decoded.
In some embodiments, as illustrated in FIG. 5, the step of obtaining parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame includes:
302, obtaining parameters of the dependent frame by decoding RWP coding configuration of the dependent frame, based on the parameters of a previous frame, which is immediately before and has the dependency with each of a second type of dependent frames, and
the step of unpacking frames of the video, further includes:
303, unpacking frames of the video, further based on the parameters of each of the second type of the dependent frames.
The above-mentioned dependent frame may also be one of the second type of dependent frames, which is a dependent frame that only refers to an immediately previous frame; whereas, one of the first type of dependent frames may refer to any of independent frames.
Therefore, in the decoding process, decoding on a dependent frame is also required to be based on one of RWP coding configuration of the second type of dependent frames as well as RWP coding configuration of the previous frame.
In some embodiments, the previous frame can be any one of the first type of the independent frames, the second type of the independent frames, the first type of the dependent frames, and the second type of the dependent frames.
An immediately previous frame of one of the second type of dependent frames may be any frame type. That is to say, one of the first type of independent frames may have dependency with any further frame, and thus, it may have dependency with an immediately next frame; and one of the second type of independent frames can only have dependency with an immediately next frame, which means one of the second type of independent frames can be a reference of one of the second type of dependent frames; and one of the first type of dependent frames and the second type of dependent frames may also has dependency with one of the second type of dependent  frames.
In some embodiments, the method further includes:
when a frame-type flag of the RWP coding configuration of the respective one of the dependent frames has a third value, determining which of the first type of the independent frames is depended, by matching a frame ID in the RWP coding configuration of the first type of independent frame stored, with a frame ID indicating frame that is depended on carried in the RWP coding configuration of the respective one of the dependent frames;
and/or
when a frame-type flag of the RWP coding configuration of the respective one of the dependent frames has a fourth value, determining that the immediately previous frame before the dependent frame is depended.
A frame-type flag of each of the second type of the dependent frames has a third value. When a dependent frame having a frame-type flag with a third value is being decoded, a respective one of the first type of independent frames that is depended on by the dependent frame needs to be determined, by an frame ID in the RWP coding configuration of the dependent frame which is stored before the decoding of the current dependent frame. The first type of independent frames is distinguished by a frame ID, and thus, the fame ID in the RWP coding configuration of the dependent frame may correspond to the frame ID of the respective one of the first type of the independent frames.
A frame-type flag of each of the second type of the dependent frames has a fourth value. When a dependent frame having a frame-type flag with a fourth value is decoded, decoding on the dependent frame may be processed directly based on the RWP coding configuration of the dependent frame and the RWP coding configuration of an immediately previous frame, so as to obtain parameters of the dependent frame and restore pictures of the video at the end.
In some embodiments, the step of obtaining parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame, includes:
when a region-inherited flag in the RWP coding configuration of a dependent frame indicates at least one region of the frame that is depended on are inherited,  obtaining the region parameters of the inherited region, based on the RWP coding configuration of the dependent frame and the RWP coding configuration of the respective frame that is depended on.
For each frame, after decoding on frame parameters is completed, the process proceeds to decoding on region parameters. When a dependent frame is being decoded, it is determined, by a region-inherited flag, whether a region of a frame that is depended on is inherited. If it is determined that a region of a frame that is depended on is inherited, it means that in the RWP coding configuration of the dependent frame, at least one region parameter is inherited from the frame that is depended on.
Specifically, when a region-inherited flag indicates that a region does not have region parameters that are inherited, the region may be directly decoded; whereas, when a region-inherited flag indicates a region has region parameters that are inherited, the region needs to be decoded based on the RWP coding configuration of the frame that is depended on and the RWP coding configuration of the current dependent frame, so as to obtain region parameters of the region.
When a region that has region parameters to be inherited is being decoded, the decoding may be processed by determining whether region parameters are to be inherited. Therefore, efficiency of the decoding process may be improved.
In some embodiments, the step of obtaining the region parameters of the inherited region, based on the RWP coding configuration of the dependent frame and the RWP coding configuration of the respective frame that is depended on, includes:
when a parameter-inherited flag in the RWP coding configuration of the dependent frame indicates at least one region parameter corresponding to the parameter-inherited flag, of the frame that is depended on is inherited, obtaining the inherited region parameters from the RWP coding configuration of the frame that is depended on,
and/or
when a parameter-inherited flag in the RWP coding configuration of the dependent frame indicates none region parameter corresponding to the parameter-inherited flag, of the frame that is depended on is inherited, obtaining the inherited region parameters from the RWP coding configuration of the dependent frame.
For a dependent frame, determination for regions’ dependency includes two  types: one is that a part of region parameters of the inherited region may be inherited from the frame that is depended on, and the other part of the region parameters of the inherited region may be different from that of the frame that is depended on, which are obtained by decoding the RWP coding configuration of the dependent frame directly. The other is that all region parameters of the inherited region are inherited from the frame that is depended on.
Therefore, for an inherited region of the dependent frame, it is also required to recognize whether each region parameter is inherited from a frame that is depended on by a parameter-inherited flag. If a region parameter is inherited from the frame that is depended on, the region parameter needs to be decoded based on the frame that is depended on; otherwise, the region parameter is directly decoded based on the RWP coding configuration of the dependent frame that is being coded.
In some embodiments, before the step of the obtaining the region parameters, the method further includes:
determining which region in the frame that is depended on is inherited, according to a region ID indicating regions’ dependency, in the RWP coding configuration of the dependent frame;
or
if there is no region ID indicating regions’ dependency, determining an m th region in the frame that is depended on is inherited, when the region-inherited flag of an m th region in the dependent frame indicates having regions’ dependency, wherein m is zero or a positive integer, and m is less than or equal to M-1, M being a smaller of a total number of regions in the dependent frame and a total number of regions in the frame that is depended on.
The determination for dependency between a region of a dependent frame and a region of a frame that is depended on may be implemented in two ways. If each of regions carries a region ID to indicate which two regions have a dependency relationship, the regions’ dependency between regions can be directly determined by a region ID when a region-inherited flag indicates having a regions’ dependency.
Alternatively, if there is no region ID for indicating dependency between regions, the regions’ dependency between regions is determined according to the number of the current region when the region-inherited flag indicating having the p th region. For example, if the current region is the p th region of the dependent frame,  the region-inherited flag of the p th region having a regions’ dependency, it means that the p th region of the dependent frame has a dependency with the p th region of the frame that is depended on.
In some embodiments, the method further includes:
when the RWP coding configuration of one of the dependent frames further includes a region-discarded flag, skipping comparing a region in the frame that is depended on indicated by the region-discarded flag with a region in the dependent frame.
The number of regions of a dependent frame may be different from that of a frame that is depended on, and thus, in the coding process, if the number of regions of a frame to be depended on is larger than that of a dependent frame; additional regions are added into RWP coding configuration of the dependent frame. However, at this time, none of region parameters are inherited, and coding on the region parameters is not processed, either. Meanwhile, a region-discarded flag is added to mark the added region. Therefore, in the decoding process, when the decoding process proceeds to a region with a region-discarded flag, decoding on the region is skipped, and the process proceeds to the next region.
As such, unnecessary region comparison may be excluded rapidly, thereby improving efficiency of decoding.
Embodiments of the present disclosure further provide a video coding device. As illustrated in FIG. 6, the coding device 600 includes:
a classifying module 601, configured for classifying frames of the video into independent frames and dependent frames, which include a first type of the dependent frames;
first coding module 602, configured to generate RWP coding configuration of each of the independent frames by coding parameters of the respective one of the independent frames, wherein the RWP coding configuration of the independent frames includes the parameters to be unpacked to restore the video; and
second coding module 603, configured to generate RWP coding configuration of the dependent frame by coding parameters of the dependent frame based on difference and dependency between the parameters of the dependent frame and the parameters of an independent frame used as a reference for the coding of the  dependent frame, for each of the first type of the dependent frames.
In some embodiments, the independent frames include:
a first type of the independent frames, each of which can be referenced when establishing dependency with any of the dependent frames after the respective one of the first type of the independent frames in the video; and
a second type of the independent frames, each of which can be referenced when establishing dependency with an immediate next dependent frame after the respective one of the second type of the independent frames in the video.
In some embodiments, the RWP coding configuration of each of the independent frames has a frame-type flag; and
the frame-type flag of each of the first type of the independent frames has a first value, and the frame-type flag of each of the second type of the independent frames has a second value.
In some embodiments, the RWP coding configuration of each of the first type of the independent frames includes: a frame ID assigned to the respective one of the first type of the independent frames.
The RWP coding configuration of each of the first type of the dependent frames includes: a frame ID of the respective one of the first type of the independent frames to be depended on to indicate frames’ dependency.
In some embodiments, the dependent frames further include a second type of the dependent frames, and the device further includes:
a third coding module, configured to generate RWP coding configuration of the dependent frame by coding parameters of the dependent frame based on difference and dependency between the parameters of the dependent frame and the parameters of a previous frame, which is immediately before and establishes the dependency with the dependent frame, for each of the second type of the dependent frames.
In some embodiments, a type of the previous frame can be any one of the first type of the independent frames, the second type of the independent frames, the first type of the dependent frames, and the second type of the dependent frames.
In some embodiments, the RWP coding configuration of each of the dependent frames includes a frame-type flag;
when the frame-type flag has a third value, the third value indicates that the dependent frames are the first type of the dependent frames; and
when the frame-type flag has a fourth value, the fourth value indicates that the dependent frames are the second type of the dependent frames.
In some embodiments, when a dependent frame inherits frame parameters of the frame to be depended on, the RWP coding configuration of the dependent frame includes: at least one frame-inherited flag, which indicates that the frame parameters of the frame to be depended on are inherited; or
when a dependent frame does not inherit frame parameters, the RWP coding configuration of the dependent frame includes: at least one frame-inherited flag, which indicates that the frame parameters of the frame to be depended on are not inherited.
In some embodiments, the frame-inherited flag includes:
a first type of the frame-inherited flag, which indicates whether a height and a width of the projected picture of the frame to be depended on is inherited or not; and
a second type of the frame-inherited flag, which indicates whether a height and a width of the packed picture of the frame to be depended on is inherited or not.
In some embodiments, the device further includes,
a fourth coding module, configured to code the frame parameters into the RWP coding configuration of the dependent frame, when the dependent frame does not inherit the frame parameters.
In some embodiments, the RWP coding configuration of each of the dependent frames includes: a region-inherited flag, which indicates whether at least part of regions of the respective frame to be depended on are inherited or not.
In some embodiments, when the region-inherited flag indicates none region of the respective frame to be depended on is inherited, the RWP coding configuration of the dependent frame includes region parameters required to decoding the respective region of the dependent frame.
In some embodiments, one frame to be depended on has N regions, one dependent frame has M regions, and N and M are positive integers; and
when an i th region of one of the frames to be depended on has at least one same region parameter as that of a jth region of the respective dependent frame,
the RWP coding configuration of the dependent frame includes:
a region ID of the jth region of the frame to be depended on to indicate regions’ dependency, and a parameter-inherited flag to indicated the at least one same  region parameter of the i th region of the frame to be depended on is inherited;
wherein, the i is an integer, more than or equal to 0 and less than N, and the j is an integer, more than or equal to 0 and less than M.
In some embodiments, one frame to be depended on has N regions, one dependent frame has M regions, and N and M are positive integers; and
when an i th region of one of the frames to be depended on has at least one same region parameter as that of an i th region of the respective dependent frame, the RWP coding configuration of the dependent frame indicates, by a parameter-inherited flag, which of the region parameters of the i th region of the frame to be depended on are inherited, wherein, the i is an integer, more than or equal to 0 and less than N, and less than M.
In some embodiments, when M is less than N, the RWP coding configuration of the dependent frame further includes: a region-discarded flag, present in N-M regions parameters, which is configured to indicate discarding of a region, wherein the region is a region in the frame to be depended on, but not referenced by any region in the dependent frame; and
when M is more than N, the RWP coding configuration of the dependent frame includes parameters required to decoding the last M-N regions of the respective dependent frame.
In some embodiments, the classifying module includes:
a first setting submodule, configured to set a first frame of the frames to be an independent frame; and
a second setting submodule, after the first frame, configured to set an independent frame in a regular interval of a specified number of the dependent frames; or
a third setting submodule, after the first frame, configured to set an independent frame based on a stream switching point, and setting the frames except for the independent frames to be the dependent frames.
Embodiments of the present disclosure further provide a video decoding device. As illustrated in FIG. 7, the decoding device 700 includes:
a first obtaining module 701, configured to obtain parameters of each of independent frames by unpacking a RWP coding configuration of the respective independent frame;
a second obtaining module 702, for each dependent frames, configured to obtain parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame, wherein the dependent frame at least includes a first type dependent frames; and
an unpacking module 703, configured to unpack frames of the video, at least based on the parameters of the independent frames and the parameters of the first type of the dependent frames.
In some embodiments, the second obtaining module, includes:
a first obtaining submodule, configured to obtain the at least one frame parameter of the dependent frame, from the RWP coding configuration of the frame that is depended on, when a frame-inherited flag in the RWP coding configuration of an dependent frame indicates at least one frame parameter of the respective frame that is depended on is inherited; or
a second obtaining submodule, configured to obtain the frame parameters of the dependent frame, from the RWP coding configuration of the dependent frame, when the frame-inherited flag in the RWP coding configuration of one dependent frame indicates none of the frame parameter of respective frame that is depended on is inherited.
In some embodiments, the unpacking module further configured to unpack frames of the video further based on the frame parameter obtained.
In some embodiments, the first obtaining submodule, further configured to,
obtain the inherited height and width of the projected picture of the dependent frame, from the RWP coding configuration of the frame that is depended on, when a first type of the frame-inherited flag in the RWP coding configuration of the dependent frame indicates a height and a width of a projected picture of the frame that is depended on is inherited;
and/or
when a second type of the frame-inherited flag in the RWP coding configuration of the dependent frame indicates a height and a width of a packed picture of the frame that is depended on is inherited, obtaining the inherited height and width of the packed picture of the dependent frame, from the RWP coding configuration of the dependent frame.
In some embodiments, the device further includes:
a first storing module, configured to store the RWP coding configuration of the first type of the independent frame, when a frame-type flag of one of the independent frames has a first value; and
a second storing module, configured to storing RWP coding configuration of an immediately previous frame, the immediately previous frame includes a second type of the independent frame, and
wherein the RWP coding configuration stored is used for obtaining parameters of the dependent frame.
In some embodiments, the second obtaining module includes:
a third obtaining submodule, configured to obtain parameters of the dependent frame by decoding RWP coding configuration of the dependent frame, based on the parameters of a previous frame, which is immediately before and has the dependency with each of a second type of dependent frames, and
the unpacking module, configured to unpack frames of the video, further based on the parameters of each of the second type of the dependent frames.
In some embodiments, the previous frame can be any one of the first type of the independent frames, the second type of the independent frames, the first type of the dependent frames, and the second type of the dependent frames.
In some embodiments, the device further includes:
a first determining module, configured to determine which of the first type of the independent frames is depended, by matching a frame ID stored in the RWP coding configuration of the first type of independent frame, with a frame ID indicating frame that is depended on carried in the RWP coding configuration of the respective one of the dependent frames, when a frame-type flag of the RWP coding configuration of the respective one of the dependent frames has a third value;
and/or
a second determining module, configured to determine that the immediately previous frame before the dependent frame is depended, when a frame-type flag of the RWP coding configuration of the respective one of the dependent frames has a fourth value.
In some embodiments, the second obtaining module, includes:
a fourth obtaining submodule, configured to obtain the region parameters of  the inherited region, based on the RWP coding configuration of the dependent frame and the RWP coding configuration of the respective frame that is depended on, when a region-inherited flag in the RWP coding configuration of a dependent frame indicates at least one region of the frame that is depended on are inherited.
In some embodiments, the fourth obtaining submodule, further configured to:
obtain the inherited region parameters from the RWP coding configuration of the frame that is depended on, when a parameter-inherited flag in the RWP coding configuration of the dependent frame indicates at least one region parameter corresponding to the parameter-inherited flag, of the frame that is depended on is inherited,
and/or
when a parameter-inherited flag in the RWP coding configuration of the dependent frame indicates none region parameter corresponding to the parameter-inherited flag, of the frame that is depended on is inherited, obtaining the inherited region parameters from the RWP coding configuration of the dependent frame.
In some embodiments, the device further includes:
a third determining module, configured to determine which region in the frame that is depended on is inherited, according to a region ID indicating regions’ dependency, in the RWP coding configuration of the dependent frame;
or
a fourth determining module, configured to determine an m th region in the frame that is depended on is inherited, if there is no region ID indicating regions’ dependency, when the region-inherited flag of an m th region in the dependent frame indicates having regions’ dependency, wherein the m is zero or a positive integer, and the m is less than or equal to M-1, the M is a smaller one between a total number of regions in the dependent frame and a total number of regions in the frame that is depended on.
In some embodiments, the device further includes:
a stopping module, configured to skip comparing a region in the frame that is depended on indicated by the region-discarded flag with a region in the dependent frame when the RWP coding configuration of each of the dependent frames further includes a region-discarded flag.
The description of the above device embodiments is similar to the description  of the above method embodiments, and has similar advantages as that of the method embodiments. For technical details not disclosed in the device embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure.
It is to be noted that, in the embodiment of the present disclosure, if the above method is implemented in the form of a software function module and sold or used as a stand-alone product, it may also be stored in a computer storage medium. Based on such understanding, the technical solution of the embodiments of the present disclosure may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. Either an encoding or decoding device performs all or part of the method of the various embodiments of the present disclosure. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM) , a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
Correspondingly, embodiments of the present disclosure provide a terminal, including a memory and a processor, where the memory stores a computer program executable on a processor, and when the processor executes the program, the steps of the method provided in the foregoing embodiments are implemented
Correspondingly, embodiments of the present disclosure provide a computer readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the method provided by the foregoing embodiment are implemented.
It is to be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar advantages as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of the present disclosure, please refer to the description of the method embodiments of the present disclosure.
It is to be noted that FIG. 8 is a schematic diagram of a hardware entity of a coding or decoding device according to an embodiment of the present disclosure. As illustrated in FIG. 8, the hardware entity of the computer device 800 includes: a processor 801, an I/O interface 802, and a memory 803.
The processor 801 typically controls the overall operation of the coding or decoding device 800.
The I/O interface 802 can enable a coding or decoding device to communicate with other terminals or servers over a network.
The memory 803 is configured to store instructions and applications executable by the processor 801, and may also cache data to be processed or processed by the processor 801 and various modules in the coding or decoding device 800 (e.g., image data, audio data, voice communication data, and Video communication data) can be realized by flash memory (FLASH) or random access memory (RAM) .
It is to be understood that the phrase "one embodiment" or "an embodiment" as used throughout the specification means that a particular feature, structure, or characteristic relating to an embodiment is included in at least one embodiment of the disclosure. Therefore, "in one embodiment" or "in an embodiment" , which is used throughout the specification, does not necessarily mean the same embodiment. In addition, these particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It is to be understood that, in various embodiments of the present disclosure, the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be limited to the embodiments of the present disclosure. The serial numbers of the embodiments of the present disclosure are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
It is to be understood that the term "includes" , "including" , or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device including a series of elements includes those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, article, or device. An element that is defined by the phrase "including a... " does not exclude the presence of additional equivalent elements in the process, method, item, or device that includes the element.
In the several embodiments provided by the present disclosure, it is to be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are only schematic. For example,  the division of the modules is only a logical function division. In actual implementation, there may be another division manner, for example, multiple modules or components may be combined, or may be integrated into another system, or some features may be ignored or not executed. In addition, the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or modules, and may be electrical, mechanical or other forms.
The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed to multiple network modules; some or all of the modules may be selected according to actual needs to achieve the purpose of the solutions of the embodiments.
In addition, each functional module in each embodiment of the present disclosure may be integrated into one processing module, or each module may be separately used as one module, or two or more modules may be integrated into one module; the module can be implemented in the form of hardware or in the form of hardware plus software function modules.
It will be understood by those skilled in the art that all or part of the steps of implementing the foregoing method embodiments may be performed by hardware related to program instructions. The foregoing program may be stored in a computer storage medium, and when executed, the program includes the foregoing steps of the method embodiment; and the foregoing storage medium includes: a removable storage device, a read only memory (ROM) , a magnetic disk, or an optical disk, and the like, which can store program codes.
Alternatively, the above-described integrated unit of the present disclosure may be stored in a computer storage medium if it is implemented in the form of a software function module and sold or used as a standalone product. Based on such understanding, the technical solution of the embodiments of the present disclosure may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A coding or decoding device is caused to perform all or part of the method of the various embodiments of the present disclosure. The foregoing storage medium includes various media that can store program codes, such as a mobile storage device,  a ROM, a magnetic disk, or an optical disk.
The above is only the embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present disclosure. It is intended to be covered by the scope of the disclosure. Therefore, the scope of the disclosure should be determined by the scope of the appended claims.

Claims (33)

  1. A video coding method, characterized by, comprising:
    classifying frames of the video into independent frames and dependent frames, which comprise a first type of the dependent frames;
    generating region wise packing (RWP) coding configuration of each of the independent frames by coding parameters of the respective one of the independent frames, wherein the RWP coding configuration of the independent frames comprises the parameters to be unpacked to restore the video; and
    for each of the first type of the dependent frames, generating RWP coding configuration of the dependent frame by coding parameters of the dependent frame based on difference and dependency between the parameters of the dependent frame and the parameters of an independent frame used as a reference for the coding of the dependent frame.
  2. The method according to claim 1, wherein the independent frames comprise:
    a first type of the independent frames, each of which can be referenced when establishing dependency with any of the dependent frames after the respective one of the first type of the independent frames in the video; and
    a second type of the independent frames, each of which can be referenced when establishing dependency with an immediate next dependent frame after the respective one of the second type of the independent frames in the video.
  3. The method according to claim 2, wherein
    the RWP coding configuration of each of the independent frames has a frame-type flag; and
    the frame-type flag of each of the first type of the independent frames has a first value, and the frame-type flag of each of the second type of the independent frames has a second value.
  4. The method according to claim 3, wherein the RWP coding configuration of each of the first type of the independent frames comprises: a frame identity (ID) assigned to the respective one of the first type of the independent frames.
  5. The method according to claim 4, wherein the RWP coding configuration of each of the first type of the dependent frames comprises: a frame ID of the respective one of the first type of the independent frames to be depended on to indicate frames’ dependency.
  6. The method according to claim 2, wherein the dependent frames further comprise a second type of the dependent frames, and the method further comprises:
    for each of the second type of the dependent frames, generating RWP coding configuration of the dependent frame by coding parameters of the dependent frame based on difference and dependency between the parameters of the dependent frame and the parameters of a previous frame, which is immediately before and establishes the dependency with the dependent frame.
  7. The method according to claim 6, wherein a type of the previous frame can be any one of the first type of the independent frames, the second type of the independent frames, the first type of the dependent frames, and the second type of the dependent frames.
  8. The method according to claim 6, wherein
    the RWP coding configuration of each of the dependent frames comprises a frame-type flag;
    when the frame-type flag has a third value, the third value indicates that the dependent frames are the first type of the dependent frames; and
    when the frame-type flag has a fourth value, the fourth value indicates that the dependent frames are the second type of the dependent frames.
  9. The method according to any of claims 1 to 6, wherein
    when a dependent frame inherits frame parameters of the frame to be depended on, the RWP coding configuration of the dependent frame comprises: at least one frame-inherited flag, which indicates that the frame parameters of the frame to be depended on are inherited; or
    when a dependent frame does not inherit frame parameters, the RWP coding configuration of the dependent frame comprises: at least one frame-inherited flag,  which indicates that the frame parameters of the frame to be depended on are not inherited.
  10. The method according to claim 9, wherein the frame-inherited flag comprises:
    a first type of the frame-inherited flag, which indicates whether a height and a width of the projected picture of the frame to be depended on is inherited or not; and
    a second type of the frame-inherited flag, which indicates whether a height and a width of the packed picture of the frame to be depended on is inherited or not.
  11. The method according to claim 9 or 10, wherein the method further comprises,
    when the dependent frame does not inherit the frame parameters, coding the frame parameters into the RWP coding configuration of the dependent frame.
  12. The method according to any of claims 1 to 6, wherein the RWP coding configuration of each of the dependent frames comprises: a region-inherited flag, which indicates whether at least part of regions of the respective frame to be depended on are inherited or not.
  13. The method according to claim 12, wherein when the region-inherited flag indicates none region of the respective frame to be depended on is inherited, the RWP coding configuration of the dependent frame comprises region parameters required to decoding the respective region of the dependent frame.
  14. The method according to claim 13, wherein one frame to be depended on has N regions, one dependent frame has M regions, and N and M are positive integers; and
    when an i th region of one of the frames to be depended on has at least one same region parameter as that of a j th region of the respective dependent frame,
    the RWP coding configuration of the dependent frame comprises:
    a region ID of the j th region of the frame to be depended on to indicate regions’ dependency, and a parameter-inherited flag to indicated the at least one same region parameter of the i th region of the frame to be depended on is inherited;
    wherein, the i is an integer, more than or equal to 0 and less than N, and the j is an integer, more than or equal to 0 and less than M.
  15. The method according to claim 13, wherein one frame to be depended on has N regions, one dependent frame has M regions, and N and M are positive integers; and
    when an i th region of one of the frames to be depended on has at least one same region parameter as that of an i th region of the respective dependent frame, the RWP coding configuration of the dependent frame indicates, by a parameter-inherited flag, which of the region parameters of the i th region of the frame to be depended on are inherited, wherein, the i is an integer, more than or equal to 0 and less than N, and less than M.
  16. The method according to claim 15, wherein
    when M is less than N, the RWP coding configuration of the dependent frame further comprises: a region-discarded flag, present in N-M regions parameters, which is configured to indicate discarding of a region, wherein the region is a region in the frame to be depended on, but not referenced by any region in the dependent frame; and
    when M is more than N, the RWP coding configuration of the dependent frame comprises region parameters required to decoding the last M-N regions of the respective dependent frame.
  17. The method according to claim 1, wherein
    the step of classifying the frames of the video into the independent frames and the dependent frames comprises:
    setting a first frame of the frames to be an independent frame; and
    after the first frame, setting an independent frame in a regular interval of a specified number of the dependent frames; or
    after the first frame, setting an independent frame based on a stream switching point, and setting the frames except for the independent frames to be the dependent frames.
  18. A video decoding method, characterized by, comprising:
    obtaining parameters of each of independent frames by unpacking a region wise packing (RWP) coding configuration of the respective independent frame;
    for each dependent frames, obtaining parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the  parameters of the respective independent frame corresponding to the dependent frame, wherein the dependent frame at least includes a first type dependent frames; and
    unpacking frames of the video, at least based on the parameters of the independent frames and the parameters of the first type of the dependent frames.
  19. The method according to claim 18, wherein the step of obtaining parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame, comprises:
    when a frame-inherited flag in the RWP coding configuration of an dependent frame indicates at least one frame parameter of the respective frame that is depended on is inherited, obtaining the at least one frame parameter of the dependent frame, from the RWP coding configuration of the frame that is depended on; or
    when the frame-inherited flag in the RWP coding configuration of one dependent frame indicates none of the frame parameter of respective frame that is depended on is inherited, obtaining the frame parameters of the dependent frame, from the RWP coding configuration of the dependent frame.
  20. The method according to claim 19, wherein the step of unpacking frames of the video further comprises:
    unpacking frames of the video further based on the frame parameter obtained.
  21. The method according to claim 19, wherein the step of obtaining the at least one frame parameter of the dependent frame, from the RWP coding configuration of the frame that is depended on, comprises:
    when a first type of the frame-inherited flag in the RWP coding configuration of the dependent frame indicates a height and a width of a projected picture of the frame that is depended on is inherited, obtaining the inherited height and width of the projected picture of the dependent frame, from the RWP coding configuration of the frame that is depended on;
    and/or
    when a second type of the frame-inherited flag in the RWP coding configuration of the dependent frame indicates a height and a width of a packed picture of the frame that is depended on is inherited, obtaining the inherited height  and width of the packed picture of the dependent frame, from the RWP coding configuration of the dependent frame.
  22. The method according to any of claims 18 to 21, wherein the method further comprises:
    when a frame-type flag of one of the independent frames has a first value, storing the RWP coding configuration of the first type of the independent frame; and
    storing RWP coding configuration of an immediately previous frame, and
    wherein the RWP coding configuration stored is used for obtaining parameters of the dependent frame.
  23. The method according to claim 22, wherein the step of obtaining parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame comprises:
    obtaining parameters of the dependent frame by decoding RWP coding configuration of the dependent frame, based on the parameters of a previous frame, which is immediately before and has the dependency with each of a second type of dependent frames, and
    the step of unpacking frames of the video, further comprises:
    unpacking frames of the video, further based on the parameters of each of the second type of the dependent frames.
  24. The method according to claim 22 or 23, wherein the previous frame can be any one of the first type of the independent frames, the second type of the independent frames, the first type of the dependent frames, and the second type of the dependent frames.
  25. The method according to claim 22, wherein the method further comprises:
    when a frame-type flag of the RWP coding configuration of the respective one of the dependent frames has a third value, determining which of the first type of the independent frames is depended, by matching a frame identity (ID) saved in the RWP coding configuration of the first type of independent frame stored, with a frame ID  indicating frame that is depended on carried in the RWP coding configuration of the respective one of the dependent frames;
    and/or
    when a frame-type flag of the RWP coding configuration of the respective one of the dependent frames has a fourth value, determining that the immediately previous frame before the dependent frame is depended.
  26. The method according to claim 18, wherein
    the step of obtaining parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame, comprises:
    when a region-inherited flag in the RWP coding configuration of a dependent frame indicates at least one region of the frame that is depended on are inherited, obtaining the region parameters of the inherited region, based on the RWP coding configuration of the dependent frame and the RWP coding configuration of the respective frame that is depended on.
  27. The method according to claim 26, wherein the step of obtaining the region parameters of the inherited region, based on the RWP coding configuration of the dependent frame and the RWP coding configuration of the respective frame that is depended on, comprises:
    when a parameter-inherited flag in the RWP coding configuration of the dependent frame indicates at least one region parameter corresponding to the parameter-inherited flag, of the frame that is depended on is inherited, obtaining the inherited region parameters from the RWP coding configuration of the frame that is depended on,
    and/or
    when a parameter-inherited flag in the RWP coding configuration of the dependent frame indicates none region parameter corresponding to the parameter-inherited flag, of the frame that is depended on is inherited, obtaining the inherited region parameters from the RWP coding configuration of the dependent frame.
  28. The method according to claim 26, wherein before the step of the obtaining the region parameters, the method further comprises:
    determining which region in the frame that is depended on is inherited, according to a region ID indicating regions’ dependency, in the RWP coding configuration of the dependent frame;
    or
    if there is no region ID indicating regions’ dependency, determining an m th region in the frame that is depended on is inherited, when the region-inherited flag of an m th region in the dependent frame indicates having regions’ dependency, wherein m is zero or a positive integer, and m is less than or equal to M-1, M being a smaller of a total number of regions in the dependent frame and a total number of regions in the frame that is depended on.
  29. The method according to claim18, wherein the method further comprises:
    when the RWP coding configuration of one of the dependent frames further comprises a region-discarded flag, skipping comparing a region in the frame that is depended on indicated by the region-discarded flag with a region in the dependent frame.
  30. A video coding device, characterized by, comprising:
    a classifying module, configured to classify frames of the video into independent frames and dependent frames, which comprise a first type of the dependent frames;
    a first coding module, configured to generate region wise packing (RWP) coding configuration of each of the independent frames by coding parameters of the respective one of the independent frames, wherein the RWP coding configuration of the independent frames comprises the parameters to be unpacked to restore the video; and
    a second coding module, configured for each of the first type of the dependent frames, to generate RWP coding configuration of the dependent frame by coding parameters of the dependent frame based on difference and dependency between the parameters of the dependent frame and the parameters of an independent frame used as a reference for the coding of the dependent frame.
  31. A video decoding device, characterized by, comprising:
    a first obtaining module, configured to obtain parameters of each of independent frames by unpacking a region wise packing (RWP) coding configuration of the respective independent frame;
    a second obtaining module, for each dependent frames, configured to obtain parameters of the dependent frame by decoding the RWP coding configuration of the dependent frame, based on the parameters of the respective independent frame corresponding to the dependent frame, wherein the dependent frame at least includes a first type dependent frames; and
    an unpacking module, configured to unpack frames of the video, at least based on the parameters of the independent frames and the parameters of the first type of the dependent frames.
  32. A processing device, characterized by, at least comprising: a processor and a memory for storing executable instructions capable of running on the processor, wherein when executing the executable instructions, the processor performs the method in any of claims 1 to 17 or 18 to 29.
  33. A non-transitory computer storage medium containing executable computer instructions for performing a method in any of claims 1 to 17 or 14 to 29.
PCT/CN2019/094476 2019-07-03 2019-07-03 Method and device for coding, decoding and storage medium WO2021000277A1 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
CN202111136232.6A CN113923459B (en) 2019-07-03 2019-07-03 Video encoding and decoding method and device and storage medium
US17/624,250 US11968374B2 (en) 2019-07-03 2019-07-03 Method and device for coding and decoding
PCT/CN2019/094476 WO2021000277A1 (en) 2019-07-03 2019-07-03 Method and device for coding, decoding and storage medium
EP19918520.8A EP3782366A4 (en) 2019-07-03 2019-07-03 Method and device for coding, decoding and storage medium
CN201980001391.XA CN110959292B (en) 2019-07-03 2019-07-03 Video encoding method, video decoding method, video encoding device, video decoding device, video processing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/094476 WO2021000277A1 (en) 2019-07-03 2019-07-03 Method and device for coding, decoding and storage medium

Publications (1)

Publication Number Publication Date
WO2021000277A1 true WO2021000277A1 (en) 2021-01-07

Family

ID=69985765

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/094476 WO2021000277A1 (en) 2019-07-03 2019-07-03 Method and device for coding, decoding and storage medium

Country Status (4)

Country Link
US (1) US11968374B2 (en)
EP (1) EP3782366A4 (en)
CN (2) CN110959292B (en)
WO (1) WO2021000277A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018065663A1 (en) * 2016-10-04 2018-04-12 Nokia Technologies Oy An apparatus, a method and a computer program for video coding and decoding
WO2018066982A1 (en) * 2016-10-04 2018-04-12 김기백 Image data encoding/decoding method and apparatus
WO2018066983A1 (en) * 2016-10-04 2018-04-12 김기백 Image data encoding/decoding method and apparatus
WO2018066988A1 (en) * 2016-10-04 2018-04-12 김기백 Image data encoding/decoding method and apparatus
US20190068946A1 (en) 2017-08-29 2019-02-28 Qualcomm Incorporated Processing omnidirectional media with dynamic region-wise packing
WO2019068745A1 (en) 2017-10-02 2019-04-11 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Efficient immersive streaming
US20190141311A1 (en) * 2016-04-26 2019-05-09 Lg Electronics Inc. Method for transmitting 360-degree video, method for receiving 360-degree video, apparatus for transmitting 360-degree video, apparatus for receiving 360-degree video

Family Cites Families (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE512550T1 (en) * 2005-01-17 2011-06-15 Koninkl Philips Electronics Nv SYSTEM, TRANSMITTER, RECEIVER, METHOD AND SOFTWARE FOR SENDING AND RECEIVING ORDERED QUANTITIES OF VIDEO FRAME
JP5602392B2 (en) * 2009-06-25 2014-10-08 キヤノン株式会社 Information processing apparatus, information processing method, and program
US9451284B2 (en) * 2011-10-10 2016-09-20 Qualcomm Incorporated Efficient signaling of reference picture sets
CN103179394B (en) * 2013-01-21 2016-02-17 北京航空航天大学 A kind of based on area video quality stable I frame bit rate control method
EP3078194B1 (en) * 2014-01-02 2019-09-11 HFI Innovation Inc. Method and apparatus for intra prediction coding with boundary filtering control
KR20150096353A (en) * 2015-06-22 2015-08-24 주식회사 큐램 Image encoding system, image decoding system and providing method thereof
US11082713B2 (en) * 2015-11-20 2021-08-03 Mediatek Inc. Method and apparatus for global motion compensation in video coding system
CN109691094B (en) * 2016-08-25 2021-10-22 Lg电子株式会社 Method for transmitting omnidirectional video, method for receiving omnidirectional video, apparatus for transmitting omnidirectional video, and apparatus for receiving omnidirectional video
US20190238888A1 (en) * 2017-07-17 2019-08-01 Ki Baek Kim Image data encoding/decoding method and apparatus
KR102531386B1 (en) * 2016-10-04 2023-05-12 주식회사 비원영상기술연구소 Image data encoding/decoding method and apparatus
KR20180047763A (en) * 2016-11-01 2018-05-10 삼성전자주식회사 Processing apparatuses and control methods
KR102503342B1 (en) * 2017-01-10 2023-02-28 삼성전자주식회사 Method and apparatus for transmitting stereoscopic video content
JP6721631B2 (en) * 2017-07-07 2020-07-15 ノキア テクノロジーズ オーユー Video encoding/decoding method, device, and computer program product
US20190014362A1 (en) * 2017-07-10 2019-01-10 Qualcomm Incorporated Enhanced region-wise packing and viewport independent hevc media profile
US10587904B2 (en) * 2017-07-10 2020-03-10 Qualcomm Incorporated Processing media data using an omnidirectional media format
CN109547786B (en) * 2017-09-22 2023-05-09 阿里巴巴集团控股有限公司 Video encoding and video decoding methods and devices
CN109587478B (en) * 2017-09-29 2023-03-31 华为技术有限公司 Media information processing method and device
WO2019073113A1 (en) * 2017-10-09 2019-04-18 Nokia Technologies Oy An apparatus, a method and a computer program for video coding and decoding
GB2567624B (en) * 2017-10-12 2021-05-26 Canon Kk Method, device and computer program for transmitting media content
US10869016B2 (en) * 2018-04-12 2020-12-15 Mediatek Singapore Pte. Ltd. Methods and apparatus for encoding and decoding virtual reality content
GB2585760B (en) * 2018-06-06 2022-04-20 Canon Kk Method, device, and computer program for transmitting media content
KR102138536B1 (en) * 2018-06-08 2020-07-28 엘지전자 주식회사 Method for processing overlay in 360-degree video system
US10432970B1 (en) * 2018-06-14 2019-10-01 Telefonaktiebolaget Lm Ericsson (Publ) System and method for encoding 360° immersive video
GB2575074B (en) * 2018-06-27 2022-09-28 Canon Kk Encapsulating video content with an indication of whether a group of tracks collectively represents a full frame or a part of a frame
EP3804332A1 (en) * 2018-06-29 2021-04-14 Huawei Technologies Co., Ltd. Apparatuses and methods for encoding and decoding a video signal
US11528509B2 (en) * 2018-09-07 2022-12-13 Lg Electronics Inc. Video transmission method, video transmission device, video receiving method and video receiving device
KR102201763B1 (en) * 2018-10-02 2021-01-12 엘지전자 주식회사 Method for processing overlay in 360-degree video system and apparatus for the same
WO2020070379A1 (en) * 2018-10-03 2020-04-09 Nokia Technologies Oy Method and apparatus for storage and signaling of compressed point clouds
US11394946B2 (en) * 2018-10-30 2022-07-19 Lg Electronics Inc. Video transmitting method, video transmitting apparatus, video receiving method, and video receiving apparatus
EP4072139A3 (en) * 2019-01-02 2022-11-09 Nokia Technologies Oy An apparatus, a method and a computer program for video coding and decoding
WO2020183055A1 (en) * 2019-03-14 2020-09-17 Nokia Technologies Oy An apparatus, a method and a computer program for video coding and decoding
WO2020242023A1 (en) * 2019-05-24 2020-12-03 엘지전자 주식회사 360 video transmission method, 360 video reception method, 360 video transmission apparatus, and 360 video reception apparatus
WO2020242027A1 (en) * 2019-05-24 2020-12-03 엘지전자 주식회사 Method for transmitting 360 video, method for receiving 360 video, 360 video transmitting device, and 360 video receiving device
CN114009053B (en) * 2019-06-20 2024-10-15 诺基亚技术有限公司 Apparatus and method for video encoding and decoding

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190141311A1 (en) * 2016-04-26 2019-05-09 Lg Electronics Inc. Method for transmitting 360-degree video, method for receiving 360-degree video, apparatus for transmitting 360-degree video, apparatus for receiving 360-degree video
WO2018065663A1 (en) * 2016-10-04 2018-04-12 Nokia Technologies Oy An apparatus, a method and a computer program for video coding and decoding
WO2018066982A1 (en) * 2016-10-04 2018-04-12 김기백 Image data encoding/decoding method and apparatus
WO2018066983A1 (en) * 2016-10-04 2018-04-12 김기백 Image data encoding/decoding method and apparatus
WO2018066988A1 (en) * 2016-10-04 2018-04-12 김기백 Image data encoding/decoding method and apparatus
US20190068946A1 (en) 2017-08-29 2019-02-28 Qualcomm Incorporated Processing omnidirectional media with dynamic region-wise packing
WO2019068745A1 (en) 2017-10-02 2019-04-11 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Efficient immersive streaming

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
M-L CHAMPEL (TECHNICOLOR ET AL.: "OMAF] Dynamic RWP based HEVC media profile", 120. MPEG MEETING; 20171023 - 20171027; MACAU
See also references of EP3782366A4

Also Published As

Publication number Publication date
CN110959292A (en) 2020-04-03
CN113923459B (en) 2024-07-30
US11968374B2 (en) 2024-04-23
US20220360795A1 (en) 2022-11-10
CN113923459A (en) 2022-01-11
EP3782366A1 (en) 2021-02-24
EP3782366A4 (en) 2021-10-20
CN110959292B (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN107454468B (en) Method, apparatus and stream for formatting immersive video
US11823421B2 (en) Signalling of metadata for volumetric video
CN109716766B (en) Method and device for filtering 360-degree video boundary
JP7057453B2 (en) Point cloud coding method, point cloud decoding method, encoder, and decoder
JP6410918B2 (en) System and method for use in playback of panoramic video content
KR102273199B1 (en) Systems and Methods for Increasing Efficiency in Curve View Video Encoding/Decoding
CN111034201A (en) Method, apparatus and stream for encoding and decoding volumetric video
US11138460B2 (en) Image processing method and apparatus
CN108650460B (en) Server, panoramic video storage and transmission method and computer storage medium
JP7371691B2 (en) Point cloud encoding using homography transformation
KR20220069086A (en) Method and apparatus for encoding, transmitting and decoding volumetric video
US20210006830A1 (en) Method for processing immersive video and method for producing immersive video
CN110933461B (en) Image processing method, device, system, network equipment, terminal and storage medium
CN111418213B (en) Method and apparatus for signaling syntax for immersive video coding
CN115462088A (en) Different atlas packing for volumetric video
US11968374B2 (en) Method and device for coding and decoding
US20200413083A1 (en) Image coding apparatus, image coding method, and storage medium
CN112911302A (en) Novel merging prediction coding method for dynamic point cloud geometric information compression
CN117280680A (en) Parallel mode of dynamic grid alignment
US11082718B2 (en) Method and device for coding image and method and device for decoding image
JP2007515012A (en) Method for changing the scale of a three-dimensional model and scale changing unit
US20210150788A1 (en) Media vectorization
US11064218B2 (en) Method and apparatus for encoding/decoding image for virtual view synthesis
CN118369921A (en) Adaptive attribute coding for geometric point cloud coding
WO2024083753A1 (en) Method, device, and computer program for improving transmission and/or storage of point cloud data

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2019918520

Country of ref document: EP

Effective date: 20200918

NENP Non-entry into the national phase

Ref country code: DE