CN113613014A - Image decoding method and device and image coding method and device - Google Patents

Image decoding method and device and image coding method and device Download PDF

Info

Publication number
CN113613014A
CN113613014A CN202110886797.XA CN202110886797A CN113613014A CN 113613014 A CN113613014 A CN 113613014A CN 202110886797 A CN202110886797 A CN 202110886797A CN 113613014 A CN113613014 A CN 113613014A
Authority
CN
China
Prior art keywords
information
address packet
generating
pixel point
packet
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
CN202110886797.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.)
Beijing Aixin Technology Co ltd
Original Assignee
Beijing Aixin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Aixin Technology Co ltd filed Critical Beijing Aixin Technology Co ltd
Priority to CN202110886797.XA priority Critical patent/CN113613014A/en
Publication of CN113613014A publication Critical patent/CN113613014A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

Landscapes

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

Abstract

The application provides an image decoding method and device and an image coding method and device, wherein the image decoding method comprises the steps of obtaining position information of a preset area of a coded image; generating reading address information of each pixel point in a preset area according to the position information of the preset area, wherein the reading address information is used for searching original coding information of the corresponding pixel point; generating at least one reading address packet according to the reading address information of a plurality of pixel points in a preset area, wherein each reading address packet comprises the reading address information of a preset number of continuous pixel points; and generating decoding configuration information corresponding to each reading address packet according to each reading address packet and the position information of the pixel points in each reading address packet, and decoding the preset region of the coded image according to each reading address packet and the corresponding decoding configuration information.

Description

Image decoding method and device and image coding method and device
Technical Field
The present application relates to the field of image encoding and decoding technologies, and in particular, to an image decoding method and apparatus, and an image encoding method and apparatus.
Background
In the actual image transmission process, an image coding and decoding module is usually provided to compress the transmission bandwidth and improve the transmission efficiency.
In some image segmentation and target detection positioning scenes, the original image needs to be intercepted or segmented, and an interested area is selected from the original image to perform corresponding operation, but the current image coding and decoding methods are all directed at an entire frame of image, cannot realize coding and decoding of partial images in a frame of image, and have the problem of low applicability.
Disclosure of Invention
An object of the embodiments of the present application is to provide an image decoding method and apparatus, and an image encoding method and apparatus, so as to solve the above problems.
In a first aspect, the present invention provides an image decoding method, comprising: acquiring position information of a preset area of a coded image; generating reading address information of each pixel point in a preset area according to position information of the preset area, wherein the reading address information is used for searching original coding information of the corresponding pixel point; generating at least one reading address packet according to the reading address information of a plurality of pixel points in a preset area, wherein each reading address packet comprises the reading address information of a preset number of continuous pixel points; and generating decoding configuration information corresponding to each reading address packet according to each reading address packet and the position information of the pixel points in each reading address packet, and decoding the preset region of the coded image according to each reading address packet and the corresponding decoding configuration information.
In the designed image decoding method, the scheme of the application realizes the decoding of the local area of the whole frame of the encoded image by acquiring the position information of the preset area of the encoded image, generating the reading address information of each pixel point in the preset area according to the position information of the preset area, generating at least one reading address packet according to the reading address information of a plurality of pixel points in the preset area, generating the decoding configuration information corresponding to each reading address packet according to each reading address packet and the position information of the pixel points in each reading address packet, and then decoding the preset area of the encoded image based on each reading address packet and the corresponding decoding configuration information.
In an optional implementation manner of the first aspect, the obtaining the position information of the preset region of the encoded image includes: acquiring position information of a starting pixel point of a preset region of a coded image and position information of an ending pixel point of the preset region; the generating of the read address information of each pixel point in the preset area according to the position information of the preset area includes: and sequentially generating the reading address information of each pixel point from the initial pixel point to the termination pixel point according to the position information of the initial pixel point and the position information of the termination pixel point.
In an optional implementation manner of the first aspect, the generating at least one read address packet according to the read address information of the plurality of pixel points in the preset area includes: and counting from the reading address information of the initial pixel point, and forming a reading address packet after the number reaches the preset number to generate at least one reading address packet.
In an optional implementation manner of the first aspect, the generating, according to the location information of the preset area, the reading address information of each pixel point in the preset area includes: generating first reading address information and second reading address information of each pixel point in a preset area according to position information of the preset area, wherein the first reading address information is used for searching coding information corresponding to brightness information of the corresponding pixel point, and the second reading address information is used for searching coding information corresponding to chrominance information of the corresponding pixel point; and integrating the first reading address information and the second reading address information of each pixel point to obtain the reading address information of each pixel point in the preset area.
In an optional implementation manner of the first aspect, the generating at least one read address packet according to the read address information of the plurality of pixel points in the preset area includes: generating at least one first reading address packet according to first reading address information of a plurality of pixel points in a preset area, and generating a corresponding second reading address packet according to second reading address information of a plurality of pixel points generating the first reading address packet; the generating of the decoding configuration information according to each reading address packet and the position information of the pixel points in each reading address packet includes: and generating first decoding configuration information according to the first reading address packet and the position information of the pixel points in the first reading address packet, generating second decoding configuration information according to the second reading address packet corresponding to the first reading address packet and the position information of the pixel points in the second reading address packet, and decoding the preset region of the coded image according to the first reading address packet, the first decoding configuration information, the corresponding second reading address packet and the corresponding second decoding configuration information.
In an optional implementation manner of the first aspect, after the generating, according to each read address packet and the position information of the pixel point in each read address packet, decoding configuration information corresponding to each read address packet, so as to decode the preset region of the encoded image according to each read address packet and the corresponding decoding configuration information, the method further includes: generating writing address information of each pixel point in a preset area according to the position information of each pixel point in the preset area, wherein the writing address information is used for writing the coded data of the corresponding pixel point; generating at least one write address packet according to write address information of a plurality of pixel points in a preset area, wherein each write address packet comprises the write address information of a preset number of continuous pixel points; and generating coding configuration information corresponding to each read-write address packet according to each write-in address packet and the position information of the pixel points in each write-in address packet, and coding the decoded information of each pixel point in the preset area according to each write-in address packet and the corresponding writing configuration information.
In a second aspect, the present invention provides a method of encoding an image, the method comprising: acquiring position information of a preset area of an image; generating writing address information of each pixel point in a preset area according to the position information of the preset area, wherein the writing address information is used for writing the coded data of the corresponding pixel point; generating at least one write address packet according to write address information of a plurality of pixel points in a preset area, wherein each write address packet comprises the write address information of a preset number of continuous pixel points; and generating coding configuration information corresponding to each writing address packet according to each writing address packet and the position information of the pixel points in each writing address packet, and coding a preset region of the image according to each writing address packet and the corresponding coding configuration information.
In the designed image coding method, the scheme of the application realizes the coding process of the local area of the whole frame of the uncoded coded image by acquiring the position information of the preset area of the whole frame of the uncoded image, then generating the writing address information of each pixel point in the preset area according to the position information of the preset area, generating at least one writing address packet according to the writing address information of a plurality of pixel points in the preset area, generating the coding configuration information corresponding to each writing address packet according to each writing address packet and the position information of the pixel points in each writing address packet, and then coding the preset area of the whole frame of the uncoded image according to each writing address packet and the corresponding coding configuration information, thereby enhancing the applicability of the current image coding method and improving the flexibility of image coding, and the local area of the whole frame of coded image which is not coded can be compressed and transmitted, thereby improving the transmission efficiency.
In an optional implementation manner of the second aspect, the obtaining position information of the preset region of the image includes: acquiring position information of a starting pixel point of a preset region of an image and position information of an ending pixel point of the preset region; the generating of the write address information of each pixel point in the preset area according to the position information of the preset area includes: and sequentially generating writing address information of each pixel point from the initial pixel point to the termination pixel point according to the position information of the initial pixel point and the position information of the termination pixel point.
In an optional implementation manner of the second aspect, the generating at least one write address packet according to write address information of a plurality of pixel points in a preset area includes: counting is started from the writing address information of the initial pixel points, and a writing address packet is formed after the number reaches the preset number to generate at least one writing address packet.
In an optional implementation manner of the second aspect, the generating, according to the position information of the preset area, write address information of each pixel point in the preset area includes: generating first write-in address information and second write-in address information of each pixel point in a preset area according to position information of the preset area, wherein the first write-in address information is used for writing decoding information corresponding to brightness information of the corresponding pixel point, and the second write-in address information is used for writing decoding information corresponding to chrominance information of the corresponding pixel point; and integrating the first write address information and the second write address information of each pixel point to obtain the write address information of each pixel point in the preset area.
In an optional implementation manner of the second aspect, the generating at least one write address packet according to write address information of a plurality of pixel points in a preset area includes: generating at least one first write address packet according to first write address information of a plurality of pixel points in a preset area, and generating a corresponding second write address packet according to second write address information of a plurality of pixel points generating the first write address packet; the generating of the coding configuration information according to each write address packet and the position information of the pixel points in each write address packet includes: and generating first coding configuration information according to each first write address packet and the position information of the pixel points in each first write address packet, generating second coding configuration information according to a second write address packet corresponding to each first write address packet and the position information of the pixel points in each second write address packet, and coding a preset region of the image according to each first write address packet, the first coding configuration information, the corresponding second write address packet and the corresponding second coding configuration information.
In an optional implementation manner of the second aspect, after the generating encoding configuration information corresponding to each write address packet according to each write address packet and position information of a pixel point in each write address packet so as to encode a preset region of an image according to each write address packet and the corresponding encoding configuration information, the method further includes: generating reading address information of each pixel point in a preset area according to the position information of each pixel point in the preset area, wherein the reading address information is used for searching coded data of the corresponding pixel point; generating at least one reading address packet according to the reading address information of a plurality of pixel points in a preset area, wherein each reading address packet comprises the reading address information of a preset number of continuous pixel points; and generating decoding configuration information corresponding to each reading address packet according to each reading address packet and the position information of the pixel points in each reading address packet, and decoding the data after each pixel point in the preset area is coded according to each reading address packet and the corresponding decoding configuration information.
In a third aspect, the present invention provides an image decoding apparatus, comprising: the first acquisition module is used for acquiring the position information of a preset area of the coded image; the first generating module is used for generating reading address information of each pixel point in a preset area according to position information of the preset area, wherein the reading address information is used for searching original coding information of the corresponding pixel point; generating at least one reading address packet according to the reading address information of a plurality of pixel points in a preset area, wherein each reading address packet comprises the reading address information of a preset number of continuous pixel points; and generating decoding configuration information corresponding to each reading address packet according to each reading address packet and the position information of the pixel points in each reading address packet, so as to decode the preset region of the coded image according to each reading address packet and the corresponding decoding configuration information.
In the image decoding device designed above, in the scheme of the present application, the position information of the preset region of the encoded image is obtained, then the read address information of each pixel point in the preset region is generated according to the position information of the preset region, at least one read address packet is generated according to the read address information of a plurality of pixel points in the preset region, the decoding configuration information corresponding to each read address packet is generated according to each read address packet and the position information of the pixel points in each read address packet, and then the preset region of the encoded image is decoded based on each read address packet and the corresponding decoding configuration information.
In a fourth aspect, the present invention provides an image encoding apparatus, comprising: the second acquisition module is used for acquiring the position information of the preset area of the image; the second generating module is used for generating writing address information of each pixel point in a preset area according to the position information of the preset area, and the writing address information is used for writing the coded data of the corresponding pixel point; generating at least one write address packet according to write address information of a plurality of pixel points in a preset area, wherein each write address packet comprises the write address information of a preset number of continuous pixel points; and generating coding configuration information corresponding to each writing address packet according to each writing address packet and the position information of the pixel points in each writing address packet, so as to code the preset region of the image according to each writing address packet and the corresponding coding configuration information.
In the image coding device designed above, the scheme of the present application obtains the position information of the preset region of the whole frame image without coding, then generates the write address information of each pixel point in the preset region according to the position information of the preset region, generates at least one write address packet according to the write address information of a plurality of pixel points in the preset region, generates the coding configuration information corresponding to each write address packet according to each write address packet and the position information of the pixel points in each write address packet, and then codes the preset region of the whole frame image without coding based on each write address packet and the corresponding coding configuration information, so that the scheme of the present application realizes the coding process of the local region of the whole frame coded image without coding, further enhances the applicability of the current image coding method, and improves the flexibility of image coding, and the local area of the whole frame of coded image which is not coded can be compressed and transmitted, thereby improving the transmission efficiency.
In a fifth aspect, an embodiment provides an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor executes the computer program to perform the method in the first aspect or any optional implementation manner of the first aspect, or any optional implementation manner of the second aspect or the second aspect.
In a sixth aspect, embodiments provide a storage medium having a computer program stored thereon, where the computer program is executed by a processor to perform the method in the first aspect, any optional implementation manner of the first aspect, or any optional implementation manner of the second aspect.
In a seventh aspect, an embodiment provides a computer program product, which when run on a computer, causes the computer to execute the method in any optional implementation manner of the first aspect or any optional implementation manner of the second aspect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a first flowchart of an image decoding method according to an embodiment of the present application;
fig. 2 is a second flowchart of an image decoding method according to an embodiment of the present application;
fig. 3 is a third flowchart of an image decoding method according to an embodiment of the present application;
fig. 4 is a fourth flowchart of an image decoding method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an image decoding apparatus according to an embodiment of the present application;
fig. 6 is a first flowchart of an image encoding method according to an embodiment of the present application;
FIG. 7 is a second flowchart of an image encoding method according to an embodiment of the present application;
FIG. 8 is a third flowchart of an image encoding method according to an embodiment of the present application;
FIG. 9 is a fourth flowchart of an image encoding method according to an embodiment of the present application;
FIG. 10 is a schematic structural diagram of an image encoding apparatus according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Icon: 500-a first acquisition module; 510-a first generation module; 1000-a second obtaining module; 1010-a second generation module; 11-an electronic device; 1101-a processor; 1102-a memory; 1103 — communication bus.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
First embodiment
An embodiment of the present application provides an image decoding method, as shown in fig. 1, the image decoding method includes:
step S100: position information of a preset region of the encoded image is acquired.
Step S110: and generating the reading address information of each pixel point in the preset area according to the position information of the preset area.
Step S120: and generating at least one reading address packet according to the reading address information of the plurality of pixel points in the preset area.
Step S130: and generating decoding configuration information corresponding to each reading address packet according to each reading address packet and the position information of the pixel points in each reading address packet, and decoding the preset region of the coded image according to each reading address packet and the corresponding decoding configuration information.
In step S100, the encoded image may be an encoded whole frame image, and the preset region of the encoded image may be a local region of the encoded whole frame image. The mode of acquiring the position information of the preset region of the coded image can be acquired after the CPU sends the position information to the execution main body of the scheme, or the mode can be acquired after the CPU sends the position information to a register configured by the execution main body of the scheme in advance, and further the position information stored in the register is called to acquire the position information when the step S100 is executed; as a possible implementation manner, the position information of the preset region of the encoded image may be position information of a starting pixel point and position information of a terminating pixel point in the preset region; as another possible implementation, the location information of the preset region of the encoded image may also be the location information of each pixel point in the preset region.
In step S110, the present solution may generate read address information of each pixel point in the preset area according to the position information of the preset area, wherein the encoded data of the encoded image may be stored after being received in the present solution, for example, in a double data rate synchronous dynamic random access memory (DDR), and the stored encoded data is stored by a corresponding address generated by the position coordinates of the pixel point of the encoded data in the image. As a possible implementation manner, on the basis that the position information of the preset region is the position information of the starting pixel point and the position information of the ending pixel point in the preset region, the reading address information may be generated from the starting pixel point, and corresponding reading address information is generated sequentially according to the position information of each pixel point between the starting pixel point and the ending pixel point.
In step S120, since the decoding process has a requirement on the data volume of the data, the read address information of the plurality of pixels generated in step S110 needs to be segmented according to the preset number, so as to obtain at least one read address packet, where the preset number may be generally 64 × 4 pixels or 32 × 4 pixels; as a possible implementation manner, the manner of generating the at least one read address packet may be to count from the read address information of the starting pixel point, and form one read address packet after the number reaches a preset number, so as to form the at least one read address packet. It should be noted that, when the number of the pixels is less than the preset number of one read address packet, the read address packet is supplemented according to the preset invalid address data, so as to form one read address packet.
In step S130, the present solution generates decoding configuration information corresponding to each reading address packet according to each reading address packet and position information of pixel points in each reading address packet, where each decoding configuration information includes a size of the corresponding reading address packet, that is, a number of pixels included; each decoding configuration information also comprises the bit number of the image, the number of pixels in the horizontal direction in the current reading address packet, and the horizontal coordinate range and the vertical coordinate range occupied by the current reading address packet; the size of the reading address packet, the Bit number of the image and the number of pixels in the horizontal direction can be obtained through advanced configuration, the horizontal coordinate range occupied by the current reading address packet can be obtained through accumulation of the horizontal coordinate of the initial pixel point in the current reading address packet and the number of pixels in a row, and the vertical coordinate range occupied by the current reading address packet can be obtained through accumulation of the vertical coordinate of the initial pixel point in the current reading address packet and the number of pixels in a column.
After the decoding configuration information corresponding to each read address packet is obtained in step S130, the scheme of the present application may decode the preset region of the encoded image in the following manner, as a possible implementation manner, assuming that an execution main body of the scheme of the present application is a DMA processor, and the DMA processor is connected to a decoder, then, after step S130, the scheme may send each read address packet and the decoding configuration information corresponding to each read address packet to the decoder, so that the decoder may decode the preset region of the encoded image according to each read address packet and the decoding configuration information corresponding to each read address packet, and further obtain the decoding information corresponding to the preset region of the encoded image.
As another possible implementation manner, assuming that the execution subject of the present disclosure is a chip combining a DMA processor and a decoder, after step S130, the present disclosure may directly decode the predetermined region of the encoded image according to each read address packet and the decoding configuration information corresponding to each read address packet. In the decoding process, the coding information of each pixel point can be found according to the reading address information of each pixel point in each reading address packet, and then the coding information of each pixel point is decoded according to the decoding configuration information, so that the decoding information of each pixel point is obtained. It should be noted that, in the present application, the focus is to generate the read address packet of the preset region and the corresponding decoding configuration information, and further inform the decoder of where the preset region currently processed is in the whole frame of the encoded image through the read address packet and the corresponding decoding configuration information.
In the designed image decoding method, the scheme of the application realizes the decoding of the local area of the whole frame of the encoded image by acquiring the position information of the preset area of the encoded image, generating the reading address information of each pixel point in the preset area according to the position information of the preset area, generating at least one reading address packet according to the reading address information of a plurality of pixel points in the preset area, generating the decoding configuration information corresponding to each reading address packet according to each reading address packet and the position information of the pixel points in each reading address packet, and then decoding the preset area of the encoded image based on each reading address packet and the corresponding decoding configuration information.
In an alternative embodiment of this embodiment, since the encoding information of the luminance information and the encoding information of the chrominance information of the image in some formats are stored separately, for example, the image format is NV21 or NV12, as shown in fig. 2, the step S110 may include the following steps:
step S200: and generating first reading address information and second reading address information of each pixel point in a preset area according to the position information of the preset area.
Step S210: and integrating the first reading address information and the second reading address information of each pixel point to obtain the reading address information of each pixel point in the preset area.
In step S200, the first read address information is used to search for coding information corresponding to luminance information of a corresponding pixel point, and the second read address information is used to search for coding information corresponding to chrominance information of a corresponding pixel point; the first read address information and the second read address information are determined based on the position information of the pixel points, the first read address information and the second read address information can be stored in different memories or the same memory, and when the first read address information and the second read address information are stored in the same memory, the first read address information and the second read address information are obtained by adopting different conversion means.
In step S210, the integration may be performed in such a manner that the first read address information and the second read address information of the same pixel point are combined to generate the read address information of the corresponding pixel point.
In an alternative implementation manner of this embodiment, on the basis that the above-mentioned encoded information of luminance information and encoded information of chrominance information are separately stored, as shown in fig. 3, step S120 may include the following steps:
step S300: generating at least one first reading address packet according to first reading address information of a plurality of pixel points in a preset area, and generating a corresponding second reading address packet according to second reading address information of a plurality of pixel points generating the first reading address packet.
Step S130 may include the steps of:
step S310: and generating first decoding configuration information according to the first reading address packet and the position information of the pixel points in the first reading address packet, generating second decoding configuration information according to the second reading address packet corresponding to the first reading address packet and the position information of the pixel points in the second reading address packet, and decoding the preset region of the coded image according to the first reading address packet, the first decoding configuration information, the corresponding second reading address packet and the corresponding second decoding configuration information.
In step S300, the plurality of first read address information generate at least one first read address packet, the plurality of second read address information generate a second read address packet, and the first read address information of the pixel point in one first read address packet corresponds to the second read address information in the corresponding second read address packet one to one. For example, the generated first read address information is 1,2,3,4,5 in sequence; the generated second read address information is 6,7,8,9,10 in sequence, wherein 1 and 6 are the same pixel point, 2 and 7 are the same pixel point, … …, then a first read address packet [1,2,3,4,5] is generated, and a second read address packet [6,7,8,9,10] is generated, wherein 1 and 6 are consistent in sequencing position, 2 and 7 are consistent in sequencing position, 3 and 8 are consistent in sequencing position, 4 and 9 are consistent in sequencing position, and 5 and 10 are consistent in sequencing position.
In step S310, in this scheme, first decoding configuration information is generated according to each first read address packet and the position information of the pixel points in each first read address packet, and second decoding configuration information is generated according to a second read address packet corresponding to each first read address packet and the position information of the pixel points in each second read address packet; the method for generating the decoding configuration information is consistent with the above description, and is not repeated here, and finally, the preset region of the encoded image is decoded according to each first read address packet, the first decoding configuration information, the corresponding second read address packet, and the corresponding second decoding configuration information.
In an optional implementation manner of this embodiment, in the scheme of the present application, after decoding the preset region of the encoded image to obtain the decoding information of each pixel point in the preset region, the following steps may be further performed to encode the decoding information of the preset region again, as shown in fig. 4, where the steps include:
step S400: and generating writing address information of each pixel point in the preset area according to the position information of each pixel point in the preset area.
Step S410: and generating at least one write address packet according to the write address information of the plurality of pixel points in the preset area.
Step S420: and generating coding configuration information corresponding to each read-write address packet according to each write-in address packet and the position information of the pixel points in each write-in address packet, and coding the decoded information of each pixel point in the preset area according to each write-in address packet and the corresponding writing configuration information.
In step S400, write address information of each pixel point in the preset region may be generated according to a preset address conversion method in combination with position information of each pixel point, where the write address information is used to write encoded data of the pixel point in the write address after encoding the corresponding pixel point, specifically, a memory in which the encoded data is stored may be preconfigured, and an address conversion method is preconfigured, and then, when step S400 is executed, the write address information may be generated directly according to the address conversion method and the position information of each pixel point.
In step S410, at least one write address packet is further generated according to the write address information of the plurality of pixel points in the preset area, where the write address packet is similar to the description of the read address packet, that is, the write address information of the preset number of consecutive pixel points generates one write address packet, which is not described herein again.
In step S420, the present solution generates coding configuration information corresponding to each write address packet according to each write address packet and position information of the pixel points in each write address packet, where the coding configuration information includes the size of the write address packet, that is, the number of write address information of the pixel points in the write address packet; the Bit number of the image; the number of write-in address packets contained in the horizontal direction of the preset area and the initial write-in address packet of the preset area in the whole image are preset; writing the serial number of the address packet in the horizontal direction; the horizontal position of the requested writing address packet and the longitudinal position of the requested writing address packet are obtained by calculating the horizontal coordinate of the initial pixel point of the writing address packet and the number of the pixel points in the horizontal direction; the longitudinal position of the requested write address packet can be obtained by calculating the longitudinal coordinate of the initial pixel point of the write address packet and the number of pixels in the numerical direction.
After the coding configuration information corresponding to each read-write address packet is obtained, the decoded information of each pixel point in the preset area can be coded according to each write-address packet and the corresponding write-configuration information.
The method for encoding the decoded information of each pixel point in the preset region may include the following steps: as a possible implementation manner, assuming that the execution subject of the present disclosure is a DMA processor, and the DMA processor is connected to the encoder and the decoder, after step S420, the present disclosure may send each write address packet and the encoding configuration information corresponding to each write address packet to the encoder, so that the encoder may re-encode the decoded information of each pixel point in the preset area according to each write address packet and the encoding configuration information corresponding to each write address packet.
As another possible implementation manner, assuming that the execution subject of the present disclosure is a chip combining the DMA processor and the decoder and the encoder, after step S420, the present disclosure may re-encode the decoded information of each pixel point in the preset area according to each write address packet and the encoding configuration information corresponding to each write address packet. The encoding process may be to encode the decoding information of each pixel point again according to the decoding information of each pixel point in each write address packet and the corresponding decoding configuration information, so as to obtain the re-encoding information of each pixel point, and then store the encoding information of each pixel point in the corresponding write address information.
Fig. 5 shows a schematic block diagram of an image encoding apparatus provided in the present application, and it should be understood that the apparatus corresponds to the method embodiment executed in fig. 1 to 4, and can execute the steps related to the foregoing method, and the specific functions of the apparatus can be referred to the description above, and a detailed description is appropriately omitted here to avoid redundancy. The device includes at least one software function that can be stored in memory in the form of software or firmware (firmware) or solidified in the Operating System (OS) of the device. Specifically, the apparatus includes: a first obtaining module 500, configured to obtain position information of a preset region of a coded image; a first generating module 510, configured to generate, according to the location information of the preset region, read address information of each pixel point in the preset region, where the read address information is used to search for original coding information of a corresponding pixel point; generating at least one reading address packet according to the reading address information of a plurality of pixel points in a preset area, wherein each reading address packet comprises the reading address information of a preset number of continuous pixel points; and generating decoding configuration information corresponding to each reading address packet according to each reading address packet and the position information of the pixel points in each reading address packet, so as to decode the preset region of the coded image according to each reading address packet and the corresponding decoding configuration information.
In the image coding device designed above, according to the scheme of the application, the position information of the preset region of the coded image is acquired, the reading address information of each pixel point in the popular river region is generated according to the position information of the preset region, at least one reading address packet is generated according to the reading address information of a plurality of pixel points in the preset region, the decoding configuration information corresponding to each reading address packet is generated according to each reading address packet and the position information of the pixel points in each reading address packet, and the preset region of the coded image is decoded based on each reading address packet and the corresponding decoding configuration information.
In an optional implementation manner of this embodiment, the first obtaining module 500 is specifically configured to obtain position information of a start pixel point of a preset region of the encoded image and position information of an end pixel point of the preset region; the first generating module 510 is specifically configured to sequentially generate, according to the position information of the start pixel and the position information of the end pixel, reading address information of each pixel from the start pixel to the end pixel.
In an optional implementation manner of this embodiment, the first generating module 510 is further specifically configured to count from the read address information of the starting pixel point, and form one read address packet after the number reaches a preset number, so as to generate at least one read address packet.
In an optional implementation manner of this embodiment, the first generating module 510 is further specifically configured to generate, according to the position information of the preset region, first reading address information and second reading address information of each pixel point in the preset region, where the first reading address information is used to search for coding information corresponding to luminance information of the corresponding pixel point, and the second reading address information is used to search for coding information corresponding to chrominance information of the corresponding pixel point; and integrating the first reading address information and the second reading address information of each pixel point to obtain the reading address information of each pixel point in the preset area.
Second embodiment
The present application provides an image encoding method, as shown in fig. 6, the image encoding method including the steps of:
step S600: and acquiring the position information of the preset area of the image.
Step S610: and generating writing address information of each pixel point in the preset area according to the position information of the preset area.
Step S620: and generating at least one write address packet according to the write address information of the plurality of pixel points in the preset area.
Step S630: and generating coding configuration information corresponding to each writing address packet according to each writing address packet and the position information of the pixel points in each writing address packet, and coding a preset region of the image according to each writing address packet and the corresponding coding configuration information.
In step S600, the image described in this embodiment may be a whole frame image that is not encoded, the preset region of the image may be a preset region of the whole frame image that is not encoded, and the manner of obtaining the position information of the preset region of the image may be obtained by sending the position information by the CPU, or may be obtained by sending the position information to a configured register in advance by the CPU, and then obtaining the position information by calling the position information stored in the register when step S100 is executed; as a possible implementation manner, the position information of the preset region of the whole frame image that is not encoded may be the position information of the starting pixel point and the position information of the ending pixel point in the preset region; as another possible implementation, the location information of the preset area of the whole frame image that is not encoded may also be the location information of each pixel point in the preset area.
In step S610, according to the present disclosure, write address information of each pixel point in the preset region may be generated according to the position information of the preset region, where the write address information is used to write the encoded data of each pixel point into a corresponding address for storage, the encoded data of each pixel point may be generated after encoding based on the image data of each pixel point, and the image data of each pixel point may be obtained by sending the encoded data through the CPU.
In step S620, since the encoding process also requires the data amount of the data, the write address information of the plurality of pixels generated in step S410 needs to be segmented according to the preset number, so as to obtain at least one write address packet, where the preset number may be 64 × 4 pixels or 32 × 4 pixels in general; as a possible implementation manner, the manner of generating the at least one write address packet may be to count from the write address information of the initial pixel point, and form one write address packet after the number reaches a preset number, so as to form the at least one write address packet. It should be noted that, when the number of the pixels is less than the preset number of one write address packet, the write address packet is supplemented according to the preset invalid write address data, so as to form a write address packet.
Step S630 is identical to the process performed in step S420 in the first embodiment, and is not described herein again.
After the encoding configuration information corresponding to each write address packet is obtained in step S420, the present solution may encode the preset region of the entire frame of image without encoding in the following manner, as a possible implementation manner, assuming that the execution subject of the present solution is a DMA processor, and the DMA processor is connected to an encoder, then, after step S630, the present solution may send each write address packet and the encoding configuration information corresponding to each write address packet to the encoder, and at the same time, the CPU may send the image data of the preset region of the entire frame of image without encoding to the encoder, so that the encoder may decode the image data of the preset region of the entire frame of image without encoding according to each write address packet and the encoding configuration information corresponding to each write address packet, and further obtain the encoding information corresponding to the image data of the preset region of the entire frame of image without encoding, and then stores the encoded information in the corresponding write address information.
As another possible implementation manner, assuming that the execution subject of the present disclosure is a chip combining a DMA processor and a decoder, after step S130, the present disclosure may directly encode a preset area of the whole frame image that is not encoded according to each write address packet and the encoding configuration information corresponding to each write address packet.
In the designed image coding method, the scheme of the application realizes the coding process of the local area of the whole frame of the uncoded coded image by acquiring the position information of the preset area of the whole frame of the uncoded image, then generating the writing address information of each pixel point in the preset area according to the position information of the preset area, generating at least one writing address packet according to the writing address information of a plurality of pixel points in the preset area, generating the coding configuration information corresponding to each writing address packet according to each writing address packet and the position information of the pixel points in each writing address packet, and then coding the preset area of the whole frame of the uncoded image according to each writing address packet and the corresponding coding configuration information, thereby enhancing the applicability of the current image coding method and improving the flexibility of image coding, and the local area of the whole frame of coded image which is not coded can be compressed and transmitted, thereby improving the transmission efficiency.
In an alternative embodiment of this embodiment, in the case that the luminance information and the chrominance information of the whole frame image that is not encoded are separately stored, as shown in fig. 7, step S410 in this embodiment may include the following steps:
step S700: and generating first write-in address information and second write-in address information of each pixel point in a preset area according to the position information of the preset area.
Step S710: and integrating the first write address information and the second write address information of each pixel point to obtain the write address information of each pixel point in the preset area.
In step S700, the first write address information is used to write the coding information corresponding to the luminance information of the pixel point into the corresponding address for storage, and the second write address information is used to write the coding information corresponding to the chrominance information of the pixel point into the corresponding address for storage; the first write address information and the second write address information are determined based on the position information of the pixel point, the first write address information and the second write address information can be stored in different memories or the same memory, and when the first write address information and the second write address information are stored in the same memory, the first write address information and the second write address information are obtained by adopting different conversion means.
In step S710, the integration may be performed by combining the first write address information and the second write address information of the same pixel point to generate write address information of a corresponding pixel point.
In an alternative embodiment of this embodiment, as shown in fig. 8, on the basis that the luminance information and the chrominance information are separately stored, step S620 may include the following steps:
step S800: generating at least one first write address packet according to first write address information of a plurality of pixel points in a preset area, and generating a corresponding second write address packet according to second write address information of a plurality of pixel points generating the first write address packet.
Step S630 may include the steps of:
step S810: and generating corresponding first coding configuration information according to each first write address packet and the position information of the pixel points in each first write address packet, generating corresponding second coding configuration information according to a second write address packet corresponding to each first write address packet and the position information of the pixel points in each second write address packet, and coding a preset region of the image according to each first write address packet, the corresponding first coding configuration information, the corresponding second write address packet and the corresponding second coding configuration information.
In step S800, the plurality of first write address information generate at least one first write address packet, the plurality of second write address information generate a second write address packet, and the first write address information of the pixel point in one first write address packet corresponds to the second write address information in the corresponding second write address packet one to one. For example, assuming that the preset number of the write address packets is 5 pixels, the generated first write address information is 1,2,3,4,5 in sequence; if the generated second write address information is 6,7,8,9,10 in sequence, then a first write address packet [1,2,3,4,5] is generated based on 1,2,3,4, 5; a second write address packet [6,7,8,9,10] is generated based on 6,7,8,9,10, where 1 and 6 are first write address information and second write address information of the same pixel point, 2 and 7 are first write address information and second write address information of the same pixel point, 3 and 8 are first write address information and second write address information of the same pixel point, 4 and 9 are first write address information and second write address information of the same pixel point, and 5 and 10 are first write address information and second write address information of the same pixel point.
In step S810, the present solution generates corresponding first coding configuration information according to each first write address packet and the position information of the pixel point in each first write address packet, and generates corresponding second coding configuration information according to the second write address packet corresponding to each first write address packet and the position information of the pixel point in each second write address packet; and finally, coding a preset region of the whole frame image without coding according to each first writing address packet, the corresponding first coding configuration information, the corresponding second writing address packet and the corresponding second coding configuration information, obtaining data after coding of each pixel point in the preset region of the whole frame image without coding, and performing corresponding writing storage.
In step S630, the encoding configuration information corresponding to each write address packet is generated according to each write address packet and the position information of the pixel point in each write address packet, so that after the preset region of the image is encoded according to each write address packet and the corresponding encoding configuration information, as shown in fig. 9, the embodiment may further include the following steps:
step S900: and generating the reading address information of each pixel point in the preset area according to the position information of each pixel point in the preset area.
Step S910: and generating at least one reading address packet according to the reading address information of the plurality of pixel points in the preset area.
Step S920: and generating decoding configuration information corresponding to each reading address packet according to each reading address packet and the position information of the pixel points in each reading address packet, and decoding the data after each pixel point in the preset area is coded according to each reading address packet and the corresponding decoding configuration information.
In the above embodiment, after each pixel in the preset region of the whole frame of image without coding is coded to obtain the coding information of each pixel, the present scheme may further decode the coding information of each pixel in the preset region to further obtain the decoded information of the preset region, where steps S900 to S920 are consistent with the processes from step S110 to step S130 in the first embodiment, and are not described herein again.
Fig. 10 shows a schematic block diagram of an image encoding apparatus provided in the present application, and it should be understood that the apparatus corresponds to the method embodiments executed in fig. 6 to 9, and can execute the steps related to the foregoing method, and the specific functions of the apparatus can be referred to the description above, and the detailed description is appropriately omitted here to avoid redundancy. The device includes at least one software function that can be stored in memory in the form of software or firmware (firmware) or solidified in the Operating System (OS) of the device. Specifically, the apparatus includes: a second obtaining module 1000, configured to obtain position information of a preset region of an image; a second generating module 1010, configured to generate, according to the position information of the preset region, write address information of each pixel point in the preset region, where the write address information is used to write encoded data of a corresponding pixel point; generating at least one write address packet according to write address information of a plurality of pixel points in a preset area, wherein each write address packet comprises the write address information of a preset number of continuous pixel points; and generating coding configuration information corresponding to each writing address packet according to each writing address packet and the position information of the pixel points in each writing address packet, so as to code the preset region of the image according to each writing address packet and the corresponding coding configuration information.
In the image coding device designed above, the scheme of the present application obtains the position information of the preset region of the whole frame image without coding, then generates the write address information of each pixel point in the preset region according to the position information of the preset region, generates at least one write address packet according to the write address information of a plurality of pixel points in the preset region, generates the coding configuration information corresponding to each write address packet according to each write address packet and the position information of the pixel points in each write address packet, and then codes the preset region of the whole frame image without coding based on each write address packet and the corresponding coding configuration information, so that the scheme of the present application realizes the coding process of the local region of the whole frame coded image without coding, further enhances the applicability of the current image coding method, and improves the flexibility of image coding, and the local area of the whole frame of coded image which is not coded can be compressed and transmitted, thereby improving the transmission efficiency.
In an optional implementation manner of this embodiment, the second obtaining module 1000 is specifically configured to obtain position information of a start pixel point of a preset region of the encoded image and position information of an end pixel point of the preset region; the second generating module 1010 is specifically configured to sequentially generate write address information of each pixel from the start pixel to the end pixel according to the position information of the start pixel and the position information of the end pixel.
In an optional implementation manner of this embodiment, the second generating module 1010 is further specifically configured to count from the writing address information of the starting pixel point, and form a writing address packet after the number reaches the preset number, so as to generate at least one writing address packet.
As shown in fig. 11, the present application provides an electronic device 11 including: the processor 1101 and the memory 1102, the processor 1101 and the memory 1102 being interconnected and communicating with each other via a communication bus 1103 and/or other form of connection mechanism (not shown), the memory 1102 storing a computer program executable by the processor 1101, the processor 1101 executing the computer program when the computing device is running, so as to perform the method in any one of the alternative implementations of the first embodiment, for example, steps S100 to S130: acquiring position information of a preset area of a coded image; generating reading address information of each pixel point in the preset area according to the position information of the preset area; generating at least one reading address packet according to the reading address information of a plurality of pixel points in a preset area; and generating decoding configuration information corresponding to each reading address packet according to each reading address packet and the position information of the pixel points in each reading address packet, and decoding the preset region of the coded image according to each reading address packet and the corresponding decoding configuration information.
Or when executed, perform the method in any optional implementation manner of the second embodiment, for example, steps S600 to S620: acquiring position information of a preset area of an image; generating writing address information of each pixel point in the preset area according to the position information of the preset area; generating at least one write address packet according to the write address information of a plurality of pixel points in a preset area; and generating coding configuration information corresponding to each writing address packet according to each writing address packet and the position information of the pixel points in each writing address packet, and coding a preset region of the image according to each writing address packet and the corresponding coding configuration information.
The present application provides a storage medium having stored thereon a computer program which, when executed by a processor, performs the method of any of the alternative implementations of the first embodiment or the method of any of the alternative implementations of the second embodiment.
The storage medium may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
The present application provides a computer program product which, when run on a computer, causes the computer to perform the method of any of the alternative implementations of the first embodiment or the method of any of the alternative implementations of the second embodiment.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
It should be noted that the functions, if implemented in the form of software functional modules and sold or used as independent products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (16)

1. An image decoding method, characterized in that the method comprises:
acquiring position information of a preset area of a coded image;
generating reading address information of each pixel point in a preset area according to position information of the preset area, wherein the reading address information is used for searching original coding information of the corresponding pixel point;
generating at least one reading address packet according to the reading address information of a plurality of pixel points in a preset area, wherein each reading address packet comprises the reading address information of a preset number of continuous pixel points;
and generating decoding configuration information corresponding to each reading address packet according to each reading address packet and the position information of the pixel points in each reading address packet, and decoding the preset region of the coded image according to each reading address packet and the corresponding decoding configuration information.
2. The method according to claim 1, wherein the obtaining the position information of the preset region of the encoded image comprises:
acquiring position information of a starting pixel point of a preset region of a coded image and position information of an ending pixel point of the preset region;
the generating of the read address information of each pixel point in the preset area according to the position information of the preset area includes:
and sequentially generating the reading address information of each pixel point from the initial pixel point to the termination pixel point according to the position information of the initial pixel point and the position information of the termination pixel point.
3. The method according to claim 2, wherein the generating at least one read address packet according to the read address information of the plurality of pixel points in the preset area comprises:
and counting from the reading address information of the initial pixel point, and forming a reading address packet after the number reaches the preset number to generate at least one reading address packet.
4. The method according to claim 1, wherein the generating read address information of each pixel point in a preset region according to the position information of the preset region comprises:
generating first reading address information and second reading address information of each pixel point in a preset area according to position information of the preset area, wherein the first reading address information is used for searching coding information corresponding to brightness information of the corresponding pixel point, and the second reading address information is used for searching coding information corresponding to chrominance information of the corresponding pixel point;
and integrating the first reading address information and the second reading address information of each pixel point to obtain the reading address information of each pixel point in the preset area.
5. The method according to claim 4, wherein the generating at least one read address packet according to the read address information of the plurality of pixel points in the preset area comprises:
generating at least one first reading address packet according to first reading address information of a plurality of pixel points in a preset area, and generating a corresponding second reading address packet according to second reading address information of a plurality of pixel points generating the first reading address packet;
the generating of the decoding configuration information according to each reading address packet and the position information of the pixel points in each reading address packet includes:
and generating corresponding first decoding configuration information according to each first reading address packet and the position information of the pixel points in each first reading address packet, generating corresponding second decoding configuration information according to a second reading address packet corresponding to each first reading address packet and the position information of the pixel points in each second reading address packet, and decoding a preset region of the coded image according to each first reading address packet, the corresponding first decoding configuration information, the corresponding second reading address packet and the corresponding second decoding configuration information.
6. The method of claim 1, wherein after the generating of the decoding configuration information corresponding to each of the read address packets according to each of the read address packets and the position information of the pixel points in each of the read address packets so as to decode the preset region of the encoded image according to each of the read address packets and the corresponding decoding configuration information, the method further comprises:
generating writing address information of each pixel point in a preset area according to the position information of each pixel point in the preset area, wherein the writing address information is used for writing the coded data of the corresponding pixel point;
generating at least one write address packet according to write address information of a plurality of pixel points in a preset area, wherein each write address packet comprises the write address information of a preset number of continuous pixel points;
and generating coding configuration information corresponding to each read-write address packet according to each write-in address packet and the position information of the pixel points in each write-in address packet, and coding the decoded information of each pixel point in the preset area according to each write-in address packet and the corresponding writing configuration information.
7. An image encoding method, characterized in that the method comprises:
acquiring position information of a preset area of an image;
generating writing address information of each pixel point in a preset area according to the position information of the preset area, wherein the writing address information is used for writing the coded data of the corresponding pixel point;
generating at least one write address packet according to write address information of a plurality of pixel points in a preset area, wherein each write address packet comprises the write address information of a preset number of continuous pixel points;
and generating coding configuration information corresponding to each writing address packet according to each writing address packet and the position information of the pixel points in each writing address packet, and coding a preset region of the image according to each writing address packet and the corresponding coding configuration information.
8. The method according to claim 7, wherein the acquiring position information of the preset region of the image comprises:
acquiring position information of a starting pixel point of a preset region of an image and position information of an ending pixel point of the preset region;
the generating of the write address information of each pixel point in the preset area according to the position information of the preset area includes:
and sequentially generating writing address information of each pixel point from the initial pixel point to the termination pixel point according to the position information of the initial pixel point and the position information of the termination pixel point.
9. The method according to claim 8, wherein the generating at least one write address packet according to the write address information of the plurality of pixel points in the preset area comprises:
counting is started from the writing address information of the initial pixel points, and a writing address packet is formed after the number reaches the preset number to generate at least one writing address packet.
10. The method according to claim 7, wherein the generating write address information of each pixel point in a preset region according to the position information of the preset region comprises:
generating first write-in address information and second write-in address information of each pixel point in a preset area according to position information of the preset area, wherein the first write-in address information is used for writing decoding information corresponding to brightness information of the corresponding pixel point, and the second write-in address information is used for writing decoding information corresponding to chrominance information of the corresponding pixel point;
and integrating the first write address information and the second write address information of each pixel point to obtain the write address information of each pixel point in the preset area.
11. The method according to claim 10, wherein the generating at least one write address packet according to the write address information of the plurality of pixel points in the preset area comprises:
generating at least one first write address packet according to first write address information of a plurality of pixel points in a preset area, and generating a corresponding second write address packet according to second write address information of a plurality of pixel points generating the first write address packet;
the generating of the coding configuration information according to each write address packet and the position information of the pixel points in each write address packet includes:
and generating corresponding first coding configuration information according to each first write address packet and the position information of the pixel points in each first write address packet, generating corresponding second coding configuration information according to a second write address packet corresponding to each first write address packet and the position information of the pixel points in each second write address packet, and coding a preset region of the image according to each first write address packet, the corresponding first coding configuration information, the corresponding second write address packet and the corresponding second coding configuration information.
12. The method according to claim 7, wherein after the generating of the coding configuration information corresponding to each write address packet according to each write address packet and the position information of the pixel points in each write address packet is performed to code the preset region of the image according to each write address packet and the corresponding coding configuration information, the method further comprises:
generating reading address information of each pixel point in a preset area according to the position information of each pixel point in the preset area, wherein the reading address information is used for searching coded data of the corresponding pixel point;
generating at least one reading address packet according to the reading address information of a plurality of pixel points in a preset area, wherein each reading address packet comprises the reading address information of a preset number of continuous pixel points;
and generating decoding configuration information corresponding to each reading address packet according to each reading address packet and the position information of the pixel points in each reading address packet, and decoding the data after each pixel point in the preset area is coded according to each reading address packet and the corresponding decoding configuration information.
13. An image decoding apparatus, characterized in that the apparatus comprises:
the first acquisition module is used for acquiring the position information of a preset area of the coded image;
the first generating module is used for generating reading address information of each pixel point in a preset area according to position information of the preset area, wherein the reading address information is used for searching original coding information of the corresponding pixel point; generating at least one reading address packet according to the reading address information of a plurality of pixel points in a preset area, wherein each reading address packet comprises the reading address information of a preset number of continuous pixel points; and generating decoding configuration information corresponding to each reading address packet according to each reading address packet and the position information of the pixel points in each reading address packet, so as to decode the preset region of the coded image according to each reading address packet and the corresponding decoding configuration information.
14. An image encoding apparatus, characterized in that the apparatus comprises:
the second acquisition module is used for acquiring the position information of the preset area of the image;
the second generating module is used for generating writing address information of each pixel point in a preset area according to the position information of the preset area, and the writing address information is used for writing the coded data of the corresponding pixel point; generating at least one write address packet according to write address information of a plurality of pixel points in a preset area, wherein each write address packet comprises the write address information of a preset number of continuous pixel points; and generating coding configuration information corresponding to each writing address packet according to each writing address packet and the position information of the pixel points in each writing address packet, so as to code the preset region of the image according to each writing address packet and the corresponding coding configuration information.
15. An electronic device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the method of any one of claims 1 to 6 or 7 to 12 when executing the computer program.
16. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method of any of claims 1 to 6 or 7 to 12.
CN202110886797.XA 2021-08-03 2021-08-03 Image decoding method and device and image coding method and device Pending CN113613014A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110886797.XA CN113613014A (en) 2021-08-03 2021-08-03 Image decoding method and device and image coding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110886797.XA CN113613014A (en) 2021-08-03 2021-08-03 Image decoding method and device and image coding method and device

Publications (1)

Publication Number Publication Date
CN113613014A true CN113613014A (en) 2021-11-05

Family

ID=78339284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110886797.XA Pending CN113613014A (en) 2021-08-03 2021-08-03 Image decoding method and device and image coding method and device

Country Status (1)

Country Link
CN (1) CN113613014A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281539A (en) * 2013-06-07 2013-09-04 华为技术有限公司 Method, device and terminal for image encoding and decoding processing
CN105047116A (en) * 2015-08-21 2015-11-11 昆山龙腾光电有限公司 Image information processing method and device
US20170365070A1 (en) * 2016-06-21 2017-12-21 Fujitsu Limited Encoding program media, encoding method, encoding apparatus, decoding program media, decoding method, and decoding apparatus
CN108900843A (en) * 2018-07-31 2018-11-27 京东方科技集团股份有限公司 Monochrome image compression method, device, medium and electronic equipment
CN110741635A (en) * 2018-06-29 2020-01-31 深圳市大疆创新科技有限公司 Encoding method, decoding method, encoding device, and decoding device
CN110869975A (en) * 2018-11-29 2020-03-06 深圳市大疆创新科技有限公司 Image processing method and apparatus, and video processor
CN110896477A (en) * 2018-09-13 2020-03-20 杭州海康威视数字技术股份有限公司 Video coding method, device, coding equipment and storage medium
CN112258379A (en) * 2020-10-22 2021-01-22 京东方科技集团股份有限公司 Image processing method, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281539A (en) * 2013-06-07 2013-09-04 华为技术有限公司 Method, device and terminal for image encoding and decoding processing
CN105047116A (en) * 2015-08-21 2015-11-11 昆山龙腾光电有限公司 Image information processing method and device
US20170365070A1 (en) * 2016-06-21 2017-12-21 Fujitsu Limited Encoding program media, encoding method, encoding apparatus, decoding program media, decoding method, and decoding apparatus
CN110741635A (en) * 2018-06-29 2020-01-31 深圳市大疆创新科技有限公司 Encoding method, decoding method, encoding device, and decoding device
CN108900843A (en) * 2018-07-31 2018-11-27 京东方科技集团股份有限公司 Monochrome image compression method, device, medium and electronic equipment
CN110896477A (en) * 2018-09-13 2020-03-20 杭州海康威视数字技术股份有限公司 Video coding method, device, coding equipment and storage medium
CN110869975A (en) * 2018-11-29 2020-03-06 深圳市大疆创新科技有限公司 Image processing method and apparatus, and video processor
CN112258379A (en) * 2020-10-22 2021-01-22 京东方科技集团股份有限公司 Image processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108650460B (en) Server, panoramic video storage and transmission method and computer storage medium
CN113298695B (en) Image processing assembly and chip, image processing method and storage medium
JP2022500890A (en) Video image component prediction methods, devices and computer storage media
CN112422868A (en) Data processing method, terminal device and server
CN113905241A (en) Video coding
CN111881104A (en) NFS server, data writing method and device thereof, and storage medium
KR20190013870A (en) Image generation method and device
KR20210042967A (en) Signaling the packing strategy
CN113613014A (en) Image decoding method and device and image coding method and device
US11973981B2 (en) Coding and decoding of an omnidirectional video
CN112672083A (en) Character display method, device, equipment and storage medium
CN116668741A (en) Cloud desktop display method, image display method, device and storage medium
CN115022670B (en) Video file storage method, video file restoration device, video file storage equipment and storage medium
CN111246249A (en) Image encoding method, encoding device, decoding method, decoding device and storage medium
CN113010113B (en) Data processing method, device and equipment
CN113099270B (en) File storage method, decoding method, device, storage medium and electronic device
CN112367521B (en) Display screen content sharing method and device, computer equipment and storage medium
CN108267152B (en) Method and device for determining navigation map
CN114697738B (en) HDCP KEY value encoding and decoding method, device, equipment and storage medium
CN110572676B (en) Video encoding method and apparatus, video decoding method and apparatus, and storage medium
CN117349042A (en) Multi-process data communication method and communication device based on shared memory
CN110060310B (en) File compression method, device and equipment
CN116405789A (en) Live view processing method, image processing method and device
CN118138784A (en) Video segmentation compression method, device, equipment and medium
CN117857811A (en) Video processing method and device and electronic equipment

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