Method and system for controlling upper limit of image coding size
A technology of picture encoding and picture size, applied in the field of image processing, which can solve the problems of high performance consumption and no absolute guarantee.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0067] figure 1 It is a flow chart of a method for controlling the upper limit of picture coding size provided by Embodiment 1 of the present invention.
[0068] refer to figure 1 , the method for controlling the upper limit of the picture encoding size includes the following steps:
[0069] Step S110, obtaining the initial quality factor according to the initial compression ratio and according to the fitting relationship;
[0070] Specifically, set the size upper limit value M according to the image size requirements of the device receiving and storing the image; obtain the raw data of the original image, including the original size U 0 . First calculate the initial compression ratio C of the original image r0 , as shown in formula (1):
[0071] C r0 =U 0 / M (1);
[0072] Then calculate the initial quality factor Q according to the initial compression ratio p0 , as shown in formula (2):
[0073]
[0074] Among them, a, b, c, and d are fitting parameters. Specific...
Embodiment 2
[0090] figure 2 It is a flowchart of a method for controlling the upper limit of picture encoding size provided by Embodiment 2 of the present invention.
[0091] refer to figure 2 , the control methods for the upper limit of image encoding size include the following:
[0092] Step S210, obtaining the original quality factor Q Pi , the original image and the upper limit value M;
[0093] Specifically, when encoding the first picture for the first time, the initial quality factor is Q P0 , its calculation method is as described in the formulas (1) and (2) in the previous embodiment; when re-encoding, the original quality factor is calculated according to the final quality factor and picture size used in the previous encoding, refer to step S260 .
[0094] Step S220, according to the original quality factor Q Pi Perform JPEG encoding on the original image to obtain the image size U i ;
[0095] Step S230, judging whether U i ≤ M;
[0096] Step S240, at U i In the case...
Embodiment 3
[0103] image 3 It is a schematic diagram of a control system for the upper limit of picture coding size provided by Embodiment 3 of the present invention.
[0104] The embodiment of the present invention also provides a system for controlling the upper limit of picture coding size, which is used to implement the above method for controlling the upper limit of picture coding size. refer to image 3 , the control system for the upper limit of picture coding size includes the following units:
[0105] The initial quality factor acquisition unit 100 is used to acquire the initial quality factor according to the initial compression ratio and according to the fitting relationship;
[0106] The original picture encoding unit 200 is configured to perform JPEG encoding on the original picture according to the initial quality factor to obtain the first picture size;
[0107] A judging unit 300, configured to judge whether the size of the first picture is greater than the upper limit...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


