CN117412055A - Image processing method, electronic device, and storage medium - Google Patents

Image processing method, electronic device, and storage medium Download PDF

Info

Publication number
CN117412055A
CN117412055A CN202310885960.XA CN202310885960A CN117412055A CN 117412055 A CN117412055 A CN 117412055A CN 202310885960 A CN202310885960 A CN 202310885960A CN 117412055 A CN117412055 A CN 117412055A
Authority
CN
China
Prior art keywords
pixel
address
code
pixel unit
codes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310885960.XA
Other languages
Chinese (zh)
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.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital 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 Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN202310885960.XA priority Critical patent/CN117412055A/en
Publication of CN117412055A publication Critical patent/CN117412055A/en
Pending legal-status Critical Current

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/134Methods 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/136Incoming video signal characteristics or properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder

Abstract

The embodiment of the invention discloses an image processing method, electronic equipment and a storage medium, which relate to the technical field of image processing.

Description

Image processing method, electronic device, and storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to an image processing method, an electronic device, and a storage medium.
Background
With the continuous development of technologies such as the internet and streaming media, digital video has been widely applied to various terminal devices, such as a traditional PC, a smart phone, a tablet computer, and an Internet Protocol Television (IPTV). On the other hand, the sensory requirements of people are continuously improved, and the requirements for high-definition videos and ultra-high-definition videos are also continuously increased. The requirements of the video system and the continuously improved resolution are likely to bring about a huge transmission code Rate (Bit Rate). Therefore, in a large video context, it is desirable to maximize the elimination of various data redundancies between the data contained in the images in the video in some way to reduce the overall amount of data in the video.
Disclosure of Invention
The embodiment of the invention provides an image encoding method, an image decoding method, electronic equipment and a storage medium, which are used for solving the technical problem that the data transmission rate is required to be higher and higher as the video data volume is rapidly increased along with the increase of video resolution.
In one aspect, an embodiment of the present invention provides an image processing method, including:
acquiring pixel units of each color channel of an image to be processed; each pixel unit comprises a plurality of pixel points;
according to the gray value of each pixel point in the pixel unit, obtaining the address code of each pixel point in the pixel unit and the pixel code corresponding to each address code;
and obtaining compression coding data of the pixel unit according to the address coding of each pixel point in the pixel unit and the pixel coding corresponding to each address coding.
In another aspect, an embodiment of the present invention provides an image processing method, including:
acquiring compression coding data of pixel units of each color channel of an image to be processed; the compression coding data comprises address codes of each pixel point in the pixel unit and pixel codes corresponding to the address codes;
Decoding the pixel codes corresponding to the address codes to obtain gray values corresponding to the address codes;
obtaining the gray value of each pixel point in the pixel unit according to the address code of each pixel point in the pixel unit and the gray value corresponding to each address code;
and carrying out color channel reconstruction according to the gray value of each pixel point in the pixel unit to obtain a decompressed image.
In another aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor; the memory stores an application program, and the processor is configured to run the application program in the memory to perform the operations in the image processing method.
In another aspect, an embodiment of the present invention provides a storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps in the above-described image processing method.
The embodiment of the invention discloses an image processing method, electronic equipment and a storage medium, which relate to the technical field of image processing.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of an image processing method according to an embodiment of the present invention;
fig. 2 is a flow chart of a compression method based on hybrid coding in an image processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an address dictionary provided by an embodiment of the present invention;
FIG. 4 is a schematic diagram of a pixel dictionary provided by an embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for determining compressed encoded data in an image processing method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention;
fig. 7 is a flowchart of an image processing method applied to a decoding module according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
As shown in fig. 1, fig. 1 is a flowchart of an image processing method according to an embodiment of the present invention, where the image processing method may be performed by an electronic device with image processing capability, for example, may be performed by a mobile terminal such as a mobile phone, a tablet computer, or may be performed by a computer device such as a server, a cloud server, or a computer. As shown in fig. 1, the image processing method at least includes steps 110 to 130:
step 110, a pixel unit of each color channel of the image to be processed is acquired.
Each pixel unit comprises a plurality of pixel points.
In some embodiments, the image to be processed may be a received image to be compressed, e.g., the image to be processed may be an image to be compressed sent by other electronic devices; the image to be processed may receive each frame of image in the video image to be compressed.
In some embodiments, after receiving the image to be processed, performing color channel decomposition on the image to be processed to obtain a plurality of single-channel images, and for each single-channel image, performing image block segmentation on the single-channel image to obtain a plurality of image blocks, wherein a pixel point in each image block is set as a pixel unit. Wherein the image to be processed may be an RGB image.
Optionally, the image block segmentation may be performed on each single-channel image of the image to be processed through a sliding window with a preset step length, for example, the image block segmentation may be performed on each single-channel image of the image to be processed through a sliding window with a preset step length of 4 and a size of 4*4; the image block segmentation may also be performed on each single-channel image of the image to be processed by a mesh of a preset size, for example, by a mesh of a preset size of 16×16 and a mesh size of 4*4. It should be noted that, the preset step length, the size of the sliding window, and the size of the grid are only exemplary, and the preset step length, the size of the sliding window, or the size of the grid may be set according to the actual application scenario.
In other embodiments, after receiving the processed image, performing color channel decomposition on the image to be processed to obtain a plurality of single-channel images, for each single-channel image, sequentially writing each row of pixels of the single-channel image into the image buffer, when a preset number of rows of pixel data are stored in the image buffer, sequentially extracting a preset number of pixels from each row of pixel data of the row of pixel data cached in the image buffer to obtain a plurality of pixel matrixes, and setting each pixel matrix as a pixel unit. For example, for an image to be processed with an image size of 3840×3840, that is, the image to be processed includes 3840 rows of pixel data, and each row of pixel data includes 3840 pixel points, when 4 rows of row pixel data are stored in the image buffer, 4 pixels are sequentially extracted from each row of pixel data, so as to obtain 960 pixel matrices 4*4, and each pixel matrix is set as a pixel unit. It should be noted that, the size of the pixel matrix is merely illustrative, and in an actual application scenario, the size of the pixel matrix may be set according to a performance parameter of an electronic device, for example, when 16 rows of row pixel data are stored in the image buffer, 16 pixels are sequentially extracted from each row of pixel data, so as to obtain 240 pixel matrices of 16×16.
Step 120, according to the gray value of each pixel point in the pixel unit, the address code of each pixel point in the pixel unit and the pixel code corresponding to each address code are obtained.
In some embodiments, the address encoding may be a sequential position of each pixel point in the pixel unit among all pixel points in the pixel unit. For example, according to the gray value of each pixel point in the pixel unit, sorting each pixel point in the pixel unit according to the sequence from large to small of the gray value to obtain a pixel sequence of the pixel unit, and according to the sequence of each pixel point in the pixel unit in the pixel sequence, obtaining the address code of each pixel point in the pixel unit; for example, the gray value of each pixel in the pixel unit may be sorted according to the frequency of the gray value of each pixel in the pixel unit, and the gray value sequence of the pixel unit is obtained according to the order of the frequency from large to small, and the address code of each pixel in the pixel unit is obtained according to the sequential position of the gray value of each pixel in the pixel unit in the gray value sequence.
In other embodiments, address encoding refers to storing an address in a first dictionary encoding established based on a gray value of each pixel in a pixel unit. The first dictionary coding is obtained by performing dictionary coding on the gray value of each pixel in the pixel unit by a dictionary-based compression method. In some embodiments, dictionary-based compression methods include, but are not limited to, the Lempel-Ziv-Welch (LZW) algorithm, the arithmetic coding algorithm, and the Huffman coding algorithm.
Alternatively, the address codes corresponding to the gray values can be obtained by counting the occurrence frequency of the gray values of each pixel point in the pixel unit, and coding the gray values according to the sequence from the large frequency to the small frequency, and the address codes of each pixel in the pixel unit can be obtained according to the gray value of each pixel in the pixel unit and the address codes corresponding to the gray values. For example, the sequence numbers corresponding to the gray values can be determined according to the sequence from the high frequency to the low frequency, and binary conversion is performed on the sequence numbers corresponding to the gray values to obtain the address codes corresponding to the gray values.
In some embodiments, the pixel code may be a code corresponding to a gray value corresponding to each address code, for example, binary converting the gray value corresponding to each address code to obtain the pixel code corresponding to each address code.
In other embodiments, the pixel codes may be obtained by processing the gray values corresponding to the address codes by a compression method of the predictive codes. Specifically, for each address code, a predicted gray value corresponding to the address code is predicted according to a gray value of the address code adjacent to the address code, and coding is performed according to a residual error between the predicted gray value corresponding to the address code and the gray value corresponding to the address code, so as to obtain a pixel code corresponding to the address code.
And 130, obtaining compression coding data of the pixel unit according to the address codes of each pixel point in the pixel unit and the pixel codes corresponding to the address codes.
In some embodiments, the address code of each pixel point in the pixel unit and the pixel code corresponding to each address code may be spliced to obtain the compressed encoded data of the pixel unit.
In other modes, in order to ensure that the byte length of the compressed encoding data of the pixel unit is smaller than the byte length of the gray value of each pixel point of the pixel unit, and ensure that the compression of the image to be processed is effective compression, the sum of the number of address encodings of the pixel unit and the number of pixel encodings can be determined after the address encoding of each pixel point and the pixel encoding corresponding to each address encoding in the pixel unit; if the sum of the number of address codes and the number of pixel codes of the pixel unit is larger than the number of pixel points of the pixel unit, the byte length of the compressed coding data of the pixel unit is larger than the byte length of the gray value of each pixel point of the pixel unit, and the compression of the image to be processed is invalid, setting the gray value of each pixel point in the pixel unit as the compressed coding data of the pixel unit; if the sum of the number of the address codes of the pixel units and the number of the pixel codes is smaller than or equal to the number of the pixel points of the pixel units, the byte length of the compressed code data of the pixel units is smaller than the byte length of the gray value of each pixel point of the pixel units, and the compression of the image to be processed is not effectively compressed, the address codes of each pixel point in the pixel units and the pixel codes corresponding to each address code are spliced to obtain the compressed code data of the pixel units.
Alternatively, the pixel code corresponding to each address code may be spliced end to end with the address code of each pixel point in the pixel unit, so as to obtain the compressed encoded data of the pixel unit.
Optionally, after obtaining the compressed and encoded data of the pixel units, the compressed and encoded data of the pixel units in each single-channel image of the image to be processed is transmitted to a decompressor in the electronic device.
The image processing method provided by the embodiment of the invention compresses the image to be processed based on the address codes of the pixel units and the pixel codes corresponding to the address codes, thereby realizing lossless compression, and improving the compression efficiency while overcoming the technical problems that the video data volume is rapidly increased and the data transmission rate is required to be higher and higher along with the increase of the video resolution.
In some embodiments, in step 120, in order to achieve lossless compression of the image to be processed on the basis of reducing spatial redundancy of the image to be processed, the gray value of each pixel in the pixel unit may be compressed by a compression method based on hybrid encoding, to obtain an address code of each pixel in the pixel unit and a pixel code corresponding to each address code. For a single-channel image of each color channel of an image to be processed, the compression method based on the dictionary coding may be used to compress each pixel point of a pixel unit in the single-channel image to obtain an address code of each pixel point, and the compression method based on the prediction coding may be used to compress the address code of each pixel point to obtain a pixel code corresponding to each address code included in each pixel unit, and specifically, as shown in fig. 2, fig. 2 is a schematic flow diagram of the compression method based on the hybrid coding in the image processing method provided by the embodiment of the present invention, where the compression method based on the hybrid coding includes at least steps 121 to 124:
Step 121, according to the gray value of each pixel point in the pixel unit, the frequency of each gray value is obtained.
Optionally, for each pixel unit, the gray value of each pixel point in the pixel unit may be counted, each gray value included in the pixel unit and the number of occurrences of each gray value are counted, and the frequency of occurrence of each gray value is obtained according to the number of occurrences of each gray value. Illustratively, a pixel cell of 4*4 is illustrated, when the gray value of each pixel point in the pixel unit is 0, 0 255, 0, 255, 0, 125, 255, the pixel cell includes 3 gray values: 255. 0 and 125, the gray values 255, 0 and 125 occur at frequencies of 7, 8 and 1, respectively.
And step 122, obtaining address codes corresponding to the gray values according to the occurrence frequency of the gray values.
Optionally, in some embodiments, for each pixel unit, the gray values in the pixel unit may be sorted according to the frequency of occurrence of each gray value in the pixel unit, the sorted gray values are address-allocated according to the order of the frequency from small to small, so as to obtain an address code corresponding to each gray value in the pixel unit, and the address code corresponding to each pixel point in the pixel unit is obtained according to the gray value of each pixel point in the pixel unit and the address code corresponding to each gray value in the pixel unit. Specifically, the method for determining the address code comprises the steps a1 to a2:
And a1, sorting the gray values according to the frequency of each gray value according to the sequence from large to small to obtain a gray value sequence of the pixel unit.
And a2, performing address allocation on each gray value in the gray value sequence according to the sequence position of each gray value in the gray value sequence, and obtaining the address code corresponding to each gray value in the gray value sequence.
Optionally, a preset address number may be obtained, address allocation is sequentially performed on each gray value in the gray value sequence according to the sequential positions of each gray value in the gray value sequence, so as to obtain a preset address number corresponding to each gray value, and binary conversion is performed on the preset address number corresponding to each gray value, so as to obtain an address code corresponding to each gray value in the gray value sequence. The preset address numbers are integers larger than-1, and the number of the preset address numbers is smaller than or equal to the number of pixel points in the pixel unit. Illustratively, the gray values in 3 are included in pixel units: 255. for example, the frequencies of 0 and 125, and the frequencies of occurrence of the gray values 255, 0 and 125 are respectively 7, 8 and 1, and then the gray value sequence of the pixel unit is {0, 255 and 125}, address assignment is sequentially performed on each gray value in the gray value sequence {0, 255 and 125} according to the preset address numbers and the sequential positions of each gray value in the gray value sequence, so as to obtain a preset address number corresponding to the gray value 0 as 0, a preset address number corresponding to the gray value 255 as 1, a preset address number corresponding to the gray value 125 as 2, and binary conversion is performed on the preset address number corresponding to each gray value to obtain an address code corresponding to the gray value 0 as 0000, an address code corresponding to the gray value 255 as 0001, and an address code corresponding to the gray value 125 as 0010.
Optionally, the sequence number of each gray value in the gray value sequence may be determined according to the sequential position of each gray value in the gray value sequence, and binary conversion may be performed on the sequence number of each gray value to obtain the address code corresponding to each gray value in the gray value sequence. Illustratively, the pixel cell includes 2 gray values: 255. 254, 250 and 125, and the frequencies of occurrence of the gray values 255, 254, 250 and 125 are respectively 7, 6, 2 and 1, respectively, then the gray value sequence of the pixel unit is {255, 254, 250 and 125}, and according to the sequence positions corresponding to the gray values 255, 254, 250 and 125 in the gray value sequence {255, 254, 250 and 125}, the sequence numbers corresponding to the gray values 255, 254, 250 and 125 in the gray value sequence are determined to be 0, 1, 2 and 3, respectively, and binary conversion is performed on the sequence numbers corresponding to the gray values 255, 254, 250 and 125, respectively, so as to obtain address codes corresponding to the gray values 255, 254, 250 and 125, respectively, of 0000, 0001, 0010 and 0011, respectively.
Step 123, obtaining the address code of each pixel point in the pixel unit according to the address code corresponding to each gray value.
In some embodiments, the address code of each pixel in the pixel unit may be obtained according to the address code corresponding to each gray value in the gray value sequence of the pixel unit and the gray value of each pixel in the pixel unit.
Optionally, the gray value of each pixel in the pixel unit may be compared with each gray value in the gray value sequence of the pixel unit to obtain a target gray value in the gray value sequence, which is the same as the gray value of each pixel in the pixel unit, and the address code of each pixel in the pixel unit is obtained according to the address code corresponding to each gray value in the gray value sequence and the target gray value in the gray value sequence, which is the same as the gray value of each pixel in the pixel unit.
Illustratively, a pixel cell of 4*4 is illustrated, when the gray value of each pixel point in the pixel unit is 0, 255, 0, 255, 125, 255, the gray value sequence of the pixel unit is {0, 255, 125}, the address codes corresponding to the gray value 0, the gray value 255 and the gray value 125 in the gray value sequence {0, 255, 125} of the pixel unit are 0000, 0001 and 0010 respectively, the gray value of each pixel point in the pixel unit is respectively compared with the gray value sequences {0, 255, 125} of the pixel unit, the address codes corresponding to the pixels of the pixel unit, which are obtained from the gray value 0, the gray value 255, the gray value 0, the gray value 125, the gray value 255 and the gray value 255, are respectively: 0000. 0000, 0001, 0000 0000, 0001, 0000, 0010, 0001 and 0001.
Optionally, after obtaining the address code corresponding to each gray value in the pixel unit, storing each gray value in the pixel unit in association with the address code corresponding to each gray value to obtain an address dictionary of the pixel unit, where the address codes of the address dictionary are sequentially ordered from low to high, as shown in fig. 3, by way of example, fig. 3 is a schematic diagram of the address dictionary provided by the implementation of the present invention, where the address code is used as an index in the address dictionary, each gray value corresponding to the address code is a value corresponding to the address code, where the number n of address codes in fig. 3 is a positive integer less than or equal to the number of pixel points in the pixel unit, and the byte length of the gray value corresponding to each address code is 10.
And 124, performing differential processing on the gray values corresponding to the address codes to obtain a differential result, and obtaining the pixel codes corresponding to the address codes in the pixel units according to the differential result.
The difference result may be an absolute value of a difference between a gray value corresponding to each address code and a gray value corresponding to a preceding address code adjacent to each address code.
In some embodiments, the pixel code corresponding to each address code may be obtained by compressing the gray value corresponding to each address code by a compression method based on predictive coding. Specifically, the difference processing may be performed according to the gray value corresponding to each address code, to obtain a difference result corresponding to each address code, and the encoding processing may be performed on the difference result corresponding to each address code, to obtain a pixel code corresponding to each address code.
Optionally, for each pixel unit, the gray value corresponding to each address code in the pixel unit may be determined according to the address code corresponding to each gray value in the pixel unit, and the gray value corresponding to each address code and the gray value corresponding to the preamble address code adjacent to each address code are subjected to differential processing sequentially according to the order from low address code to high address code, so as to obtain the differential result of each address code. For example, in the case of a pixel unit of 4*4, when the gray values in the pixel unit are 255, 253, and 250, and the address codes corresponding to the gray values 255, 253, and 250 are 0000, 0001, and 0010, respectively, the difference result of the address codes 0000 is 255 corresponding to the address codes 0000, and for the address codes 0001, the difference result of the gray values 253 corresponding to the address codes 0001 and the gray values 255 corresponding to the address codes 0000 are 2, and for the address codes 0010, the difference result of the gray values 250 corresponding to the address codes 0010 and the gray values 253 corresponding to the address codes 0001 are 3, that is, the difference result of the address codes 0000, 0001, and 0010 in the pixel unit is 255, 2, and 3, respectively.
In some embodiments, in order to reduce processing steps of the image processing method, for each pixel unit, when the number of address codes in the pixel unit is small, if the gray value corresponding to each address code in the pixel unit is still compressed by the compression method based on the predictive code, the compression effect is poor, and the processing steps of the image processing method are increased. It should be noted that, in the embodiment of the present invention, the first preset number threshold is not specifically limited, and the first preset number threshold may be determined according to an actual application scenario, for example, the first preset number may be 3, that is, for each pixel unit, when the number of address codes in the pixel unit is greater than or equal to 3, a compression method based on prediction coding is performed, that is, differential processing is performed according to a gray value corresponding to each address code, to obtain a differential result corresponding to each address code, and according to the differential result corresponding to each address code, a pixel code corresponding to each address code is obtained, and when the number of address codes in the pixel unit is less than 3, a compression method based on prediction coding is not performed, that is, a gray value corresponding to each address code in the pixel unit is set as a pixel code corresponding to each address code.
Specifically, the method comprises the following steps:
(1) And obtaining the number of address codes in the pixel unit according to the address codes of each pixel point in the pixel unit.
(2) And if the number of the address codes in the pixel unit is greater than or equal to a first preset number threshold, executing a differential processing step for gray values corresponding to the address codes.
(3) If the number of the address codes in the pixel units is smaller than a first preset number threshold, obtaining the pixel codes corresponding to the address codes according to the gray values corresponding to the address codes in the pixel units.
Alternatively, when the number of address codes in the pixel unit is smaller than the first preset number threshold, that is, when the compression method based on the prediction coding is not performed, the gray value corresponding to the address code in the pixel unit may be set as the pixel code corresponding to each address code.
Optionally, when the number of address codes in the pixel unit is smaller than the first preset number threshold, the gray value corresponding to the address code in the pixel unit may be encoded to obtain the gray code of the gray value corresponding to the address code in the pixel unit, and the gray code of the gray value corresponding to the address code in the pixel unit is set as the pixel code corresponding to the address code. The gray value corresponding to the address code in the pixel unit can be binary converted.
Optionally, when the number of address codes in the pixel unit is smaller than the first preset number threshold, the gray value corresponding to the address code in the pixel unit may be encoded to obtain the gray code of the gray value corresponding to the address code in the pixel unit, and for each address code, the gray code of the gray value corresponding to the address code is spliced with the first preset identification code to obtain the pixel code corresponding to the address code. The first preset identification code characterizes that the pixel code corresponding to the address code is a gray value corresponding to the address code, for example, the first preset identification code may be 11. For example, for each address code, when the gray value corresponding to the address code is 255, binary converting is performed on the gray value corresponding to the address code to obtain a gray code 0011111111 of 10 bytes, and the gray code 0011111111 is spliced with the first preset identification code 11 to obtain a pixel code 110011111111 of 12 bytes, where the highest two bits of the pixel code are the first preset identification code.
In some embodiments, for each address code, the differential result of the address code is binary-converted to obtain a differential code of 10 bytes, and the differential code of the address code is spliced with a second preset identification code to obtain a pixel code corresponding to the address code. The second preset identification code characterizes that the pixel code corresponding to the address code is obtained through differential processing, namely, the pixel code corresponding to the address code is obtained through a compression method based on predictive coding, and the highest two bits in the pixel code are the second preset identification code. Wherein the second preset identification code may be 00.
In other embodiments, considering that when the difference result of the address code is larger, binary conversion is performed on the difference result of the address code, which may cause that the byte length of the pixel code corresponding to the address code is greater than the byte length of the gray value corresponding to the address code, the redundancy of the compressed code data is increased, and invalid compression is caused, based on this, after the difference result of the address code is obtained for each address code, the difference result of the address code is compared with a preset difference threshold value, if the difference result of the address code is smaller than the preset difference threshold value, it is indicated that the byte length of the pixel code corresponding to the address code is smaller than the byte length of the gray value corresponding to the address code, binary conversion is performed on the difference result of the address code, so as to obtain 10 bytes of difference code, and the difference code of the address code is spliced with a second preset identification code, so as to obtain the pixel code corresponding to the address code; if the difference result of the address code is greater than or equal to a preset difference threshold value, indicating that the byte length of the pixel code corresponding to the address code is greater than or equal to the byte length of the gray value corresponding to the address code, performing binary conversion on the gray value corresponding to the address code to obtain a gray code of 10 bytes, and splicing the gray code of the address code with a first preset identification code to obtain the pixel code corresponding to the address code.
Specifically, the pixel coding determination method includes steps b1 to b2:
and b1, aiming at each address code in the pixel unit, if the difference result of the address code is smaller than a preset difference threshold value, coding the difference result of the address code in a preset coding mode to obtain the pixel code corresponding to the address code.
The preset encoding mode may be binary encoding. It should be noted that, in the embodiment of the present invention, the preset differential threshold is not specifically limited, and the preset differential threshold may be determined according to an actual scene, for example, the preset differential threshold may be 14, that is, when the differential result of the address code is smaller than 14 for each address code, the differential result of the address code is binary-converted to obtain the differential code of the address code, and the differential code of the address code is spliced with the second preset identification code to obtain the pixel code corresponding to the address code; and when the difference result of the address codes is greater than or equal to 14, binary conversion is carried out on the gray value corresponding to the address codes to obtain gray codes, and the gray codes of the address codes are spliced with a first preset identification code to obtain pixel codes corresponding to the address codes.
Optionally, in some embodiments, for each address code, when the difference result of the address code is smaller than a preset difference threshold, the difference result corresponding to the address code is encoded by a preset encoding mode to obtain a difference code corresponding to the address code, and the second preset identification code is spliced with the difference code corresponding to the address code to obtain the pixel code corresponding to the address code. For example, taking the gray value corresponding to the address code 0001 as 255, the gray value corresponding to the address code 0000 as 250, the preset difference threshold as 14, and the second preset mark as 00 as an example for explanation, for the address code 0001, the difference result of the address code 0001 is 5, the difference result of the address code 0001 is binary-converted to obtain the difference code of the address code 0001 as 0101, and the difference code of the address code 0001 is 0101 and the second preset mark to obtain the pixel code 000101 of the address code.
Optionally, in some embodiments, to further reduce redundancy of the compression encoded data, for each address code, the differential result of the address code and the differential result of a subsequent address code adjacent to the address code may be combined, and the pixel code of the address code is obtained based on the combined differential result. Specifically, the method for determining the pixel coding based on the combined differential result includes steps c1 to c3:
And step c1, splicing the second preset identification code and the differential code corresponding to the address code to obtain the initial pixel code corresponding to the address code.
Optionally, in some embodiments, for each address code, after the second preset identification code is spliced with the differential code corresponding to the address code to obtain an initial pixel code corresponding to the address code, determining a differential result between a gray value corresponding to the address code and a gray value corresponding to a subsequent address code adjacent to the address code, and comparing the differential result between the gray value corresponding to the address code and the gray value corresponding to the subsequent address code adjacent to the address code with a preset differential threshold.
And c2, if the difference result between the gray value corresponding to the address code and the gray value corresponding to the subsequent address code adjacent to the address code is smaller than or equal to a preset difference threshold value, encoding the difference result between the gray value corresponding to the address code and the gray value corresponding to the subsequent address code adjacent to the address code to obtain the difference code of the subsequent address code adjacent to the address code, and splicing the initial pixel code corresponding to the address code and the difference code of the subsequent address code adjacent to the address code to obtain the pixel code corresponding to the address code.
Alternatively, the initial pixel code corresponding to the address code and the differential code of the subsequent address code adjacent to the address code may be spliced end to obtain the pixel code corresponding to the address code. Illustratively, taking a gray value corresponding to an address code 0001 as 255, a gray value corresponding to an address code 0000 as 250, a gray value corresponding to an address code 0010 as 253, a preset differential threshold value as 14, and a second preset identifier as 00 as an example, for the address code 0001, the differential result of the address code 0001 is 5, the differential result of the address code 0001 is binary-converted to obtain a differential code of the address code 0001 as 0101, the differential code of the address code 0001 is 0101 and the second preset identifier, an initial pixel code 000101 of the address code 0001 is obtained, the differential result of a subsequent address code 0010 adjacent to the address code 0001 is 2, the differential result of the subsequent address code 0010 adjacent to the address code 0001 is binary-converted to obtain a differential code 0010 of the address code 0010, and the differential code 0010 of the address code 0010 is spliced with the initial pixel code 000101 of the address code 0001 to obtain a pixel code 0001010010 of the address code 0001.
And c3, if the difference result between the gray value corresponding to the address code and the gray value corresponding to the subsequent address code adjacent to the address code is larger than a preset difference threshold value, setting the initial pixel code corresponding to the address code as the pixel code corresponding to the address code.
And b2, if the first difference result of the address code is larger than a preset difference threshold value, coding a gray value corresponding to the address code in a preset coding mode to obtain a gray code corresponding to the address code, and splicing a first preset identification code and the gray code corresponding to the address code to obtain a pixel code corresponding to the address code. The first preset identification code characterizes that the pixel code corresponding to the address code is a gray value of the address code.
In some embodiments, in order to ensure the accuracy of obtaining the gray value corresponding to each address code by decompression when the subsequent image is decompressed, in determining the pixel code corresponding to each address code, the pixel code of the address code may be obtained by adding the decompression mode identifier to the differential code of the address code according to the comparison result between the gray value corresponding to each address code and the gray value corresponding to the preamble address code adjacent to the address code, and the differential code added with the decompression mode identifier and the second preset identifier. The decompression mode identifier is used for indicating a calculation mode of a gray value in a decompression process, wherein the calculation mode of the gray value comprises adding the gray value corresponding to the preamble address code adjacent to the address code to the differential result of the address code, subtracting the gray value corresponding to the preamble address code adjacent to the address code from the differential result of the address code, and the decompression mode identifier comprises 0 and 1, for example, when the decompression mode identifier is 1, the calculation mode of the gray value is adding the gray value corresponding to the preamble address code adjacent to the address code to the differential result of the address code, and when the decompression mode identifier is 0, the calculation mode of the gray value is subtracting the gray value corresponding to the preamble address code adjacent to the address code to the differential result of the address code.
Optionally, for each address code, the gray value corresponding to the address code may be compared with the gray value corresponding to the address code adjacent to the address code, if the gray value corresponding to the address code is greater than the gray value corresponding to the address code adjacent to the address code, the decompression mode identifier of the address code is determined to be "0", and if the gray value corresponding to the address code is less than or equal to the gray value corresponding to the address code adjacent to the address code, the decompression mode identifier of the address code is determined to be "1".
Optionally, for each address code, when the difference result of the address code and the difference result between the gray value corresponding to the address code and the gray value corresponding to the subsequent address code adjacent to the address code are smaller than a preset difference threshold, a decompression mode identifier of the address code may be added in the difference code of the address code, the difference code after the address code is added with the decompression mode identifier is spliced with a second preset identifier to obtain an initial pixel code of the address code, the decompression mode identifier of the subsequent address code adjacent to the address code is added in the difference code of the subsequent address code adjacent to the address code, and the difference code after the address code is added with the decompression mode identifier of the subsequent address code adjacent to the address code is spliced with the initial pixel code of the address code to obtain the pixel code of the address code.
For example, when the pixel code of the address code is 12 bytes, the initial pixel code of the address code may be set as a value in the upper 7 bits, and the differential code after adding the decompression mode identifier of the subsequent address code adjacent to the address code may be set as a value in the lower 5 bits, thereby obtaining the pixel code of the address code.
For example, the description will be given taking, as an example, that the gray value corresponding to the address code 0001 is 255, the gray value corresponding to the address code 0000 is 250, the gray value corresponding to the address code 0010 is 253, the preset differential threshold is 14, and the second preset flag is 00, for the address code 0001, the differential code of the address code 0001 is 0101, the decoding mode identifier of the address code 0001 is 0, the initial pixel code 0000101 of the address code 0001, the differential code of the address code 0010 is 0010, and the decoding mode identifier of the address code 0010 is 1, and the pixel code of the address code 0001 is 000010110010.
In some embodiments, for each pixel unit, according to the gray value corresponding to each address code in the pixel unit, a compression method based on prediction coding is performed on the gray value corresponding to each address code according to the above step 124, to obtain a pixel code of each address code in the pixel unit, and the pixel code of each address code in the pixel unit is stored in association with the address code, to obtain a pixel dictionary of the pixel unit. For each pixel unit, the number of address encodings in the pixel dictionary of the pixel unit is less than or equal to the number of address encodings in the address dictionary of the pixel unit. As shown in fig. 4, exemplary, fig. 4 is a schematic diagram of a pixel dictionary provided in an embodiment of the present invention, where the pixel dictionary is shown with address codes as indexes, each address-coded pixel code is a value of the address code, and each pixel code length is 12 bytes, where the number n of address codes in the pixel dictionary is a positive integer less than or equal to the number of pixel points in a pixel unit.
In some embodiments, to facilitate subsequent image decompression, in determining each address code corresponding to a pixel unit, for a last address code in the pixel unit, a preset cut-off is added to the address code corresponding to the pixel code, and illustratively, the preset cut-off may be added to the two highest bits of the pixel code corresponding to the last address code, for example, the two highest bits of the pixel code corresponding to the last address code are set to "01".
Optionally, for the number of address codes in each pixel unit, the above compression method based on prediction coding is performed on the gray value corresponding to each address code in turn, so as to obtain the pixel code of each address code in the pixel unit, when the number corresponding to the address code is equal to the number of address codes in the pixel unit, determining that the address code is the last address code, and setting the highest two bits of the pixel code corresponding to the last address code to be "01".
In some embodiments, for each pixel unit, after the address code of each pixel point in the pixel unit and the pixel code corresponding to each address code are obtained, the address code of each pixel point in the pixel unit and the pixel code corresponding to each address code may be spliced to obtain the compressed code data of the pixel unit, for example, the pixel code corresponding to each address code and the address code of each pixel point in the pixel unit may be spliced end to obtain the compressed code data of the pixel unit.
In some embodiments, to reduce redundancy of the compressed encoded data of the pixel unit, address codes of each pixel point in the pixel unit may be grouped to obtain at least one address code combination of the pixel unit, address codes in each address code combination are spliced to obtain at least one spliced address code of the pixel unit, and the pixel code corresponding to each address code is spliced with at least one spliced address code of the pixel unit to obtain the compressed encoded data of the pixel unit. Specifically, as shown in fig. 5, fig. 5 is a flow chart of a method for determining compressed encoded data in an image processing method according to an embodiment of the present invention, where the method for determining compressed encoded data at least includes steps 131 to 134:
step 131, obtaining the number of address codes in the pixel unit according to the address codes of each pixel point in the pixel unit.
And 132, grouping the address codes of each pixel point in the pixel unit according to the number of the address codes in the pixel unit to obtain at least one address code combination of the pixel unit.
In some embodiments, the number of address codes in the address code combination of the pixel unit may be determined according to the number of address codes in the pixel unit, and the address codes of each pixel point in the pixel unit are grouped according to the number of address codes in the address code combination, so as to obtain at least one address code combination of the pixel unit.
Taking a pixel unit of 4*4 as an example, if the number of address codes in the pixel unit is greater than 7, that is, the byte length of the address codes in the pixel unit is 4 bits, determining that the number of address codes in the address code combination of the pixel unit is 3, starting from the first pixel point in the pixel unit, grouping the address codes of the pixel points in the pixel unit every three pixel points, and obtaining 6 address code combinations.
For example, when the number of address codes in the pixel unit is 8, the address codes corresponding to the pixel points b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14, b15 are sequentially divided into the first address code combination, the address codes corresponding to the pixel points b3, b4, b5 are divided into the second address code combination, the address codes corresponding to the pixel points b6, b7, b8 are divided into the third address code combination, the address codes corresponding to the pixel points b9, b10, b11 are divided into the fourth address code combination, the address codes corresponding to the pixel points b12, b13, b14 are divided into the fifth address code combination, and the address codes corresponding to the pixel point b15 are taken as the sixth address code combination.
Taking a pixel unit of 4*4 as an example, if the number of address codes in the pixel unit is less than or equal to 7 and greater than or equal to 4, that is, the byte length of the address codes in the pixel unit is 3 bits, determining that the number of address codes in the address code combination of the pixel unit is 4, and grouping the address codes of the pixel points in the pixel unit at intervals of four pixel points from the first pixel point in the pixel unit to obtain 4 address code combinations.
For example, when the number of address codes in the pixel unit is 6 and the pixel points in the pixel unit are b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14, b15 in sequence, the address codes corresponding to the pixel points b0, b1, b2, b3 are divided into a first address code combination, the address codes corresponding to the pixel points b4, b5, b6, b7 are divided into a second address code combination, the address codes corresponding to the pixel points b8, b9, b10, b11 are divided into a third address code combination, and the address codes corresponding to the pixel points b12, b13, b14, b15 are divided into a fourth address code combination.
Taking a pixel unit of 4*4 as an example, if the number of address codes in the pixel unit is less than or equal to 3 and greater than 1, that is, the byte length of the address codes in the pixel unit is 2 bits, determining that the number of address codes in the address code combination of the pixel unit is 6, starting from the first pixel point in the pixel unit, grouping the address codes of the pixel points in the pixel unit every six pixel points, and obtaining 3 address code combinations.
For example, when the number of address codes in the pixel unit is 2, and the pixel points in the pixel unit are sequentially b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14, b15, the address codes corresponding to the pixel points b0, b1, b2, b3, b4, b5 are divided into a first address code combination, the address codes corresponding to the pixel points b6, b7, b8, b9, b10, b11 are divided into a second address code combination, and the address codes corresponding to the pixel points b12, b13, b14, b15 are divided into a third address code combination.
Taking a pixel unit of 4*4 as an example, if the number of address codes in the pixel unit is 1, that is, the byte length of the address codes in the pixel unit is 1 bit, determining that the number of address codes in the address code combination of the pixel unit is 12, starting from the first pixel point in the pixel unit, grouping the address codes of the pixel points in the pixel unit every 12 pixel points, and obtaining 2 address code combinations.
For example, when the number of address codes in the pixel unit is 2, and the pixel points in the pixel unit are b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14, b15 in sequence, the address codes corresponding to the pixel points b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11 are divided into a first address code combination, and the address codes corresponding to the pixel points b12, b13, b14, b15 are divided into a second address code combination.
And step 133, splicing the address codes in each address code combination to obtain at least one spliced address code of the pixel unit.
Step 134, obtaining the compression coding data of the pixel unit according to at least one splicing address code of the pixel unit and the pixel code corresponding to each address code.
In some embodiments, the pixel code corresponding to each address code and at least one spliced address code of the pixel unit may be spliced to obtain the compressed encoded data of the pixel unit.
For example, the pixel unit 4*4, the address code 0000 in the pixel unit is 0000, 0001, the gray value corresponding to the address code 0000 is 255, the gray value corresponding to the address code 0001 is 0, the pixel code corresponding to the address code 0000 in the pixel unit is 110011111111, the pixel code corresponding to the address code 0001 is 110000000000, the pixel points b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14 b15 are respectively 255, 0, 255, that is, the splicing address codes in the pixel unit are 000000010101, 000000010100 and 00010000 respectively, and the compression coding data of the pixel unit is 110011111111 0100 0000 00000000 00010101 000000010100 0001 0000.
In some embodiments, to ensure that the byte length of the compressed encoded data of the pixel unit is smaller than the byte length of the gray value of each pixel point of the pixel unit, after the concatenation address code and the pixel code corresponding to each address code are obtained, the sum of the number of the concatenation address codes and the number of the pixel codes is compared with the number of the pixel points of the pixel unit, whether the byte length of the compressed encoded data of the pixel unit is greater than the byte length of the gray value of each pixel point of the pixel unit is determined according to the comparison result, and if the byte length of the compressed encoded data of the pixel unit is greater than the byte length of the gray value of each pixel point of the pixel unit, the gray value of each pixel point of the pixel unit is used as the compressed encoded data of the pixel unit.
Specifically, the method comprises the following steps:
(1) The sum of the number of spliced address codes and the number of pixel codes is compared with the number of pixel points in the pixel unit.
(2) If the sum of the number of the spliced address codes and the number of the pixel codes is larger than the number of the pixel points in the pixel unit, determining the gray value of each pixel point in the pixel unit as compression coding data of the pixel unit.
(3) If the sum of the number of the spliced address codes and the number of the pixel codes is smaller than or equal to the number of the pixel points in the pixel unit, determining the spliced address codes and the pixel codes corresponding to the address codes as compression coding data of the pixel unit.
Optionally, if the sum of the number of the spliced address codes and the number of the pixel codes is greater than the number of the pixel points in the pixel unit, starting from the first pixel point in the pixel unit, sequentially splicing the gray values of the pixel points to obtain initial compressed coded data of the pixel unit, and adding uncompressed identifiers to the highest two bits of the initial compressed coded data to obtain the compressed coded data of the pixel unit, wherein the uncompressed identifiers indicate that the compressed coded data of the pixel unit is the gray value of each pixel point in the pixel unit. Wherein the uncompressed identifier may be "00".
It can be understood that when the gray values of the pixels are spliced, the gray value of each pixel can be binary converted to obtain an initial gray code with the length of 12 bytes of each pixel, and the highest two bits of the gray code of each pixel are set to be 11, so that the gray code of each pixel is obtained, and the gray codes of the pixels are spliced in sequence from the first pixel in the pixel unit, so as to obtain the initial compression coding data of the pixel unit.
In some embodiments, to further reduce the data redundancy of the compressed encoded data, the pixel codes corresponding to adjacent address codes may be combined to obtain at least one combined pixel code of the pixel unit, and the at least one spliced address code and the at least one combined pixel code of the pixel unit are determined as the compressed encoded data of the pixel unit.
Specifically, the method for determining compression encoded data based on merged pixel encoding includes:
(1) And if the pixel codes corresponding to each address code and the pixel codes corresponding to the subsequent address codes adjacent to each address code carry the second preset identification code, merging the pixel codes corresponding to each address code and the pixel codes corresponding to the subsequent address codes adjacent to each address code to obtain at least one merged pixel code of the pixel unit.
(2) At least one spliced address code and at least one merged pixel code of the pixel unit are determined as compression encoded data of the pixel unit.
Optionally, for each address code in the pixel unit, determining whether the pixel code corresponding to the address code and the pixel code corresponding to the subsequent address code adjacent to the address code carry the second preset identification code, if the pixel code corresponding to the address code and the pixel code corresponding to the subsequent address code adjacent to the address code both carry the second preset identification code, splicing the pixel code corresponding to the address code and the pixel code corresponding to the subsequent address code adjacent to the address code to obtain the combined pixel code.
Illustratively, taking a byte length of 12 as an example of a pixel code, the 9 th bit to the 5 th bit of data can be taken from the pixel code corresponding to the subsequent address code adjacent to the address code to obtain a first array, the data on the upper 7 bits of the pixel code corresponding to the address code is spliced with the first data to obtain a combined pixel code with a byte length of 12 bits, and the combined pixel code is associated with the address code.
For example, taking the example that the pixel code corresponding to the address code 0001 is 000001011111 and the pixel code corresponding to the subsequent address code 0010 adjacent to the address code is 000001111111, the merged pixel code is 000001000111.
Alternatively, in some embodiments, at least one splicing address code and at least one merging pixel code of the pixel unit may be spliced to obtain compression encoded data of the pixel unit. For example, the combined pixel codes and the splicing address codes are spliced end to obtain compression coding data of the pixel units.
Optionally, in other embodiments, for each pixel unit, the sum of the number of the splicing address codes and the number of the combined pixel codes of the pixel unit may be compared with the number of the pixel points in the pixel unit, if the sum of the number of the splicing address codes and the number of the combined pixel codes of the pixel unit is greater than the number of the pixel points in the pixel unit, the gray value of each pixel point in the pixel unit is determined as the compression coding data of the pixel unit, and if the sum of the number of the splicing address codes and the number of the combined pixel codes of the pixel unit is less than or equal to the number of the pixel points in the pixel unit, the combined pixel codes and the splicing address codes of the pixel unit are spliced end to obtain the compression coding data of the pixel unit.
The image processing method provided by the embodiment of the invention compresses the image to be processed based on the address codes of the pixel units and the pixel codes corresponding to the address codes, thereby realizing lossless compression, and improving the compression efficiency while overcoming the technical problems that the video data volume is rapidly increased and the data transmission rate is required to be higher and higher along with the increase of the video resolution.
In order to better illustrate the image processing method provided by the embodiment of the present invention, on the basis of the above image processing method embodiment, the embodiment of the present invention provides an image processing apparatus, specifically, as shown in fig. 6, fig. 6 is a schematic structural diagram of the image processing apparatus provided by the embodiment of the present invention, where the image processing apparatus includes:
the decomposition module is used for acquiring pixel units of each color channel of the image to be processed; each pixel unit comprises a plurality of pixel points;
the coding module is used for obtaining the address code of each pixel point in the pixel unit and the pixel code corresponding to each address code according to the gray value of each pixel point in the pixel unit;
and the compression module is used for obtaining compression coding data of the pixel unit according to the address coding of each pixel point in the pixel unit and the pixel coding corresponding to each address coding.
In some embodiments, the encoding module is configured to:
according to the gray value of each pixel point in the pixel unit, the frequency of each gray value is obtained;
according to the frequency of each gray value, obtaining the address code corresponding to each gray value;
obtaining the address code of each pixel point in the pixel unit according to the address code corresponding to each gray value;
and carrying out differential processing on the gray values corresponding to the address codes to obtain a differential result, and obtaining the pixel codes corresponding to the address codes in the pixel unit according to the differential result.
In some embodiments, the encoding module is configured to:
according to the frequency of each gray value, sequencing each gray value according to the sequence from big to small to obtain a gray value sequence of the pixel unit;
and performing address allocation on each gray value in the gray value sequence according to the sequence position of each gray value in the gray value sequence to obtain the address code corresponding to each gray value in the gray value sequence.
In some embodiments, the encoding module is configured to:
aiming at each address code in the pixel unit, if the differential result of the address code is smaller than or equal to a preset differential threshold value, the differential result of the address code is coded in a preset coding mode to obtain a pixel code corresponding to the address code;
If the difference result of the address code is larger than a preset difference threshold value, coding a gray value corresponding to the address code in a preset coding mode to obtain a gray code corresponding to the address code, and splicing a first preset identification code and the gray code corresponding to the address code to obtain a pixel code corresponding to the address code; the first preset identification code characterizes that the pixel code corresponding to the address code is a gray value of the address code.
In some embodiments, the encoding module is configured to:
coding a differential result corresponding to the address code by a preset coding mode to obtain a differential code corresponding to the address code;
splicing the second preset identification code and the differential code corresponding to the address code to obtain the pixel code corresponding to the address code; the second preset identification code characterizes that the pixel code corresponding to the address code is obtained through differential processing.
In some embodiments, the encoding module is configured to:
obtaining the number of address codes in the pixel unit according to the address codes of each pixel point in the pixel unit;
if the number of the address codes in the pixel unit is greater than or equal to a first preset number threshold, executing a differential processing step for gray values corresponding to the address codes;
If the number of the address codes in the pixel units is smaller than a first preset number threshold, determining the gray value corresponding to the address codes in the pixel units as the pixel code corresponding to each address code.
In some embodiments, the compression module is configured to:
obtaining the number of address codes in the pixel unit according to the address codes of each pixel point in the pixel unit;
grouping the address codes of each pixel point in the pixel unit according to the number of the address codes in the pixel unit to obtain at least one address code combination of the pixel unit;
splicing the address codes in each address code combination to obtain at least one spliced address code of the pixel unit;
and obtaining compression coding data of the pixel unit according to at least one spliced address code of the pixel unit and the pixel code corresponding to each address code.
In some embodiments, the compression module is configured to:
if the pixel code corresponding to each address code and the pixel code corresponding to the subsequent address code adjacent to each address code both carry the second preset identification code, merging the pixel code corresponding to each address code and the pixel code corresponding to the subsequent address code adjacent to each address code to obtain at least one merged pixel code of the pixel unit;
At least one spliced address code and at least one merged pixel code of the pixel unit are determined as compression encoded data of the pixel unit.
In some embodiments, the compression module is configured to:
if the sum of the number of the spliced address codes and the number of the pixel codes is larger than the number of the pixel points in the pixel unit, determining the gray value of each pixel point in the pixel unit as compression coding data of the pixel unit;
if the sum of the number of the spliced address codes and the number of the pixel codes is smaller than or equal to the number of the pixel points in the pixel unit, determining the spliced address codes and the pixel codes corresponding to the address codes as compression coding data of the pixel unit.
The image processing device provided by the embodiment of the invention compresses the image to be processed based on the address codes of the pixel units and the pixel codes corresponding to the address codes, so that lossless compression is realized, and the technical problem that the video data volume is rapidly increased along with the increase of the video resolution and the data transmission rate is required to be higher and higher is solved, and meanwhile, the compression efficiency is improved.
In order to better illustrate the image processing method provided by the embodiment of the present invention, based on the embodiment of the image processing method, the embodiment of the present invention provides an image processing method applicable to a decompression module of an electronic device, specifically, as shown in fig. 7, fig. 7 is a schematic flow diagram of the image processing method applied to a decoding module provided by the embodiment of the present invention, where the image processing method applied to the decoding module at least includes steps 140 to 170:
In step 140, compressed encoded data of pixel units of each color channel of the image to be processed is obtained.
The compression coding data is obtained by the image processing method applied to the compression module. The compression coding data comprises address codes of each pixel point in the pixel unit and pixel codes corresponding to the address codes.
And step 150, decoding the pixel codes corresponding to the address codes to obtain gray values corresponding to the address codes.
Step 160, obtaining the gray value of each pixel point in the pixel unit according to the address code of each pixel point in the pixel unit and the gray value corresponding to each address code.
Step 170, performing color channel reconstruction according to the gray value of each pixel point in the pixel unit, and obtaining the decompressed image.
Optionally, in some embodiments, for each pixel unit, if the highest two bits in the compressed encoded data of the pixel unit are "00", the compressed encoded data of the pixel unit is divided into 16 strings with a byte length of 12, the highest two bits in each string are removed, the lower 10 bits of the strings are output, and the lower 10 bits of the strings are determined as the gray value of each pixel point in the pixel unit.
Optionally, in some embodiments, for each pixel unit, if the highest two bits in the compressed encoded data of the pixel unit are not "00", removing the highest two bits in the first 12 bits of the character string in the compressed encoded data of the pixel unit, determining the character string on the lower 10 bits in the first 12 bits of the compressed encoded data of the pixel unit as the gray value corresponding to the first address code, extracting a group of character strings from the subsequent character strings of the compressed encoded data of the pixel unit at intervals of 12 bytes, setting the extracted character strings as the pixel codes corresponding to the address codes, until the character string with the highest two bits in the extracted character string carrying the preset cut-off symbol "01" is determined as the pixel code corresponding to the last address code or the pixel code corresponding to the last two address codes, and setting the remaining character strings in the compressed encoded data of the pixel unit as the splicing address codes of the pixel unit.
Optionally, for the pixel code corresponding to the extracted address code, the pixel code corresponding to the address code is decoded by determining whether the pixel code carries the first preset identification code, so as to obtain the gray value corresponding to the address code.
For example, when the pixel code carries the first preset identification code, the character string on the lower 10 of the pixel code is determined as the gray value corresponding to the address code. When the pixel code carries a second preset identification code, decoding the character string on the lower 4 bits of the pixel code according to the decoding mode identifier carried on the 10 th bit of the pixel code and the gray value corresponding to the address code of the pixel code, obtaining the gray value corresponding to the address code corresponding to the pixel code, determining whether the lower 5 bits of the pixel code are all 1, if the lower 5 bits of the pixel code are not all 1, decoding the character string on the lower 4 bits of the pixel code according to the decoding mode identifier carried on the 5 th bit of the pixel code and the gray value corresponding to the address code corresponding to the pixel code, obtaining the gray value corresponding to the subsequent address code of the address code corresponding to the pixel code, and if the lower 5 bits of the pixel code are all 1, decoding the next group of character strings.
In some embodiments, for each pixel unit, after obtaining the gray value corresponding to each address code in the pixel unit, the address codes in the pixel unit and the gray values corresponding to each address code are associated and stored, so as to obtain the decoding dictionary of the pixel unit.
Optionally, the spliced address codes may be disassembled according to the number of address codes in the decoding dictionary of the pixel unit to obtain address codes of each pixel point in the pixel unit, and the gray value of each pixel point in the pixel unit is obtained according to the address codes of each pixel point in the pixel unit and the gray value corresponding to each address code.
Optionally, after the gray value of each pixel point in the pixel unit is obtained, performing image reconstruction according to the gray value of each pixel point in each pixel unit in the single-channel image to obtain a decompressed single-channel image, and performing color channel recombination on the single-channel image decompressed by each color channel to obtain a decompressed image.
Accordingly, an embodiment of the present invention also provides an electronic device, as shown in fig. 8, where the electronic device may include a Radio Frequency (RF) circuit 601, a memory 602 including one or more computer readable storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a wireless fidelity (WiFi, wireless Fidelity) module 607, a processor 608 including one or more processing cores, and a power supply 609. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 8 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
The RF circuit 601 may be used for receiving and transmitting signals during a message or a call, and in particular, after receiving downlink information of a base station, the downlink information is processed by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. Typically, RF circuitry 601 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM, subscriber Identity Module) card, a transceiver, a coupler, a low noise amplifier (LNA, low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 601 may also communicate with networks and other devices through wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (GSM, global System of Mobile communication), general packet radio service (GPRS, general Packet Radio Service), code division multiple access (CDMA, code Division Multiple Access), wideband code division multiple access (WCDMA, wideband Code Division Multiple Access), long term evolution (LTE, long Term Evolution), email, short message service (SMS, short Messaging Service), and the like.
The memory 602 may be used to store software programs and modules that are stored in the memory 602 for execution by the processor 608 to perform various functional applications and data processing. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device (such as audio data, phonebooks, etc.), and the like. In addition, the memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide access to the memory 602 by the processor 608 and the input unit 603.
The input unit 603 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 603 may include a touch-sensitive surface, as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations thereon or thereabout by a user using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection means according to a predetermined program. Alternatively, the touch-sensitive surface may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 608, and can receive commands from the processor 608 and execute them. In addition, touch sensitive surfaces may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic waves. The input unit 603 may comprise other input devices in addition to a touch sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 604 may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of the electronic device, which may be composed of graphics, text, icons, video, and any combination thereof. The display unit 604 may include a display panel, which may be optionally configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay a display panel, and upon detection of a touch operation thereon or thereabout, the touch-sensitive surface is passed to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel based on the type of touch event. Although in fig. 8 the touch sensitive surface and the display panel are implemented as two separate components for input and output functions, in some embodiments the touch sensitive surface may be integrated with the display panel to implement the input and output functions.
The electronic device may also include at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or backlight when the electronic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the electronic device are not described in detail herein.
Audio circuitry 606, speakers, and a microphone may provide an audio interface between the user and the electronic device. The audio circuit 606 may transmit the received electrical signal after audio data conversion to a speaker, where the electrical signal is converted to a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 606 and converted into audio data, which are processed by the audio data output processor 608 for transmission via the RF circuit 601 to, for example, another electronic device, or which are output to the memory 602 for further processing. The audio circuit 606 may also include an ear bud jack to provide communication of the peripheral ear bud with the electronic device.
WiFi belongs to a short-distance wireless transmission technology, and the electronic equipment can help a user to send and receive emails, browse webpages, access streaming media and the like through the WiFi module 607, so that wireless broadband Internet access is provided for the user. Although fig. 8 shows a WiFi module 607, it is understood that it does not belong to the necessary constitution of the electronic device, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 608 is a control center of the electronic device that uses various interfaces and lines to connect the various parts of the overall handset, performing various functions of the electronic device and processing the data by running or executing software programs and/or modules stored in the memory 602, and invoking data stored in the memory 602, thereby performing overall monitoring of the handset. Optionally, the processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The electronic device also includes a power supply 609 (e.g., a battery) for powering the various components, which may be logically connected to the processor 608 via a power management system so as to perform functions such as managing charge, discharge, and power consumption via the power management system. The power supply 609 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the electronic device may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the processor 608 in the electronic device loads executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 608 executes the application programs stored in the memory 602, so as to implement various functions:
acquiring pixel units of each color channel of an image to be processed; each pixel unit comprises a plurality of pixel points;
according to the gray value of each pixel point in the pixel unit, obtaining the address code of each pixel point in the pixel unit and the pixel code corresponding to each address code;
Obtaining compression coding data of the pixel unit according to the address coding of each pixel point in the pixel unit and the pixel coding corresponding to each address coding;
or by the processor 608 running an application stored in the memory 602 to perform various functions:
acquiring compression coding data of pixel units of each color channel of an image to be processed; the compression coding data comprises address codes of each pixel point in the pixel unit and pixel codes corresponding to the address codes;
decoding the pixel codes corresponding to each address code to obtain a gray value corresponding to each address code;
obtaining the gray value of each pixel point in the pixel unit according to the address code of each pixel point in the pixel unit and the gray value corresponding to each address code;
and carrying out color channel reconstruction according to the gray value of each pixel point in the pixel unit to obtain a decompressed image.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present invention provides a storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform steps in any one of the image processing methods provided by the embodiment of the present invention. For example, the instructions may perform the steps of:
acquiring pixel units of each color channel of an image to be processed; each pixel unit comprises a plurality of pixel points;
according to the gray value of each pixel point in the pixel unit, obtaining the address code of each pixel point in the pixel unit and the pixel code corresponding to each address code;
obtaining compression coding data of the pixel unit according to the address coding of each pixel point in the pixel unit and the pixel coding corresponding to each address coding;
or the instructions may perform the steps of:
acquiring compression coding data of pixel units of each color channel of an image to be processed; the compression coding data comprises address codes of each pixel point in the pixel unit and pixel codes corresponding to the address codes;
decoding the pixel codes corresponding to each address code to obtain a gray value corresponding to each address code;
obtaining the gray value of each pixel point in the pixel unit according to the address code of each pixel point in the pixel unit and the gray value corresponding to each address code;
And carrying out color channel reconstruction according to the gray value of each pixel point in the pixel unit to obtain a decompressed image.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The instructions stored in the storage medium may perform steps in any image processing method provided by the embodiments of the present invention, so that the beneficial effects that any image processing method provided by the embodiments of the present invention can be achieved, which are detailed in the previous embodiments and are not described herein.
The foregoing has described in detail an image processing method, an electronic device and a storage medium according to embodiments of the present invention, and specific examples have been applied to illustrate the principles and embodiments of the present invention, where the foregoing examples are only for aiding in understanding the method and core idea of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present invention, the present description should not be construed as limiting the present invention.

Claims (10)

1. An image processing method, the method comprising:
acquiring pixel units of each color channel of an image to be processed; each pixel unit comprises a plurality of pixel points;
according to the gray value of each pixel point in the pixel unit, obtaining the address code of each pixel point in the pixel unit and the pixel code corresponding to each address code;
and obtaining compression coding data of the pixel unit according to the address coding of each pixel point in the pixel unit and the pixel coding corresponding to each address coding.
2. The image processing method according to claim 1, wherein the obtaining the address code of each pixel in the pixel unit and the pixel code corresponding to each address code according to the gray value of each pixel in the pixel unit includes:
according to the gray value of each pixel point in the pixel unit, the frequency of occurrence of each gray value is obtained;
according to the frequency of each gray value, obtaining the address code corresponding to each gray value;
obtaining the address code of each pixel point in the pixel unit according to the address code corresponding to each gray value;
And carrying out differential processing on the gray values corresponding to the address codes to obtain a differential result, and obtaining the pixel codes corresponding to the address codes in the pixel unit according to the differential result.
3. The image processing method according to claim 2, wherein the obtaining the address code corresponding to each of the gradation values according to the frequency of occurrence of each of the gradation values includes:
according to the frequency of each gray value, sequencing each gray value according to the sequence from big to small to obtain a gray value sequence of the pixel unit;
and performing address allocation on each gray value in the gray value sequence according to the sequence position of each gray value in the gray value sequence to obtain an address code corresponding to each gray value in the gray value sequence.
4. The image processing method according to claim 2, wherein the obtaining, according to the difference result, a pixel code corresponding to each address code in the pixel unit includes:
aiming at each address code in the pixel unit, if the difference result of the address code is smaller than or equal to a preset difference threshold value, the difference result of the address code is coded in a preset coding mode to obtain a pixel code corresponding to the address code;
If the difference result of the address code is larger than a preset difference threshold value, coding a gray value corresponding to the address code in a preset coding mode to obtain a gray code corresponding to the address code, and splicing a first preset identification code and the gray code corresponding to the address code to obtain a pixel code corresponding to the address code; the first preset identification code characterizes that the pixel code corresponding to the address code is a gray value of the address code.
5. The image processing method according to claim 2, wherein before the difference processing is performed on the gradation value corresponding to each of the address codes, the method comprises:
obtaining the number of address codes in the pixel unit according to the address codes of each pixel point in the pixel unit;
if the number of the address codes in the pixel unit is greater than or equal to a first preset number threshold, executing the step of performing differential processing on the gray value corresponding to each address code;
and if the number of the address codes in the pixel units is smaller than a first preset number threshold, determining the gray value corresponding to the address codes in the pixel units as the pixel code corresponding to each address code.
6. The image processing method according to any one of claims 1 to 5, wherein the obtaining the compression encoded data of the pixel unit according to the address code of each pixel point in the pixel unit and the pixel code corresponding to each address code includes:
obtaining the number of address codes in the pixel unit according to the address codes of each pixel point in the pixel unit;
grouping the address codes of each pixel point in the pixel unit according to the number of the address codes in the pixel unit to obtain at least one address code combination of the pixel unit;
splicing the address codes in each address code combination to obtain at least one spliced address code of the pixel unit;
and obtaining compression coding data of the pixel unit according to at least one spliced address code of the pixel unit and the pixel code corresponding to each address code.
7. The image processing method according to claim 6, wherein the obtaining the compression encoded data of the pixel unit according to at least one concatenation address code of the pixel unit and the pixel code corresponding to each of the address codes includes:
If the pixel codes corresponding to the address codes and the pixel codes corresponding to the subsequent address codes adjacent to the address codes carry second preset identification codes, merging the pixel codes corresponding to the address codes and the pixel codes corresponding to the subsequent address codes adjacent to the address codes to obtain at least one merged pixel code of the pixel unit; determining at least one splicing address code and at least one combined pixel code of the pixel unit as compression coding data of the pixel unit;
or if the sum of the number of the spliced address codes and the number of the pixel codes is greater than the number of the pixel points in the pixel unit, determining the gray value of each pixel point in the pixel unit as compression coding data of the pixel unit; and if the sum of the number of the spliced address codes and the number of the pixel codes is smaller than or equal to the number of the pixel points in the pixel unit, determining the spliced address codes and the pixel codes corresponding to the address codes as compression coding data of the pixel unit.
8. An image processing method, the method comprising:
Acquiring compression coding data of pixel units of each color channel of an image to be processed; the compression coding data comprises address codes of each pixel point in the pixel unit and pixel codes corresponding to the address codes;
decoding the pixel codes corresponding to the address codes to obtain gray values corresponding to the address codes;
obtaining the gray value of each pixel point in the pixel unit according to the address code of each pixel point in the pixel unit and the gray value corresponding to each address code;
and carrying out color channel reconstruction according to the gray value of each pixel point in the pixel unit to obtain a decompressed image.
9. An electronic device comprising a memory and a processor; the memory stores an application program, and the processor is configured to execute the application program in the memory to perform the operations in the method of any one of claims 1 to 7 or to perform the operations in the method of claim 8.
10. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the method of any one of claims 1 to 7 or to perform the steps of the method of claim 8.
CN202310885960.XA 2023-07-17 2023-07-17 Image processing method, electronic device, and storage medium Pending CN117412055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310885960.XA CN117412055A (en) 2023-07-17 2023-07-17 Image processing method, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310885960.XA CN117412055A (en) 2023-07-17 2023-07-17 Image processing method, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
CN117412055A true CN117412055A (en) 2024-01-16

Family

ID=89496851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310885960.XA Pending CN117412055A (en) 2023-07-17 2023-07-17 Image processing method, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN117412055A (en)

Similar Documents

Publication Publication Date Title
CN109151468B (en) Image data encoding and decoding methods and devices
CN106776677B (en) File conversion method, device and file transmission system
US9710929B2 (en) Method and apparatus for lossless image compression
US10986332B2 (en) Prediction mode selection method, video encoding device, and storage medium
US11297328B2 (en) Video coding method, device, device and storage medium
CN109151477B (en) Image data encoding and decoding methods and devices
US20140029864A1 (en) Compression encoding and decoding method and apparatus
CN114610650A (en) Memory compression method and device, storage medium and electronic equipment
CN111223438B (en) Compression method and device of pixel compensation table
CN106961612B (en) Image processing method and device
CN113220651B (en) Method, device, terminal equipment and storage medium for compressing operation data
CN110418209B (en) Information processing method applied to video transmission and terminal equipment
CN112888024B (en) Data processing method, data processing device, storage medium and electronic equipment
CN117412055A (en) Image processing method, electronic device, and storage medium
CN111263216B (en) Video transmission method, device, storage medium and terminal
CN105187831A (en) Image compression method and apparatus
CN113038179A (en) Video encoding method, video decoding method, video encoding device, video decoding device and electronic equipment
CN109003313B (en) Method, device and system for transmitting webpage picture
CN115883839B (en) Image verification method, device, equipment and computer readable storage medium
CN117742577A (en) Image processing method, device, storage medium and electronic equipment
EP4354876A1 (en) Encoding control method and apparatus, and decoding control method and apparatus
CN110740325B (en) Texture compression method, device, equipment and storage medium
WO2023025024A1 (en) Point cloud attribute coding method, point cloud attribute decoding method and terminal
US20240137579A1 (en) Encoding Control Method and Apparatus, and Decoding Control Method and Apparatus
CN117170761A (en) Image display method, device, terminal 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