CN109963160A - Simplification SAO optimal compensation value calculating method and device based on HEVC - Google Patents
Simplification SAO optimal compensation value calculating method and device based on HEVC Download PDFInfo
- Publication number
- CN109963160A CN109963160A CN201711432813.8A CN201711432813A CN109963160A CN 109963160 A CN109963160 A CN 109963160A CN 201711432813 A CN201711432813 A CN 201711432813A CN 109963160 A CN109963160 A CN 109963160A
- Authority
- CN
- China
- Prior art keywords
- sideband
- subtype
- compensation value
- offset
- value
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
- H04N19/51—Motion estimation or motion compensation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
- H04N19/51—Motion estimation or motion compensation
- H04N19/567—Motion estimation based on rate distortion criteria
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/85—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
- H04N19/86—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving reduction of coding artifacts, e.g. of blockiness
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The present invention provides a kind of simplification SAO optimal compensation value calculating method and device based on HEVC, wherein this method comprises: determining the subtype quantity of edge compensation mode and the sideband quantity of sideband compensation model in sampled point adaptive equalization;To each subtype and each sideband, the candidate offset of identical quantity is all calculated;According to the corresponding candidate offset of each subtype and each sideband, the optimal compensation value of each subtype and each sideband is determined.In the above scheme, optimal compensation value is effectively chosen by way of candidate offset, the calculation amount for efficiently solving existing determining optimal compensation value in this way is excessive, the excessively high technical problem of hardware configuration complexity has reached the technical effect for reducing calculation amount and reducing hardware configuration complexity.
Description
Technical field
The present invention relates to technical field of data processing, in particular to based on a kind of simplification SAO optimal compensation value by HEVC
Calculate method and apparatus.
Background technique
For existing video coding technique, such as: HEVC (High Efficiency Video Coding, a kind of view
Frequency compression standard), SAO (Sample Adaptive Offset, sampling point adaptive equalization) is the picture after deblocking filtering
Plain compensating module, with LCU, (Largist Coding Unit, coded image is commonly divided into several sizes can be with sets itself
Basic unit) deviant is added and subtracted to pixel, to reduce the distortion of reconstructed image and original image.
For sampling point adaptive equalization, often there are many compensation models, in order to which which kind of compensation model determined to select,
Generally by the cost for calculating various modes, then by comparing cost, select the smallest corresponding mode of cost as most
Excellent compensation model.
However, needing to calculate optimal compensation value during determining the cost of various modes, need to calculate each subclass
The optimal compensation value of type and each sideband.During calculating optimal compensation value, the calculating of each optimal compensation value is required
Calculate the optimal compensation value of each sideband and each subtype.
Therefore, the efficiency that optimal compensation value directly affects compensation is calculated if simplified.
If the technical issues of for optimal compensation value is simplified, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of simplification SAO optimal compensation value calculating method based on HEVC is reduced with reaching
Computation complexity and the purpose for simplifying hardware configuration, this method comprises:
Determine the subtype quantity of edge compensation mode in sampled point adaptive equalization and the sideband number of sideband compensation model
Amount;
To each subtype and each sideband, the candidate offset of identical quantity is all calculated;
According to the corresponding candidate offset of each subtype and each sideband, each subtype and each sideband are determined
Optimal compensation value.
In one embodiment, in HEVC Video Encoding Mode, the subtype quantity determined is 4, sideband quantity
It is 32.
In one embodiment, the quantity includes following one: 3,4,5.
In one embodiment, it according to the corresponding candidate offset of each subtype and each sideband, determines each
The optimal compensation value of subtype and each sideband, comprising:
Current subtype or sideband are proceeded as follows, the optimal benefit of current subtype or sideband is calculated
Repay value:
Determine the corresponding cost value of the corresponding each candidate offset of current subtype or sideband;
Choose optimal compensation value of the smallest candidate offset of cost value as current subtype or sideband.
In one embodiment, candidate offset is calculated, comprising:
Initial compensation value is determined by following formula:
Init_offest=orgOffest [n]/count [n]
Wherein, init_offest indicates that initial compensation value, orgOffest [n] indicate under current subtype or sideband, weight
Difference between conformation element and original pixels, count [n] indicate the number of pixels for belonging to current subtype or sideband;
Candidate offset is determined according to determining initial compensation value.
The embodiment of the invention also provides a kind of simplification SAO optimal compensation value calculation apparatus based on HEVC, to reach drop
Low computation complexity and the purpose for simplifying hardware configuration, the device include:
First determining module, for determining the subtype quantity and sideband of edge compensation mode in sampled point adaptive equalization
The sideband quantity of compensation model;
Computing module, for all calculating the candidate offset of identical quantity to each subtype and each sideband;
Second determining module, for determining each according to the corresponding candidate offset of each subtype and each sideband
The optimal compensation value of subtype and each sideband.
In one embodiment, in HEVC Video Encoding Mode, the subtype quantity determined is 4, sideband quantity
It is 32.
In one embodiment, the quantity includes following one: 3,4,5.
In one embodiment, second determining module is specifically used for carrying out current subtype or sideband as follows
Operation, the optimal compensation value of current subtype or sideband is calculated:
Determine the corresponding cost value of the corresponding each candidate offset of current subtype or sideband;
Choose optimal compensation value of the smallest candidate offset of cost value as current subtype or sideband.
In one embodiment, the computing module includes:
First determination unit, for determining initial compensation value by following formula:
Init_offest=orgOffest [n]/count [n]
Wherein, init_offest indicates that initial compensation value, orgOffest [n] indicate under current subtype or sideband, weight
Difference between conformation element and original pixels, count [n] indicate the number of pixels for belonging to current subtype or sideband;
Second determination unit, for determining candidate offset according to determining initial compensation value.
In embodiments of the present invention, optimal compensation is effectively chosen by way of choosing the candidate offset of predetermined quantity
Value, so that the calculation amount for solving existing determining optimal compensation value is excessive, the excessively high technical problem of hardware configuration complexity reaches
The technical effect for reducing calculation amount and reducing hardware configuration complexity is arrived.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, not
Constitute limitation of the invention.In the accompanying drawings:
Fig. 1 is determining optimal compensation value schematic diagram according to prior art;
Fig. 2 is the simplification SAO optimal compensation value calculating method flow chart according to an embodiment of the present invention based on HEVC;
Fig. 3 is the method flow diagram according to an embodiment of the present invention that optimal compensation value is determined based on multiple candidate offsets;
Fig. 4 is video comfort method flow diagram according to an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of determining optimal compensation value according to an embodiment of the present invention;
Fig. 6 is another schematic diagram of determining optimal compensation value according to an embodiment of the present invention;
Fig. 7 is the structural frames for the device that the simplification SAO optimal compensation value according to an embodiment of the present invention based on HEVC calculates
Figure.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, right below with reference to embodiment and attached drawing
The present invention is described in further details.Here, exemplary embodiment and its explanation of the invention is used to explain the present invention, but simultaneously
It is not as a limitation of the invention.
With the SAO (Sample in HEVC (High Efficiency Video Coding, a kind of video compression standard)
Adaptive Offset, sampling point adaptive equalization) for be illustrated, SAO is the pixel compensation mould after the deblocking filtering
Block, wherein SAO includes BO (Band Offset, band-like compensation) mode, EO (Edge Offset, edge compensation) mode, of no help
Mode and merge mode are repaid, which kind of compensation model is specifically chosen, cost can be compared, so by the cost of the various modes of calculating
Afterwards, take the corresponding mode of the smallest cost as the optimal compensation mode of SAO.
In the calculation process of SAO prediction mode, when each sideband of each subtype and BO mode of EO mode
After the completion of orgOffset [n] and count [n] is calculated, need to calculate the init_offset of each subtype and each sideband,
After the completion of init_offset is calculated, according to the size of init_offset, the value and number of candidate's offset, Jin Ercong are determined
Optimal compensation value is selected in candidate offset.
Specifically, the existing value and number for determining candidate offset generally according to following manner:
1) when init_offset is more than or equal to 0, each integer in [0, init_offset] range is candidate
Offset, the integer number within the scope of this are exactly the number of candidate offset;
2) when init_offset is less than or equal to 0, each integer in [init_offset, 0] range is candidate
Offset, the integer number within the scope of this are exactly the number of candidate offset.
By taking init_offset is equal to 7 as an example, optimal compensation value can be chosen in the way of such as Fig. 1.It needs to calculate 8
A candidate's offset, then comparator is also required to match this 8 candidate offsets, that is, calculating and relative efficiency are all very
It is low, and more comparator is also needed, when init_offset difference, the comparator of different number in need, therefore,
The complexity of hardware configuration is also very high.
Under subtype especially in EO mode is more or a fairly large number of situation of sideband of BO mode, calculating will be compared with
To be cumbersome, computational efficiency is lower.For example, requiring to calculate in 16 subtypes of EO mode and 32 sidebands of BO mode
In the case where init_offset, that is, need to calculate 48 init_offset, then need to calculate accordingly 48 it is optimal
Offset.This can bring very big calculation amount, especially when init_offset reaches the limiting value of clipping, candidate offset
Quantity reach maximum, it is bigger at this moment to choose optimal compensation value bring calculation amount.This method for choosing optimal compensation value, makes
Hardware configuration area is big, low efficiency, it is computationally intensive.
Based on this, a kind of method of determining optimal compensation value is provided in this example, specifically, no matter initial compensation value is
How much, it all determines a candidate offset of preset quantity (such as: 3,4), is determined from these candidate offsets optimal
Offset.
As shown in Fig. 2, providing a kind of simplification SAO optimal compensation value calculating method based on HEVC, such as Fig. 2 in this example
It is shown, it may include steps of:
Step 201: determining the subtype quantity and sideband compensation model of edge compensation mode in sampled point adaptive equalization
Sideband quantity;
For example, the quantity of subtype is 4 in HEVC Video Encoding Mode, the quantity of sideband is 32.Specifically, HEVC
It is a kind of new video encoding standard, LCU is maximum coding unit in HEVC.SAO is sampled point adaptive equalization, positioned at going
Block carries out after filtering (deblock).
Specifically, by following several compensation models:
1) EO mode, that is, the edge compensation mode of SAO.EO points are 4 seed types: it is horizontal, vertically, 135 degree, 45 degree.Its
In, EO0 indicates the horizontal pattern of EO mode;The vertical mode of EO1 expression EO mode;135 degree of modes of EO2 expression EO mode;
45 degree of modes of EO3 expression EO mode.
Subtype: EO0~EO3 includes 4 kinds of subtypes, i.e. class0, class1, class2, class3.
Wherein, class0 indicates that current pixel point is respectively less than two reference image vegetarian refreshments;Class1 indicates that current pixel point is equal to
One reference image vegetarian refreshments, and it is less than another reference image vegetarian refreshments;Class2 indicates that current pixel point is equal to a reference image vegetarian refreshments,
And it is greater than another reference image vegetarian refreshments;Class3 indicates that current pixel point is all larger than two reference image vegetarian refreshments.
2) BO mode, that is, the sideband compensation model of SAO.BO includes 32 sidebands, and sideband belonging to pixel is according to reconstructed image
The size selection of element value.
3) SAO of LCU or LCU above on the left of merge mode, including two kinds of merge left and merge up, i.e. use
Compensation model.
Step 202: to each subtype and each sideband, all calculating the candidate offset of identical quantity;
For example, all calculating 3,4,5 or the candidate offset of other quantity, tool for each subtype and each sideband
Body numerical value can select according to actual needs, and the application is not construed as limiting this.
Specifically, can determine candidate offset by following steps:
S1: initial compensation value is determined by following formula:
Init_offest=orgOffest [n]/count [n]
Wherein, init_offest indicates that initial compensation value, orgOffest [n] indicate under current subtype or sideband, weight
Difference between conformation element and original pixels, count [n] indicate the number of pixels for belonging to current subtype or sideband;
S2: candidate offset is determined according to determining initial compensation value.
Step 203: according to the corresponding candidate offset of each subtype and each sideband, determining each subtype and every
The optimal compensation value of a sideband.
Specifically, n indicates that subtype or sideband belonging to reconstructed pixel, orgOffset [n] are used in orgOffset [n]
In storage the sum of LCU grades of reconstructed pixels and the difference of original pixels.Count [n]: it is corresponding with orgOffset [n], belong to this
The number of pixels of subtype or sideband.Predicted distortion indicates the distortion under each pattern.Init_offset indicates initial compensation
It is worth, is obtained after the result clipping that can be obtained by orgOffset [n] divided by count [n].Candidate offset, for calculating
To the value of optimal compensation value;Optimal compensation value, the best value of compensation effect for being selected from candidate offset.Cost etc.
In predicted distortion plus rate*lambda.
In one embodiment, it according to the corresponding candidate offset of each subtype and each sideband, determines each
The optimal compensation value of subtype and each sideband may include: to proceed as follows to current subtype or sideband, to calculate
Obtain the optimal compensation value of current subtype or sideband:
S1: the corresponding cost value of the corresponding each candidate offset of current subtype or sideband is determined;
S2: optimal compensation value of the smallest candidate offset of cost value as current subtype or sideband is chosen.
As shown in figure 3, a kind of method for determining optimal compensation value based on multiple candidate offsets is additionally provided in this example,
As shown in figure 3, may include steps of:
Step 301: the initial compensation value of current subtype or sideband is calculated;
Specifically, can determine initial compensation value by following formula:
Init_offest=orgOffest [n]/count [n]
Wherein, init_offest indicates that initial compensation value, orgOffest [n] indicate under current subtype or sideband, weight
Difference between conformation element and original pixels, count [n] indicate the number of pixels for belonging to current subtype or sideband.
Step 302: determining whether the absolute value of the initial compensation value is less than preset threshold;
Step 303: in the case where determining not less than the preset threshold, choosing the preset threshold and add 1 candidate benefit
Repay value;
It is specific: in the case where the initial compensation value is positive number, the initial compensation value can be subtracted described pre-
If threshold value adds 1 to all integers and 0 in the range of the initial compensation value, as candidate offset again;Described initial
In the case that offset is negative, the initial compensation value can be subtracted 1 again to the initial compensation plus the preset threshold
All integers and 0 in the range of value, as candidate offset.
Step 304: determine be less than the preset threshold in the case where, by institute in the range of 0 to the initial compensation value
Some integers are as candidate offset;
Step 305: according to the candidate offset of selection, determining optimal compensation value.
I.e., it is possible to determine optimal compensation value according to the following steps:
S1: initial compensation value is determined;
S2: according to the initial compensation value, the candidate offset of predetermined quantity is chosen;
S3: optimal compensation value is selected from the candidate offset of the predetermined quantity.
It may include: described in calculating specifically, selecting optimal compensation value from the candidate offset of the predetermined quantity
The corresponding cost value of each candidate offset in predetermined quantity candidate's offset;The smallest candidate offset of cost value is chosen to make
For the optimal compensation value.
For example, in the case where above-mentioned predetermined quantity is 3, according to the initial compensation value, 3 candidate compensation are chosen
It is worth, may include:
1) in the case where the initial compensation value is positive number, the 0, initial compensation value, the initial compensation value are subtracted 1
3 candidate offsets as selection;
2) in the case where the initial compensation value is negative, the 0, initial compensation value, the initial compensation value are added 1
3 candidate offsets as selection.
For example, in the case where above-mentioned predetermined quantity is 4, according to the initial compensation value, 4 candidate compensation are chosen
It is worth, may include:
1) in the case where the initial compensation value is positive number, the 0, initial compensation value, the initial compensation value are subtracted
1, the initial compensation value subtracts 2 as the 4 candidate offsets chosen;
2) in the case where the initial compensation value is negative, the 0, initial compensation value, the initial compensation value are added
1, the initial compensation value adds 24 candidate offsets as selection.
The method of above-mentioned determination optimal compensation value is applied can be as shown in figure 4, include following step in video comfort
It is rapid:
Step 401: obtaining video to be encoded;
Step 402: by way of determining candidate offset, determining the optimal compensation value of each sideband and each subtype;
Step 403: based on the optimal compensation value of determining each sideband and each subtype, the video to be encoded being adopted
Sampling point adaptive equalization.
Specifically, sideband compensation can be carried out based on the optimal compensation value of determining each sideband;Based on determining each subclass
The optimal compensation value of type carries out edge compensation.
The above method is illustrated below with reference to a specific embodiment, it is important to note, however, that the specific implementation
Example does not constitute an undue limitation on the present application merely to the application is better described.
The number of candidate offset is equal to abs (init_offset) plus 1, passes through cand_offset0~cand_
Offset7 indicates candidate offset, indicates with cost0~cost7 the corresponding cost of each candidate offset, uses best_
Offset indicates optimal compensation value.Wherein, cand_offset0=0, cand_offset1=1, cand_offset2=2,
Cand_offset3=3, cand_offset4=4, cand_offset5=5, cand_offset6=6, cand_offset7
=7.The corresponding candidate offset of the minimum cost selected through comparator is optimal compensation value.
In this example, by the specific value of init_offset, 3 effectively candidate offsets is chosen, are then waited from 3
It selects and selects optimal compensation value in offset, reduce calculation amount to reach, simplify hardware realization complexity, reduce area, improve
The purpose of efficiency.
Choosing for candidate offset can be determined according to the specific value of init_offset.
Specifically, candidate offset can be determined in the following way:
1) in the case where init_offset is less than -1, the candidate offset of 3 of selection are as follows: init_offset,
(init_offset+1) and 0.
As shown in fig. 5, it is assumed that init_offset is equal to -7, cand_offset0, cand_offset1 and cand_
Offset2 is the 3 candidate offsets chosen, then, cand_offset0=-7, cand_offset1=-6, cand_
Offset2=0.Cost0, cost1, cost2 are corresponding 3 cost of 3 candidate's offsets, and best_offset is optimal benefit
Repay value.
It can thus be seen that need to calculate 8 cost before not using effective selection of candidate offset, however, by
After the selection of candidate offset, it is only necessary to 3 cost are calculated, correspondingly, used comparator will also be reduced.
2) it in the case where init_offset is equal to -1 or 1, does not need to choose 3 candidate offsets, only there are two candidate
Offset: init_offset and 0, optimal compensation value are chosen from the two candidate offsets.
3) it in the case where init_offset is equal to 0, does not need to choose 3 candidate offsets, only one candidate's compensation
Value: 0.Candidate's offset is optimal compensation value.
4) in the case where init_offset is greater than 1, the candidate offset of 3 of selection are as follows: init_offset, (init_
) and 0 offset-1.
As shown in Figure 6, it is assumed that init_offset is equal to 6, cand_offset0, cand_offset 1 and cand_
Offset2 is the 3 candidate offsets chosen, then, cand_offset0=6, cand_offset1=5, cand_
Offset2=0.Cost0, cost1 and cost2 are corresponding 3 cost of 3 candidate's offsets, and best_offset is optimal benefit
Repay value.
It can thus be seen that need to calculate 7 cost before not using effective selection of candidate offset, however, by
After the selection of candidate offset, it is only necessary to 3 cost are calculated, correspondingly, used comparator will also be reduced.
In upper example, by with identical method choose 3 effective candidate offsets come so that hardware configuration simplify,
Unification, by reducing the number of candidate offset, to reduce the number for calculating cost, to reduce calculation amount, simplify
The complexity of hardware configuration reduces area and efficiency.
The method of upper example can be applied to the calculating of optimal compensation value in SAO in H265, the selection for candidate offset,
It can also can be set as choosing 4,5 or more using the method for selection 3 above-mentioned effective candidate offsets
The method of offset, specific value can select according to actual needs, and the application is not construed as limiting this.
For choosing 4 candidate offsets, init_offset is greater than 3, then, this 4 candidate offsets are: init_
Offset, (init_offset-1), (init_offset-2), 0.
Based on the same inventive concept, a kind of simplification SAO optimal compensation based on HEVC is additionally provided in the embodiment of the present invention
Value calculation apparatus, as described in the following examples.Since the simplification SAO optimal compensation value calculation apparatus based on HEVC solves the problems, such as
Principle it is similar to the simplification SAO optimal compensation value calculating method based on HEVC, therefore the simplification SAO optimal compensation based on HEVC
The implementation of value calculation apparatus may refer to the implementation of the simplification SAO optimal compensation value calculating method based on HEVC, repeat place not
It repeats again.Used below, the group of the software and/or hardware of predetermined function may be implemented in term " unit " or " module "
It closes.Although device described in following embodiment is preferably realized with software, the combination of hardware or software and hardware
Realization be also that may and be contemplated.Fig. 7 is that the simplification SAO optimal compensation value based on HEVC of the embodiment of the present invention calculates dress
A kind of structural block diagram set, as shown in fig. 7, may include: determining module 701, computing module 702 and determining module 703, below
The structure is illustrated.
First determining module 701, for determine edge compensation mode in sampled point adaptive equalization subtype quantity and
The sideband quantity of sideband compensation model;
Computing module 702, for all calculating the candidate offset of identical quantity to each subtype and each sideband;
Second determining module 703, for determining every according to the corresponding candidate offset of each subtype and each sideband
The optimal compensation value of a subtype and each sideband.
In one embodiment, in HEVC Video Encoding Mode, the subtype quantity determined is 4, sideband quantity
It is 32.
In one embodiment, quantity may include following one: 3,4,5.
In one embodiment, the first determining module 701 specifically can be used for carrying out current subtype or sideband
Following operation, the optimal compensation value of current subtype or sideband is calculated:
Determine the corresponding cost value of the corresponding each candidate offset of current subtype or sideband;
Choose optimal compensation value of the smallest candidate offset of cost value as current subtype or sideband.
In one embodiment, computing module 702 may include: the first determination unit, for true by following formula
Determine initial compensation value:
Init_offest=orgOffest [n]/count [n]
Wherein, init_offest indicates that initial compensation value, orgOffest [n] indicate under current subtype or sideband, weight
Difference between conformation element and original pixels, count [n] indicate the number of pixels for belonging to current subtype or sideband;
Second determination unit, for determining candidate offset according to determining initial compensation value.
In another embodiment, a kind of software is additionally provided, the software is for executing above-described embodiment and preferred reality
Apply technical solution described in mode.
In another embodiment, a kind of storage medium is additionally provided, above-mentioned software is stored in the storage medium, it should
Storage medium includes but is not limited to: CD, floppy disk, hard disk, scratch pad memory etc..
It can be seen from the above description that the embodiment of the present invention realizes following technical effect: by choosing predetermined number
The mode of the candidate offset of amount effectively chooses optimal compensation value, to solve the calculating of existing determining optimal compensation value
Excessive, the excessively high technical problem of hardware configuration complexity is measured, the skill for reducing calculation amount and reducing hardware configuration complexity has been reached
Art effect.
In the present specification, such as adjective as first and second can be only used for by an element or movement with it is another
One element or movement distinguish, without requiring or implying any actual this relationship or sequence.In the feelings that environment allows
Under condition, one in only element, component or step should not be interpreted as limited to referring to element or component or step (s), and can
To be the one or more etc. in element, component or step.
Obviously, those skilled in the art should be understood that each module of the above-mentioned embodiment of the present invention or each step can be with
It is realized with general computing device, they can be concentrated on a single computing device, or be distributed in multiple computing devices
On composed network, optionally, they can be realized with the program code that computing device can perform, it is thus possible to by it
Store and be performed by computing device in the storage device, and in some cases, can be held with the sequence for being different from herein
The shown or described step of row, perhaps they are fabricated to each integrated circuit modules or will be multiple in them
Module or step are fabricated to single integrated circuit module to realize.In this way, the embodiment of the present invention be not limited to it is any specific hard
Part and software combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the embodiment of the present invention can have various modifications and variations.All within the spirits and principles of the present invention, made
Any modification, equivalent substitution, improvement and etc. should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of simplification SAO optimal compensation value calculating method based on HEVC characterized by comprising
Determine the subtype quantity of edge compensation mode in sampled point adaptive equalization and the sideband quantity of sideband compensation model;
To each subtype and each sideband, the candidate offset of identical quantity is all calculated;
According to the corresponding candidate offset of each subtype and each sideband, the optimal of each subtype and each sideband is determined
Offset.
2. the method according to claim 1, wherein in HEVC Video Encoding Mode, the subtype determined
Quantity is 4, and sideband quantity is 32.
3. the method according to claim 1, wherein the quantity includes following one: 3,4,5.
4. the method according to claim 1, wherein according to the corresponding candidate benefit of each subtype and each sideband
Value is repaid, determines the optimal compensation value of each subtype and each sideband, comprising:
Current subtype or sideband are proceeded as follows, the optimal compensation of current subtype or sideband is calculated
Value:
Determine the corresponding cost value of the corresponding each candidate offset of current subtype or sideband;
Choose optimal compensation value of the smallest candidate offset of cost value as current subtype or sideband.
5. the method according to claim 1, wherein calculating candidate offset, comprising:
Initial compensation value is determined by following formula:
Init_offest=orgOffest [n]/count [n]
Wherein, init_offest indicates that initial compensation value, orgOffest [n] indicate under current subtype or sideband, reconstructed image
Difference between element and original pixels, count [n] indicate the number of pixels for belonging to current subtype or sideband;
Candidate offset is determined according to determining initial compensation value.
6. a kind of simplification SAO optimal compensation value calculation apparatus based on HEVC characterized by comprising
First determining module, for determining the subtype quantity and sideband compensation of edge compensation mode in sampled point adaptive equalization
The sideband quantity of mode;
Computing module, for all calculating the candidate offset of identical quantity to each subtype and each sideband;
Second determining module, for determining each subclass according to the corresponding candidate offset of each subtype and each sideband
The optimal compensation value of type and each sideband.
7. device according to claim 6, which is characterized in that in HEVC Video Encoding Mode, the subtype determined
Quantity is 4, and sideband quantity is 32.
8. device according to claim 6, which is characterized in that the quantity includes following one: 3,4,5.
9. device according to claim 6, which is characterized in that second determining module is specifically used for current subclass
Type or sideband proceed as follows, the optimal compensation value of current subtype or sideband is calculated:
Determine the corresponding cost value of the corresponding each candidate offset of current subtype or sideband;
Choose optimal compensation value of the smallest candidate offset of cost value as current subtype or sideband.
10. device according to claim 6, which is characterized in that the computing module includes:
First determination unit, for determining initial compensation value by following formula:
Init_offest=orgOffest [n]/count [n]
Wherein, init_offest indicates that initial compensation value, orgOffest [n] indicate under current subtype or sideband, reconstructed image
Difference between element and original pixels, count [n] indicate the number of pixels for belonging to current subtype or sideband;
Second determination unit, for determining candidate offset according to determining initial compensation value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711432813.8A CN109963160A (en) | 2017-12-26 | 2017-12-26 | Simplification SAO optimal compensation value calculating method and device based on HEVC |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711432813.8A CN109963160A (en) | 2017-12-26 | 2017-12-26 | Simplification SAO optimal compensation value calculating method and device based on HEVC |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109963160A true CN109963160A (en) | 2019-07-02 |
Family
ID=67022018
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711432813.8A Pending CN109963160A (en) | 2017-12-26 | 2017-12-26 | Simplification SAO optimal compensation value calculating method and device based on HEVC |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109963160A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112927324A (en) * | 2021-02-24 | 2021-06-08 | 上海哔哩哔哩科技有限公司 | Data processing method and device of sideband compensation mode of sample point adaptive compensation |
CN112927311A (en) * | 2021-02-24 | 2021-06-08 | 上海哔哩哔哩科技有限公司 | Data processing method and device of sideband compensation mode of sample point adaptive compensation |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105141948A (en) * | 2015-09-22 | 2015-12-09 | 天津师范大学 | Improved HEVC sample point self-adaption compensation method |
CN105306940A (en) * | 2015-10-27 | 2016-02-03 | 北京中星微电子有限公司 | Boundary compensation mode processing method in offset compensation of video encoding and decoding sample value |
CN106131554A (en) * | 2016-07-07 | 2016-11-16 | 杭州电子科技大学 | The HEVC point self-adapted compensation method of quick sample product based on major side direction |
US20170085883A1 (en) * | 2013-07-30 | 2017-03-23 | Texas Instruments Incorporated | Method and apparatus for real-time sao parameter estimation |
-
2017
- 2017-12-26 CN CN201711432813.8A patent/CN109963160A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170085883A1 (en) * | 2013-07-30 | 2017-03-23 | Texas Instruments Incorporated | Method and apparatus for real-time sao parameter estimation |
CN105141948A (en) * | 2015-09-22 | 2015-12-09 | 天津师范大学 | Improved HEVC sample point self-adaption compensation method |
CN105306940A (en) * | 2015-10-27 | 2016-02-03 | 北京中星微电子有限公司 | Boundary compensation mode processing method in offset compensation of video encoding and decoding sample value |
CN106131554A (en) * | 2016-07-07 | 2016-11-16 | 杭州电子科技大学 | The HEVC point self-adapted compensation method of quick sample product based on major side direction |
Non-Patent Citations (1)
Title |
---|
TAKANORI YAMAZAKI等: "Improvement of Sample Adaptive Offset with modified bit accuracy and restricted offsets", 《JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/SC29/WG11》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112927324A (en) * | 2021-02-24 | 2021-06-08 | 上海哔哩哔哩科技有限公司 | Data processing method and device of sideband compensation mode of sample point adaptive compensation |
CN112927311A (en) * | 2021-02-24 | 2021-06-08 | 上海哔哩哔哩科技有限公司 | Data processing method and device of sideband compensation mode of sample point adaptive compensation |
CN112927311B (en) * | 2021-02-24 | 2022-06-03 | 上海哔哩哔哩科技有限公司 | Data processing method and device of sideband compensation mode of sample point adaptive compensation |
CN112927324B (en) * | 2021-02-24 | 2022-06-03 | 上海哔哩哔哩科技有限公司 | Data processing method and device of boundary compensation mode of sample point self-adaptive compensation |
WO2022179354A1 (en) * | 2021-02-24 | 2022-09-01 | 上海哔哩哔哩科技有限公司 | Data processing method and apparatus for edge offset mode based on sample adaptive offset |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7490102B2 (en) | Nonlinear adaptive loop filtering in video processing. | |
JP6334006B2 (en) | System and method for high content adaptive quality restoration filtering for video coding | |
US9967563B2 (en) | Method and apparatus for loop filtering cross tile or slice boundaries | |
DK2697973T3 (en) | Method and device for loop filtration across slab or tile borders | |
TWI737137B (en) | Method and apparatus for non-linear adaptive loop filtering in video coding | |
US10469876B2 (en) | Non-local adaptive loop filter combining multiple denoising technologies and grouping image patches in parallel | |
JP2018532318A (en) | Method and apparatus for evolutionary deblocking filter in video coding | |
KR102357142B1 (en) | Interpolation filter for inter prediction apparatus and method for video coding | |
JP2012516637A5 (en) | ||
US20220159292A1 (en) | Filtering method for removing blocking artifact and apparatus | |
JP2010514246A (en) | Image compression and decompression | |
WO2012092777A1 (en) | Apparatus and method of sample adaptive offset for video coding | |
IL225591A (en) | Method and apparatus for adaptive loop filtering | |
KR102598746B1 (en) | Apparatus and method for filtering in video coding | |
WO2012119540A1 (en) | Method and apparatus of deblocking filter | |
EP4085610A1 (en) | Methods for signaling virtual boundaries and wrap-around motion compensation | |
CN109963160A (en) | Simplification SAO optimal compensation value calculating method and device based on HEVC | |
WO2018134128A1 (en) | Filtering of video data using a shared look-up table | |
CN109963161A (en) | Optimal compensation value calculating method and device | |
CN109963154A (en) | The method and apparatus for determining optimal compensation value based on multiple candidate offsets | |
CN109963153A (en) | Video comfort method and apparatus | |
WO2018134362A1 (en) | Filter apparatus and methods | |
KR102402671B1 (en) | Image Processing Device Having Computational Complexity Scalable Interpolation Filter, Image Interpolation Method and Image Encoding Method | |
WO2020171760A1 (en) | Deblocking on 4x4 grid using long filters | |
RU2783342C1 (en) | Method and apparatus for nonlinear adaptive contour filtering in video encoding |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190702 |
|
RJ01 | Rejection of invention patent application after publication |