CN108810543A - The compensation method of Video coding and device - Google Patents

The compensation method of Video coding and device Download PDF

Info

Publication number
CN108810543A
CN108810543A CN201810605725.1A CN201810605725A CN108810543A CN 108810543 A CN108810543 A CN 108810543A CN 201810605725 A CN201810605725 A CN 201810605725A CN 108810543 A CN108810543 A CN 108810543A
Authority
CN
China
Prior art keywords
pixel
target
target stripe
band
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.)
Granted
Application number
CN201810605725.1A
Other languages
Chinese (zh)
Other versions
CN108810543B (en
Inventor
朱洪波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810605725.1A priority Critical patent/CN108810543B/en
Publication of CN108810543A publication Critical patent/CN108810543A/en
Application granted granted Critical
Publication of CN108810543B publication Critical patent/CN108810543B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/182Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression

Landscapes

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

Abstract

A kind of compensation method of Video coding provided in an embodiment of the present invention and device are more than the band of number threshold value by acquired each band, selecting the pixel number for including, as target stripe;Acquired each band is determined by the pixel value of each pixel in coding unit;The pixel value of each pixel in the target stripe is compensated.The present embodiment reduces bin number, therefore can improve code efficiency by selecting the band that pixel is more than number threshold value.

Description

The compensation method of Video coding and device
Technical field
The present invention relates to technical field of video coding, the compensation method more particularly to a kind of Video coding and device.
Background technology
With the universalness of high-resolution capture apparatus, internet video amount rapidly increases.The prior art uses a new generation Video encoding standard HEVC (High Efficiency Video Coding, efficient video coding) encodes video.
In HEVC, encoder will form the primitive frame image segmentation of video into CTU (CodingTreeUnit, code tree Unit), then each CTU is encoded.CTU points, for CU, (CodingUnit, coding are single in the form of quaternary tree for encoder Member), the pixel value of pixel in CU is reconstructed, the pixel value of the pixel after reconstruct is mended using compensation method It repays, then the pixel after compensation is encoded.SAO (Sample adaptive are introduced in HEVC in the prior art Offset, it is adaptively sampled point compensation) in band-like compensation method, the pixel value of pixel in CU is compensated.Use SAO In band-like compensation method it is as follows to the process of the pixel compensation value of pixel in CU:
It is 32 bands by the pixel value range 0-255 even partitions of the pixel of a coding unit, each band Pixel value is the pixel value after reconstruct.Then by the pixel value after reconstruct compared with the pixel value of primitive frame image, for each Band calculates the average error value that band includes pixel pixel value, using the average error value as the average error value of band. The corresponding bias of each band is calculated using the average error value of each band, it will be on the pixel value after the reconstruct of each band In addition the bias of corresponding band, compensates the pixel value in CU.
The pixel number that each band includes is more, since the prior art needs to calculate the corresponding biasing of all bands Value, realization compensate all pixels value in CU, and the time is longer, therefore video coding efficiency is not high.
Invention content
A kind of compensation method for being designed to provide Video coding of the embodiment of the present invention and device, it is unnecessary by reducing Bin number, realize improve Video coding efficiency.Specific technical solution is as follows:
In a first aspect, an embodiment of the present invention provides a kind of compensation methodes of Video coding, including:
In acquired each band, it is more than the band of number threshold value to select the pixel number for including, and is determined as mesh Mark band;Acquired each band is determined by the pixel value of each pixel in coding unit;
The pixel value of each pixel in the target stripe is compensated.
Optionally, following steps may be used, determine acquired each band:
The pixel value of each pixel in obtained coding unit is ranked up;
According to preset pixel value step-length, the pixel value of each pixel after sequence is divided into the first preset quantity Acquired band.
Optionally, the pixel value to each pixel in the target stripe compensate including:
By the pixel value of primitive frame image compared with the pixel value after reconstruct, each pixel in each target stripe is calculated Error amount;
For each target stripe, by the average value of the error amount of each pixel in target stripe, as target stripe Average error value;
For each target stripe, the average error value of target stripe is determined as the corresponding bias of target stripe;
For each target stripe, by the pixel value of pixel in target stripe, biasing corresponding with the target stripe Value is added, and is compensated to the pixel value of each pixel in the target stripe.
Optionally, after the pixel value of each pixel compensates in described to the target stripe, the method Further include:
Target stripe after compensation is encoded.
Optionally, the target stripe after described pair of compensation, which encode, includes:
According to the mean error of each target stripe after having been compensated, after the compensation for selecting average error value minimum Target stripe is as initial target band;
According to minimum pixel value in each target stripe after compensation, each target stripe after compensation is ranked up;
According to the sequence after each target stripe sequence after compensation second is selected since the initial target band Target stripe after preset quantity compensation is as target code band;The target code band includes initial target band;
The target code band is encoded.
Optionally, following steps may be used, number threshold value is calculated:
The value that the length of coding unit is multiplied with height, the total number of pixel is included as the coding unit;
The result that total number of the coding unit comprising pixel is multiplied with preset ratio value P is as number threshold value;0 <P<1。
Second aspect, an embodiment of the present invention provides a kind of compensation devices of Video coding, including:
Determining module is more than number threshold value in acquired each band, selecting the pixel number for including Band is determined as target stripe;Acquired each band is true by the pixel value of each pixel in coding unit Fixed;
Compensating module is compensated for the pixel value to each pixel in the target stripe.
Optionally, the determining module further includes:
Sorting subunit, for the pixel value of each pixel in obtained coding unit to be ranked up;
Target subelement, for according to preset pixel value step-length, the pixel value of each pixel after sequence to be divided For the acquired band of the first preset quantity.
Optionally, the compensating module includes:
Error calculation subelement, for compared with the pixel value after reconstruct, calculating each the pixel value of primitive frame image The error amount of each pixel in target stripe;
Error determination subelement, for being directed to each target stripe, by the error amount of each pixel in target stripe Average value, the average error value as target stripe;
Computation subunit is biased, for being directed to each target stripe, the average error value of target stripe is determined as target The corresponding bias of band;
Subelement is compensated, for being directed to each target stripe, by the pixel value of pixel in target stripe, with the target The corresponding bias of band is added, and is compensated to the pixel value of each pixel in the target stripe.
Optionally, the compensation device of the Video coding further includes:
Coding module, for being encoded to the target stripe after compensation.
Optionally, the coding module includes:
Subelement is originated, according to the mean error of each target stripe after having been compensated, selects average error value most Target stripe after small compensation is as initial target band;
Sorting subunit, according to minimum pixel value in each target stripe after compensation, by each target item after compensation Band is ranked up;
Subelement is selected, according to the sequence after each target stripe sequence after compensation, is opened from the initial target band Begin, the target stripe after selecting the second preset quantity to compensate is as target code band;The target code band includes Beginning target stripe;
Coded sub-units encode the target code band.
Optionally, the determining module further includes:
Pixel subelement, the value for the length of coding unit to be multiplied with height include pixel as the coding unit Total number;
Threshold value subelement, the knot for total number of the coding unit comprising pixel to be multiplied with preset ratio value P Fruit is as number threshold value;0<P<1.
At the another aspect that the present invention is implemented, a kind of computer readable storage medium is additionally provided, it is described computer-readable Instruction is stored in storage medium, when run on a computer so that computer executes any of the above-described described one kind and regards The compensation method of frequency coding.
At the another aspect that the present invention is implemented, the embodiment of the present invention additionally provides a kind of computer program production comprising instruction Product, when run on a computer so that computer executes a kind of compensation method of any of the above-described Video coding.
A kind of compensation method of Video coding provided in an embodiment of the present invention and device, by acquired each band In, it is more than the band of number threshold value to select the pixel number for including, as target stripe;Acquired each band is It is determined by the pixel value of each pixel in coding unit;The pixel value of each pixel in the target stripe is carried out Compensation.The present embodiment includes band that pixel number is more than number threshold value by selecting, and reduces bin number, therefore can be with Improve code efficiency.
Certainly, implement any of the products of the present invention or method it is not absolutely required at the same reach all the above excellent Point.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described.
Fig. 1 is a kind of flow chart of the compensation method of Video coding provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart determining acquired each band provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart calculating number threshold value provided in an embodiment of the present invention;
Fig. 4 is a kind of flow to the pixel compensation value of each pixel in target stripe provided in an embodiment of the present invention Figure;
Fig. 5 is the flow chart that the target stripe after a kind of compensation provided in an embodiment of the present invention is encoded;
Fig. 6 is a kind of structure chart of the compensation device of Video coding provided in an embodiment of the present invention;
Fig. 7 is the structure chart of a kind of electronic equipment provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
For the prior art by calculating the corresponding bias of all bands, it is follow-up realize to all pixels value in CU into Row compensation, the time is longer, the problem for causing video coding efficiency not high, a kind of benefit of Video coding provided in an embodiment of the present invention Compensation method and device are more than the band of number threshold value by acquired each band, selecting the pixel number for including, As target stripe;The pixel value of each pixel in the target stripe is compensated.The present embodiment includes by selecting Pixel number is more than the band of number threshold value, reduces bin number, therefore can improve code efficiency.
A kind of compensation method of Video coding provided in an embodiment of the present invention is briefly described first below.
A kind of compensation method of Video coding provided in an embodiment of the present invention, is applied to electronic equipment, and further electronics is set Standby can be mobile phone, computer, server, intelligent mobile terminal equipment, wearable intelligent mobile terminal equipment etc..It does not do herein It limits, any electronic equipment that the present invention may be implemented all belongs to the scope of protection of the present invention.
As shown in Figure 1, an embodiment of the present invention provides a kind of compensation methodes of Video coding, including:
S101, in acquired each band, it is more than the band of number threshold value to select the pixel number for including, and is determined For target stripe;Acquired each band is determined by the pixel value of each pixel in coding unit;
Wherein, number threshold value can be artificially according to the preset numerical value of industry experience, and presetting number threshold value can To save the time of selection target band, basis is provided for the follow-up efficiency for improving compensation target stripe.
Such as:Acquired each band be respectively [64,71], [72,79], [80,87], [88,95], [96,103], [104,111], [112,119], [120,127], the pixel number that corresponding each band includes is respectively 123,74,198, 34,107,23,165,156, number threshold value is 100, the picture that acquired band [72,79], [88,95], [96,103] include Vegetarian refreshments number is less than 100, and acquired band [64,71], [80,87], [104,111], [112,119], [120,127] are made For target stripe.
S102 compensates the pixel value of each pixel in target stripe.
In order to realize that following at least one possible realization may be used in the efficiency for improving compensation target stripe, above-mentioned S102 Mode compensates the pixel value of each pixel in target stripe:
In one possible implementation, corresponding bias is pre-set to each target stripe, by target stripe In each pixel pixel value add bias corresponding with the target stripe, compensate.
By pre-setting the realization method of the corresponding bias of each target stripe, can save to each target stripe The time of compensation.
The embodiment of the present invention is more than number threshold value by acquired each band, selecting the pixel number for including Band, as target stripe;The pixel value of each pixel in target stripe is compensated.The present embodiment is by selecting packet Number containing pixel is more than the band of number threshold value, reduces bin number, therefore can improve code efficiency.
On the basis of a kind of compensation method of Video coding shown in Fig. 1, as shown in Fig. 2, one kind of the embodiment of the present invention is optional Embodiment in, can determine acquired each band as follows:
The pixel value of each pixel in obtained coding unit is ranked up by S201;
In order to realize that following at least one possible realization may be used in the efficiency for improving compensation target stripe, above-mentioned S201 The pixel value of each pixel in obtained coding unit is ranked up by mode:
In one possible implementation, bubble sort may be used, selected and sorted, insertion sort Shell sorting, return And sort, quicksort, heapsort, count sort, bucket sort or radix sorting, any method that can be ranked up it is right The pixel value of each pixel carries out sequence from big to small in obtained coding unit.
Sequence from big to small is carried out to the pixel value of each pixel in obtained coding unit, can be to divide mesh Mark band saves the time.
In alternatively possible realization method, it may be used using bubble sort, selected and sorted, insertion sort Xi Er rows Sequence, merger sequence, quicksort, heapsort, count sort, bucket sort or radix sorting, any side that can be ranked up Method carries out sequence from small to large to the pixel value of each pixel in obtained coding unit.
Sequence from small to large is carried out to the pixel value of each pixel in obtained coding unit, can be to divide mesh Mark band saves the time.
The pixel value of each pixel after sequence is divided into first and preset by S202 according to preset pixel value step-length The acquired band of quantity.
Wherein, preset pixel value step-length can be the value artificially set according to industry experience, preset pixel value step-length It can change, to improve the efficiency for dividing band.First preset quantity is the numerical value artificially set according to industry experience, to reduce The number of target stripe, while ensureing the coding quality of original video frame image, which can also modify.
The pixel value of each pixel in obtained coding unit is ranked up by the present embodiment, then according to preset Pixel value step-length divides band, saves the time for obtaining each band.
In order to accurately select target stripe, following at least one possible realization method may be used, obtain number threshold Value:
In one possible implementation, P is artificially according to the preset numerical value of industry experience.
For example, setting coding unit size as wide and a height of M and N, then coding unit includes M*N pixel, it is assumed that default Ratio value P is 0.5, M 10, N 35, number threshold value P=0.5 × 10 × 35=175.
Artificially according to the realization method of the preset number threshold value of industry experience, can save selection target band when Between, improve the efficiency of Video coding.
In alternatively possible realization method, obtained as shown in figure 3, number threshold value can also calculate as follows ?:
S301, the value that the length of coding unit is multiplied with height, the total number of pixel is included as coding unit;
S302, the result that total number of the coding unit comprising pixel is multiplied with preset ratio value N is as number threshold value; 0<P<1。
The length of coding unit can be obtained into accurate number threshold value with the high and preset ratio value N modes being multiplied Realization method can improve the accuracy rate of selection target band.
In conjunction with the embodiment of Fig. 1 and Fig. 2, in order to realize the efficiency for improving compensation target stripe, as shown in figure 4, another In the possible realization method of kind, being compensated to the pixel value of each pixel in target stripe can be as follows:
S401 is calculated each in each target stripe by the pixel value of primitive frame image compared with the pixel value after reconstruct The error amount of pixel;
In order to realize the efficiency for improving compensation target stripe, above-mentioned S401 will be after the pixel value of primitive frame image and reconstruct Pixel value compares, and calculates the error amount of each pixel in each target stripe:
Using absolute error calculation formula, the pixel value for calculating the primitive frame image of same pixel and the pixel after reconstruct Difference between value, by the error amount of each pixel in each target stripe of the difference of the pixel.
S402, for each target stripe, by the average value of the error amount of each pixel in target stripe, as target The average error value of band;
The average error value of target stripe is determined as the corresponding biasing of target stripe by S403 for each target stripe Value;
S404, for each target stripe, by the pixel value of pixel in target stripe, biasing corresponding with target stripe Value is added, and is compensated to the pixel value of each pixel in target stripe.
Such as:Target stripe [64,71], [80,87] average error value be respectively:- 2,7, then by target stripe [64, 71], [80,87] corresponding bias is respectively -2,7.The pixel value of target stripe [64,71] each pixel is added into the mesh The corresponding bias -2 of band is marked, then the target stripe after compensating is [62,69].By target stripe [80,87] each pixel The pixel value of point adds the corresponding bias 7 of the target stripe, then the target stripe after compensating is [87,94].
The present embodiment obtains target stripe by the error amount of the pixel value of each pixel in each target stripe of calculating Average error value, be determined as the corresponding bias of target stripe, improve the accuracy of the corresponding bias of target stripe, carry Accuracy of the height to the pixel compensation value of each pixel in target stripe.
In conjunction with the embodiment of Fig. 1, Fig. 2 and Fig. 4, the efficiency of Video coding in order to better improve, after S102, this hair A kind of optional realization method that bright embodiment provides, the method further include:Target stripe after compensation is encoded.
In order to save the time encoded to the target stripe after compensation, a kind of at least following possible reality can be passed through Existing mode encodes the target stripe after compensation:
It in one possible implementation, can be according to minimum pixel value in the target stripe after compensation by the present embodiment Sequence, the target stripe after selecting continuous second preset quantity to compensate encoded.
Such as:Target stripe after compensation be respectively [65,72], [82,89], [107,114], [120,127], [130, 137], the second preset quantity is 4, according to the minimum pixel value of the target stripe after compensation from greatly to small sequence, selection compensation Target stripe [130,137] afterwards, [120,127], [107,114], [82,89] are encoded.Alternatively, according to the mesh after compensation The minimum pixel value of band is marked from as low as big sequence, target stripe [65,72], [82,89] after selection compensation, [107, 114], [120,127] are encoded.
According to the sequence of minimum pixel value in the target stripe after compensation, the target stripe of continuous second preset quantity is selected The realization method encoded can save the time encoded to the target stripe after compensation, improve the effect of Video coding Rate.
In alternatively possible realization method, target stripe that can be optionally after the compensation of continuous second preset quantity into Row coding.
Such as:To the target stripe after compensation be respectively [65,72], [82,89], [107,114], [120,127], [130,137], the second preset quantity be 4, optionally it is continuous 4 compensation after target stripe [82,89], [107,114], [120, 127], [130,137] are encoded.
The realization method that target stripe after optionally continuous second preset quantity compensation is encoded, can save selection To the time of the target stripe after compensation, the efficiency to the target stripe coding after compensation is improved.
In the third possible realization method, as shown in figure 5, being encoded to the target stripe after compensation can also lead to Cross following steps:
S501 selects average error value to repay value complement according to the mean error of each target stripe after having been compensated Target stripe afterwards is as initial target band;
For the time for saving to the target stripe coding after compensation, each target stripe after compensation can be calculated in advance Then mean error of the average error value as each target stripe after having been compensated selects average error value absolute value most Small, the target stripe after compensation is as initial target band.
S502 carries out each target stripe after compensation according to minimum pixel value in each target stripe after compensation Sequence;
In order to save the time of selection target encoding strip thereof, following at least one possible realization may be used in above-mentioned S502 Each target stripe after compensation is ranked up by mode according to minimum pixel value in each target stripe after compensation:
In one possible implementation, bubble sort may be used, selected and sorted, insertion sort Shell sorting, return And sort, quicksort, heapsort, count sort, bucket sort or radix sorting, any method that can be ranked up are pressed According to minimum pixel value in each target stripe after compensation, each target stripe after compensation is ranked up.
According to minimum pixel value in each target stripe after compensation, from big to small by each target stripe after compensation Sort the realization method being ranked up, and the time is saved to select target code band.
In alternatively possible realization method, it may be used using bubble sort, selected and sorted, insertion sort Xi Er rows Sequence, merger sequence, quicksort, heapsort, count sort, bucket sort or radix sorting, any side that can be ranked up Method carries out sequence from small to large to the pixel value of each pixel in obtained coding unit.
According to minimum pixel value in each target stripe after compensation, each target stripe after compensation is ranked up Realization method can save the time of Video coding.
S503 selects second according to the sequence after each target stripe sequence after compensation since initial target band Target stripe after preset quantity compensation is as target code band;Target code band includes initial target band;
In order to save the time of selection target encoding strip thereof, the efficiency of Video coding is improved, above-mentioned S503 may be used Following at least one possible realization method, according to the sequence after each target stripe sequence after compensation, from initial target item Band starts, and the target stripe after selecting the second preset quantity to compensate is as target code band:
In one possible implementation, according to the sequence after each target stripe sequence after compensation, each is given Serial number is arranged in each target stripe after compensation, and since the serial number of initial target band, continuous preset quantity serial number will Continuously the corresponding target stripe of preset quantity serial number is as target code band.
Such as:Second preset quantity is 4, each target stripe after compensation be respectively [65,72], [149,156], [107,114], [82,89], [120,127], [130,137], each target stripe minimum pixel value after compensation is respectively 65,149,107,82,120,130, according to minimum pixel value in each target stripe after compensation, by each target after compensation Band is ranked up, according to the sequence after each target stripe sequence after compensation, then to each mesh after each compensation It marks band and serial number is set:1:[65,72], 2:[82,89], 3:[107,114], 4:[120,127], 5:[130,137], 6: [149,156];The mean error of each target stripe after having been compensated is respectively:-2,7,1,9,-4,6.After wherein compensating Target stripe [107,114] average error value absolute value it is minimum, by target stripe 3:[107,114] it is used as initial target Band, selects the continuous preset quantity serial number to be respectively:3,4,5,6, by the mesh after serial number 3,4,5,6 corresponding compensation Mark band:3:[107,114], 4:[120,127], 5:[130,137], 6:[149,156] it is used as target code band.
In alternatively possible realization method, pass through the mean error of each target stripe after having been compensated, choosing Select initial target band, to each target stripe after compensation, according to minimum pixel value in each target stripe after compensation into Row sequence selects the second present count according to the sequence after each target stripe sequence after compensation since initial target band Target stripe after amount compensation is as target code band.
S504 encodes target code band.
In order to realize that following at least one possible realization side may be used in the efficiency for improving Video coding, above-mentioned S504 Formula encodes target code band:
In one possible implementation, according to the numeric order of target code band, target code band is carried out Coding.
In alternatively possible realization method, according to the minimum pixel value sequence of target code band, to target code Band is encoded.
It continues with and a kind of compensation device of Video coding provided in an embodiment of the present invention is briefly described.
As shown in fig. 6, a kind of compensation device of Video coding provided in an embodiment of the present invention, including:
Determining module 601 is more than number threshold value in acquired each band, selecting the pixel number for including Band, be determined as target stripe;Acquired each band is determined by the pixel value of each pixel in coding unit 's;
Compensating module 602 is compensated for the pixel value to each pixel in target stripe.
Optionally, determining module further includes:
Sorting subunit, for the pixel value of each pixel in obtained coding unit to be ranked up;
Target subelement, for according to preset pixel value step-length, the pixel value of each pixel after sequence to be divided For the acquired band of the first preset quantity.
Optionally, compensating module includes:
Error calculation subelement, for compared with the pixel value after reconstruct, calculating each the pixel value of primitive frame image The error amount of each pixel in target stripe;
Error determination subelement, for being directed to each target stripe, by the error amount of each pixel in target stripe Average value, the average error value as target stripe;
Computation subunit is biased, for being directed to each target stripe, the average error value of target stripe is determined as target The corresponding bias of band;
Subelement is compensated, for being directed to each target stripe, by the pixel value of pixel in target stripe, with target stripe Corresponding bias is added, and is compensated to the pixel value of each pixel in target stripe.
Optionally, a kind of compensation device of Video coding provided in an embodiment of the present invention further includes:
Coding module, for being encoded to the target stripe after compensation.
Optionally, coding module includes:
Subelement is originated, according to the mean error of each target stripe after having been compensated, selects average error value most Target stripe after small compensation is as initial target band;
Sorting subunit, according to minimum pixel value in each target stripe after compensation, by each target item after compensation Band is ranked up;
Subelement is selected, according to the clooating sequence of each target stripe after compensation, headed by initial target band, selection Target stripe after the compensation of second preset quantity is as target code band;Target code band includes initial target band;
Coded sub-units encode target code band.
Optionally, determining module further includes:
Pixel subelement, the value for the length of coding unit to be multiplied with height include the total of pixel as coding unit Number;
Threshold value subelement, the result for total number of the coding unit comprising pixel to be multiplied with preset ratio value P are made For number threshold value;0<P<1.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in fig. 7, comprises processor 701, communication interface 702, Memory 703 and communication bus 704, wherein processor 701, communication interface 702, memory 703 are complete by communication bus 704 At mutual communication,
Memory 703, for storing computer program;
Processor 701 when for executing the program stored on memory 703, realizes following steps:
In acquired each band, it is more than the band of number threshold value to select the pixel number for including, and is determined as mesh Mark band;Acquired each band is determined by the pixel value of each pixel in coding unit;To in target stripe The pixel value of each pixel compensates.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc.. For ease of indicating, only indicated with a thick line in figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, abbreviation RAM), can also include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, Abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal Processing, abbreviation DSP), application-specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array, Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer so that computer executes any institute in above-described embodiment The compensation method for the Video coding stated.
In another embodiment provided by the invention, a kind of computer program product including instruction is additionally provided, when it When running on computers so that computer executes the compensation method of any Video coding in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its arbitrary combination real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, special meter Calculation machine, computer network or other programmable devices.The computer instruction can be stored in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state disk Solid State Disk (SSD)) etc..
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (13)

1. a kind of compensation method of Video coding, which is characterized in that the method includes:
In acquired each band, it is more than the band of number threshold value to select the pixel number for including, and is determined as target item Band;Acquired each band is determined by the pixel value of each pixel in coding unit;
The pixel value of each pixel in the target stripe is compensated.
2. according to the method described in claim 1, it is characterized in that, using following steps, described acquired each is determined Band:
The pixel value of each pixel in obtained coding unit is ranked up;
According to preset pixel value step-length, the pixel value of each pixel after sequence is divided into the first preset quantity and has been obtained The band obtained.
3. according to the method described in claim 1, it is characterized in that, the pixel to each pixel in the target stripe Value compensate including:
By the pixel value of primitive frame image compared with the pixel value after reconstruct, the mistake of each pixel in each target stripe is calculated Difference;
For each target stripe, by the average value of the error amount of each pixel in target stripe, as the flat of target stripe Equal error amount;
For each target stripe, the average error value of target stripe is determined as the corresponding bias of target stripe;
For each target stripe, by the pixel value of pixel in target stripe, bias phase corresponding with the target stripe Add, the pixel value of each pixel in the target stripe is compensated.
4. according to the method described in claim 1, it is characterized in that, it is described to the target stripe in each pixel picture After plain value compensates, the method further includes:
Target stripe after compensation is encoded.
5. according to the method described in claim 4, it is characterized in that, described pair compensation after target stripe carry out coding include:
According to the mean error of each target stripe after having been compensated, the target after the compensation of average error value minimum is selected Band is as initial target band;
According to minimum pixel value in each target stripe after compensation, each target stripe after compensation is ranked up;
According to the sequence after each target stripe sequence after compensation, since the initial target band, second is selected to preset Target stripe after quantity compensation is as target code band;The target code band includes initial target band;
The target code band is encoded.
6. according to the method described in claim 1, it is characterized in that, using following steps, number threshold value is calculated:
The value that the length of coding unit is multiplied with height, the total number of pixel is included as the coding unit;
The result that total number of the coding unit comprising pixel is multiplied with preset ratio value P is as number threshold value;0<P< 1。
7. a kind of compensation device of Video coding, which is characterized in that described device includes:
Determining module is more than the band of number threshold value in acquired each band, selecting the pixel number for including, It is determined as target stripe;Acquired each band is determined by the pixel value of each pixel in coding unit;
Compensating module is compensated for the pixel value to each pixel in the target stripe.
8. device according to claim 7, which is characterized in that the determining module further includes:
Sorting subunit, for the pixel value of each pixel in obtained coding unit to be ranked up;
The pixel value of each pixel after sequence is divided into for according to preset pixel value step-length by target subelement The acquired band of one preset quantity.
9. the method according to the description of claim 7 is characterized in that the compensating module includes:
Error calculation subelement, for the pixel value of primitive frame image compared with the pixel value after reconstruct, to be calculated each target The error amount of each pixel in band;
The error amount of each pixel in target stripe is averaged by error determination subelement for being directed to each target stripe Value, the average error value as target stripe;
Computation subunit is biased, for being directed to each target stripe, the average error value of target stripe is determined as target stripe Corresponding bias;
Subelement is compensated, for being directed to each target stripe, by the pixel value of pixel in target stripe, with the target stripe Corresponding bias is added, and is compensated to the pixel value of each pixel in the target stripe.
10. device according to claim 7, which is characterized in that described device further includes:
Coding module, for being encoded to the target stripe after compensation.
11. device according to claim 10, which is characterized in that the coding module includes:
Subelement is originated, according to the mean error of each target stripe after having been compensated, selects average error value minimum Target stripe after compensation is as initial target band;
Sorting subunit, according to minimum pixel value in each target stripe after compensation, by each target stripe after compensation into Row sequence;
Subelement is selected, according to the sequence after each target stripe sequence after compensation, since the initial target band, choosing The target stripe after the compensation of the second preset quantity is selected as target code band;The target code band includes initial target Band;
Coded sub-units encode the target code band.
12. device according to claim 7, which is characterized in that the determining module further includes:
Pixel subelement, the value for the length of coding unit to be multiplied with height include the total of pixel as the coding unit Number;
Threshold value subelement, the result for total number of the coding unit comprising pixel to be multiplied with preset ratio value P are made For number threshold value;0<P<1.
13. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and steps of claim 1-6.
CN201810605725.1A 2018-06-13 2018-06-13 Video coding compensation method and device and electronic equipment Active CN108810543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810605725.1A CN108810543B (en) 2018-06-13 2018-06-13 Video coding compensation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810605725.1A CN108810543B (en) 2018-06-13 2018-06-13 Video coding compensation method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108810543A true CN108810543A (en) 2018-11-13
CN108810543B CN108810543B (en) 2020-08-28

Family

ID=64085652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810605725.1A Active CN108810543B (en) 2018-06-13 2018-06-13 Video coding compensation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108810543B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112927311A (en) * 2021-02-24 2021-06-08 上海哔哩哔哩科技有限公司 Data processing method and device of sideband compensation mode of sample point adaptive compensation
CN114724087A (en) * 2022-04-22 2022-07-08 四川众合智控科技有限公司 Recognition method and system for improving image recognition accuracy of subway inspection equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013109419A1 (en) * 2012-01-21 2013-07-25 General Instrument Corporation Devices and methods for sample adaptive offset coding and/or selection of band offset parameters
EP2723073A4 (en) * 2011-06-14 2014-11-26 Lg Electronics Inc Method for encoding and decoding image information
CN105635732A (en) * 2014-10-30 2016-06-01 联想(北京)有限公司 Adaptive sampling point compensation coding method and device, and method and device for decoding video code stream

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2723073A4 (en) * 2011-06-14 2014-11-26 Lg Electronics Inc Method for encoding and decoding image information
WO2013109419A1 (en) * 2012-01-21 2013-07-25 General Instrument Corporation Devices and methods for sample adaptive offset coding and/or selection of band offset parameters
CN105635732A (en) * 2014-10-30 2016-06-01 联想(北京)有限公司 Adaptive sampling point compensation coding method and device, and method and device for decoding video code stream

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
EHSAN MAANI等: "Flexible Band Offset Mode in SAO", 《JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/SC29/WG11 8TH MEETING: SAN JOSÉ, CA, USA, 1–10 FEBRUARY, 2012》 *
张正勇: "基于高效视频编码标准中编码单元分割的样点自适应补偿算法研究 3.3.1带状补偿", 《华东师范大学硕士学位论文》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN114724087A (en) * 2022-04-22 2022-07-08 四川众合智控科技有限公司 Recognition method and system for improving image recognition accuracy of subway inspection equipment

Also Published As

Publication number Publication date
CN108810543B (en) 2020-08-28

Similar Documents

Publication Publication Date Title
CN109151468B (en) Image data encoding and decoding methods and devices
CN101176351A (en) Dynamically scaled file encoding
CN108810543A (en) The compensation method of Video coding and device
CN111898765A (en) Feature binning method, device, equipment and readable storage medium
CN111062884B (en) Image enhancement method and device, storage medium and terminal equipment
CN110826685A (en) Method and device for convolution calculation of neural network
CN108965333A (en) A kind of data compression, decompression method, system and electronic equipment
CN105187710A (en) Photography controlling method, intelligent watch, photography terminal and system
JP6314973B2 (en) Image coding apparatus, image coding method, and image coding program
CN110222312A (en) Processing method, device and the server of user&#39;s evaluation data
CN111682988B (en) Remote control method, device, storage medium and processor
CN114418086B (en) Method and device for compressing neural network model
CN108769684A (en) Image processing method based on WebP image compression algorithms and device
CN112632426B (en) Webpage processing method and device
CN105630999A (en) Data compressing method and device of server
CN113419210A (en) Data processing method and device, electronic equipment and storage medium
US20100266043A1 (en) Design of low power video compression chipset for protable application
TWI658368B (en) Sensor estimation server and sensor estimation method
CN109544591A (en) A kind of method for estimating, device, electronic equipment and storage medium
CN113762510B (en) Data processing method and device for target model, electronic equipment and medium
CN105706447B (en) Moving picture encoding equipment, animated image decoding device, moving picture encoding method and animated image coding/decoding method
CN104837027B (en) The method for estimating and device of a kind of point of pixel
CN109005413A (en) Probabilistic estimation, device and electronic equipment in a kind of arithmetic coding
CN108737902A (en) A kind of update method of associated video, device and electronic equipment
CN113099216B (en) Coding complexity evaluation method, device, equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant