WO2016180129A1 - 预测模式选择方法、装置及设备 - Google Patents
预测模式选择方法、装置及设备 Download PDFInfo
- Publication number
- WO2016180129A1 WO2016180129A1 PCT/CN2016/078936 CN2016078936W WO2016180129A1 WO 2016180129 A1 WO2016180129 A1 WO 2016180129A1 CN 2016078936 W CN2016078936 W CN 2016078936W WO 2016180129 A1 WO2016180129 A1 WO 2016180129A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- prediction mode
- intra
- mode
- prediction
- candidates
- 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.)
- Ceased
Links
Images
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/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/11—Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
-
- 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/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/146—Data rate or code amount at the encoder output
- H04N19/147—Data rate or code amount at the encoder output according to 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/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/157—Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
- H04N19/159—Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
-
- 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/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods 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/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/176—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
-
- 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/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods 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/186—Methods 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 colour or a chrominance component
-
- 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/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/189—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
- H04N19/192—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding the adaptation method, adaptation tool or adaptation type being iterative or recursive
- H04N19/194—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding the adaptation method, adaptation tool or adaptation type being iterative or recursive involving only two passes
Definitions
- Embodiments of the present invention relate to the field of video coding, and in particular, to a prediction mode selection method, apparatus, and device.
- the HEVC (High Efficient Video Coding) standard is a new generation video coding standard following H.264.
- all image frames can adopt intra prediction mode, and there are 35 intra prediction modes to choose from.
- intra-chrominance prediction mode selection When intra-chrominance prediction mode selection is performed on the current image frame, firstly, five candidate intra prediction modes are selected in 35 intra prediction modes, and then respectively calculated for each candidate intra prediction mode.
- the code generation value, the code generation value can be represented by the coded code rate and the distortion rate of the reconstructed image frame, and then the optimal frame is selected from the five candidate intra prediction modes according to the calculated code value.
- the intra prediction mode is used as an intra chroma prediction mode.
- the inventors have found that the above technique has at least the following problem: in the above intra prediction mode selection process, since the calculation amount of the code generation value is large, the above process requires each frame within the candidate.
- the prediction mode performs the calculation of the code generation value once, and the calculation efficiency is low.
- embodiments of the present invention provide a prediction mode selection method, apparatus, and device.
- the technical solution is as follows:
- a prediction mode selection method comprising:
- an intra chroma prediction mode of the second group candidate from the intra chroma prediction mode of the first group candidate, where the intra chroma prediction mode of the second group candidate is a true subset of intra-chrominance prediction modes of the first set of candidates;
- a prediction mode selection device comprising:
- a first screening module configured to filter, in the N intra prediction modes, an intra chroma prediction mode of the first group of candidates of the current prediction unit, where N is a positive integer;
- a residual calculation module configured to perform prediction residual cost calculation on the intra chroma prediction mode of the first group of candidates, to obtain a difference evaluation value
- a second screening module configured to filter, according to the difference evaluation value, an intra chroma prediction mode of a second group of candidates from an intra chroma prediction mode of the first group of candidates, where the second group of candidate frames
- the inner chroma prediction mode is a true subset of the intra chroma prediction modes of the first set of candidates
- a cost calculation module configured to separately perform coding cost calculation on the intra chroma prediction mode of the second group of candidates, to obtain a coding cost value
- a mode determining module configured to determine, from the second set of candidate intra chrominance prediction modes, an intra chroma prediction mode with a minimum coding cost according to the coding value, as an intra color of the current prediction unit Degree prediction mode.
- a video encoding apparatus comprising: one or more processors; and a memory; the memory storing one or more programs, the one or more programs being configured to be Executing one or more processors, the one or more programs including instructions for:
- the initial screening is performed by first calculating the prediction residual cost, then the coding generation value is calculated for secondary screening, and then the optimal intra chroma prediction mode is obtained; the prior art needs to predict the intra chroma of each candidate.
- the model performs the calculation of the code generation value, and the calculation efficiency is low. Since the calculation amount of the difference evaluation value is 1/6 to 1/4 of the calculation amount of the code generation value, the calculation amount is effectively reduced, and the coding is improved. The effect of efficiency.
- FIG. 1 is a schematic diagram of 33 direction prediction modes involved in an intra prediction mode according to an embodiment of the present invention
- FIG. 2 is a schematic diagram of a principle of a Planar prediction mode, a DC (direct current) prediction mode, a vertical direction mode, and a horizontal direction mode according to an embodiment of the present invention
- FIG. 3 is a flowchart of a prediction mode selection method according to an embodiment of the present invention.
- FIG. 4 is a flowchart of a prediction mode selection method according to another embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of a prediction mode selection apparatus according to an embodiment of the present invention.
- FIG. 6 is a schematic structural diagram of a prediction mode selection apparatus according to another embodiment of the present invention.
- FIG. 7 is a schematic structural diagram of a video encoding apparatus according to another embodiment of the present invention.
- Image frame A video consists of several frames of image frames.
- Video compression coding generally adopts a block-based coding method, that is, dividing one frame of image frames in a video into a plurality of mutually non-overlapping blocks, and then encoding the blocks.
- Each image frame may use inter-frame coding or intra-frame coding in video coding.
- the embodiments of the present invention mainly relate to an intra coding mode.
- Intra prediction coding Since the video sequence image has a strong spatial correlation, for example, in a frame of image frames, the background is a wall of the same pattern and texture. Then, among the blocks divided into the image frames, the blocks related to the wall may display the same or similar information, and the blocks with a high degree of spatial correlation may be encoded by the intra prediction technique.
- Prediction Unit (English: Prediction Unit, abbreviated as PU): It is the basic unit for predictive coding in an image frame.
- the prediction unit may be a block of 64 pixels * 64 pixels, 32 pixels * 32 pixels, 16 pixels * 16 pixels, or 8 pixels * 8 pixels.
- Intra prediction mode a prediction mode in which intra prediction is performed using the upper row of pixels and/or the left row of pixels adjacent to the current prediction unit.
- 35 intra prediction modes are provided, namely: Planar (plane) prediction mode, DC (direct current) prediction mode, and 33 directional prediction modes.
- the 33 directional prediction modes include an ang_2 direction to an ang_34 direction prediction mode, where ang_10 is a horizontal direction prediction mode and ang_26 is a vertical direction prediction mode.
- the directions are from small to large according to the number, from 45° in the lower left corner to 45° in the clockwise direction to the upper right corner, as shown in Figure 1. among them:
- Planar (plane) prediction mode using the bilinear interpolation algorithm and the upper row of pixels H and the left row of pixels V of the current prediction unit to predict the corresponding pixel values in the current prediction unit, which is suitable for the gradation change region, as shown in FIG. 2 As shown in (A);
- DC (direct current) prediction mode predicting the corresponding pixel value in the current prediction unit by using the average value Mean(H+V) of the upper row pixel H of the current prediction unit and the pixel V of the left row, as shown in FIG. 2(B). ;
- Horizontal direction mode predicting the current prediction unit by using the left row of pixels V of the current prediction unit The corresponding pixel value in it is as shown in (D) of FIG.
- Intra prediction mode selection process For the current prediction unit, an intra luma prediction mode selection process is performed first, and then an intra chroma prediction mode selection process is performed. Both the intra luma prediction mode and the intra chroma prediction mode are selected from 35 intra prediction modes.
- FIG. 3 shows a flowchart of a prediction mode selection method provided by an embodiment of the present invention.
- This embodiment is exemplified by applying the prediction mode selection method to a video encoding device.
- the method includes:
- Step 302 The intra chrominance prediction mode of the first group candidate of the current prediction unit is filtered out in the N intra prediction modes, where N is a positive integer.
- Step 304 Perform prediction residual cost calculation on the intra chrominance prediction modes of the first group of candidates respectively, to obtain a difference evaluation value.
- the difference evaluation value may be any one of HAD (Hadamard absolute difference), SAD (Sum of Absolute Difference), SATD (Sum of Absolute Transformed Difference). kind.
- Step 306 Filter out the intra chrominance prediction mode of the second group of candidates from the intra chrominance prediction mode of the first group of candidates according to the difference evaluation value.
- the intra chrominance prediction mode of the second group of candidates is a true subset of the intra chrominance prediction modes of the first group of candidates.
- Step 208 Perform coding cost calculation on the intra chrominance prediction modes of the second group of candidates respectively to obtain coding value.
- Step 310 Determine an intra chroma prediction mode with the smallest coding cost from the intra chroma prediction mode of the second group of candidates according to the coding cost value, as the intra chroma prediction mode of the current prediction unit.
- the prediction mode selection method performs initial screening by first calculating the prediction residual cost, and then calculating the coding cost value for secondary screening, and then obtaining an optimal intra chroma prediction mode;
- it is necessary to perform a coding generation value calculation for each candidate intra chroma prediction mode, and the calculation efficiency is low; since the calculation amount of the difference evaluation value is 1/6 of the calculation amount of the coding generation value ⁇ 1/4, which has effectively reduced the amount of calculation and improved the efficiency of coding.
- FIG. 4 shows a flow of a prediction mode selection method according to another embodiment of the present invention. Cheng Tu. This embodiment is exemplified by applying the prediction mode selection method to a video encoding device. The method includes:
- Step 401 Filter out an intra chroma prediction mode of the first group of candidates in the N intra prediction modes according to an intra luma prediction mode of the current prediction unit.
- the intra prediction mode selection process needs to first perform an intra luma prediction mode selection process, and then perform an intra chroma prediction mode selection process.
- the selection process of the intra-benchness prediction mode is not described in this embodiment, and various existing selection processes may be employed.
- the intra luma prediction mode is a luma prediction mode selected for the current prediction unit during the intra luma prediction mode selection process.
- this step guides the selection process of the intra chroma prediction mode by using the already selected intra luma prediction mode. Specifically, it includes any of the following substeps:
- the intra luma prediction mode is the horizontal prediction mode
- the Planar mode, the DC mode, and the horizontal prediction mode are used as the first set of candidate intra chroma prediction modes.
- the intra luma prediction mode is the vertical prediction mode
- the Planar mode, the DC mode, and the vertical prediction mode are used as the first set of candidate intra chroma prediction modes.
- the intra luma prediction mode is the first direction prediction mode and the angle between the first direction and the horizontal direction is less than or equal to the first angle
- the Planar mode, the DC mode, the first direction prediction mode, and the horizontal prediction mode are used as the first group.
- the intra luma prediction mode is the second direction prediction mode and the angle between the second direction and the vertical direction is less than or equal to the second angle
- the Planar mode, the DC mode, the second direction prediction mode, and the vertical prediction mode are used as the first group.
- the intra luma prediction mode is the third direction prediction mode and the angle between the third direction and the horizontal direction is greater than the first angle and the angle between the third direction and the vertical direction is greater than the second angle
- the Planar mode, the DC mode, and the level are The prediction mode, the vertical prediction mode, and the third direction prediction mode are used as the first set of candidate intra chroma prediction modes.
- the first direction is any direction other than the horizontal direction and the vertical direction among the 33 directions from the ang_2 direction to the ang_34 direction;
- the second direction is a total of 33 directions from the ang_2 direction to the ang_34 direction except the horizontal direction and the vertical direction.
- the third direction is any direction other than the horizontal direction and the vertical direction among the 33 directions from the ang_2 direction to the ang_34 direction.
- Step 402 Perform prediction residual cost calculation on the intra chrominance prediction modes of the first group of candidates, respectively. A difference evaluation value is obtained.
- the difference evaluation value may be HAD (Hadamard absolute difference), SAD (Sum of Absolute Difference), SAD (Sum of Absolute Transformed Difference), SSD (Sum) Any of Squared Difference, SSE (Sum of Square Error).
- the prediction residual cost calculation is performed separately for the four or five intra chroma prediction modes of the first group of candidates, and the difference evaluation value of each prediction mode is obtained.
- Step 403 Sort the intra chroma prediction modes of the first group of candidates according to the difference evaluation value from small to large, and obtain the intra chroma prediction modes of the sorted n 1 candidates.
- n 1 4 or 5.
- the sort order can be marked with candidate_1[0], candidate_1[1], candidate_1[2], candidate_1[3], and candidate_1[4].
- Step 404 Determine whether an ang_34 direction prediction mode is included in the intra chrominance prediction mode of the sorted n 1 candidates, and the ang_34 direction prediction mode is not the prediction mode ranked in the first bit.
- step 405 is entered;
- step 406 is entered.
- Step 405 If the ang_34 direction prediction mode is included and the ang_34 direction prediction mode is not the prediction mode ranked in the first bit, the ang_34 direction prediction mode is deleted from the n 1 candidate intra chroma prediction modes.
- the ang_34 direction prediction mode is determined to be the optimal intra chroma prediction mode is low, if the ang_34 direction prediction mode is not the prediction mode ranked in the first place, the ang_34 direction prediction mode is from n 1
- the candidate intra-chrominance prediction modes are deleted so that the amount of calculation in step 407 is less.
- steps 404 and 405 are optional steps.
- Step 406 If the ang_34 direction prediction mode is not included, or includes the ang_34 direction prediction mode but the ang_34 direction prediction mode is the prediction mode ranked in the first bit, the intra-chrominity prediction mode of the sorted n 1 candidates is determined. Whether the first n 2 prediction modes in the frame include the intra luma prediction mode of the current prediction unit, n 2 ⁇ n 1 .
- n 2 2.
- Step 407 If the intra luma prediction mode is included, filter the first n 2 prediction modes into the intra chroma prediction mode of the second group of candidates.
- the prediction mode corresponding to candidate_1[0] and candidate_1[1] includes the intra prediction mode of the current prediction unit, the prediction mode corresponding to candidate_1[0] and candidate_1[1] is filtered into the intraframe of the second candidate. Chroma prediction mode.
- Step 408 If the intra luma prediction mode is not included, the first n 2 prediction modes and the intra luma prediction mode are filtered into the intra chroma prediction mode of the second group of candidates.
- the prediction mode corresponding to candidate_1[0] and candidate_1[1] does not include the intra prediction mode of the current prediction unit, the prediction mode corresponding to candidate_1[0] and candidate_1[1], and the intra prediction brightness of the current prediction unit.
- the prediction mode is filtered into a second set of candidate intra chroma prediction modes.
- Step 409 Perform coding cost calculation on the intra chrominance prediction modes of the second group of candidates respectively, to obtain a coding cost value.
- the coded value is represented by the coded code rate and the distortion rate of the reconstructed image frame.
- the calculation process of the coded generation value is well known to those skilled in the art and is briefly described below.
- the process of calculating the encoded code rate includes: transforming, quantizing, and entropy encoding the difference evaluation value calculated in step 302 for the current candidate intra chroma prediction mode to obtain the encoded code stream; The stream calculates the coded rate after encoding.
- the process of calculating the distortion rate of the image frame includes: performing inverse quantization and inverse transformation on the current prediction unit for the current candidate intra chroma prediction mode to obtain a reconstructed image frame; according to the reconstructed image frame and the real state of the current prediction unit The frames are compared and the distortion rate is calculated.
- the distortion rate can be calculated using a Lagrangian Rate Distortion Opitmization (RDO) strategy.
- Step 410 Determine, from the second set of candidate intra chroma prediction modes, an intra chroma prediction mode with the smallest coding cost according to the coding cost value, as the intra chroma prediction mode of the current prediction unit.
- an intra chroma prediction mode with the smallest coding cost is determined from the intra chrominance prediction mode of the second group of candidates as the intra chrominance prediction mode of the current prediction unit.
- the prediction mode selection method performs initial screening by first calculating the prediction residual cost, and then calculating the coding cost value for secondary screening, and then obtaining an optimal intra chroma prediction mode;
- the prior art requires that each candidate intra chroma prediction mode be edited once.
- the calculation of the code generation value has a low computational efficiency; since the calculation amount of the difference evaluation value is 1/6 to 1/4 of the calculation amount of the code generation value, the calculation amount is effectively reduced, and the coding efficiency is improved.
- the prediction mode selection method provided in this embodiment further provides an intra-frame chrominance prediction of the first group of candidates by using the intra-luminance prediction mode of the current prediction unit to guide the selection process of the intra-chrominance prediction mode of the first group of candidates. The accuracy of the selection of the mode.
- the prediction mode selection method provided in this embodiment further reduces the calculation amount of the code generation value by discarding the ang_34 direction prediction mode in some cases, and further improves the coding efficiency.
- FIG. 5 is a structural block diagram of a prediction mode selection apparatus according to an embodiment of the present invention.
- the prediction mode selection means can be implemented as all or part of the video encoding apparatus by software, hardware or a combination of both.
- the device includes:
- the first screening module 510 is configured to filter, in the N types of intra prediction modes, an intra chroma prediction mode of the first group of candidates of the current prediction unit, where N is a positive integer;
- the residual calculation module 530 is configured to separately perform prediction residual cost calculation on the intra chroma prediction mode of the first group of candidates to obtain a difference evaluation value;
- a second screening module 550 configured to filter, according to the difference evaluation value, an intra chroma prediction mode of the second group of candidates from the intra chroma prediction mode of the first group of candidates; optionally, the second group
- the candidate intra chroma prediction mode is a true subset of the intra chroma prediction mode of the first set of candidates.
- the cost calculation module 570 is configured to separately perform coding cost calculation on the intra chroma prediction mode of the second group of candidates to obtain a coded value
- the mode determining module 590 is configured to determine, according to the coding value, an intra chroma prediction mode with the smallest coding cost from the intra chroma prediction mode of the second group candidate, as an intraframe of the current prediction unit. Chroma prediction mode.
- the prediction mode selection apparatus performs initial screening by first calculating the prediction residual cost, and then calculates the coding generation value for secondary screening, and then obtains an optimal intra chroma prediction mode;
- it is necessary to perform a coding generation value calculation for each candidate intra chroma prediction mode, and the calculation efficiency is low; since the calculation amount of the difference evaluation value is 1/6 of the calculation amount of the coding generation value ⁇ 1/4, which has effectively reduced the amount of calculation and improved the efficiency of coding.
- FIG. 6 is a structural block diagram of a prediction mode selection apparatus according to an embodiment of the present invention.
- the prediction mode selection means can be implemented as all or part of the video encoding apparatus by software, hardware or a combination of both.
- the device includes:
- the first screening module 510 is configured to filter, in the N types of intra prediction modes, an intra chroma prediction mode of the first group of candidates of the current prediction unit, where N is a positive integer;
- the residual calculation module 530 is configured to separately perform prediction residual cost calculation on the intra chroma prediction mode of the first group of candidates to obtain a difference evaluation value;
- a second screening module 550 configured to filter, according to the difference evaluation value, an intra chroma prediction mode of the second group of candidates from the intra chroma prediction mode of the first group of candidates; optionally, the second group
- the candidate intra chroma prediction mode is a true subset of the intra chroma prediction mode of the first set of candidates.
- the cost calculation module 570 is configured to separately perform coding cost calculation on the intra chroma prediction mode of the second group of candidates to obtain a coded value
- the mode determining module 590 is configured to determine, according to the coding value, an intra chroma prediction mode with the smallest coding cost from the intra chroma prediction mode of the second group candidate, as an intraframe of the current prediction unit. Chroma prediction mode.
- the first screening module 510 is configured to filter, in the N types of intra prediction modes, an intra chroma prediction mode of the first group of candidates according to the intra luma prediction mode of the current prediction unit.
- the first screening module 510 is configured to:
- the intra luma prediction mode is a horizontal prediction mode
- the plane Planar mode, the DC DC mode, and the horizontal prediction mode are used as the intra chroma prediction mode of the first group candidate;
- the intra luma prediction mode is a vertical prediction mode
- the Planar mode, the DC mode, and the vertical prediction mode are used as an intra chroma prediction mode of the first group candidate
- the intra luma prediction mode is the first direction prediction mode and the angle between the first direction and the horizontal direction is less than or equal to the first angle, then the Planar mode, the DC mode, and the first direction are a prediction mode, the horizontal prediction mode as an intra chroma prediction mode of the first group of candidates;
- the intra luma prediction mode is the second direction prediction mode and the angle between the second direction and the vertical direction is less than or equal to the second angle
- the Planar mode, the DC mode, and the second direction are a prediction mode, the vertical prediction mode as an intra chrominance prediction mode of the first group of candidates
- the intra luma prediction mode is the third direction prediction mode and the angle between the third direction and the horizontal direction is greater than the first angle and the angle between the third direction and the vertical direction is greater than the second angle
- the Planar mode, the DC mode, the horizontal prediction mode, the vertical prediction mode, and the third direction prediction mode are used as an intra chroma prediction mode of the first group candidate;
- the first direction is any direction other than the horizontal direction and the vertical direction among the 33 directions from the ang_2 direction to the ang_34 direction;
- the second direction is a horizontal direction and a total of 33 directions from the ang_2 direction to the ang_34 direction.
- the third direction is any direction other than the horizontal direction and the vertical direction among the 33 directions from the ang_2 direction to the ang_34 direction.
- the second screening module 550 includes:
- a sorting unit 551 configured to sort the intra chroma prediction modes of the first group of candidates according to the difference evaluation value from small to large, to obtain the intra chroma of the sorted n 1 candidates Prediction mode
- a determining unit 553, configured to determine whether the first n 2 prediction modes in the intra chroma prediction mode of the sorted n 1 candidates include an intra luma prediction mode of the current prediction unit, n 2 ⁇ n 1 ;
- a first screening unit 555 configured to filter the first n 2 prediction modes into an intra chroma prediction mode of the second group candidate when the intra luma prediction mode is included,
- a second screening unit 557 configured to filter the first n 2 prediction modes and the intra luma prediction mode as the intra chrominance of the second group candidate when the intra luma prediction mode is not included Forecast mode.
- the second screening module 450 includes:
- the pre-determination unit 552 is configured to determine whether the ang_34 direction prediction mode is included in the intra chroma prediction mode of the sorted n 1 candidates, and the ang_34 direction prediction mode is not a prediction in the first position. mode;
- a deleting unit 554 configured to: when the ang_34 direction prediction mode is included and the ang_34 direction prediction mode is not the prediction mode of the first bit, use the ang_34 direction prediction mode from the frame of the n 1 candidates Deleted in the chroma prediction mode;
- the determining unit 553 is configured to perform the judging sorting when the ang_34 direction prediction mode is not included, or the ang_34 direction prediction mode is included, but the ang_34 direction prediction mode is the prediction mode of the first bit. Whether the first n 2 prediction modes in the intra chroma prediction mode of the n 1 candidate include the step of the intra luma prediction mode.
- the prediction mode selection apparatus first calculates the prediction residual cost by first calculating Perform the initial screening, calculate the coding generation value for secondary screening, and then obtain the optimal intra chroma prediction mode; solve the prior art need to encode each candidate intra chroma prediction mode once.
- the calculation of the calculation efficiency is low; since the calculation amount of the difference evaluation value is 1/6 to 1/4 of the calculation amount of the code generation value, the calculation amount is effectively reduced, and the coding efficiency is improved.
- the prediction mode selection apparatus provided in this embodiment further provides an intra-frame chrominance prediction of the first group of candidates by guiding the selection process of the intra-chrominance prediction mode of the first group of candidates by using the intra-luminance prediction mode of the current prediction unit. The accuracy of the selection of the mode.
- the prediction mode selection apparatus provided in this embodiment further reduces the calculation amount of the code generation value by discarding the ang_34 direction prediction mode in some cases, and further improves the effect of coding efficiency.
- the prediction mode selection device provided by the foregoing embodiment is only illustrated by the division of each functional module. In actual applications, the function allocation may be different according to requirements.
- the function module is completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
- the prediction mode selection device provided by the foregoing embodiment is the same as the embodiment of the prediction mode selection method, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
- FIG. 7 is a schematic structural diagram of a video encoding apparatus according to an embodiment of the present invention.
- the video encoding device can be a mobile phone, a tablet, a desktop computer or a server. Specifically:
- the video encoding apparatus 700 includes a central processing unit (CPU) 701, a system memory 704 including a random access memory (RAM) 702 and a read only memory (ROM) 703, and a system bus 705 that connects the system memory 704 and the central processing unit 701.
- Video encoding device 700 also includes a basic input/output system (I/O system) 706 that facilitates transfer of information between various devices within the computer, and mass storage for storing operating system 713, applications 714, and other program modules 715.
- I/O system basic input/output system
- the basic input/output system 706 includes a display 708 for displaying information and an input device 709 such as a mouse, keyboard for inputting information by the user. Both display 708 and input device 709 are connected to central processing unit 701 via an input and output controller 710 that is coupled to system bus 705.
- the basic input/output system 706 can also include an input output controller 710 for receiving and processing input from a plurality of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input and output controller The 710 also provides output to a display, printer, or other type of output device.
- the mass storage device 707 is connected to the central processing unit 701 by a mass storage controller (not shown) connected to the system bus 705.
- the mass storage device 707 and its associated computer readable medium provide non-volatile storage for the video encoding device 700. That is, the mass storage device 707 can include a computer readable medium (not shown) such as a hard disk or a CD-ROM drive.
- Computer readable media may comprise computer storage media and communication media.
- Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data.
- Computer storage media include RAM, ROM, EPROM, EEPROM, flash memory or other solid state storage technologies, CD-ROM, DVD or other optical storage, tape cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices.
- RAM random access memory
- ROM read only memory
- EPROM Erasable programmable read-only memory
- EEPROM electrically erasable programmable read-only memory
- video encoding device 700 may also be operated by a remote computer connected to the network via a network such as the Internet. That is, the video encoding device 700 can be connected to the network 712 through a network interface unit 711 connected to the system bus 705, or can be connected to other types of networks or remote computer systems (not shown) using the network interface unit 711. .
- the above memory further includes one or more programs, one or more programs stored in the memory, configured to be executed by the CPU to perform the prediction mode selection method as shown in the embodiment of FIG. 3 or the embodiment of FIG.
- non-transitory computer readable storage medium comprising instructions, such as a memory comprising instructions executable by a processor of a video encoding device to perform the above-described FIG. 3 embodiment or FIG.
- the prediction mode selection method shown in the embodiment may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
- a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
- the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
一种预测模式选择方法、装置及系统,属于视频编码领域。所述方法包括:在N种帧内预测模式中筛选出当前预测单元的第一组候选的帧内色度预测模式;对第一组候选的帧内色度预测模式分别进行预测残差代价计算,得到差异评价值;根据差异评价值筛选出第二组候选的帧内色度预测模式;对第二组候选的帧内色度预测模式分别进行编码代价计算,得到编码代价值;根据编码代价值确定出编码代价最小的帧内色度预测模式,作为最终的帧内色度预测模式。由于差异评价值的计算量是编码代价值的计算量的1/6~1/4,达到了有效减少计算量,提高了编码效率的效果。
Description
本申请要求于2015年5月8日提交中国专利局、申请号为201510232351.X、发明名称为“预测模式选择方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明实施例涉及视频编码领域,特别涉及一种预测模式选择方法、装置及设备。
HEVC(High Efficient Video Coding,高效率视频编码)标准是继H.264之后的新一代视频编码标准。在HEVC标准中,所有的图像帧都可以采用帧内预测模式,且存在35种帧内预测模式可供选择。
在对当前图像帧进行帧内色度预测模式选择时,首先需要在35种帧内预测模式中选择出5种候选的帧内预测模式,再针对每一种候选的帧内预测模式,分别计算编码代价值,编码代价值可以采用编码后的码率和重建图像帧的失真率来表示,然后根据计算得到的编码代价值从5种候选的帧内预测模式中选择出最优的1个帧内预测模式,作为帧内色度预测模式。
在实现本发明的过程中,发明人发现上述技术至少存在以下问题:在上述帧内预测模式选择过程中,由于编码代价值的计算量较大,而上述过程需要对每一种候选的帧内预测模式都进行一次编码代价值的计算,计算效率较低。
发明内容
为了解决现有技术的问题,本发明实施例提供了一种预测模式选择方法、装置及设备。所述技术方案如下:
第一方面,提供了一种预测模式选择方法,所述方法包括:
在N种帧内预测模式中筛选出当前预测单元的第一组候选的帧内色度预测模式,N为正整数;
对所述第一组候选的帧内色度预测模式分别进行预测残差代价计算,得到
差异评价值;
根据所述差异评价值从所述第一组候选的帧内色度预测模式中筛选出第二组候选的帧内色度预测模式,所述第二组候选的帧内色度预测模式是所述第一组候选的帧内色度预测模式的真子集;
对所述第二组候选的帧内色度预测模式分别进行编码代价计算,得到编码代价值;
根据所述编码代价值从所述第二组候选的帧内色度预测模式中确定出编码代价最小的帧内色度预测模式,作为所述当前预测单元的帧内色度预测模式。
第二方面,提供了一种预测模式选择装置,所述装置包括:
第一筛选模块,用于在N种帧内预测模式中筛选出当前预测单元的第一组候选的帧内色度预测模式,N为正整数;
残差计算模块,用于对所述第一组候选的帧内色度预测模式分别进行预测残差代价计算,得到差异评价值;
第二筛选模块,用于根据所述差异评价值从所述第一组候选的帧内色度预测模式中筛选出第二组候选的帧内色度预测模式,所述第二组候选的帧内色度预测模式是所述第一组候选的帧内色度预测模式的真子集;
代价计算模块,用于对所述第二组候选的帧内色度预测模式分别进行编码代价计算,得到编码代价值;
模式确定模块,用于根据所述编码代价值从所述第二组候选的帧内色度预测模式中确定出编码代价最小的帧内色度预测模式,作为所述当前预测单元的帧内色度预测模式。
第三方面,提供了一种视频编码设备,所述设备包括:一个或多个处理器;和存储器;所述存储器存储有一个或多个程序,所述一个或多个程序被配置成由所述一个或多个处理器执行,所述一个或多个程序包含用于进行以下操作的指令:
在N种帧内预测模式中筛选出当前预测单元的第一组候选的帧内色度预测模式,N为正整数;
对所述第一组候选的帧内色度预测模式分别进行预测残差代价计算,得到差异评价值;
根据所述差异评价值从所述第一组候选的帧内色度预测模式中筛选出第
二组候选的帧内色度预测模式,所述第二组候选的帧内色度预测模式是所述第一组候选的帧内色度预测模式的真子集;
对所述第二组候选的帧内色度预测模式分别进行编码代价计算,得到编码代价值;
根据所述编码代价值从所述第二组候选的帧内色度预测模式中确定出编码代价最小的帧内色度预测模式,作为所述当前预测单元的帧内色度预测模式。
本发明实施例提供的技术方案带来的有益效果是:
通过先计算预测残差代价进行初次筛选,再计算编码代价值进行二次筛选,然后得到最优的帧内色度预测模式;解决了现有技术需要对每一种候选的帧内色度预测模式都进行一次编码代价值的计算,计算效率较低的问题;由于差异评价值的计算量是编码代价值的计算量的1/6~1/4,达到了有效减少计算量,提高了编码效率的效果。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的帧内预测模式所涉及的33种方向预测模式的示意图;
图2是本发明实施例提供的Planar(平面)预测模式、DC(直流)预测模式、垂直方向模式和水平方向模式的原理示意图;
图3是本发明一个实施例提供的预测模式选择方法的流程图;
图4是本发明另一个实施例提供的预测模式选择方法的流程图;
图5是本发明一个实施例提供的预测模式选择装置的结构示意图;
图6是本发明另一个实施例提供的预测模式选择装置的结构示意图;
图7是本发明另一个实施例提供的视频编码设备的结构示意图。
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明
实施方式作进一步地详细描述。
首先对本实施例所涉及的几个名词进行简介:
图像帧:一段视频由若干帧图像帧构成。视频压缩编码一般采取基于块的编码方式,即把视频中的一帧图像帧分成多个互不重叠的块,之后对这些块进行编码。每个图像帧在视频编码时可以采用帧间编码方式或帧内编码方式。本发明实施例主要涉及帧内编码方式。
帧内预测编码:由于视频序列图像在空间上存在很强的相关性,例如在一帧图像帧中,其背景是一面同样花纹和质地的墙壁。那么,在该图像帧中被分成的若干块中,有关墙壁的块可能显示的信息相同或者类似,对这些空间相关性程度高的块可以采用帧内预测技术进行编码。
预测单元(英文:Prediction Unit,简称:PU):是一个图像帧中进行预测编码时的基本单元。预测单元可以是64像素*64像素、32像素*32像素、16像素*16像素或8像素*8像素等尺寸的块。
帧内预测模式:帧内预测编码过程中利用当前预测单元相邻的上边一行像素和/或左边一行像素进行预测的预测模式。在HEVC标准中提供了35种帧内预测模式,分别为:Planar(平面)预测模式、DC(直流)预测模式以及33种方向预测模式。33种方向预测模式包括ang_2方向至ang_34方向预测模式,其中,ang_10是水平方向预测模式,ang_26为垂直方向预测模式。各个方向按照编号由小到大,从左下角45°沿顺时针方向至右上角45°排布,如图1所示。其中:
Planar(平面)预测模式:利用双线性内插算法以及当前预测单元的上边一行像素H、左边一行像素V预测出当前预测单元中的相应像素值,适用于色度变化平缓区域,如图2中(A)所示;
DC(直流)预测模式:利用当前预测单元的上边一行像素H和左边一行像素V的平均值Mean(H+V)预测出当前预测单元中的相应像素值,如图2中(B)所示;
垂直方向模式:利用当前预测单元的上边一行像素H预测出当前预测单元中的相应像素值,如图2中(C)所示;
水平方向模式:利用当前预测单元的左边一行像素V预测出当前预测单元
中的相应像素值,如图2中(D)所示。
帧内预测模式选择过程:对于当前预测单元,先进行帧内亮度预测模式选择过程,再进行帧内色度预测模式选择过程。帧内亮度预测模式和帧内色度预测模式均从35种帧内预测模式中进行选择。
请参考图3,其示出了本发明一个实施例提供的预测模式选择方法的流程图。本实施例以该预测模式选择方法应用于视频编码设备中来举例说明。该方法包括:
步骤302,在N种帧内预测模式中筛选出当前预测单元的第一组候选的帧内色度预测模式,N为正整数。
步骤304,对第一组候选的帧内色度预测模式分别进行预测残差代价计算,得到差异评价值。
差异评价值可以是HAD(Hadamard absolute difference,哈达马变换的差异和)、SAD(Sum of Absolute Difference,绝对误差和)、SATD(Sum of Absolute Transformed Difference,经过变换的绝对误差和)中的任意一种。
步骤306,根据差异评价值从第一组候选的帧内色度预测模式中筛选出第二组候选的帧内色度预测模式。
可选的,第二组候选的帧内色度预测模式是第一组候选的帧内色度预测模式的真子集。
步骤208,对第二组候选的帧内色度预测模式分别进行编码代价计算,得到编码代价值。
步骤310,根据编码代价值从第二组候选的帧内色度预测模式中确定出编码代价最小的帧内色度预测模式,作为当前预测单元的帧内色度预测模式。
综上所述,本实施例提供的预测模式选择方法,通过先计算预测残差代价进行初次筛选,再计算编码代价值进行二次筛选,然后得到最优的帧内色度预测模式;解决了现有技术需要对每一种候选的帧内色度预测模式都进行一次编码代价值的计算,计算效率较低的问题;由于差异评价值的计算量是编码代价值的计算量的1/6~1/4,达到了有效减少计算量,提高了编码效率的效果。
请参考图4,其示出了本发明另一个实施例提供的预测模式选择方法的流
程图。本实施例以该预测模式选择方法应用于视频编码设备中来举例说明。该方法包括:
步骤401,根据当前预测单元的帧内亮度预测模式在N种帧内预测模式中筛选出第一组候选的帧内色度预测模式。
帧内预测模式选择过程需要先进行帧内亮度预测模式选择过程,再进行帧内色度预测模式选择过程。其中,帧内亮度预测模式的选择过程在本实施例中不做介绍,可以采用已有的各种选择过程。帧内亮度预测模式是在帧内亮度预测模式选择过程中为当前预测单元选择出的亮度预测模式。
对于当前预测单元,本步骤利用已经选择出的帧内亮度预测模式,指导帧内色度预测模式的选择过程。具体包括如下子步骤中的任意一个:
若帧内亮度预测模式是水平预测模式,则将Planar模式、DC模式、水平预测模式作为第一组候选的帧内色度预测模式。
若帧内亮度预测模式是垂直预测模式,则将Planar模式、DC模式、垂直预测模式作为第一组候选的帧内色度预测模式。
若帧内亮度预测模式是第一方向预测模式且第一方向与水平方向的夹角小于或等于第一角度,则将Planar模式、DC模式、第一方向预测模式、水平预测模式作为第一组候选的帧内色度预测模式。可选地,第一角度是180°/32=5.625°,也即相邻两个ang方向预测模式之间的夹角。
若帧内亮度预测模式是第二方向预测模式且第二方向与垂直方向的夹角小于或等于第二角度,则将Planar模式、DC模式、第二方向预测模式、垂直预测模式作为第一组候选的帧内色度预测模式。可选地,第二角度是180°/32=5.625°,也即相邻两个ang方向预测模式之间的夹角。
若帧内亮度预测模式是第三方向预测模式且第三方向与水平方向的夹角大于第一角度且第三方向与垂直方向的夹角大于第二角度,则将Planar模式、DC模式、水平预测模式、垂直预测模式和第三方向预测模式作为第一组候选的帧内色度预测模式。
其中,第一方向是ang_2方向至ang_34方向共33个方向中除水平方向和垂直方向之外的任意方向;第二方向是ang_2方向至ang_34方向共33个方向中除水平方向和垂直方向之外的任意方向;第三方向是ang_2方向至ang_34方向共33个方向中除水平方向和垂直方向之外的任意方向。
步骤402,对第一组候选的帧内色度预测模式分别进行预测残差代价计算,
得到差异评价值。
差异评价值可以是HAD(Hadamard absolute difference,哈达马变换的差异和)、SAD(Sum of Absolute Difference,绝对误差和)、SATD(Sum of Absolute Transformed Difference,经过变换的绝对误差和)、SSD(Sum of Squared Difference,差值平方和)、SSE(Sum of Square Error,平方差值之和)中的任意一种。
对于第一组候选的4种或5种帧内色度预测模式分别进行预测残差代价计算,得到每一种预测模式的差异评价值。
步骤403,根据差异评价值由小到大的顺序对第一组候选的帧内色度预测模式进行排序,得到排序后的n1个候选的帧内色度预测模式。
可选地,n1=4或5。
排序顺序可以采用candidate_1[0]、candidate_1[1]、candidate_1[2]、candidate_1[3]和candidate_1[4]来进行标记。
步骤404,判断排序后的n1个候选的帧内色度预测模式中是否包括有ang_34方向预测模式且ang_34方向预测模式不是排序在第一位的预测模式。
若包括有ang_34方向预测模式且ang_34方向预测模式不是排序在第一位的预测模式,则进入步骤405;
若不包括ang_34方向预测模式,或者,包括有ang_34方向预测模式且ang_34方向预测模式是排序在第一位的预测模式,则进入步骤406。
步骤405,若包括有ang_34方向预测模式且ang_34方向预测模式不是排序在第一位的预测模式,则将ang_34方向预测模式从n1个候选的帧内色度预测模式中删除。
由于实验数据表明,ang_34方向预测模式被确定为最优的帧内色度预测模式的几率较低,如果ang_34方向预测模式不是排序在第一位的预测模式,则将ang_34方向预测模式从n1个候选的帧内色度预测模式中删除,以便较少步骤407中的计算量。
需要说明的是,步骤404和405是可选步骤。
步骤406,若不包括有ang_34方向预测模式,或,包括ang_34方向预测模式但ang_34方向预测模式是排序在第一位的预测模式,则判断排序后的n1个候选的帧内色度预测模式中的前n2个预测模式是否包括当前预测单元的帧内亮度预测模式,n2<n1。
可选地,n2=2。
也即,判断candidate_1[0]和candidate_1[1]对应的预测模式中是否包括当前预测单元的帧内亮度预测模式。
步骤407,若包括帧内亮度预测模式,则将前n2个预测模式筛选为第二组候选的帧内色度预测模式。
若candidate_1[0]和candidate_1[1]对应的预测模式中包括当前预测单元的帧内亮度预测模式,则将candidate_1[0]和candidate_1[1]对应的预测模式筛选为第二组候选的帧内色度预测模式。
步骤408,若不包括帧内亮度预测模式,则将前n2个预测模式和帧内亮度预测模式筛选为第二组候选的帧内色度预测模式。
若candidate_1[0]和candidate_1[1]对应的预测模式中不包括当前预测单元的帧内亮度预测模式,则将candidate_1[0]和candidate_1[1]对应的预测模式、当前预测单元的帧内亮度预测模式筛选为第二组候选的帧内色度预测模式。
步骤409,对第二组候选的帧内色度预测模式分别进行编码代价计算,得到编码代价值。
可选地,编码代价值采用编码后的码率和重建图像帧的失真率进行表示。编码代价值的计算过程是本领域技术人员所熟知的内容,简述如下。
编码后的码率的计算过程,包括:对于当前候选的帧内色度预测模式,对步骤302中计算得到的差异评价值进行变换、量化和熵编码,得到编码后的码流;根据该码流计算编码后的码率。
重建图像帧的失真率的计算过程,包括:对于当前候选的帧内色度预测模式,对当前预测单元进行反量化和反变换,得到重建图像帧;根据重建图像帧和当前预测单元所在的真实帧进行比较,计算得到失真率。可选地,失真率可以采用拉格朗日率失真优化(RDO,Rate Distortion Opitmization)策略来计算。
步骤410,根据编码代价值从第二组候选的帧内色度预测模式中确定出编码代价最小的帧内色度预测模式,作为当前预测单元的帧内色度预测模式。
最后,从第二组候选的帧内色度预测模式中确定出编码代价最小的帧内色度预测模式,作为当前预测单元的帧内色度预测模式。
综上所述,本实施例提供的预测模式选择方法,通过先计算预测残差代价进行初次筛选,再计算编码代价值进行二次筛选,然后得到最优的帧内色度预测模式;解决了现有技术需要对每一种候选的帧内色度预测模式都进行一次编
码代价值的计算,计算效率较低的问题;由于差异评价值的计算量是编码代价值的计算量的1/6~1/4,达到了有效减少计算量,提高了编码效率的效果。
本实施例提供的预测模式选择方法,还通过利用当前预测单元的帧内亮度预测模式指导第一组候选的帧内色度预测模式的选择过程,提供了第一组候选的帧内色度预测模式的选择准确性。
本实施例提供的预测模式选择方法,还通过在一些情况下,丢弃ang_34方向预测模式,再次减少编码代价值的计算量,更进一步地提高了编码效率的效果。
以下为本发明实施例的装置实施例,装置实施例中未详细描述的细节,可以参考上述一一对应的方法实施例。
请参考图5,其示出了本发明一个实施例提供的预测模式选择装置的结构方框图。该预测模式选择装置可以通过软件、硬件或者两者的结合实现成为视频编码装置的全部或部分。该装置包括:
第一筛选模块510,用于在N种帧内预测模式中筛选出当前预测单元的第一组候选的帧内色度预测模式,N为正整数;
残差计算模块530,用于对所述第一组候选的帧内色度预测模式分别进行预测残差代价计算,得到差异评价值;
第二筛选模块550,用于根据所述差异评价值从所述第一组候选的帧内色度预测模式中筛选出第二组候选的帧内色度预测模式;可选的,第二组候选的帧内色度预测模式是第一组候选的帧内色度预测模式的真子集。
代价计算模块570,用于对所述第二组候选的帧内色度预测模式分别进行编码代价计算,得到编码代价值;
模式确定模块590,用于根据所述编码代价值从所述第二组候选的帧内色度预测模式中确定出编码代价最小的帧内色度预测模式,作为所述当前预测单元的帧内色度预测模式。
综上所述,本实施例提供的预测模式选择装置,通过先计算预测残差代价进行初次筛选,再计算编码代价值进行二次筛选,然后得到最优的帧内色度预测模式;解决了现有技术需要对每一种候选的帧内色度预测模式都进行一次编码代价值的计算,计算效率较低的问题;由于差异评价值的计算量是编码代价值的计算量的1/6~1/4,达到了有效减少计算量,提高了编码效率的效果。
请参考图6,其示出了本发明一个实施例提供的预测模式选择装置的结构方框图。该预测模式选择装置可以通过软件、硬件或者两者的结合实现成为视频编码装置的全部或部分。该装置包括:
第一筛选模块510,用于在N种帧内预测模式中筛选出当前预测单元的第一组候选的帧内色度预测模式,N为正整数;
残差计算模块530,用于对所述第一组候选的帧内色度预测模式分别进行预测残差代价计算,得到差异评价值;
第二筛选模块550,用于根据所述差异评价值从所述第一组候选的帧内色度预测模式中筛选出第二组候选的帧内色度预测模式;可选的,第二组候选的帧内色度预测模式是第一组候选的帧内色度预测模式的真子集。
代价计算模块570,用于对所述第二组候选的帧内色度预测模式分别进行编码代价计算,得到编码代价值;
模式确定模块590,用于根据所述编码代价值从所述第二组候选的帧内色度预测模式中确定出编码代价最小的帧内色度预测模式,作为所述当前预测单元的帧内色度预测模式。
可选地,所述第一筛选模块510,用于根据所述当前预测单元的帧内亮度预测模式在N种帧内预测模式中筛选出第一组候选的帧内色度预测模式。
可选地,所述第一筛选模块510,用于:
若所述帧内亮度预测模式是水平预测模式,则将平面Planar模式、直流DC模式、所述水平预测模式作为所述第一组候选的帧内色度预测模式;
若所述帧内亮度预测模式是垂直预测模式,则将所述Planar模式、所述DC模式、所述垂直预测模式作为所述第一组候选的帧内色度预测模式;
若所述帧内亮度预测模式是第一方向预测模式且所述第一方向与水平方向的夹角小于或等于第一角度,则将所述Planar模式、所述DC模式、所述第一方向预测模式、所述水平预测模式作为所述第一组候选的帧内色度预测模式;
若所述帧内亮度预测模式是第二方向预测模式且所述第二方向与垂直方向的夹角小于或等于第二角度,则将所述Planar模式、所述DC模式、所述第二方向预测模式、所述垂直预测模式作为所述第一组候选的帧内色度预测模式;
若所述帧内亮度预测模式是第三方向预测模式且所述第三方向与水平方向的夹角大于所述第一角度且所述第三方向与垂直方向的夹角大于所述第二角度,则将所述Planar模式、所述DC模式、所述水平预测模式、所述垂直预测模式和所述第三方向预测模式作为所述第一组候选的帧内色度预测模式;
其中,所述第一方向是ang_2方向至ang_34方向共33个方向中除水平方向和垂直方向之外的任意方向;所述第二方向是ang_2方向至ang_34方向共33个方向中除水平方向和垂直方向之外的任意方向;所述第三方向是ang_2方向至ang_34方向共33个方向中除水平方向和垂直方向之外的任意方向。
可选地,所述第二筛选模块550,包括:
排序单元551,用于根据所述差异评价值由小到大的顺序对所述第一组候选的帧内色度预测模式进行排序,得到排序后的n1个候选的所述帧内色度预测模式;
判断单元553,用于判断排序后的n1个候选的所述帧内色度预测模式中的前n2个预测模式是否包括所述当前预测单元的帧内亮度预测模式,n2<n1;
第一筛选单元555,用于在包括所述帧内亮度预测模式时,将所述前n2个预测模式筛选为所述第二组候选的帧内色度预测模式,
第二筛选单元557,用于在不包括所述帧内亮度预测模式时,将所述前n2个预测模式和所述帧内亮度预测模式筛选为所述第二组候选的帧内色度预测模式。
可选地,所述第二筛选模块450,包括:
前置判断单元552,用于判断所述排序后的n1个候选的所述帧内色度预测模式中是否包括有ang_34方向预测模式且所述ang_34方向预测模式不是排序在第一位的预测模式;
删除单元554,用于在包括有ang_34方向预测模式且所述ang_34方向预测模式不是排序在第一位的预测模式时,将所述ang_34方向预测模式从所述n1个候选的所述帧内色度预测模式中删除;
所述判断单元553,用于在不包括有ang_34方向预测模式,或,包括所述ang_34方向预测模式但所述ang_34方向预测模式是排序在第一位的预测模式时,执行所述判断排序后的n1个候选的所述帧内色度预测模式中的前n2个预测模式是否包括所述帧内亮度预测模式的步骤。
综上所述,本实施例提供的预测模式选择装置,通过先计算预测残差代价
进行初次筛选,再计算编码代价值进行二次筛选,然后得到最优的帧内色度预测模式;解决了现有技术需要对每一种候选的帧内色度预测模式都进行一次编码代价值的计算,计算效率较低的问题;由于差异评价值的计算量是编码代价值的计算量的1/6~1/4,达到了有效减少计算量,提高了编码效率的效果。
本实施例提供的预测模式选择装置,还通过利用当前预测单元的帧内亮度预测模式指导第一组候选的帧内色度预测模式的选择过程,提供了第一组候选的帧内色度预测模式的选择准确性。
本实施例提供的预测模式选择装置,还通过在一些情况下,丢弃ang_34方向预测模式,再次减少编码代价值的计算量,更进一步地提高了编码效率的效果。
需要说明的是:上述实施例提供的预测模式选择装置在选择帧内色度预测模式时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的预测模式选择装置与预测模式选择方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
请参考图7,其示出了本发明一个实施例提供的视频编码设备的结构示意图。该视频编码设备可以是手机、平板电脑、台式电脑或服务器。具体来讲:
视频编码设备700包括中央处理单元(CPU)701、包括随机存取存储器(RAM)702和只读存储器(ROM)703的系统存储器704,以及连接系统存储器704和中央处理单元701的系统总线705。视频编码设备700还包括帮助计算机内的各个器件之间传输信息的基本输入/输出系统(I/O系统)706,和用于存储操作系统713、应用程序714和其他程序模块715的大容量存储设备707。
基本输入/输出系统706包括有用于显示信息的显示器708和用于用户输入信息的诸如鼠标、键盘之类的输入设备709。其中显示器708和输入设备709都通过连接到系统总线705的输入输出控制器710连接到中央处理单元701。基本输入/输出系统706还可以包括输入输出控制器710以用于接收和处理来自键盘、鼠标、或电子触控笔等多个其他设备的输入。类似地,输入输出控制器
710还提供输出到显示屏、打印机或其他类型的输出设备。
大容量存储设备707通过连接到系统总线705的大容量存储控制器(未示出)连接到中央处理单元701。大容量存储设备707及其相关联的计算机可读介质为视频编码设备700提供非易失性存储。也就是说,大容量存储设备707可以包括诸如硬盘或者CD-ROM驱动器之类的计算机可读介质(未示出)。
不失一般性,计算机可读介质可以包括计算机存储介质和通信介质。计算机存储介质包括以用于存储诸如计算机可读指令、数据结构、程序模块或其他数据等信息的任何方法或技术实现的易失性和非易失性、可移动和不可移动介质。计算机存储介质包括RAM、ROM、EPROM、EEPROM、闪存或其他固态存储其技术,CD-ROM、DVD或其他光学存储、磁带盒、磁带、磁盘存储或其他磁性存储设备。当然,本领域技术人员可知计算机存储介质不局限于上述几种。上述的系统存储器704和大容量存储设备707可以统称为存储器。
根据本发明的各种实施例,视频编码设备700还可以通过诸如因特网等网络连接到网络上的远程计算机运行。也即视频编码设备700可以通过连接在系统总线705上的网络接口单元711连接到网络712,或者说,也可以使用网络接口单元711来连接到其他类型的网络或远程计算机系统(未示出)。
上述存储器还包括一个或者一个以上的程序,一个或者一个以上程序存储于存储器中,被配置由CPU执行如上图3实施例或图4实施例所示出的预测模式选择方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器,上述指令可由视频编码设备的处理器执行以完成上述图3实施例或图4实施例所示出的预测模式选择方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
Claims (15)
- 一种预测模式选择方法,其特征在于,所述方法包括:在N种帧内预测模式中筛选出当前预测单元的第一组候选的帧内色度预测模式,N为正整数;对所述第一组候选的帧内色度预测模式分别进行预测残差代价计算,得到差异评价值;根据所述差异评价值从所述第一组候选的帧内色度预测模式中筛选出第二组候选的帧内色度预测模式,所述第二组候选的帧内色度预测模式是所述第一组候选的帧内色度预测模式的真子集;对所述第二组候选的帧内色度预测模式分别进行编码代价计算,得到编码代价值;根据所述编码代价值从所述第二组候选的帧内色度预测模式中确定出编码代价最小的帧内色度预测模式,作为所述当前预测单元的帧内色度预测模式。
- 根据权利要求1所述的方法,其特征在于,所述在N种帧内预测模式中筛选出当前预测单元的第一组候选的帧内色度预测模式,包括:根据所述当前预测单元的帧内亮度预测模式在N种帧内预测模式中筛选出第一组候选的帧内色度预测模式。
- 根据权利要求2所述的方法,其特征在于,所述根据当前预测单元的帧内亮度预测模式在N种帧内预测模式中筛选出第一组候选的帧内色度预测模式,包括:若所述帧内亮度预测模式是水平预测模式,则将平面Planar模式、直流DC模式、所述水平预测模式作为所述第一组候选的帧内色度预测模式;若所述帧内亮度预测模式是垂直预测模式,则将所述Planar模式、所述DC模式、所述垂直预测模式作为所述第一组候选的帧内色度预测模式;若所述帧内亮度预测模式是第一方向预测模式且所述第一方向与水平方向的夹角小于或等于第一角度,则将所述Planar模式、所述DC模式、所述第一方向预测模式、所述水平预测模式作为所述第一组候选的帧内色度预测模式;若所述帧内亮度预测模式是第二方向预测模式且所述第二方向与垂直方向 的夹角小于或等于第二角度,则将所述Planar模式、所述DC模式、所述第二方向预测模式、所述垂直预测模式作为所述第一组候选的帧内色度预测模式;若所述帧内亮度预测模式是第三方向预测模式且所述第三方向与水平方向的夹角大于所述第一角度且所述第三方向与垂直方向的夹角大于所述第二角度,则将所述Planar模式、所述DC模式、所述水平预测模式、所述垂直预测模式和所述第三方向预测模式作为所述第一组候选的帧内色度预测模式;其中,所述第一方向是ang_2方向至ang_34方向共33个方向中除水平方向和垂直方向之外的任意方向;所述第二方向是所述ang_2方向至所述ang_34方向共33个方向中除所述水平方向和所述垂直方向之外的任意方向;所述第三方向是所述ang_2方向至所述ang_34方向共33个方向中除所述水平方向和所述垂直方向之外的任意方向。
- 根据权利要求1至3任一所述的方法,其特征在于,所述根据所述差异评价值从所述第一组候选的帧内色度预测模式中筛选出第二组候选的帧内色度预测模式,包括:根据所述差异评价值由小到大的顺序对所述第一组候选的帧内色度预测模式进行排序,得到排序后的n1个候选的所述帧内色度预测模式;判断排序后的n1个候选的所述帧内色度预测模式中的前n2个预测模式是否包括所述当前预测单元的帧内亮度预测模式,n2<n1;若包括所述帧内亮度预测模式,则将所述前n2个预测模式筛选为所述第二组候选的帧内色度预测模式,若不包括所述帧内亮度预测模式,则将所述前n2个预测模式和所述帧内亮度预测模式筛选为所述第二组候选的帧内色度预测模式。
- 根据权利要求4所述的方法,其特征在于,所述判断排序后的n1个候选的所述帧内色度预测模式中的前n2个预测模式是否包括所述帧内亮度预测模式之前,还包括:判断所述排序后的n1个候选的所述帧内色度预测模式中是否包括有ang_34方向预测模式且所述ang_34方向预测模式不是排序在第一位的预测模式;若包括有所述ang_34方向预测模式且所述ang_34方向预测模式不是排序在第一位的预测模式,则将所述ang_34方向预测模式从所述n1个候选的所述帧内 色度预测模式中删除;若不包括有所述ang_34方向预测模式,或,包括所述ang_34方向预测模式但所述ang_34方向预测模式是排序在第一位的预测模式,则执行所述判断排序后的n1个候选的所述帧内色度预测模式中的前n2个预测模式是否包括所述帧内亮度预测模式的步骤。
- 一种预测模式选择装置,其特征在于,所述装置包括:第一筛选模块,用于在N种帧内预测模式中筛选出当前预测单元的第一组候选的帧内色度预测模式,N为正整数;残差计算模块,用于对所述第一组候选的帧内色度预测模式分别进行预测残差代价计算,得到差异评价值;第二筛选模块,用于根据所述差异评价值从所述第一组候选的帧内色度预测模式中筛选出第二组候选的帧内色度预测模式,所述第二组候选的帧内色度预测模式是所述第一组候选的帧内色度预测模式的真子集;代价计算模块,用于对所述第二组候选的帧内色度预测模式分别进行编码代价计算,得到编码代价值;模式确定模块,用于根据所述编码代价值从所述第二组候选的帧内色度预测模式中确定出编码代价最小的帧内色度预测模式,作为所述当前预测单元的帧内色度预测模式。
- 根据权利要求6所述的装置,其特征在于,所述第一筛选模块,用于根据所述当前预测单元的帧内亮度预测模式在N种帧内预测模式中筛选出第一组候选的帧内色度预测模式。
- 根据权利要求7所述的装置,其特征在于,所述第一筛选模块,用于:若所述帧内亮度预测模式是水平预测模式,则将平面Planar模式、直流DC模式、所述水平预测模式作为所述第一组候选的帧内色度预测模式;若所述帧内亮度预测模式是垂直预测模式,则将所述Planar模式、所述DC模式、所述垂直预测模式作为所述第一组候选的帧内色度预测模式;若所述帧内亮度预测模式是第一方向预测模式且所述第一方向与水平方向的夹角小于或等于第一角度,则将所述Planar模式、所述DC模式、所述第一 方向预测模式、所述水平预测模式作为所述第一组候选的帧内色度预测模式;若所述帧内亮度预测模式是第二方向预测模式且所述第二方向与垂直方向的夹角小于或等于第二角度,则将所述Planar模式、所述DC模式、所述第二方向预测模式、所述垂直预测模式作为所述第一组候选的帧内色度预测模式;若所述帧内亮度预测模式是第三方向预测模式且所述第三方向与水平方向的夹角大于所述第一角度且所述第三方向与垂直方向的夹角大于所述第二角度,则将所述Planar模式、所述DC模式、所述水平预测模式、所述垂直预测模式和所述第三方向预测模式作为所述第一组候选的帧内色度预测模式;其中,所述第一方向是ang_2方向至ang_34方向共33个方向中除水平方向和垂直方向之外的任意方向;所述第二方向是所述ang_2方向至所述ang_34方向共33个方向中除所述水平方向和所述垂直方向之外的任意方向;所述第三方向是所述ang_2方向至所述ang_34方向共33个方向中除所述水平方向和所述垂直方向之外的任意方向。
- 根据权利要求6至8任一所述的装置,其特征在于,所述第二筛选模块,包括:排序单元,用于根据所述差异评价值由小到大的顺序对所述第一组候选的帧内色度预测模式进行排序,得到排序后的n1个候选的所述帧内色度预测模式;判断单元,用于判断排序后的n1个候选的所述帧内色度预测模式中的前n2个预测模式是否包括所述当前预测单元的帧内亮度预测模式,n2<n1;第一筛选单元,用于在包括所述帧内亮度预测模式时,将所述前n2个预测模式筛选为所述第二组候选的帧内色度预测模式,第二筛选单元,用于在不包括所述帧内亮度预测模式时,将所述前n2个预测模式和所述帧内亮度预测模式筛选为所述第二组候选的帧内色度预测模式。
- 根据权利要求9所述的装置,其特征在于,所述第二筛选模块,包括:前置判断单元,用于判断所述排序后的n1个候选的所述帧内色度预测模式中是否包括有ang_34方向预测模式且所述ang_34方向预测模式不是排序在第一位的预测模式;删除单元,用于在包括有所述ang_34方向预测模式且所述ang_34方向预测模式不是排序在第一位的预测模式时,将所述ang_34方向预测模式从所述n1 个候选的所述帧内色度预测模式中删除;所述判断单元,用于在不包括有所述ang_34方向预测模式,或,包括所述ang_34方向预测模式但所述ang_34方向预测模式是排序在第一位的预测模式时,执行所述判断排序后的n1个候选的所述帧内色度预测模式中的前n2个预测模式是否包括所述帧内亮度预测模式的步骤。
- 一种视频编码设备,其特征在于,所述设备包括:一个或多个处理器;和,存储器;所述存储器存储有一个或多个程序,所述一个或多个程序被配置成由所述一个或多个处理器执行,所述一个或多个程序包含用于进行以下操作的指令:在N种帧内预测模式中筛选出当前预测单元的第一组候选的帧内色度预测模式,N为正整数;对所述第一组候选的帧内色度预测模式分别进行预测残差代价计算,得到差异评价值;根据所述差异评价值从所述第一组候选的帧内色度预测模式中筛选出第二组候选的帧内色度预测模式,所述第二组候选的帧内色度预测模式是所述第一组候选的帧内色度预测模式的真子集;对所述第二组候选的帧内色度预测模式分别进行编码代价计算,得到编码代价值;根据所述编码代价值从所述第二组候选的帧内色度预测模式中确定出编码代价最小的帧内色度预测模式,作为所述当前预测单元的帧内色度预测模式。
- 根据权利要求11所述的设备,其特征在于,所述一个或多个程序还包含用于进行以下操作的指令:根据所述当前预测单元的帧内亮度预测模式在N种帧内预测模式中筛选出第一组候选的帧内色度预测模式。
- 根据权利要求12所述的设备,其特征在于,所述一个或多个程序还包含用于进行以下操作的指令:若所述帧内亮度预测模式是水平预测模式,则将平面Planar模式、直流DC 模式、所述水平预测模式作为所述第一组候选的帧内色度预测模式;若所述帧内亮度预测模式是垂直预测模式,则将所述Planar模式、所述DC模式、所述垂直预测模式作为所述第一组候选的帧内色度预测模式;若所述帧内亮度预测模式是第一方向预测模式且所述第一方向与水平方向的夹角小于或等于第一角度,则将所述Planar模式、所述DC模式、所述第一方向预测模式、所述水平预测模式作为所述第一组候选的帧内色度预测模式;若所述帧内亮度预测模式是第二方向预测模式且所述第二方向与垂直方向的夹角小于或等于第二角度,则将所述Planar模式、所述DC模式、所述第二方向预测模式、所述垂直预测模式作为所述第一组候选的帧内色度预测模式;若所述帧内亮度预测模式是第三方向预测模式且所述第三方向与水平方向的夹角大于所述第一角度且所述第三方向与垂直方向的夹角大于所述第二角度,则将所述Planar模式、所述DC模式、所述水平预测模式、所述垂直预测模式和所述第三方向预测模式作为所述第一组候选的帧内色度预测模式;其中,所述第一方向是ang_2方向至ang_34方向共33个方向中除水平方向和垂直方向之外的任意方向;所述第二方向是所述ang_2方向至所述ang_34方向共33个方向中除所述水平方向和所述垂直方向之外的任意方向;所述第三方向是所述ang_2方向至所述ang_34方向共33个方向中除所述水平方向和所述垂直方向之外的任意方向。
- 根据权利要求11至13任一所述的设备,其特征在于,所述一个或多个程序还包含用于进行以下操作的指令:根据所述差异评价值由小到大的顺序对所述第一组候选的帧内色度预测模式进行排序,得到排序后的n1个候选的所述帧内色度预测模式;判断排序后的n1个候选的所述帧内色度预测模式中的前n2个预测模式是否包括所述当前预测单元的帧内亮度预测模式,n2<n1;若包括所述帧内亮度预测模式,则将所述前n2个预测模式筛选为所述第二组候选的帧内色度预测模式,若不包括所述帧内亮度预测模式,则将所述前n2个预测模式和所述帧内亮度预测模式筛选为所述第二组候选的帧内色度预测模式。
- 根据权利要求14所述的设备,其特征在于,所述一个或多个程序还包 含用于进行以下操作的指令:判断所述排序后的n1个候选的所述帧内色度预测模式中是否包括有ang_34方向预测模式且所述ang_34方向预测模式不是排序在第一位的预测模式;若包括有所述ang_34方向预测模式且所述ang_34方向预测模式不是排序在第一位的预测模式,则将所述ang_34方向预测模式从所述n1个候选的所述帧内色度预测模式中删除;若不包括有所述ang_34方向预测模式,或,包括所述ang_34方向预测模式但所述ang_34方向预测模式是排序在第一位的预测模式,则执行所述判断排序后的n1个候选的所述帧内色度预测模式中的前n2个预测模式是否包括所述帧内亮度预测模式的步骤。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP16791979.4A EP3282701B1 (en) | 2015-05-08 | 2016-04-11 | Prediction mode selection method, apparatus and device |
| US15/684,940 US10455229B2 (en) | 2015-05-08 | 2017-08-24 | Prediction mode selection method, apparatus and device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510232351.XA CN104853192B (zh) | 2015-05-08 | 2015-05-08 | 预测模式选择方法及装置 |
| CN201510232351.X | 2015-05-08 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US15/684,940 Continuation US10455229B2 (en) | 2015-05-08 | 2017-08-24 | Prediction mode selection method, apparatus and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016180129A1 true WO2016180129A1 (zh) | 2016-11-17 |
Family
ID=53852508
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/078936 Ceased WO2016180129A1 (zh) | 2015-05-08 | 2016-04-11 | 预测模式选择方法、装置及设备 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US10455229B2 (zh) |
| EP (1) | EP3282701B1 (zh) |
| CN (1) | CN104853192B (zh) |
| WO (1) | WO2016180129A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109982075A (zh) * | 2019-03-21 | 2019-07-05 | 南京威翔科技有限公司 | 一种基于fpga的帧内预测通用角度方法 |
| CN116347072A (zh) * | 2018-10-12 | 2023-06-27 | Oppo广东移动通信有限公司 | 视频信号的编码方法和解码方法及其装置 |
Families Citing this family (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104853192B (zh) * | 2015-05-08 | 2018-02-13 | 腾讯科技(深圳)有限公司 | 预测模式选择方法及装置 |
| ES2719132B1 (es) * | 2015-08-28 | 2020-05-05 | Kt Corp | Procedimiento y dispositivo para procesar señales de vídeo |
| CN105657420B (zh) * | 2015-12-30 | 2018-03-20 | 邦彦技术股份有限公司 | 一种面向hevc的快速帧内预测模式判决方法和装置 |
| CN106060565B (zh) * | 2016-07-08 | 2019-01-29 | 合肥工业大学 | 一种应用于视频编解码的Planar预测电路及Planar预测方法 |
| CN109120926B (zh) * | 2017-06-23 | 2019-08-13 | 腾讯科技(深圳)有限公司 | 预测模式选择方法、装置及介质 |
| JP7460638B2 (ja) * | 2019-01-02 | 2024-04-02 | オッポ広東移動通信有限公司 | イントラ予測方法および装置、ビデオコーディング機器、記憶媒体 |
| CN114040205B (zh) * | 2019-03-12 | 2025-06-24 | 浙江大华技术股份有限公司 | 帧内色度预测模式的选择方法、图像处理设备及存储设备 |
| CN112055214B (zh) * | 2019-06-06 | 2025-05-02 | 阿里巴巴集团控股有限公司 | 一种视频编码方法、设备及存储介质 |
| CN110213586B (zh) * | 2019-06-10 | 2021-03-05 | 杭州电子科技大学 | 一种vvc帧内预测角度模式快速选择方法 |
| CN111447438B (zh) * | 2020-04-24 | 2023-05-26 | 西安理工大学 | 一种面向通用视频编码的快速帧内预测模式判决方法 |
| WO2023131298A1 (en) * | 2022-01-07 | 2023-07-13 | Mediatek Inc. | Boundary matching for video coding |
| CN118872276A (zh) * | 2022-03-18 | 2024-10-29 | 联发科技股份有限公司 | 几何分割模式及合并候选重排 |
| CN118250466B (zh) * | 2024-05-28 | 2025-01-24 | 摩尔线程智能科技(北京)股份有限公司 | 一种帧内预测模式确定方法及装置、电子设备和存储介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101350927A (zh) * | 2008-07-29 | 2009-01-21 | 北京中星微电子有限公司 | 帧内预测选择最优预测模式的方法及装置 |
| US20110170601A1 (en) * | 2008-06-26 | 2011-07-14 | Sk Telecom Co., Ltd. | Method for encoding/decoding motion vector and apparatus thereof |
| CN102547257A (zh) * | 2010-12-10 | 2012-07-04 | 联芯科技有限公司 | 一种获得最优预测模式的方法及装置 |
| CN104853192A (zh) * | 2015-05-08 | 2015-08-19 | 腾讯科技(深圳)有限公司 | 预测模式选择方法及装置 |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100586184C (zh) * | 2008-01-24 | 2010-01-27 | 北京工业大学 | 帧内预测方法 |
| CN101309408B (zh) * | 2008-06-13 | 2010-12-29 | 青岛海信电子产业控股股份有限公司 | 一种亮度块帧内预测模式选择方法 |
| CN101309421B (zh) * | 2008-06-23 | 2010-09-29 | 北京工业大学 | 帧内预测模式选择方法 |
| KR101503269B1 (ko) | 2010-04-05 | 2015-03-17 | 삼성전자주식회사 | 영상 부호화 단위에 대한 인트라 예측 모드 결정 방법 및 장치, 및 영상 복호화 단위에 대한 인트라 예측 모드 결정 방법 및 장치 |
| CN102685474B (zh) * | 2011-03-10 | 2014-11-05 | 华为技术有限公司 | 预测模式的编解码方法、编解码设备及网络系统 |
-
2015
- 2015-05-08 CN CN201510232351.XA patent/CN104853192B/zh active Active
-
2016
- 2016-04-11 EP EP16791979.4A patent/EP3282701B1/en active Active
- 2016-04-11 WO PCT/CN2016/078936 patent/WO2016180129A1/zh not_active Ceased
-
2017
- 2017-08-24 US US15/684,940 patent/US10455229B2/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110170601A1 (en) * | 2008-06-26 | 2011-07-14 | Sk Telecom Co., Ltd. | Method for encoding/decoding motion vector and apparatus thereof |
| CN101350927A (zh) * | 2008-07-29 | 2009-01-21 | 北京中星微电子有限公司 | 帧内预测选择最优预测模式的方法及装置 |
| CN102547257A (zh) * | 2010-12-10 | 2012-07-04 | 联芯科技有限公司 | 一种获得最优预测模式的方法及装置 |
| CN104853192A (zh) * | 2015-05-08 | 2015-08-19 | 腾讯科技(深圳)有限公司 | 预测模式选择方法及装置 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116347072A (zh) * | 2018-10-12 | 2023-06-27 | Oppo广东移动通信有限公司 | 视频信号的编码方法和解码方法及其装置 |
| CN109982075A (zh) * | 2019-03-21 | 2019-07-05 | 南京威翔科技有限公司 | 一种基于fpga的帧内预测通用角度方法 |
Also Published As
| Publication number | Publication date |
|---|---|
| EP3282701B1 (en) | 2019-12-11 |
| US10455229B2 (en) | 2019-10-22 |
| EP3282701A4 (en) | 2018-05-30 |
| EP3282701A1 (en) | 2018-02-14 |
| CN104853192B (zh) | 2018-02-13 |
| US20170353720A1 (en) | 2017-12-07 |
| CN104853192A (zh) | 2015-08-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2016180129A1 (zh) | 预测模式选择方法、装置及设备 | |
| US20200244986A1 (en) | Picture prediction method and related apparatus | |
| US10003792B2 (en) | Video encoder for images | |
| US10536692B2 (en) | Picture prediction method and related apparatus | |
| KR102252816B1 (ko) | 부호화유닛 심도 확정 방법 및 장치 | |
| CN103957415B (zh) | 基于屏幕内容视频的cu分割方法和装置 | |
| CN106851292A (zh) | 用于帧内预测的解码图像的方法 | |
| CN111492655B (zh) | 用于视频压缩的基于纹理的分区决定 | |
| WO2016050051A1 (zh) | 图像预测方法及相关装置 | |
| CN106060547A (zh) | 解码高分辨率图像的方法和装置 | |
| CN113597757B (zh) | 具有区域数自适应的几何划分的形状自适应离散余弦变换 | |
| CN104539949B (zh) | Hevc屏幕编码中基于边缘方向的快速分块的方法及装置 | |
| CN103327327B (zh) | 用于高性能视频编码hevc的帧间预测编码单元选择方法 | |
| WO2022061563A1 (zh) | 视频编码方法、装置及计算机可读存储介质 | |
| WO2019114225A1 (zh) | 编码单元划分确定方法及装置、计算设备及可读存储介质 | |
| CN114513659B (zh) | 确定图片预测模式的方法、装置、电子设备和介质 | |
| CN114079769A (zh) | 视频编码方法、装置、设备及计算机可读存储介质 | |
| CN102595113A (zh) | 一种变换系数块的扫描方法、装置和系统 | |
| CN109640087A (zh) | 一种帧内预测模式判决方法、装置及设备 | |
| CN108881908A (zh) | 视频编码中基于编码单元纹理复杂度的快速分块 | |
| WO2020258052A1 (zh) | 图像分量预测方法、装置及计算机存储介质 | |
| CN102300088B (zh) | 画面内预测模式最佳化方法与图像压缩方法以及装置 | |
| CN113674372B (zh) | 一种用于遥感图像编解码的预处理算法 | |
| CN109587482B (zh) | 一种基于置信度的帧内编码器优化方法 | |
| CN105306953A (zh) | 图像编码方法和装置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16791979 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |