Encoding and decoding spherical coordinates using optimized spherical quantization dictionary

The scalar quantization method adopts multi-level coding in 3D spherical data quantification, and uses the cumulative cardinal value to estimate the spherical area, which solves the problems of high complexity and resource waste in the existing technology, and achieves efficient DoA data encoding and decoding.

CN118696374APending Publication Date: 2024-09-24ORANGE SA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380021767.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-02-14
Filing Date
2023-02-13
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing technology has high complexity in 3D spherical data quantification, especially when encoding and decoding DoA data efficiently, resource consumption is large, and there are unused index problems.

Method used

The scalar quantization method is used to define the spherical quantization dictionary. Through multi-level encoding of elevation and azimuth angles, the cumulative base value is used to directly estimate the spherical area, reducing computational complexity and ensuring the use of all points. It is suitable for 16-bit encoding and decoding.

Benefits of technology

The resource consumption of encoding and decoding is significantly reduced, about 2WMOPS and 1WMOPS, avoiding the problem of unused indexes and improving the efficiency of encoding and decoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118696374A
    Figure CN118696374A
Patent Text Reader

Abstract

The invention relates to a method for encoding or decoding the spatial direction of a sound source, in which a spherical quantization dictionary is defined on a 3D sphere by encoding an elevation angle and an azimuth angle, such that at least one encoded elevation angle index (i) is given over a plurality of elevation angle levels (N [phi]) and the spatial direction of the sound source is encoded on the basis of two consecutive cumulative radix values (cumN (i), N [phi]). And a cumulative cardinal value (cumN (i-1)) representing a point number proportional to the total point number and according to an area of a spherical region including at least one region defined by an upper horizontal plane (phi = (i + 1 / 2) delta phi) of a positive elevation level of the encoded elevation index (i) and a lower horizontal plane of the sphere, the cumulative cardinal value (cumN (i-1)) being a cumulative cardinal value (cumN (i-1)) per level point number (Ny theta (i)) determined by the cumulative cardinal value (cumN (i-1)) of the cumulative cardinal value (cumN (i-1)).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to spherical vector quantization applied to encoding / decoding of sound data to encode the direction of arrival (abbreviated as "DoA") of a source, which is usually expressed by spherical coordinates (eg, azimuth and elevation at a predetermined distance). Background Art

[0002] The coders / decoders (hereinafter referred to as "codecs") currently used in mobile phones are monophonic (a single signal channel to be presented on a single speaker). The 3GPP EVS ("Enhanced Voice Services") codec enables the provision of "Ultra-HD" sound quality (also known as "High Definition Plus" or HD+ Voice), wherein a Super Wideband (SWB) audio band is provided for signals sampled at 32 kHz or 48 kHz or a Full Band (FB) audio band is provided for signals sampled at 48 kHz; the audio bandwidth is 14.4 kHz to 16 kHz in SWB mode (9.6 kbit / s to 128 kbit / s) and 20 kHz in FB mode (16.4 kbit / s to 128 kbit / s).

[0003] The next quality evolution in conversational services offered by operators should consist of immersive services using terminals such as smartphones equipped with multiple microphones, or telepresence or 360° video spatialized audio conferencing or video conferencing equipment, or even "live" audio content sharing equipment with spatialized 3D sound rendering that is more immersive than simple 2D stereo rendering. With the increasing adoption of listening on mobile phones with audio headsets and the emergence of advanced audio devices such as 3D microphones, voice assistants with acoustic antennas, virtual reality or augmented reality headsets and other accessories, it is now common enough to capture and render spatialized sound scenes to provide an immersive communication experience.

[0004] To this end, the future 3GPP standard "IVAS" ("Immersive Voice and Audio Services") plans to extend the EVS codec for immersive audio by accepting at least the following listed spatialized sound formats (and their combinations) as codec input formats:

[0005] - Stereo or 5.1 multichannel formats (channel-based), where each channel feeds one loudspeaker (e.g. L and R in stereo or L, R, Ls, Rs and C in 5.1);

[0006] - object formats (object-based), where a sound object is described as an audio signal (usually mono) associated with metadata describing the properties of that object (spatial position, source spatial width, etc.),

[0007] - Ambisonics format (scene-based) that describes the sound field at a given point, typically captured by spherical microphones or synthesized in the spherical harmonics domain.

[0008] It is also possible to consider other input formats, such as the format called MASA (Metadata Assisted Spatial Audio), which corresponds to a parametric representation of sound pickup on a mobile phone equipped with multiple microphones. This format will be studied in more detail below.

[0009] The signal to be processed by the encoder / decoder is in the form of consecutive blocks of sound samples, hereinafter referred to as "frames" or "sub-frames".

[0010] In addition, in the following text, mathematical symbols follow the following conventions:

[0011] - Scalar: s or N (lowercase for variables or uppercase for constants)

[0012] -vector: (lowercase bold italic)

[0013] -matrix: (UPPERCASE Bold Italic)

[0014] In the following, we will consider the n+1 sphere with radius r Defined as

[0015]

[0016] where ||.|| represents the Euclidean norm. When the radius r is not specified, r=1 (unit sphere) is assumed. The focus here is on the case of dimension 3, where n=2.

[0017] Here we will review the definition of 3D spherical coordinates. For a 3D point (x, y, z), there are usually at least two classical conventions for expressing spherical coordinates as (r, φ, θ):

[0018] - Geographical convention: x = r cosφcosθ, y = r cosφsinθ, z = r sinφ, where r ≥ 0, -π / 2 ≤ φ ≤ π / 2, and -π ≤ θ ≤ π

[0019] - Physical convention: x = r sinφcosθ, y = r sinφsinθ, z = r cosφ, where r ≥ 0, 0 ≤ φ ≤ π, and -π ≤ θ ≤ π

[0020] Without loss of generality, these angles φ, θ are defined herein in radians.

[0021] In both definitions, the radius r and the azimuth (or longitude) θ are the same, but the angle φ differs depending on whether it is defined relative to the horizontal plane 0xy (elevation or latitude on the interval [-π / 2, π / 2]) or based on the axis 0z (co-latitude or polar angle on the interval [0, π]). The azimuth θ can be defined on the interval [-π, π], and in an equivalent manner it can be defined on [0, 2π] by a simple operation modulo 2π. In the following, the same angular coordinate will preferably be expressed in degrees, but other units may be used. It should be noted that the symbols in the literature may be different (for example, with instead of φ) and / or interchangeably (e.g., θ represents co-latitude and indicates longitude).

[0022] In the following, the convention adopted will preferably be that of using elevation and azimuth pairs, but the invention is applicable to all variant definitions of spherical coordinates.

[0023] The present invention is concerned with exemplary embodiments of spherical vector quantization applied to encoding the 3D direction of an audio source. The present invention may also be applied to other audio formats and other signals (eg, images or 360 videos) that require encoding of 3-dimensional spherical data.

[0024] The principles of DiRAC (Di-Directed Audio Coding) will be reviewed below.In some variants, the invention can be applied to other coding schemes, in particular for transform-based audio coding.

[0025] DiRAC coding is described, for example, in the following article: V. Pulkki, Spatial sound reproduction with directional audio coding, Journal of the Audio Engineering Society, Vol. 55, No. 6, pp. 503-516, 2007. In this document, the mapping is performed by directional analysis in order to find the direction (DoA) of each subband. This DoA is supplemented by a "diffuse" parameter, giving a parametric description of the sound scene.

[0026] The multi-channel input signal is encoded in the form of transmission channels (typically a mono or stereo signal obtained by reducing multiple pickup channels) and spatial metadata (DoA and "spread" for each sub-band).

[0027] FIG1 depicts an exemplary implementation of DiRAC coding. In this example, the coding reduces the number of channels (downmixing—block 100), wherein the coding (block 110) is performed, for example, on only one channel using a mono codec (e.g., 3GPP EVS at a given bit rate (24.4 kbit / s)). The input signal is also decomposed (block 120) into frequency subbands, for example, by a filter bank or by a short-time Fourier transform. Here, it is assumed that the division into Bark bands is performed, for example, 24 subbands in frequency distributed on the Bark scale as known from the prior art. In each frame and each subband, the DiRAC coding typically estimates two parameters (block 130)—for simplicity of notation, no frame index or subband is used for the various parameters: the direction (DoA) of the dominant source according to the elevation angle (φ) and the azimuth angle (θ), and the “diffusion” ψ described by Pulkki in the above-mentioned article. The DoA is usually estimated by an activity intensity vector with a time average; in some variants, other methods for estimating φ, θ, ψ will be implemented.

[0028] In each frame and each subband, the DoA is encoded on a predetermined number of bits (e.g. 7 bits) per pair (φ, θ) (block 140). The "spread" ψ is a parameter between 0 and 1 and is encoded here (block 150) by scalar quantization (e.g. 6 bits). Thus, in the example given, the spatial metadata coding budget is 24×(7+6)=312 bits per frame, that is to say 15.6 kbit / s, and the global budget is 24.4+15.6=40 kbit / s. The downmix signal encoding bitstream and the encoded spatial parameters are multiplexed (block 160) to form a bitstream for each frame.

[0029] FIG2 shows an exemplary embodiment of a DiRAC decoder. After demultiplexing the bitstream (block 200), the "downmix" signal is decoded (block 210). The spatial parameters are decoded (blocks 250 and 270). The decoded signal is decomposed into time / frequency (block 220 same as block 120) in order to spatialize it into point sources (plane waves) in a block (block 260) which generates a spatialized 1st order Ambisonics signal as follows:

[0030]

[0031] Based on the decoded signal, a decorrelation is performed (block 230) in order to have a "diffuse" version (corresponding to the maximum source width); this decorrelation also enables an increase in the number of channels so as to obtain a 1st order high-fidelity stereo signal with 4 channels (W, Y, Z, X) at the output of block 230. The decorrelated signal is decomposed into time / frequency (block 240). The signals generated by blocks 240 and 260 are combined per subband (block 275) after applying the scaling factors (blocks 273 and 274) obtained from the decoded "diffuse" (blocks 271 and 272); this adaptive mixing makes it possible to "adjust" the source width and the diffuseness of the sound field in each subband. The mixed signal is converted to the time domain (block 280) by means of a filter bank or an inverse short-time transform.

[0032] Therefore, the source direction in the DiRAC format is represented in the form of 3D spherical data, for example, in the form of spherical coordinates (azimuth, elevation) according to geographical conventions. In this case, it is necessary to efficiently represent this DoA information, which can be formulated as a 3-dimensional sphere The vector quantization problem on .

[0033] Another example of a parameter format for immersive audio is the MASA format described in the document "3GPP Tdoc S4-180087: On IVAS audio formats for mobile capture devices. Source: Nokia Corporation". Figure 3 summarizes this principle. Assume that a mobile phone is equipped with multiple microphones (e.g., 4 microphones) placed at predetermined locations (e.g., two microphones placed at the bottom of the phone, one microphone placed at the top of the phone, and the last microphone placed on the back shell of the phone). In block 300, these microphones are considered to be grouped together, providing as many signals (channels) as the number of microphones - possibly with additional information such as the placement or characteristics of the microphones.

[0034] Block 310 performs a parametric analysis of the signal from block 300 using a similar DiRAC approach, thereby providing the transmission channels and metadata. This MASA analysis is typically proprietary and selected by the phone manufacturer. The number of transmission channels is typically limited to 1 (mono) or 2 (stereo) and can be defined simply by selecting a primary microphone in the case of mono or two opposing microphones in the case of stereo (e.g., one at the bottom of the phone and the other at the top of the phone). An example of the MASA metadata format is described, for example, in the document “3GPP Tdoc S4-191167 (October 2019), IVAS MASA C Reference Software [IVAS MASA C Reference Software], Source: Nokia Corporation”. Of particular note here is a parameter called “Direction Index”, which is encoded in 16 bits and is described in the document as follows: “Direction of arrival of the sound in a time-frequency interval; spherical representation, with an accuracy of approximately 1 degree; value interval: “covers all directions, with an accuracy of approximately 1°”.

[0035] This therefore involves a source direction (DoA) according to a 3D spherical grid with an (angular) resolution close to 1 degree. This DoA information is provided for each frame and frequency subband by DoA estimation (block 311). Block 312 (within block 310) therefore encodes the DoA information encoded at 16 bits per DoA.

[0036] Box 320 represents the IVAS codec, which has not yet been provided as a 3GPP standard and is still under development. However, it has been proposed in 3GPP to use the MASA parameter format that defines the transmission channels and metadata (including DoA for each frame and subband) as the input format of the IVAS codec. Then, the (future) IVAS encoder should implement a step of decoding the DoA information (box 321) so that it can be fully utilized and compressed at a lower rate. The implementation details of compressing the input MASA format into an IVAS bitstream at a given rate and the associated decoding are beyond the scope of the present invention, but it can be noted, for example, that the MASA format is based on the extension principle of DiRAC coding, the transmission channels can be encoded separately (by a mono core codec) or together (by a stereo core codec), and the metadata can be encoded at a rate lower than the MASA input format.

[0037] Generally speaking, a sphere Any discretization of can be used as a spherical vector quantization dictionary. However, without any specific structure, searching for nearest neighbors and indexing in the dictionary may prove to be expensive to implement, especially when the coding rate of the DoA information is too high (e.g., 16 bits per 3D vector indicating one DoA).

[0038] An example of a 3D spherical mesh is given in the appendix and source code attached to the following document: "3GPP Tdoc S4-191167 (October 2019), Description of the IVAS MASAC Reference Software, Source: Nokia Corporation".

[0039] The spatial direction of an audio source in a given frame and a given subband suggested by the WMASA format is represented by two angles: azimuth and elevation. The symbols φ used below represent elevation and θ represent azimuth, whereas the opposite convention is used in document 3GPP Tdoc S4-191167.

[0040] The document gives the definition of spherical grid as follows:

[0041] The grid is composed of N tot =2 16 -208 = 65328 points discretizing the surface of a 3D sphere of radius 1; each point is represented by a single index on 16 bits. The grid is defined by three storage elements:

[0042] The number is N φ = 122 discrete values ​​for encoding positive elevation angles (i.e., |φ|)

[0043] Elevation angle scalar quantization dictionary (for the northern hemisphere corresponding to |φ|):

[0044] Number of points (size of dictionary) N θ (i), i = 0, ..., 121, is used to encode the azimuth at a given discrete elevation angle of index i

[0045] The precise definition of the grid is detailed below:

[0046] Each point on the 3D grid is represented by an encoded elevation value (decomposed into an encoded absolute value (where i=0, ..., N φ -1) and a sign (+1 or -1)) and an encoded azimuth value (j=0, .., N θ (i)-1, which depends on the elevation index i). The coded elevation value when i=0 is And in i=1,...,N φ -1

[0047] Therefore, the number N φ= 122 corresponds to the number of (encoded) elevation angles with positive values ​​(including zero); therefore, the elevation angle scalar quantization dictionary includes 2N taking into account the sign φ -1 = 243 encoding values, and these values ​​can be sorted from north pole to south pole as follows:

[0048] Corresponding to the North Pole

[0049] ...

[0051] Corresponding to the first layer above the equator

[0052] Corresponds to the equator

[0053] Corresponding to the first layer below the equator ...

[0055]

[0056] Corresponding to Antarctica

[0057] The elevation angle φ is encoded by uniform scalar quantization over the interval [-88.65, 88.65] degrees, with additional codewords for the two poles (±90 degrees). The value 0 degrees (corresponding to the equator) is included in the dictionary. The quantization step size is set to

[0058]

[0059] This gives δ φ ≈0.7388 degrees. Therefore, this gives φ -2 hours And at i=N φ -1

[0060] The size of the uniform scalar quantization dictionary N for the azimuth angle θ θ (i) Depends on the encoded elevation angle i; the azimuth step size is set so that the distance between consecutive codewords is the same. The size of the azimuth dictionary is symmetric with respect to the equator (layers with negative elevation angles have the same number of points as layers with positive elevation angles).

[0061] The number of encoded azimuth values ​​N θ (i) is given by:

[0062] N θ (0) = 422

[0063] in,

[0064] N θ (N φ -1)=1

[0065] in

[0066] R(1)≈0·999916868023083

[0067] R(i)=cos(iδ φ ), i = 2, ..., N φ -2

[0068] In practice, this gives:

[0069] N θ (i=0,...,121)=[ 422421421421421421420420419419418417416416415414413411 41040940840640540340140039839639439239038838638438237937737437236936736436135835535234934634334033733333032732332031631330930530129829429028628227 82742692652612572522482442392352302252212162112072021971921881831781731681631581531481431371321271221171111061019690858074696458534742373126201591]

[0072] It can be verified that the total number of points in the grid is:

[0073]

[0074] Each coded elevation angle Defines the spherical area (by elevation value) that uses the azimuth dictionary The spherical area defined by i). The offset of the azimuth dictionary is set to 0 for even values ​​of i and to In other words, the encoded azimuth values ​​(in degrees) are in j=0, ..., N θ (i) -1:

[0075]

[0076] The above cited document presents a method for encoding a given point (φ, θ).

[0077] Given a point (φ, θ) to be encoded, quantization on the grid (searching for nearest neighbors) is performed according to the following steps:

[0078] Determine the sign of the elevation angle φ, sgn φ and the absolute value |φ|; in particular, if φ ≥ 0, then sgn φ =1, otherwise -1. The absolute value |φ| is encoded by uniform scalar quantization by selecting the two nearest neighbors. This encoding with "2 survivors" can be performed, for example, by initially searching for the nearest neighbors in a dictionary of (positive) elevation angles by an exhaustive search.

[0079]

[0080] i1 represents the index of the nearest neighbor. Then, the index i2 of the second nearest value is determined based on the value of i1:

[0081] ○If i1=0, then i2=1

[0082] ○If i1=N φ -1, then i2=N φ -2

[0083] ○If 0<i1<N φ -1, then

[0084] This therefore gives two candidates in, is the encoded absolute elevation angle, k = 1 or 2 to represent the elevation angle φ. In terms of absolute value, these two candidates are simply and

[0085] According to the dictionary corresponding to k=1 or 2 respectively The azimuth angle θ is encoded by uniform scalar quantization (with an elevation-dependent offset). k Obtained as follows:

[0086]

[0087] in, is rounded to a lower integer, if i k is an even number, then Δ=0, if i k If it is an odd number, then it is 180 / N θ (i k ),and It is a modular operation, so if i=0,…,Nθ (i k )-1 and but Index j k Therefore, it satisfies: 0≤j k ≤N θ (i k )-1.

[0088] By minimizing (φ, θ) and The best candidate is selected based on the spherical distance between them, which can be ignored regardless of the sign sgn φ (because The sign of φ is the same as that of φ) and can be written as:

[0089]

[0090] In this sense, the closest pair is selected as the quantized value to be quoted. This selected point is represented by in:

[0091] and and

[0092] Select Point The quantized index (on 16 bits) (here denoted as index) is obtained by enumerating the points on the grid starting from the equator (all elevation points ), then consider the first layer above the equator (all elevation points ), then consider the first layer below the equator (all elevation points ) etc.

[0093] This gives the interval 0, ..., N tot -1 is an index of the form index, where:

[0094]

[0095] Each time the index is determined, the cumulative cardinality value cumN is calculated on the fly:

[0096] cumN(0)=N θ (0)

[0097] cumN(1)=cumN(0)+N θ (1) = N θ (0)+N θ (1)

[0098] cumN(2)=cumN(1)+N θ (1) = Nθ (0)+2N θ (1)

[0099] cumN(3)=cumN(2)+N θ (2) = N θ (0)+2N θ (1)+N θ (2)

[0100] cumN(4)=cumN(3)=N θ (2) = N θ (0)+2N θ (1)+2N θ (2) ....

[0102] cumN(2i-1)=cumN(2i-2)+N θ (i)

[0103] cum(2i)=cumN(2i-1)+N θ (i)

[0104] The decoding method in the above document is explained in the flowchart of FIG. 4 .

[0105] Decoding includes retrieving the elevation information id starting from index index (block 400) φ , sgn φ and azimuth information id θ (Block 413), thereby then enabling reconstruction of the point

[0106] The principle of decoding is to compare the value index successively with the consecutive cumulative cardinality values ​​cumN (or cardinality sum), taking into account that for elevation angles with the same absolute value (in the northern and southern hemispheres) the cardinality N θ (i) are the same, these consecutive cumulative base values ​​are in i=0,...,N φ -1 is calculated recursively on the fly. The symbol of the elevation angle is sgn φ Decoding is done by using the following predefined order of writing the spherical layers: equator, first layer with positive elevation (+), first layer with negative elevation (-), ..., up to the North Pole (+) and South Pole (-) ...

[0107] Pair id φ 、sgn φ , the value of cumN(0) is initialized (block 401).

[0108] If index ≥ cumN(0) (block 402), decode the information for the "elevation layer" outside the equator of the index (i>0). Starting from i=1 until i=N φ -1 (blocks 403, 404, 411), the search for the "elevation layer" is performed in a cyclic manner. In iteration i, the cumulative cardinality is recursively calculated (blocks 405, 408) and compared with the index (blocks 406, 409) to decode the index (blocks 407, 410).

[0109] If index < cumN(0) (block 402), then the information index is decoded for the layer corresponding to the equator (block 412).

[0110] It should be noted that in the implementation of the source code attached to the document 3GPP Tdoc S4-191167, the implementation for verifying whether i=N φ Test with -1 to explicitly decode the id φ =N φ -1,sgn φ =-1, id θ = 0. This is not used because the symbol sgn is not used in the grid containing the North and South Poles. φ = 1 should also be possible, and this part is usually unnecessary, because the definition of cumN(N φ -1) should allow decoding of points associated with poles. The specific management of the poles can be ignored; what is important is the principle of iterative decoding by comparing the index to a cumulative cardinality (or sum of cardinalities) computed over time.

[0111] Once the index id φ , sgn φ and id θ Already decoded, in 413 for spherical coordinates The reconstruction can be done using the grid definition above, where:

[0112] When i=0,...,N φ -2 o'clock, And at i=N φ -1 hour,

[0113]

[0114] This method, as implemented in the above-cited document 3GPP Tdoc S4-191167, requires preliminary storage of N for scalar quantization of (positive) elevation angles. φ = 122 floating values Give N for each (positive) elevation layer θ (i) N of valuesφ integer values, and given N φ The grid does not use all possible index values ​​on 16 bits, because 208 indices (from 65328 to 65535) are not used.

[0115] The main drawback of this method is that its complexity is very high, assuming 24 subbands (and therefore 24 DoAs per frame) and a temporal resolution of 5 ms (and therefore one frame every 5 ms), its encoding complexity is about 123 WMOPS (weighted million operations per second) and its decoding complexity is about 12 WMOPS. This cost is high, in particular since the scalar quantization of the elevation angle is implemented by searching in a stored dictionary and especially since the cumulative base cumN(i) is calculated on the fly.

[0116] Therefore, there is a need to improve the prior art methods for quantizing 3D spherical data, in particular to efficiently encode DoA data, reduce complexity as much as possible, and at the same time avoid unused indices for a given total number of points (or equivalently a given bit budget).

[0117] The present invention aims to improve the prior art. Summary of the invention

[0118] To this end, the present invention is directed to a method for encoding a spatial direction of a sound source, the direction being defined by spherical coordinates comprising elevation coordinates and azimuth coordinates, wherein a spherical quantization dictionary is defined on a 3D sphere by elevation encoding and azimuth encoding, and wherein:

[0119] - the elevation coding uses scalar quantization to give at least one coded elevation index at a plurality of elevation levels,

[0120] - The azimuth encoding uses scalar quantization, with the number of points per level depending on the encoded elevation index,

[0121] -The points per level are determined based on two consecutive cumulative base values,

[0122] - the cumulative cardinality value of the encoded elevation index represents a number of points proportional to the total number of points and according to the area of ​​a spherical region comprising at least one region bounded by an upper horizontal plane of positive elevation levels of the encoded elevation index and a lower horizontal plane of the sphere.

[0123] Therefore, the cumulative cardinality value used to define the spherical quantization dictionary, and in particular to determine the number of quantization levels for azimuthal coordinates, is based on a direct estimation of the area of ​​the spherical region, thereby avoiding the immediate and recursive calculation of the sum of the cardinality used in the methods proposed in the prior art, which is very resource-intensive.

[0124] The method proposed here greatly reduces resource consumption, and for example, the resources consumed by encoding are about 2 WMOPS, and the resources consumed by decoding are about 1 WMOPS.

[0125] Defining such a quantization dictionary can also utilize all possible points (or codewords) in the dictionary to make quantization more efficient and avoid unused indices (or codewords) in the grid. In particular, the present invention is applied to implement a more efficient method for encoding and decoding DoA information on 16 bits to define a MASA format at the input of IVAS encoding.

[0126] In one embodiment, the elevation encoding includes levels corresponding to the equator and the poles of the 3D sphere, so that all specific points of the sphere (equator and poles) can be included in the quantization dictionary.

[0127] In one embodiment, the number of points of the azimuth code is predetermined for the elevation level corresponding to the equator, and the total number of points is obtained by subtracting the predetermined number of points corresponding to each of the equator and the north and south poles of the sphere from the target number of points according to the following expression: N′ tot =N tot -N θ (0)-2N θ (N φ -1),

[0128] N tot is the target number of points on the sphere for a given bit budget,

[0129] N θ (0) is the predetermined number of points for the elevation level corresponding to the equator; and

[0130] 2N θ (N φ -1) are the predetermined points for the north and south poles of the sphere.

[0131] Therefore, the method is suitable for knowing the number of points of certain specific spherical layers (such as the points corresponding to the equator and the points corresponding to the poles), which can be defined as fixed values.

[0132] In a specific embodiment, the cumulative cardinality value of the encoded elevation index represents the area (A) of the spherical region defined by the upper horizontal plane of the positive elevation level of the encoded elevation index and the same plane of symmetry about the equator of the sphere. i ) minus the area corresponding to the elevation level of the equator (A0) proportional to the total number of points, according to the following ratio:

[0133]

[0134] N φ -2 is the number of elevation quantization levels without the equator and the north and south poles of the sphere, and the area of ​​the spherical area Corresponding to the elevation index N φ -2.

[0135] In a variant embodiment, the cumulative cardinality value of the encoded elevation index represents the area (A′) of the spherical region bounded by the upper horizontal plane of the positive elevation level of the encoded elevation index and the same plane of the equator. i ) minus a number of points proportional to the total number of points corresponding to half the area of ​​the level of elevation at the equator, according to the following ratio:

[0136]

[0137] N φ -2 is the number of elevation quantization levels without the equator and the north and south poles of the sphere, and the area of ​​the spherical area Corresponding to the elevation index N φ -2.

[0138] The area ratios of these spherical regions enable easy and direct estimation of the number of points in the corresponding spherical region as a subset of the complete surface of the 3D sphere by a simple rule of three.

[0139] These ratios allow the cumulative cardinality values ​​to be expressed as follows:

[0140]

[0141] in

[0142] i=1,...,N φ -2, N φ -2 is the number of elevation quantization levels without the equator and the north and south poles of the sphere,

[0143] Arri() depends on i being rounded to the nearest integer. corresponds to rounding to an even integer, and δ φ is the given quantization step size for this elevation angle.

[0144] In one embodiment, the elevation angle is encoded in multiple elevation angle levels (N φ ) gives the encoded elevation angle index (i) and sign information.

[0145] Therefore, only one hemisphere is considered to define the quantization dictionary, and the number of elevation levels and the number of points per level are symmetric about the equator.

[0146] In one embodiment, based on the number of points per level (N) determined by scalar quantization θ(i)) and a cumulative base value obtained based on at least the encoded elevation index to determine a global quantization index to be transmitted.

[0147] The cardinality values ​​thus defined can be directly estimated (analytically) in order to define the global index to be transmitted, so that the maximum computational complexity can be reduced.

[0148] The invention also relates to a method for decoding a spatial direction of a sound source, the direction being defined by spherical coordinates comprising elevation coordinates and azimuth coordinates, wherein a spherical quantization dictionary is defined on a 3D sphere by elevation coding and azimuth coding, and wherein:

[0149] - The elevation decoding uses scalar quantization to decode the elevation angle at multiple elevation levels (N φ ), at least one decoded elevation index (i) is given on

[0150] The azimuth decoding uses scalar quantization, with the number of points per level (N) depending on the decoded elevation index (i) θ (i)),

[0151] -The number of points per level (N θ (i)) is determined based on two consecutive cumulative cardinality values ​​(cumN(i), cumN(i-1)),

[0152] - the cumulative cardinality value (cumN(i)) of a decoded elevation index (i) represents the number of points proportional to the total number of points and based on the area of ​​the spherical region that includes the upper horizontal plane of the positive elevation level of the decoded elevation index (i) At least one area is defined by a lower horizontal plane of the sphere.

[0153] The decoding method has the same advantages as the encoding method, and can optimize computational resources by using an optimized spherical quantization dictionary.

[0154] In the same manner and according to the same advantages as encoding, in one embodiment, the elevation decoding includes levels corresponding to the equator (0°) and the poles of the 3D sphere (+ / - 90°).

[0155] According to a specific embodiment, the number of points (N) of the azimuth decoding θ (0)) is predetermined for the elevation level corresponding to the equator, and the total number of points (N′ tot ) is obtained by calculating the number of target points (N) according to the following expression: tot =2 16 ) by subtracting a predetermined number of points corresponding to each of the equator and the north pole and the south pole of the sphere: N′ tot =Ntot -N θ (0)-2N θ (N φ -1),

[0156] N tot is the target number of points on the sphere for a given bit budget,

[0157] N θ (0) is the predetermined number of points for the elevation level corresponding to the equator; and

[0158] 2N θ (N φ -1) are the predetermined points for the north and south poles of the sphere.

[0159] In one embodiment, the cumulative cardinality value (cumN(i)) of a decoded elevation index (i) represents the upper horizontal plane according to the positive elevation level of the decoded elevation index (i). with respect to the equator of the sphere The area of ​​the spherical region bounded by the same plane of symmetry (A i ) minus the area corresponding to the elevation level of the equator (A0) proportional to the total number of points, according to the following ratio:

[0160]

[0161] N φ -2 is the number of elevation quantization levels without the equator and the north and south poles of the sphere, and the area of ​​the spherical area Corresponding to the elevation index N φ -2.

[0162] In one possible example, the expression for the cumulative base value is as follows:

[0163]

[0164] in

[0165] i=1,...,N φ -2, N φ -2 is the number of elevation quantization levels without the equator and the north and south poles of the sphere,

[0166] Arr i (0) depends on i being rounded to the nearest integer. corresponds to rounding to an even integer, and δ φ is the given quantization step size for this elevation angle.

[0167] According to one embodiment, the elevation decoding is performed at multiple elevation levels (N φ) gives the decoded elevation index (i) and symbol information.

[0168] In one embodiment, the decoding includes receiving a global quantization index (index), and determining, based on the index, a cumulative base value obtained based on at least the decoded elevation index and the number of points per level (N) determined. θ (i)) on the decoded azimuth index.

[0169] The present invention is directed to a coding device comprising a processing circuit for implementing the steps of the coding method as described above.

[0170] The present invention is also directed to a decoding device comprising a processing circuit for implementing the steps of the decoding method as described above.

[0171] The invention relates to a computer program comprising instructions for implementing a coding method or a decoding method as described above when the computer program is executed by a processor.

[0172] Finally, the present invention relates to a storage medium which can be read by a processor and stores a computer program comprising instructions for executing the above encoding method or decoding method. BRIEF DESCRIPTION OF THE DRAWINGS

[0173] Other characteristics and advantages of the invention will become more clearly apparent after reading the following description of specific embodiments given purely by way of illustrative and non-limiting examples, and of the accompanying drawings, in which:

[0174] [Figure 1] As described above, a DiRAC encoding device for encoding 3D spherical data is shown;

[0175] [Figure 2] As described above, a DiRAC decoding device for decoding 3D spherical data is shown;

[0176] [Figure 3] As described above, a smartphone device equipped with multiple microphones is shown, the smartphone device having a MASA spatial pre-analysis function to provide a MASA format as an input for encoding;

[0177] [Figure 4] As described above, the steps implemented when decoding 3D spherical data are shown in the form of a flow chart;

[0178] [ Figure 5a ] shows a spherical area generated by defining a spherical quantization dictionary by discretizing elevation angles according to an embodiment of the present invention;

[0179] [ Figure 5b ] shows a method for determining the number of points in azimuth to define an area of ​​a spherical quantization dictionary according to one embodiment of the present invention;

[0180] [ Figure 6a ] shows in the form of a flow chart the steps implemented in an encoding method according to an embodiment of the present invention;

[0181] [ Figure 6b ] shows the compilation steps implemented in the encoding method according to one embodiment of the present invention in the form of a flow chart;

[0182] [ Figure 7a ] shows in the form of a flow chart the steps implemented in a decoding method according to an embodiment of the present invention;

[0183] [ Figure 7b ] shows in the form of a flow chart the steps of decoding the quantization index implemented in the decoding method according to an embodiment of the present invention;

[0184] [ Figure 8a ] shows in the form of a diagram the encoding implemented in the decoding method according to an embodiment of the present invention (in the northern hemisphere of the 3D sphere);

[0185] [ Figure 8b ] shows in diagram form the encoding implemented in the decoding method according to one embodiment of the present invention (in the southern hemisphere of the 3D sphere); and

[0186] [ Fig. 9 ] shows an example of a structural implementation of an encoding device and a decoding device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0187] The invention described below relates to the quantization of 3-dimensional spherical data. This applies, for example, to the encoding and decoding of the spatial direction of a sound source (DoA), for example for the encoding and decoding of MASA data, as described later with reference to Figures 5 to 7. In some variants, the invention can be applied to DiRAC encoding or encoding / decoding of any type of audio data or encoding of any other type of data in which 3D direction information is encoded.

[0188] Without loss of generality, the definition of 3D spherical coordinates (in degrees) will be adopted here in accordance with the geographical convention used in the description of the MASA format reference proposal.

[0189] In case the direction of the source (or DoA) is encoded, as in the DiRAC or MASA schemes, the radius, which is set to 1 here, will be omitted, leaving only the azimuth and elevation. In some variants and for some applications (e.g. quantization of subbands in transform-based coding), the radius may be encoded separately (e.g. corresponding to the average amplitude level of each subband).

[0190] In some variants, units other than degrees will be used (e.g., radians), and conventions other than geographic conventions will be used; for example, the elevation angle may be replaced by co-latitude. Thus, according to the invention, other equivalent spherical coordinate systems may be used (e.g., obtained by permuting or inverting Cartesian coordinates) - it will be sufficient to apply the necessary transformations in the definition, reconstruction, etc. of the scalar quantization dictionary. The encoding and decoding according to the invention is applicable to all spherical coordinate definitions, and thus other spherical coordinates may be used instead of φ, θ by adjusting the conversion between Cartesian and spherical coordinates.

[0191] Figure 5a A 2D partial representation of a spherical quantization dictionary (grid) according to one embodiment of the present invention is shown. According to the present invention, the spherical quantization dictionary is defined by elevation coding and azimuth coding. The elevation coding uses scalar quantization, where the elevation angles are discretized to levels corresponding to the equator (zero elevation) and the poles of the 3D sphere (elevation + / -90°) according to one embodiment. The elevation coding gives at least one encoded elevation index (i) at multiple elevation levels.

[0192] This discretization uses multiple positive levels for the Northern Hemisphere (N φ ) and elevation sign indication (indicating northern or southern hemisphere), which is equivalent to 2N encoding elevation in both the northern and southern hemispheres of the 3D sphere φ -1 level.

[0193] like Figure 5a As shown in FIG. 1 , the spherical quantization dictionary (hereinafter also referred to as the grid according to the invention) can therefore be considered as the 2N generated by the elevation quantization (the limits of each dashed line slice are given by the (out-of-pole) elevation quantization decision threshold) φ -1 "spherical layer" group or "horizontal slice" group, shown as The surface of the Northern Hemisphere is divided into layers C0 (only the upper part of C0 above the equator is in the Northern Hemisphere), The surface of the Southern Hemisphere is divided into layers C0 (only the lower half of C0 below the equator is in the Southern Hemisphere),

[0194] It should be noted that Figure 5a The 2D projection of the 3D sphere is shown, taking an arbitrary vertical cutting plane. The axis Oz in Cartesian coordinates is indicated with a scale according to the sine of the elevation angle, since the z coordinate corresponds to z=sin in the chosen convention φ .

[0195] Azimuth encoding uses scalar quantization, with the value of i = 0 depending on the encoded (positive or absolute) elevation index (i = 0, ..., N φ-1) of the azimuth level number (N) θ (i)) (also called points per level), the number of levels N θ (i) Symmetric about the equator for the northern and southern hemispheres.

[0196] The determination of this number of azimuth levels is described below.

[0197] In order not to overload the drawing, the number of levels N according to the elevation level in azimuth is not shown. θ (i) Discretization of the azimuth subdivides these horizontal layers into equally distributed “zones”.

[0198] The spherical grid according to the invention discretizes the elevation angle and the azimuth angle separately by scalar quantization, wherein the number of levels N depends on the (positive or absolute) coded elevation angle value i. θ (i)) discretizes the azimuth angles uniformly. However, the best search for nearest neighbors in the grid involves selecting two elevation candidates, and therefore also two associated azimuth candidates, in order to select the best candidate; this therefore amounts to a joint encoding, even though in practice they are separate, and the actual decision region of the grid (in terms of the Voronoi regions on the sphere surface) is therefore not a spherical rectangle. However, for the purposes of indexing (encoding and decoding of the global index), the discretization of the 3D sphere surface can be considered as a separate elevation and azimuth partitioning to obtain a spherical rectangle (excluding the polar caps).

[0199] According to the encoded (positive or absolute) elevation index i, a scalar quantization dictionary is used (with N for |φ| φ level and has sign information s (indicating the northern hemisphere when s=+1, or the southern hemisphere when s=-1)) and a set of uniform scalar quantization dictionaries (with N for θ θ (i) level) to encode the coordinates φ and θ respectively.

[0200] In one specific embodiment, the total number of points on the sphere discretized according to various determined numbers of levels (also referred to as the total number of points in the 3D grid) is given by:

[0201]

[0202] This number includes elevation levels (spherical layers) and the equator (C0, id φ =0) corresponding point N θ (0) and index (i=1, ..., N φ -1) at each positive elevation level (also called elevation layer Ci) θ(i) The points are symmetric between the northern and southern hemispheres and are therefore double counted.

[0203] The spherical grid is therefore defined as the following spherical vector quantization dictionary (where the radius is assumed to be 1 by convention):

[0204]

[0205] It should be noted that the value of s when i = 0 is arbitrary because

[0206] In a preferred embodiment, the 3D grid is defined for a given bit budget of, for example, 16 bits, giving a total number of points on the sphere, ie, N tot =2 16 In some variations, N tot Other values ​​of (and therefore bit budget values) will be possible.

[0207] In N φ The elevation angle is encoded at the reconstruction level by scalar quantization. In a preferred embodiment, N φ = 122 is set to the number of positive levels, as in the grid of the MASA format described above. This can especially make the northern hemisphere (N φ If the Southern Hemisphere is also considered, then in 2N φ The elevation angle is encoded at the -1 level (counted only once for the equator). Including the poles allows a complete representation of the sphere, and the impact is minimal since only 2 points in the grid are associated with the poles (when the sign is applied).

[0208] For elevation coding via scalar quantization, a uniform quantization step size δ is defined φ (outside the pole), and use the following formula:

[0209] When i=0,...,N φ -2 o'clock, And at i=N φ -1 hour,

[0210] Among them, for example, δ φ = 0.7388 degrees, as in the grid of the MASA format described above. If the sign is taken into account, the quantization step size is in the interval or [-(N φ -2)δ φ ,(N φ -2)δ φ ] is uniform.

[0211] Azimuth angle θ at N θ(i) Encoding is performed by scalar quantization at the level. Considering the cyclic nature of the interval [180, 180] degrees, it is preferred to use a uniform scalar quantization dictionary for uniform scalar quantization:

[0212]

[0213] As is known, the azimuth dictionary sets the offset to 0 for even values ​​of i and to In order to "shift" the "horizontal slice" (spherical layer) of the sphere associated with each elevation angle of index i (defined by the elevation decision threshold) so that the encoded azimuth angles are aligned as little as possible from one consecutive layer to another.

[0214] In some variants, for elevation coding, uniform scalar quantization over the interval [0, 90] degrees (including the values ​​0 and 90 as reconstruction levels) may be used:

[0215]

[0216] This is equivalent to changing the quantization step size δ φ , so that δ φ =90 / (N φ -1), that is, when N φ =122, δ φ ≈0.7438; in this case, the poles are usually included as codewords. If the sign is considered, the quantization step size is in the interval (ie, [-90, 90] degrees).

[0217] In other variations, the number of levels N may be varied. φ or from a scalar quantized dictionary of (positive or absolute) elevation angles However, it will be assumed that and

[0218] In other variants, the offset applied in azimuth may be different depending on the elevation layer, the important aspect being that the number of azimuth levels is defined according to the invention.

[0219] According to the present invention, each level point (N θ (i)) is determined based on two consecutive cumulative cardinality values ​​(cumN(i), cumN(i-1)), the cumulative cardinality value (cumN(i)) of the encoded elevation index (i) representing a number of points proportional to the total number of points and based on the area of ​​the spherical area that includes the upper horizontal plane of the given positive elevation level (i) and the lower horizontal plane (e.g., φ = δ φ / 2). In a preferred embodiment, the spherical area also includes a symmetrical portion in the southern hemisphere, the symmetrical portion including the upper horizontal plane of the given elevation level (i). With the lower horizontal plane (φ=-δ φ / 2). The notation cumN(i) is used here, but it should not be confused with the notation used previously in the description of the prior art.

[0220] Figure 5b These spherical areas are shown taking into account the surface area of ​​the 3D sphere in the first and second embodiments.

[0221] In a specific embodiment, the number of azimuth levels N θ (i) by N θ (0) and N θ (N φ -1), which correspond to one of the equator and the pole respectively.

[0222] When determining the cumulative base value and defining the total number of points N' used for the determination tot These predetermined points (N θ (0) and N θ (N φ -1)).

[0223] In this embodiment, the total number of points (N′ tot ) is obtained by calculating the number of target points (N) according to the following expression: tot = 216) by subtracting a predetermined number of points corresponding to each of the equator and the North Pole and the South Pole of the sphere: N′ tot =N tot -N θ (0)-2N θ (N φ -1), N tot is the target number of points on the sphere for a given bit budget, N θ (0) is the predetermined number of points for the elevation level corresponding to the equator, and 2N θ (N φ -1) are the predetermined points for the north and south poles of the sphere.

[0224] In the main embodiment, N θ (0) is an even value, N θ (N φ -1)=1, and therefore when N tot When N is an even number, tot Also an even number.

[0225] exist Figure 5bIn the example shown, the upper horizontal plane at a given positive elevation level (i) Relative to the equator of a sphere The area of ​​the spherical region bounded by the same plane of symmetry is represented by the shaded area A i From this area, the area corresponding to the elevation level at the equator (shown as A0) is subtracted to determine the cumulative cardinality value (cumN(i)) for a given positive elevation level (i).

[0226] For this purpose, based on the ratio To estimate the number of points. According to the following ratio, this number of points and the total number of points N' tot Proportional:

[0227]

[0228] By design, when i = N φ -2, the ratio is exactly N tot ′, thus ensuring that the total points are fully utilized.

[0229] Since this ratio is normally a fraction, it must be rounded to obtain a cumulative basis, and since in the main embodiment the points are determined for both the Northern and Southern Hemispheres (and therefore are repeated), in this case rounding will be done to an even integer (either the nearest lower integer or the higher integer).

[0230] It will be recalled that around the sphere The surface area of ​​an element at a point (θ, φ) on the surface is given by dA = r 2 cosφd θ d φ is given by, where φ is the elevation angle here (if co-latitude is used, this will be expressed in the term sin φ Given). By the elevation angle interval [φ min ,φ max The partial surface area defined by the spherical region bounded by the two horizontal planes generated by ] is given by the following formula, where -90°≤φ min <φ max ≤90°, azimuth angle is [-180°, 180°]:

[0231]

[0232] In particular, this gives the known result that a sphere of radius r The surface area is A tot =A(-90°, 90°)=4πr 2 (For φ min = -90° and φ max =90°).

[0233] For a spherical grid (or spherical vector quantization dictionary), the The horizontal plane outside the corresponding central area The number of remaining points N in the bounded spherical region (a subset of the 3D sphere surface) tot ', each "decision region" associated with a point in the grid is approximated here as a "spherical rectangle" for indexing purposes (this corresponds to a separate coded decision with respect to spherical coordinates). If the grid is uniform, then each of these regions should ideally have 4πr 2 / N tot ′ surface area.

[0234] In order to φ -2)δ φ ,(N φ -2)δ φ ], the elevation angle is discretized uniformly, as in the main embodiment, so that the grid can be estimated to be contained in the decision threshold of the positive part of the sphere (the northern hemisphere) and The number of points within the spherical area (or "slice") bounded by the two associated horizontal planes.

[0235] Based on the above ratios, a simple rule of three is expressed

[0236] Can be expressed in and And among them

[0237]

[0238] In an exemplary embodiment, the following is set up:

[0239] N θ (0) = 430

[0240] In some variations, N θ The value of (0) can vary, but is uniform.

[0241] In addition, according to convention, N is set θ (N φ -1)=1, since a single point is sufficient to represent a pole.

[0242] The number of points per elevation level i is expressed as:

[0243]

[0244] in,

[0245] cumN(0)=0

[0246]

[0247] Where i = 1, ..., N φ -2,

[0248] Where N′ tot =N tot -N θ (0)-2N θ (N φ -1)

[0249] And Arr i () is rounded to the nearest lower or higher integer depending on i. In a preferred embodiment, when i=2, ..., N φ When -2, Arr1() is rounded to the upper integer, and Arr i ()Round to the nearest integer.

[0250] It should be noted that the function 2Arr i (x / 2) actually corresponds to rounding to the (nearest lower or higher) even integer, whereby the result can be divided by 2 in order to assign half of the integer to each hemisphere.

[0251] It should be noted that, by definition,

[0252] Furthermore, it should be noted that the notation cumN(i) is adopted here, even though it is different from the notation used in the description of the MASA format previously proposed in the prior art. In fact, here cumN(i) corresponds to the cumulative basis of the spherical grid up to and including elevation layer i (as well as layers in the northern and southern hemispheres), but excluding the equator. Therefore, in the description of the present invention, for i=1, ..., N φ The definition of cumN(i)-N in the case of -2 corresponds to the definition of cumN(2i)-N in the prior art. θ (0) is equivalent to.

[0253] In a variant that defines other quantization levels for elevation angles, according to The definition of cumN(i) will be obtained by using Other corresponding decision thresholds of the form are replaced by So, more generally, it can be written as:

[0254]

[0255] Where i = 1, ..., N φ -2.

[0256] An example of the values ​​obtained for the preferred embodiment is given below:

[0257] N θ (i=0,...,121)= [430 423 422 422 422 422 421 421 420 420 419 418 417 417 416 414 414 412 412 409 409 407 406 404 402 401 399 397 395 394 391 389 387 385 383 380 378 375 373 370 368 365 362 359 356 354 350 347 344 341 338 334 331 328 324 321 317 313 310 306 302 299 294 291 287 282 279 274 270 266 262 258 253 249 244 240 235 231 226 222 217 212 208 202 198 194 188 183 179 173 169 163 159 153 148 144 138 133 127 123 117 112 107 102 96 91 85 81 75 69 64 59 53 48 43 37 32 26 21 15 10 1]

[0267] It can be easily verified that:

[0268] This indeed corresponds to N tot .

[0269] Therefore, according to the present invention, the cardinality N θ (i) It ensures that for a given total number N tot There are no unused indices. This property follows from the fact that the cumulative cardinality cumN(i) is defined such that cumN(N φ -2) = N′ tot .

[0270] In another exemplary embodiment, no predetermined number is set for the elevation angle levels corresponding to the equator.

[0271] In this case, the cumulative base value is the rounded value of the following ratio:

[0272]

[0273] Among them, for example, N tot =2 16 .

[0274] This then gives (outside the pole)

[0275]

[0276] Where i = 0, ..., N φ -2. In this case: N θ (0) = cumN(0)

[0277] as well as

[0278]

[0279] Where i = 1, ..., N φ -2. N is also set θ (N φ -1)=1.

[0280] The following gives the definition of N according to the preferred embodiment. φ =122 and δ φ An example of the values ​​obtained for this variant definition of cumN(i) in the case of

[0281] N θ (i=0,...,121)= [422 423 422 423 422 421 422 420 421 419 419 419 417 417 416 414 414 412 412 410 408 407 406 404 403 400 400 397 395 393 392 389 387 385 383 380 378 375 373 370 368 365 362 359 356 354 350 348 344 341 337 335 331 328 324 321 317 313 310 306 302 299 294 291 287 282 279 274 271 266 261 258 253 249 244 240 236 230 227 221 217 213 207 203 198 193 188 184178 174 168 164 158 154 148 144 138 133 127 123 117 112 107 102 96 91 85 8175 69 64 59 53 48 43 37 32 26 21 15 10 1]

[0285] In this case, it is particularly easy to verify:

[0286] This indeed corresponds to N tot .

[0287] In a variant that defines other quantization levels for elevation angles, according to The definition of cumN(i) will be obtained by using Other corresponding decision thresholds of the form are replaced by To rewrite.

[0288] In other variations, there is no θ (0)) or with the North and South Poles (N θ (N φ -1)) corresponding to the elevation level setting of a predetermined number. This variant is particularly suitable for the following case: the scalar quantization of φ is uniform on the interval [0, 90] degrees (including the values ​​0 and 90 as reconstruction levels), where:

[0289]

[0290] where δ φ =90 / N φ -1.

[0291] In this case, one can define:

[0292]

[0293] Where i = 0, ..., N φ -2, and

[0294] cumN(N φ -1)=N tot

[0295] This gives:

[0296] N θ (0) = cumN(0)

[0297] as well as

[0298]

[0299] Where i = 1, ..., N φ -1.

[0300] The following gives the definition of N according to the preferred embodiment. φ =122 and δ φ An example of the values ​​obtained for this variant definition of cumN(i) in the case of

[0301] N θ (i=0,...,121)= 426 425 425 425 425 425 424 423 423 423 422 421 420 419 419 417 416 415 414 413 411 410 408 406 405 403 402 399 398 395 394 391 390 387 384 382 380 377 375 372 369 367 364 360 358 355 352 349 345 342 339 336 332 328 325 322 318 314 310 307 302 299 295 291 287 283 278 275 270 266 261 257 253 248 244 239 235 230 225 221 215 212 206 201 197 191 187 182 177 171 167 161 157 151 146 141 136 130 125 120 114 110 104 98 93 88 82 77 72 66 60 55 50 44 38 34 27 22 17 11 5 1]

[0304] In this case, it is particularly easy to verify:

[0305] This indeed corresponds to N tot .

[0306] exist Figure 5b In the second example shown, the upper horizontal plane at a given positive elevation level (i) The area of ​​the spherical region bounded by the upper horizontal plane of the equator is shown by area denoted A'i. From this area, half the area corresponding to the elevation level of the equator (shown as A0) is subtracted to determine the cumulative cardinality value (cumN(i)) for a given positive elevation level (i).

[0307] For this purpose, based on the ratio To estimate the number of points. According to the following ratio, this number of points and the total number of points N' tot Proportional:

[0308]

[0309] in is the positive elevation level N φ -2 upper horizontal plane The area of ​​the spherical surface bounded by the upper horizontal plane of the equator.

[0310] The results are equivalent to those described above, because

[0311]

[0312] In a variant embodiment, the cumulative cardinality value may be expressed taking into account only the number of points in the positive part of the sphere.

[0313] In this case, based on the ratio To estimate the number of points. According to the following ratio, this number of points and the total number of points N' tot Proportional:

[0314]

[0315] The expression for the cumulative base value is given by, for example, the following formula:

[0316]

[0317] Where i = 1, ..., N φ -2

[0318] Where N′ tot =N tot -N θ (0)-2N θ (N φ -1)

[0319] And Arri() is rounded to the nearest integer depending on i. In a preferred embodiment, when i=2, ..., N φ When -2, Arr1() is rounded to the upper integer, and Arr i ()Round to the nearest integer.

[0320] And the number of points per elevation level i is expressed as:

[0321] N θ (i)=(cumN′(i)-cumN′(i-1))

[0322] Figure 6a A method for encoding the spherical coordinates (φ, θ) of an input point (E201) on a 3D sphere is described. In one embodiment, this encoding method can be implemented by block 312 in FIG. 3 for the MASA data format, or by block 140 in FIG. 1 for the DiRAC encoder.

[0323] The quantization and search of spherical coordinates is performed as follows:

[0324] The elevation angle φ is first encoded in E202-1. To make the search optimal, two values ​​must be selected Among them, sgn φ is the sign of φ, and is the coded absolute elevation angle, where k = 1 or 2. This coding can be done by determining the φ Preferably, the elevation index i1 is directly determined by rounding to an integer instead of an exhaustive search in the elevation scalar dictionary:

[0325]

[0326] If i1 ≥ N φ -1, then

[0327] The last step is necessary here because in the preferred embodiment: φ -2, use And at i=N φ -1, use

[0328] Therefore, the quantization step size is only in the interval [-(N φ -2)δ φ ,(N φ -2)δ φ ] is uniform. For index i=N φ-1, N φ For codewords of -2, an explicit nearest neighbor search is required.

[0329] In some variations where the steps are uniform over [-90, 90] degrees, one can take:

[0330]

[0331] where δ φ =90 / (N φ -1), it is known that:

[0332]

[0333] The index i2 can be determined as described above in the MASA method in the prior art, namely:

[0334] ○If i1=0, then i2=1

[0335] ○If i1=N φ -1, then i2=N φ -2

[0336] ○If 0<i1<N φ -1, then

[0337] It should be noted that in all cases the values ​​i1 and i2 can be transformed without changing the encoding result.

[0338] The azimuth angle θ is the number of adaptation levels N determined in E204-2 using the exemplary embodiment described in the MASA method in the prior art (E203-2). θ (i) (where i = i1 or i2) is encoded by uniform scalar quantization so that the two values ​​are obtained in E204-2 respectively. More specifically, you can take:

[0339]

[0340] This therefore gives two candidates in step E205

[0341] In step E206 , the closest candidate (φ, θ) is selected according to k, for example as in the MASA method in the prior art.

[0342]

[0343] The closest pair is selected as the quantized value to be quoted. This selected point is represented by

[0344] In some variations, the distance criterion may be evaluated by converting the points into Cartesian coordinates in order to evaluate a Euclidean distance to be minimized or a scalar product to be maximized.

[0345] The quantization index selected in E206 corresponds to the selected point:

[0346] Based on information sgn φ ,id φ and id θ The compilation step E207 includes determining the unique index to be transmitted 0≤index<N tot .

[0347] In this step, a global quantization index is determined based on individual indices resulting from individual quantization of the spherical coordinates of the selected closest point.

[0348] Now refer to Figure 6b To describe this step, the figure shows an exemplary embodiment.

[0349] Based on information from E600 sgn φ ,id φ and id θ , test id in E601 and E603 φ The value of .

[0350] If in E601 id φ = 0, then index = id θ (E602)

[0351] or

[0352] If in E603 id φ =N φ -1, then index = N tot -2+(sgn φ <0)(E604) In other cases,

[0353] index=offset+id θ (E605)

[0354] in

[0355]

[0356] It will be recalled that

[0357]

[0358] Corresponds to the cumulative cardinality of the spherical grid up to and including elevation layer i (and layers in the northern and southern hemispheres and including the equator).

[0359] The index of a point (codeword) in elevation layer i has the following form:

[0360] index=offset+id θ

[0361] The value of offset must therefore correspond to the cumulative basis up to and not including the first point (codeword) of elevation layer i. Furthermore, positive elevation layer i (northern hemisphere) arrives before negative elevation layer i by convention, but both layers have the same number of points N θ (i).

[0362] Therefore, the value offset is given by the cumulative cardinality of these positive and negative layers including index i, but when it is a positive layer, 2N is subtracted. θ (i) or when it is a negative layer, subtract N θ (i).

[0363] For the encoding of a point (or codeword) in the same layer, as an equivalent, we can define:

[0364]

[0365] Here, item Gives the cumulative basis of the elevation layers up to index i-1. This value corresponds directly to the value offset for positive elevation layers of index i, and must be replaced by N for negative layers of index i. θ (id φ ) for correction.

[0366] According to the invention, this analytical method for determining the value offset gives the same result as the following sum, but with reduced complexity, since when N φ When it is higher (for example, N φ =122), it is more straightforward to determine:

[0367]

[0368] and

[0369]

[0370] Therefore, in E606, the best candidate is individually quantized by indexing sgn φ ,id φ and id θ The global index index is obtained by encoding it individually and using the corresponding cumulative cardinality value.

[0371] It should be noted that here, the value offset is determined for the interval N θ(0)≤index<N tot In some variants, the interval in question will be able to be divided into subintervals of the index, and the value of offset will be able to be determined analytically or by direct summation according to the subinterval considered, where N θ (i) is defined according to the present invention.

[0372] In one embodiment, it will be possible to use φ and sgn φ This gives (either analytically or by direct summation) the result of the cumulative cardinality sum of consecutive spherical layers (or "groups of horizontal slices"). This sum can be interpreted as the cardinality of a spherical region (the number of points in a partial grid ranging from the elevation of index 0 to the elevation of index i, alternating between the southern and northern hemispheres).

[0373] In some variations, it may not be necessary to store the φ and sgn φ Instead of calculating the values ​​of offset, they calculate them "online" (on the fly) (based on defining offset as N θ (i) The cumulative sum based on id φ and sgn φ to make corrections).

[0374] However, this increases the computational complexity, i.e., if the grid includes a large number of elevation levels (N φ higher), this may be non-negligible.

[0375] In some variants, it will be possible to use the definition of cumN' instead of offset and take into account the fact that in this case the cardinality corresponds to a hemisphere.

[0376] Now refer to Figure 7a In one embodiment, the decoding method may be implemented by block 321 in FIG. 3 for the MASA data format, or by block 250 in FIG. 2 for the DiRAC decoder.

[0377] As with encoding, the spherical quantization dictionary is defined on a 3D sphere by elevation decoding and azimuth decoding. Figure 5a and Figure 5b To show and describe.

[0378] In the same way as encoding, elevation decoding uses scalar quantization to decode the image at multiple elevation levels (N φ ) is given at least one decoded elevation index (i), the azimuth decoding uses scalar quantization, according to the number of points per level (N) depending on the decoded elevation index (i) θ(i)), the number of points per level (N θ (i)) is determined based on two consecutive cumulative cardinality values ​​(cumN(i), cumN(i-1)), the cumulative cardinality value (cumN(i)) of the decoded elevation index (i) representing the number of points proportional to the total number of points and based on the area of ​​the spherical area including the upper horizontal plane of the positive elevation level of the decoded elevation index (i) At least one area bounded by a lower horizontal plane of the sphere.

[0379] First, assuming that the reference Figure 6b Citation of description.

[0380] Given Figure 7a Using the global index index in step E210 , separate decoding of the two spherical coordinates is performed in steps E211 - 1 and E211 - 2 .

[0381] In step E212-1, the number of scalar quantization levels N is determined, as in the encoding step E203-1. φ In the main embodiment, this step is equivalent to simply setting N φ =122.

[0382] Elevation information sgn φ ,id φ The decoding is performed in E213-1. Figure 7b This step is described in detail. Preferably, this decoding uses the index id φ In some variations, sgn can be estimated by searching a table of cardinality computed on the fly or stored, or by using other methods that give the same result. φ , id φ to decode.

[0383] In E214-1, the decoded elevation angle is reconstructed as in,

[0384] Where i = 0, ..., N φ -2, and

[0385] Where i = N φ -1

[0386] In some variants, other uniform or non-uniform quantization dictionaries are used in the same manner as for encoding It will be possible.

[0387] Azimuth index id in E213-2 θ Decoding. Refer to it later Figure 7bLet’s describe this step in detail. Usually, the index id of the azimuth θ is based on the global index index and the decoded elevation information sgn φ and id φ According to the following formula id θ =index-offset is obtained by subtraction, but in Figure 7b Some special cases are defined in φ =0 and id φ =N φ -1).

[0388] The value of the offset is determined as defined in the encoding, and the azimuth In E214-2 it was rebuilt as:

[0389]

[0390] This specifically gives Where N θ (id φ =N φ -1)=1.

[0391] This therefore gives the spherical coordinates of the decoded point in E215

[0392] Steps E213-1 and E213-2 are combined in Figure 7b Describe in detail.

[0393] Based on the global index to be decoded 0≤index<N tot (E700), default setting symbol information sgn φ =1(E701). If index satisfies index<N θ (0), which indicates that it is a point on the equator (E702), a direct decoding is performed:

[0394] Set id θ =index and id φ =0(E703).

[0395] Otherwise, if the index satisfies index≥N tot -2, which indicates that it is a point on the North or South Pole (E704), a direct decode is performed:

[0396] id φ =N φ -1,id θ = 0 (E705). If index = N in E706 tot -1, then the symbol sgn φCorrected from its default value of -1 (E707), because the index is sorted by elevation layers alternating between the northern and southern hemispheres, so index = N tot -2 corresponds to the North Pole (sgn φ =1), and index = N tot -1 corresponds to the South Pole (sgn φ =-1).

[0397] Otherwise, in other cases (N θ (0)≤index<N tot -2), in a preferred embodiment, for example, by Figure 6b The analytical calculation performed in step E605 is inverted to estimate the index id θ .

[0398] You can use the id φ Estimated to be:

[0399]

[0400] in, And [·] is rounded to the nearest integer.

[0401] In some variations, an approximation of the inverse sine function is used.

[0402] Use the following formula (in E708):

[0403] in

[0404] P(x)=1.57078786+x(-0.21412453+x(0.08466649+

[0405] x(-0.03575663+0.00864884.x)))

[0406] is a polynomial of degree 4.

[0407] In some variants, other approximations of the inverse sine function may be used, in particular other polynomials P(x) of different degrees may be used.

[0408] It should be noted that the id used above φ The estimate of has a noteworthy property, namely, it is accurate to id φ Overestimated within one unit range - generally speaking, it gives id φ If not, then id φ Underrated by a unit.

[0409] In some variations, the idφ Other estimates of (exact or within value).

[0410] In a preferred embodiment, then based on id φ The estimation of is performed by inverting the arcsine function or based on an approximation (E709). The initial value is determined for the following formula:

[0411]

[0412] In some variations, it can be calculated in an equivalent manner (with the same results):

[0413]

[0414] Based on the initial value offset init , then the id can be determined as follows φ , sgn φ And the value of offset:

[0415] If index ≥ offset init , then id φ ←id φ +1, offset←offset init ,otherwise:

[0416] offset←offset init -N θ (id φ )

[0417] If index ≥ offset: sgn φ ←-1

[0418] Otherwise: offset←offset-N θ (id φ )

[0419] Here, a←b indicates that the existing value of a is replaced by the result of expression b.

[0420] When index≥offset init Time correction id φ ←id φ The step of +1 is specific to estimating the id by inverting that inverse sine function φ If this step is performed, then offset init The value corresponds to the lower id φ Grid accumulation cardinality of -1.

[0421] Otherwise, if the correction id is not performed φ steps, then offsetinit The value corresponds to the elevation layer id up to φ · The grid accumulation cardinality. Refer to the following description Figure 8a and 8b To explain the correction form offset-N in detail θ (id φ ) median offset init The reasons for the steps.

[0422] In some variants, the cumulative base of the lower elevation layer with index i-1 may be defined as the initial value offset init , and equivalently correct the offset init The initial value is given by:

[0423]

[0424] Based on the initial value offset init , then the id can be determined as follows φ , sgn φ And the value of offset:

[0425] If index ≥ offset init +2N θ (id φ ), then id φ ←id φ +1, offset←offset init ,otherwise:

[0426] If index ≥ offset init +N θ (id φ ):sgn φ ←-1 and offset←offset init +N θ (id φ )

[0427] Otherwise: offset←offset init ,

[0428] where a←b indicates that the existing value of a is replaced by the result of expression b. In this case, the correction value offset init The steps use offset init +N θ (id φ )form.

[0429] In some variations, according to the method used to estimate the id φ The method will adjust the correction id φThe value and offset init The principle of the value of , in order to determine the id φ , sgn φ and the value of offset.

[0430] In the cumulative cardinality with the corresponding value N θ (i) In some variations of the definition by different means, the analytical definition of the initial estimate of offset is adjusted.

[0431] In some variations, id φ Other integer estimates and exact estimates (with the same results) for determining id φ 、sgn φ Other direct or indirect methods of and offset can be used as long as they do not change the decoding result. In fact, since id φ The values ​​of and offset are integers, symbol sgn φ can be treated as signed integers, so alternative methods can be implemented as long as they give id φ 、sgn φ The value can be the same as offset.

[0432] For id φ 、sgn φ A less interesting variant of decoding id and offset, but one that has the advantage of showing an example of an alternative approach, is to simply and exhaustively iterate over all possible values ​​of id φ 、sgn φ and id φ And calculate the corresponding index at the encoder, and then choose the one that can accurately obtain index = offset + id θ combination.

[0433] For a given value index, value id φ 、sgn φ and id φ The decoding of the index is deterministic in the sense that it is unique and integer.

[0434] In all cases, the id φ 、sgn φ The decoding of N and offset depends on the θ (i) and, possibly, by analytical determination of the cumulative base.

[0435] Finally, for id θ (E710) Decoding simply amounts to subtracting the decoded cumulative base value (offset) from the received global index (index):

[0436] id θ =index-offset

[0437] In some variants, it will be possible to use the definition of cumN' instead of offset and take into account the fact that in this case the cardinality corresponds to a hemisphere.

[0438] Figure 8a and Figure 8b Encoding and decoding of an index according to an embodiment of the present invention is demonstrated.

[0439] Figure 8a corresponds to the case where a point in the northern hemisphere of the grid (excluding the equator and the poles) is encoded or decoded according to the invention, and Figure 8b corresponds to the case where a point in the southern hemisphere (excluding the equator and the poles) is encoded or decoded. Figure 8a In, N φ =122,id φ =120 and sgn φ =1,id φ =3, index = 65517, and in Figure 8b in, sgn φ =-1,id θ =5, index=65529.

[0440] In this example, N θ (id φ )=10, and offset init The initial value is:

[0441]

[0442] This gives in this example: offset init =65534.

[0443] exist Figure 8a In , the decoding of index=65517 produces the following correction:

[0444] If index ≥ offset init , then id φ ←id φ +1, offset←offset init ,otherwise:

[0445] offset←offset init -N θ (id φ )

[0446] If index ≥ offsetsgnφ ←-1

[0447] Otherwise: offset←offset-N θ (id φ )

[0448] The resulting offset value is offset←offset init -2N θ (id φ ) correction, thus giving offset=65514.

[0449] exist Figure 8b In , the decoding of index=65529 produces the following correction:

[0450] If indexvoffset init , then id φ ←id φ +1, offset←offset init ,otherwise:

[0451] offset←offset init -N θ (id φ )

[0452] If index ≥ offset: sgn φ ←-1

[0453] Otherwise: offset←offset-N θ (id φ )

[0454] The resulting offset value is offset←offset init -N θ (id φ ) correction, thus giving offset=65524.

[0455] In some variations, offset init The value of may correspond to the cumulative basis up to the lower elevation layer, or it may be based on the value N according to the present invention. θ (i) Obtained by direct sum.

[0456] In the cumulative cardinality with the corresponding value N θ (i) In some variants defined in different ways, offset init The initial estimates of the analytical definitions are adjusted.

[0457] Fig. 9A coding device DCOD and a decoding device DDEC are shown which, within the meaning of the invention, are paired with one another (in the sense of "reversible") and are connected to one another via a communication network RES or an internal bus BUS in the terminal (for communication or other processing operations between the MASA analysis module and the IVAS codec).

[0458] The coding device DCOD comprises a processing circuit which typically comprises:

[0459] - a memory MEM1 for storing instruction data of a computer program in the sense of the invention (these instructions possibly being distributed between a coder DCOD and a decoder DDEC);

[0460] - an interface INT1 for receiving an original multichannel signal B (e.g. a signal distributed over various channels) or a parametric version for compressing source directional parameters in the sense of the invention;

[0461] - a processor PROC1 for receiving the signal and processing it by executing computer program instructions stored in the memory MEM1 so as to encode the signal; and

[0462] - A communication interface COM1 for transmitting the coded signal via a network or an internal bus of the terminal.

[0463] The decoding device DDEC comprises its own processing circuitry, which typically comprises:

[0464] - a memory MEM2 for storing instruction data of a computer program in the sense of the invention (these instructions possibly being distributed between the encoder DCOD and the decoder DDEC as indicated above);

[0465] - an interface COM2 for receiving coded signals via the network RES or via the internal bus BUS in order to compression-decode these coded signals within the meaning of the invention;

[0466] - a processor PROC2 for processing these signals by executing computer program instructions stored in the memory MEM2 so as to decode these signals; and

[0467] - Output interface INT2, used to transmit source direction parameters.

[0468] Of course, the Fig. 9 An example of a structural embodiment of a codec (encoder or decoder) in the sense of the invention is shown. As commented above, Figures 5 to 8 describe in detail more functional embodiments of these codecs.

Claims

1. A method for encoding the spatial direction of a sound source, the direction being defined by spherical coordinates comprising elevation coordinates and azimuth coordinates, wherein: The spherical quantization dictionary is defined on a 3D sphere by elevation encoding and azimuth encoding, and where: - The elevation coding uses scalar quantization to encode the φ ), at least one coded elevation index (i) is given on The azimuth encoding uses scalar quantization, with the number of points per level (N) depending on the encoded elevation index (i) θ (i)), -The number of points per level (N θ (i)) is determined based on two consecutive cumulative cardinality values ​​(cumN(i), cumN(i-1)), - the cumulative cardinality value (cumN(i)) of the coded elevation index (i) represents the number of points proportional to the total number of points and based on the area of ​​the spherical area that includes the upper horizontal plane of the positive elevation level of the coded elevation index (i) At least one area is defined by a lower horizontal plane of the sphere.

2. The method of claim 1, wherein: The elevation code includes levels corresponding to the equator (0°) and the poles of the 3D sphere (+ / - 90°).

3. A method as claimed in any one of the preceding claims, wherein: The number of points (N) of the azimuth code θ (0)) is predetermined for the elevation level corresponding to the equator, and the total number of points (N′ tot ) is obtained by dividing the target point number (N) by the following expression tot =2 16 ) by subtracting a predetermined number of points corresponding to each of the equator and the North Pole and the South Pole of the sphere: <h2 style=";text-align:left;direction:ltr">N′<h2 style=";text-align:left;direction:ltr"> tot <h2 style=";text-align:left;direction:ltr"> =N<h2 style=";text-align:left;direction:ltr"> tot <h2 style=";text-align:left;direction:ltr"> -N<h2 style=";text-align:left;direction:ltr"> θ <h2 style=";text-align:left;direction:ltr"> (0)-2N<h2 style=";text-align:left;direction:ltr"> θ <h2 style=";text-align:left;direction:ltr"> (N<h2 style=";text-align:left;direction:ltr"> φ <h2 style=";text-align:left;direction:ltr"> -1) N tot is the target number of points on the sphere for a given bit budget, N θ (0) is the predetermined number of points for the elevation level corresponding to the equator; and 2N θ (N φ -1) are the predetermined points for the north and south poles of the sphere.

4. The method of claim 3, wherein: The cumulative base value (cumN(i)) of the coded elevation index (i) represents the upper horizontal plane according to the positive elevation level of the coded elevation index (i). with respect to the equator of the sphere The area of ​​the spherical region bounded by the same plane of symmetry (A i ) minus the area corresponding to the elevation level of the equator (A0) proportional to the total number of points, according to the following ratio: N φ -2 is the number of elevation quantization levels without the equator and the north and south poles of the sphere, and the area of ​​the spherical area Corresponding to the elevation index N φ -2.

5. The method of claim 4, wherein: The expression for the cumulative base value is as follows: in, i=1,...,N φ -2, N φ -2 is the number of elevation quantization levels without the equator and the north and south poles of the sphere, Arr i () depends on i being rounded to the nearest integer, corresponds to rounding to an even integer, and δ φ is the given quantization step size for this elevation angle.

6. The method according to any one of the preceding claims, wherein: The elevation is encoded in multiple elevation levels (N φ ) gives the encoded elevation angle index (i) and sign information.

7. The method according to any one of the preceding claims, wherein: Based on the number of points per level determined by scalar quantization (N θ (i)) and a cumulative base value obtained based on at least the encoded elevation index to determine a global quantization index to be transmitted.

8. A method for decoding the spatial direction of a sound source, the direction being defined by spherical coordinates comprising elevation coordinates and azimuth coordinates, wherein: The spherical quantization dictionary is defined on a 3D sphere by elevation decoding and azimuth decoding, and where: - The elevation decoding uses scalar quantization to decode the elevation angle at multiple elevation levels (N φ ), at least one decoded elevation index (i) is given on The azimuth decoding uses scalar quantization, with the number of points per level (N) depending on the decoded elevation index (i) θ (i)), -The number of points per level (N θ (i)) is determined based on two consecutive cumulative cardinality values ​​(cumN(i), cumN(i-1)), - the cumulative cardinality value (cumN(i)) of a decoded elevation index (i) represents the number of points proportional to the total number of points and based on the area of ​​the spherical region that includes the upper horizontal plane of the positive elevation level of the decoded elevation index (i) At least one area is defined by a lower horizontal plane of the sphere.

9. The method of claim 8, wherein: The elevation decoding includes levels corresponding to the equator (0°) and the poles of the 3D sphere (+ / - 90°).

10. The method according to any one of claims 8 and 9, wherein: The number of points (Nθ(0)) of the azimuth decoding is predetermined for the elevation level corresponding to the equator, and the total number of points (N′ tot ) is obtained by dividing the target point number (N) by the following expression tot =2 16 ) by subtracting a predetermined number of points corresponding to each of the equator and the North Pole and the South Pole of the sphere: <h2 style=";text-align:left;direction:ltr">N′<h2 style=";text-align:left;direction:ltr"> tot <h2 style=";text-align:left;direction:ltr"> =N<h2 style=";text-align:left;direction:ltr"> tot <h2 style=";text-align:left;direction:ltr"> -N<h2 style=";text-align:left;direction:ltr"> θ <h2 style=";text-align:left;direction:ltr"> (0)-2N<h2 style=";text-align:left;direction:ltr"> θ <h2 style=";text-align:left;direction:ltr"> (N<h2 style=";text-align:left;direction:ltr"> φ <h2 style=";text-align:left;direction:ltr"> -1) N tot is the target number of points on the sphere for a given bit budget, N θ (0) is the predetermined number of points for the elevation level corresponding to the equator; and 2N θ (N φ -1) are the predetermined points for the north and south poles of the sphere.

11. The method of claim 10, wherein: The cumulative base value (cumN(i)) of the decoded elevation index (i) represents the upper horizontal plane according to the positive elevation level of the decoded elevation index (i). with respect to the equator of the sphere The area of ​​the spherical region bounded by the same plane of symmetry (A i ) minus the area corresponding to the elevation level of the equator (A0) proportional to the total number of points, according to the following ratio: N φ -2 is the number of elevation quantization levels without the equator and the north and south poles of the sphere, and the area of ​​the spherical area Corresponding to the elevation index N φ -2.

12. The method of claim 11, wherein: The expression for the cumulative base value is as follows: in, i=1,...,N φ -2, N φ -2 is the number of elevation quantization levels without the equator and the north and south poles of the sphere, Arr i () depends on i being rounded to the nearest integer, corresponds to rounding to an even integer, and δ φ is the given quantization step size for this elevation angle.

13. The method according to any one of claims 8 to 12, wherein: The elevation decoding is performed at multiple elevation levels (N φ ) gives the decoded elevation index (i) and symbol information.

14. The method according to any one of claims 8 to 13, wherein: The decoding includes receiving a global quantization index (index), and determining, based on the index, a cumulative base value obtained based on at least the decoded elevation index and a number of points per level (N) determined. θ (i)) on the decoded azimuth index.

15. A coding device comprising a processing circuit for implementing the steps of the coding method as claimed in one of claims 1 to 7.

16. A decoding device comprising a processing circuit for implementing the steps of the decoding method as claimed in any one of claims 8 to 14.

17. A storage medium which can be read by a processor and stores a computer program comprising instructions for executing the encoding method according to any one of claims 1 to 7 or the decoding method according to any one of claims 8 to 14.