WO2023071584A1 - Image processing method and apparatus, and device, storage medium and program product - Google Patents

Image processing method and apparatus, and device, storage medium and program product Download PDF

Info

Publication number
WO2023071584A1
WO2023071584A1 PCT/CN2022/118849 CN2022118849W WO2023071584A1 WO 2023071584 A1 WO2023071584 A1 WO 2023071584A1 CN 2022118849 W CN2022118849 W CN 2022118849W WO 2023071584 A1 WO2023071584 A1 WO 2023071584A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
height
decoded
pixel set
starting position
Prior art date
Application number
PCT/CN2022/118849
Other languages
French (fr)
Chinese (zh)
Inventor
黎凌宇
张莉
王悦
Original Assignee
北京字节跳动科技有限公司
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 北京字节跳动科技有限公司 filed Critical 北京字节跳动科技有限公司
Publication of WO2023071584A1 publication Critical patent/WO2023071584A1/en

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/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/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/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/174Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a slice, e.g. a line of blocks or a group of blocks
    • 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

Definitions

  • the present application relates to the technical field of image processing, and in particular to an image processing method, device, equipment, storage medium and program product.
  • an information application program may include a long picture with rich graphic content, and the terminal device may display the long picture included in the information application program to the user.
  • the terminal device corresponding to the information application program can send the coded information corresponding to the long picture to the terminal device, and when the user browses the information application program through the terminal device, the terminal device can decode the coded information to obtain the long picture, Then display the long picture to the user.
  • the user usually only browses part of the images in the long image (such as the image at the beginning), so if the terminal device decodes the coded information to obtain the long image, it will cause the terminal device to waste more memory space, thereby causing The news app freezes or crashes, etc.
  • Embodiments of the present application provide an image processing method, device, device, storage medium, and program product, which are used to solve problems such as waste of a lot of memory space in a terminal device, and further cause information application programs to freeze or crash.
  • the embodiment of the present application provides an image processing method, which is applied to a terminal device, and the method includes:
  • the encoded information includes the encoded image corresponding to the original image
  • the image to be decoded is the encoded image corresponding to the target original image in the marked area in the original image;
  • the operation instruction includes the starting position, the first height, and the first width of the marked area
  • the encoding information includes a sequence parameter set
  • determining the image to be decoded in the encoded image includes: judging the start Whether the initial position, the first height and the first width are all preset values
  • determining the image to be decoded in the coded image according to the starting position, the first height, the first width, the second height and the second width includes: according to the starting position, the first height, the first width, the second width Two heights and a second width, judging whether the marked area is located in the coded image;
  • judging whether the marked area is located in the coded image includes:
  • the first height is smaller than the second height, and the first width is smaller than the second width, the marked area is located in the coded image;
  • determining the image to be decoded in the coded image according to the starting position, the first height and the second height includes: determining the region to be decoded according to the starting position, the first height and the second height; The image in the area to be decoded is determined as the image to be decoded.
  • the starting position includes a height starting position; according to the starting position, the first height and the second height, determining the area to be decoded includes: determining the minimum boundary value according to the height starting position; according to the first height, the second height 2. Determine the maximum boundary value for the height and the starting position of the height; determine the CTU line from the minimum boundary value to the maximum boundary value in the coded image as the image to be decoded.
  • determining the minimum boundary value according to the starting position of the height includes: moving the starting position of the height to the right by a third preset value; the third preset value is a preset value corresponding to the encoding method corresponding to the encoded image; A preset value and the maximum value of the difference between the height starting position after the right shift and the second preset value are determined as the minimum boundary value.
  • determining the maximum boundary value according to the first height, the second height, and the starting position of the height includes: shifting the third preset value to the left by the tenth preset value; determining the starting position of the height, the first height, the left The difference between the sum of the third preset value after shifting and the tenth preset value; shifting the difference to the third preset value to the right; and determining the minimum value of the difference between the second height and the right shifting is the maximum boundary value.
  • decoding the image to be decoded to obtain the target original image includes: acquiring decoding reference information; decoding the image to be decoded according to the decoding reference information to obtain the target original image.
  • the decoding information includes the switch identification of the filtering processing tool; obtaining the decoding reference information includes: judging whether the filtering processing tool is turned on according to the switch identification;
  • the fourth preset value of CTU lines located above the image to be decoded and the fifth preset value of CTU lines located below the image to be decoded in the coded image are determined as the first reference decoded image, and according to the first reference Decode the image and determine the decoding reference information;
  • the sixth preset value of CTU lines located above the image to be decoded and the seventh preset value of CTU lines located below the image to be decoded in the coded image are determined as the second reference decoded image, and according to the second reference Decode the image and determine the decoding reference information.
  • the fourth preset number of CTU rows above the image to be decoded includes the first CTU row and the second CTU row
  • the fifth preset number of CTU rows below the image to be decoded includes the third CTU row
  • Determining decoding reference information for the first reference decoded image includes: decoding the first CTU line, the second CTU line and the third CTU line respectively to obtain the first original pixel set, the second original pixel set and the third original pixel set ; Using a filter processing tool to perform in-loop filtering on the first original pixel set and the second original pixel set, respectively, to obtain the first processed pixel set and the second processed pixel set; according to the first processed pixel set, the second processed pixel set and The third original pixel set is used to determine decoding reference information.
  • the first processed pixel set and the second processed pixel set respectively include N rows of pixel data, and N is an integer greater than or equal to 2; according to the first processed pixel set, the second processed pixel set and the third original pixel set, Determining the decoding reference information includes: using the last M rows of pixel data in the N rows of pixel data in the second processing pixel set to replace the last M rows of pixel data in the N rows of pixel data in the first processing pixel set to obtain the corresponding M is a positive integer less than N; the second processed pixel set, the third processed pixel set and the third original pixel set are determined as decoding reference information.
  • the sixth preset number of CTU rows above the image to be decoded includes the first CTU row
  • the seventh preset number of CTU rows below the image to be decoded includes the second CTU row
  • the decoding reference information including: respectively decoding the first CTU line and the second CTU line to obtain the first original pixel set and the second original pixel set
  • the first original pixel set includes N rows of original pixel data
  • using the first The last M lines of original pixel data of N lines of original pixel data in the original pixel set are replaced with the first M lines of original pixel data of N lines of original pixel data in the first original pixel set to obtain a second pixel set
  • the second pixel set and the second original Pixel set determined as decoding reference information.
  • decoding the image to be decoded according to the decoding reference information to obtain the target original image includes: decoding the image to be decoded according to the decoding reference information to obtain reconstructed pixel values; and storing the reconstructed pixel values in a preset area to obtain The image is reconstructed; the size of the preset area is the same as that of the image to be decoded; and the target original image is determined in the reconstructed image according to the starting position, the first height, and the first width.
  • the target original image is determined in the reconstructed image, including: the initial position of the height, and the left shift value after the third preset value is shifted to the left by the minimum boundary value
  • the difference is determined as the top offset; determine the sum of the maximum boundary value and the ninth preset value, shift the third preset value to the left and the value after the value, and the second height and the initial position of the height and the first
  • the minimum value of the height difference is determined as the bottom offset;
  • the width start position of the starting position is determined as the left offset; the second width is summed with the left offset and the first width
  • the difference is determined as the right offset; the top offset, bottom offset, left offset, and right offset indicate the image to be deleted in the reconstructed image; delete the image to be deleted in the reconstructed image image to get the target original image.
  • determining the area to be decoded according to the starting position, the first height, and the second height includes: analyzing and processing the image parameter set included in the encoding information to obtain the position area and the location area of the image slice included in the encoding image Number of slices; if the number of slices is equal to the preset value, then determine the area to be decoded according to the starting position, first height and second height; if the number of slices is not equal to the preset value, delete and mark in the encoded image There are no overlapping image slices, and according to the starting position, the first height and the second height, the area to be decoded is determined in the coded image after the image slice is deleted.
  • the operation instruction is an instruction corresponding to the slide operation; according to the operation instruction and the encoding information, determining the image to be decoded in the encoded image includes: detecting the pause time corresponding to the slide operation; when the pause time exceeds a preset value, at the current The marked area is determined in the display interface; according to the marked area and the coding information, the image to be decoded corresponding to the marked area is determined in the coded image.
  • the embodiment of the present application provides an image processing device, which is applied to a terminal device, and the device includes:
  • the receiving module is used to receive the encoded information sent by the server; the encoded information includes the encoded image corresponding to the original image;
  • an acquisition module configured to acquire operation instructions
  • the determination module is used to determine the image to be decoded in the encoded image according to the operation instruction and the encoding information; the image to be decoded is the encoded image corresponding to the target original image in the marked area in the original image;
  • the processing module is used to decode the image to be decoded to obtain the target original image
  • the display module is used to display the target original image in the calibration area.
  • the operation instruction includes the starting position, the first height and the first width of the marking area, and the encoding information includes a sequence parameter set; the determination module is specifically used to: judge whether the starting position, the first height and the first width are all is the default value;
  • the determining module is specifically configured to: judge whether the marked area is located in the coded image according to the starting position, the first height, the first width, the second height, and the second width;
  • the first height is smaller than the second height, and the first width is smaller than the second width, the marked area is located in the coded image;
  • the determining module is specifically configured to: determine the area to be decoded according to the starting position, the first height and the second height; determine the image in the area to be decoded in the coded image as the image to be decoded.
  • the starting position includes a height starting position; the determination module is specifically used to: determine the minimum boundary value according to the height starting position; determine the maximum boundary value according to the first height, the second height and the height starting position; The CTU line from the minimum boundary value to the maximum boundary value in the coded image is determined as the image to be decoded.
  • the determining module is specifically configured to: move the height starting position to the right by a third preset value; the third preset value is a preset value corresponding to the encoding mode corresponding to the encoded image; the first preset value, and the right
  • the maximum value of the difference between the height starting position after the shift and the second preset value is determined as the minimum boundary value.
  • the determination module is specifically used to: shift the third preset value to the left by the tenth preset value; The difference of the preset value; shifting the difference to the third preset value to the right; determining the minimum value of the difference between the second height and the right shifted value as the maximum boundary value.
  • the processing module is specifically configured to: acquire decoding reference information; decode the image to be decoded according to the decoding reference information to obtain the target original image.
  • the decoding information includes a switch identification of the filter processing tool; the processing module is specifically used to: judge whether the filter processing tool is enabled according to the switch identification;
  • the fourth preset value of CTU lines located above the image to be decoded and the fifth preset value of CTU lines located below the image to be decoded in the coded image are determined as the first reference decoded image, and according to the first reference Decode the image and determine the decoding reference information;
  • the sixth preset value of CTU lines located above the image to be decoded and the seventh preset value of CTU lines located below the image to be decoded in the coded image are determined as the second reference decoded image, and according to the second reference Decode the image and determine the decoding reference information.
  • the fourth preset number of CTU rows above the image to be decoded includes the first CTU row and the second CTU row
  • the fifth preset number of CTU rows below the image to be decoded includes the third CTU row
  • the module is specifically used to: respectively decode the first CTU line, the second CTU line and the third CTU line to obtain the first original pixel set, the second original pixel set and the third original pixel set
  • An original pixel set and a second original pixel set are subjected to in-loop filtering processing to obtain a first processed pixel set and a second processed pixel set; according to the first processed pixel set, the second processed pixel set and the third original pixel set, determine the decoding Reference Information.
  • the first processing pixel set and the second processing pixel set respectively include N rows of pixel data, and N is an integer greater than or equal to 2;
  • the processing module is specifically configured to: use the last row of pixel data in the second processing pixel set M rows of pixel data are replaced with the last M rows of pixel data in the N rows of pixel data in the first processing pixel set to obtain the third processing pixel set corresponding to the first processing pixel set;
  • M is a positive integer less than N;
  • the second processing pixel set, the third processed pixel set and the third original pixel set are determined as decoding reference information.
  • the sixth preset value of CTU rows located above the image to be decoded includes the first CTU row
  • the seventh preset value of CTU rows located below the image to be decoded includes the second CTU row
  • the processing module is specifically used for: Decode the first CTU line and the second CTU line respectively to obtain the first original pixel set and the second original pixel set
  • the first original pixel set includes N lines of original pixel data
  • the last M lines of original pixel data of the first original pixel set are replaced with the first M lines of original pixel data of N lines of original pixel data to obtain a second pixel set
  • the second pixel set and the second original pixel set are determined as decoding reference information .
  • the processing module is specifically used to: decode the image to be decoded according to the decoding reference information to obtain the reconstructed pixel value; store the reconstructed pixel value in a preset area to obtain the reconstructed image; the size of the preset area and the image to be decoded Same; determine the target original image in the reconstructed image according to the starting position, the first height, and the first width.
  • the processing module is specifically used to: determine the difference between the initial height position and the left shift value after the third preset value is shifted to the left by the minimum boundary value as the top offset; determine the maximum boundary value and the ninth The sum of the preset values, the value after the third preset value is shifted to the left and the minimum value of the difference between the second height and the initial position of the height and the first height is determined as the bottom offset; The width starting position of the starting position is determined as the left offset; the difference between the second width and the sum of the left offset and the first width is determined as the right offset; the top offset, bottom The offset, the left offset and the right offset indicate the image to be deleted in the reconstructed image; the image to be deleted is deleted in the reconstructed image to obtain the target original image.
  • the determining module is specifically configured to: analyze and process the image parameter set included in the encoding information to obtain the location area and the number of slices of the image slices included in the encoded image; if the number of slices is equal to a preset value, then According to the starting position, the first height and the second height, determine the area to be decoded; if the number of slices is not equal to the preset value, delete the image slices that do not overlap with the marked area in the coded image, and according to the starting position, The first height and the second height determine the area to be decoded in the coded image after the image slice is deleted.
  • the operation instruction is an instruction corresponding to the sliding operation; the determination module is specifically used to: detect the pause time corresponding to the sliding operation; when the pause time exceeds a preset value, determine the calibration area in the current display interface; according to the calibration area and code Information to determine the image to be decoded corresponding to the marked area in the coded image.
  • the embodiment of the present application further provides a terminal device, including: a processor, and a memory communicatively connected to the processor;
  • the memory stores computer-executable instructions
  • the processor executes the computer-implemented instructions stored in the memory to implement the method of any one of the first aspects.
  • embodiments of the present application provide a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are used to implement the method in any one of the first aspects when executed by a processor.
  • an embodiment of the present application provides a computer program product, including: a computer program; when the computer program is executed by a processor, the method in any one of the first aspects is implemented.
  • the embodiments of the present application provide a computer program, which implements the method in any one of the first aspects when the computer program is executed by a processor.
  • Embodiments of the present application provide an image processing method, device, device, storage medium, and program product, wherein the image processing method includes: receiving encoding information sent by a server; the encoding information includes an encoded image corresponding to the original image; acquiring an operation instruction; According to the operation instruction and encoding information, determine the image to be decoded in the encoded image; the image to be decoded is the encoded image corresponding to the target original image in the marked area in the original image; decode the image to be decoded to obtain the target original image, and place it in the marked area The original image of the target is displayed inside.
  • the image to be decoded is determined in the encoded image, the image to be decoded is decoded, the target original image is obtained, and the target original image is displayed in the marked area, so that the terminal device can realize only the encoded image Part of the coded images in (that is, the images to be decoded) are decoded to obtain the target original images that the user wants to browse, thereby saving the memory space of the terminal device and avoiding the freeze or crash of the information application program.
  • FIG. 1 is a schematic diagram of a scenario proposed in an embodiment of the present application
  • FIG. 2 is a flowchart of an image processing method provided in an embodiment of the present application.
  • FIG. 3 is a flow chart 1 of a method for determining an image to be decoded provided by an embodiment of the present application
  • Fig. 4 provides a schematic diagram of determining an image to be decoded according to an embodiment of the present application
  • FIG. 5 is another schematic diagram for determining an image to be decoded according to an embodiment of the present application.
  • FIG. 6 is a flowchart of a method for obtaining an original image of a target provided by an embodiment of the present application
  • FIG. 7 is a schematic diagram of determining decoding reference information provided by an embodiment of the present application.
  • FIG. 8 is another schematic diagram of determining decoding reference information provided by the embodiment of the present application.
  • FIG. 9 is a schematic diagram of obtaining a reconstructed image provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of determining an original image of a target in a reconstructed image according to an embodiment of the present application.
  • FIG. 11 is the second flow chart of the method for determining the image to be decoded provided by the embodiment of the present application.
  • FIG. 12 is a schematic diagram of a coded image provided by an embodiment of the present application including multiple tiles;
  • FIG. 13 is a schematic diagram of a coded image provided by an embodiment of the present application including multiple slices;
  • FIG. 14 is a schematic structural diagram of an image processing device provided by an embodiment of the present application.
  • FIG. 15 is a schematic hardware diagram of a terminal device provided by an embodiment of the present application.
  • the terminal device when a user browses a long picture (or high-definition video) included in an information application through a terminal device, the terminal device will decode the encoded information corresponding to the long picture (or high-definition video) delivered by the terminal device, To get the completed long picture (or high-definition video), and display the completed long picture (or high-definition video).
  • the inventor thought of: during the browsing process of the user, the terminal device only decodes the image to be encoded to obtain a long image (or High-definition video) part of the image that the user wants to browse, so as to save the memory space of the terminal device, thereby avoiding the freeze or crash of the information application program.
  • FIG. 1 is a schematic diagram of a scenario provided in an embodiment of the present application. As shown in FIG. 1 , it includes: a terminal device and at least one terminal device.
  • An information application program may be installed in the terminal device, and the terminal device is a terminal device corresponding to the information application program.
  • the terminal device In order to save the transmission traffic of the terminal device sending the original image to the terminal device, the terminal device usually encodes the visible original image to obtain the encoding information corresponding to the original image, and sends the encoding information to the terminal device.
  • the terminal device After receiving the encoded information, the terminal device determines the image to be decoded according to the operation instruction and the encoded information, and then decodes the image to be decoded to obtain the target original image and display the target original image.
  • the target original image is a part of the original image that the user wants to browse.
  • the terminal device determines the image to be decoded according to the operation instruction and the encoding information, and then decodes the image to be decoded to obtain the target original image, which can save the memory space of the terminal device and prevent the information application program from freezing or crashing.
  • FIG. 2 is a flowchart of an image processing method provided by an embodiment of the present application. As shown in Figure 2, the method includes:
  • S201 Receive encoding information sent by a server; the encoding information includes an encoded image corresponding to an original image.
  • the execution subject of the embodiment of the present application may be a terminal device, or may be an image processing device installed in the terminal device, and the image processing device may be implemented through a combination of software and/or hardware.
  • the aforementioned terminal device may be a wireless terminal or a wired terminal.
  • a wireless terminal may be a device that provides voice and/or other business data connectivity to a user, a handheld device with a wireless connection function, or other processing device connected to a wireless modem.
  • the wireless terminal can communicate with one or more core network devices via the radio access network (Radio Access Network, referred to as RAN).
  • the wireless terminal can be a mobile terminal, such as a mobile phone (or called a "cellular" phone, or a smart phone) ) and a computer with a mobile terminal.
  • the wireless terminal may also be a Personal Communication Service (PCS for short) phone, a cordless phone, a Session Initiation Protocol (SIP for short) phone, a Wireless Local Loop (WLL for short) station, Personal digital assistant (Personal Digital Assistant, referred to as PDA) and other equipment.
  • PCS Personal Communication Service
  • SIP Session Initiation Protocol
  • WLL Wireless Local Loop
  • PDA Personal Digital Assistant
  • the wireless terminal may also be called a system, a user terminal (User Terminal), or a user device (User Device or User Equipment), which is not limited here.
  • the above-mentioned terminal device may also be a device such as a tablet computer.
  • the encoding information may include an encoded image corresponding to the original image, a sequence parameter set (slice parameter set, SPS), and a picture parameter set (picture parameter set, PPS).
  • the original image is a long image or a high-definition image visible to the user.
  • the original image is a visible image in RGB or YUV format.
  • the operation instruction may be an instruction corresponding to the user's sliding operation.
  • the sliding operation may be a user's sliding operation on the touch screen of the terminal device.
  • the sliding operation can be continuous or paused.
  • the image to be decoded is the coded image corresponding to the target original image in the marked area of the original image.
  • the size of the image to be decoded may be the same as or different from the size of the marked area.
  • the size of the image to be decoded is larger than the size of the marked area.
  • the height of the image to be decoded is equal to the first height of the marked area
  • the width of the image to be decoded is greater than or equal to the first width of the marked area.
  • the height of the image to be decoded is greater than the first height of the marked area
  • the width of the image to be decoded is greater than or equal to the first width of the marked area.
  • S203 may be implemented in the following two manners (mode B1 and manner B2).
  • Mode B1 judging whether the operation instruction includes the initial position of the calibration area, the first height and the first width are all preset values
  • the preset value may be 0 or other values, and the value of the preset value is not limited here.
  • the first height is less than or equal to the second height
  • the first width is less than or equal to the second width
  • the first height being less than or equal to the second height indicates that the Coding Tree Unit (Coding Tree Unit, CTU) row corresponding to the first height in the marked area is included in the CTU row corresponding to the second height in the coded image.
  • CTU Coding Tree Unit
  • the first width being less than or equal to the second width indicates that the CTU line corresponding to the first width in the marked area is included in the CTU line corresponding to the second width in the coded image.
  • the operation instruction is an instruction corresponding to the sliding operation;
  • S203 specifically includes: detecting the pause time corresponding to the sliding operation; when the pause time exceeds a preset value, determining the calibration area in the current display interface; according to the calibration area and coding information, in the The image to be decoded corresponding to the marked area is determined in the coded image.
  • the method B1 can be used to implement the method B2 in which the image to be decoded corresponding to the marked area is determined in the coded image according to the marked area and the coding information.
  • the image to be decoded when the size of the image to be decoded is the same as the size of the marked area, the image to be decoded is decoded to obtain the target original image.
  • the image to be decoded when the size of the image to be decoded is different from the size of the marked area, the image to be decoded is decoded to obtain a decoded image, and the decoded image is clipped according to the size of the marked area to obtain a target original image.
  • the image processing method provided by the embodiment in Fig. 2 includes: according to the operation instruction and the encoding information, determine the image to be decoded in the encoded image, decode the image to be decoded, obtain the target original image, and display the target original image in the marked area, which can realize
  • the terminal device only decodes part of the coded images (that is, the images to be decoded) in the coded images to obtain the target original image that the user wants to browse, thereby saving the memory space of the terminal device and avoiding the freeze or crash of the information application program.
  • the performance of the information application program in the terminal device thereby improving the application experience of the user.
  • FIG. 3 is a first flowchart of a method for determining an image to be decoded provided by an embodiment of the present application. As shown in Figure 3, on the basis of the above S203, the method includes:
  • the initial position, first height and first width of the marked area may be stored.
  • the second height and the second width may be stored.
  • the first height, the first width, the second height, and the second width determine whether the marked area is located in the coded image.
  • the marked area is located in the coded image
  • S303 Determine an image to be decoded in the encoded image according to the starting position, the first height, and the second height.
  • the specific execution method of S303 may include the following two ways (way A1 and way A2).
  • the starting position includes the height starting position; determine the minimum boundary value according to the height starting position; determine the maximum boundary value according to the first height, the second height and the height starting position; encode the minimum boundary value in the image to The CTU row with the maximum boundary value is determined as the image to be decoded.
  • the following method can be used to determine the minimum boundary value:
  • the third preset value is the preset value corresponding to the encoding method corresponding to the encoded image; the first preset value and the height start position after the right shift are the same as the second
  • the minimum value among the differences of the preset values is determined as the minimum boundary value.
  • the minimum boundary value can be obtained by the following formula 1:
  • Min_crop_ctu_row max(F1,(Y0>>C)-F2) (1);
  • Min_crop_ctu_row is the minimum boundary value
  • max is the operation of taking a large value
  • F1 is the first preset value
  • Y0 is the height starting position
  • >> is the right shift symbol
  • - is the minus sign
  • C is the third preset value
  • F2 is the second preset value.
  • F1 may be 0 or other positive integers
  • F2 may be 2 or other positive integers.
  • the following method can be used to determine the maximum boundary value:
  • Max_crop_ctu_row min(H2,(Y0+H1+(F3 ⁇ C)-F3)>>C) (2);
  • Max_crop_ctu_row is the maximum boundary value
  • min is the operation of taking a small value
  • H2 is the second height
  • H1 is the first height
  • F3 is the tenth preset value
  • is the left shift symbol.
  • F3 may be 0 or other positive integers.
  • F3 ⁇ C means shifting the third preset value to the left by the tenth preset value
  • Y0+H1+(F3 ⁇ C) means the above sum value
  • Y0+H1+(F3 ⁇ ⁇ C)-F3 is the above-mentioned difference
  • (Y0+H1+(F3 ⁇ C)-F3)>>C means shifting the above-mentioned difference to the right by a third preset value.
  • FIG. 4 is a schematic diagram of determining an image to be decoded according to an embodiment of the present application. As shown in FIG. 4 , it includes: a coded image 41 , a marked area 42 and an image to be decoded 43 . Wherein, the minimum boundary value above the calibration area 42 is obtained by using Formula 1, and the maximum boundary value below the calibration area 42 is obtained by using Formula 2.
  • the image 43 to be decoded includes: a CTU line where the minimum boundary value is located, a CTU line where the maximum boundary value is located, and a CTU line between the minimum boundary value and the maximum boundary value.
  • the starting position includes the starting position of the height; the coded picture that satisfies the first preset condition in the coded picture is determined as the picture to be decoded, wherein the first preset condition is the first height, the first preset height and The sum of the second preset heights is less than the second height.
  • FIG. 5 is another schematic diagram of determining an image to be decoded according to an embodiment of the present application. As shown in FIG. 5 , it includes: a coded image 51 , a marked area 52 and an image to be decoded 53 . Wherein, the first preset height is located above the first height, and the second preset height is located below the first height.
  • the image to be decoded 53 includes: the first preset height, the sum of the heights of the first height and the second preset height, and the CTU rows spanned.
  • the image to be decoded includes a coded image corresponding to the target original image, thereby improving the accuracy of the target original image obtained by decoding the image to be decoded.
  • FIG. 6 is a flowchart of a method for obtaining an original image of a target provided by an embodiment of the present application. As shown in Figure 6, the method includes:
  • the decoding information includes the switch identification of the filter processing tool; S601 specifically includes: judging whether the filter processing tool is enabled according to the switch identification; row and the fifth preset value CTU row located below the image to be decoded are determined as the first reference decoded image, and the decoding reference information is determined according to the first reference decoded image; otherwise, the sixth preset value in the coded image
  • the CTU lines above the picture to be decoded and the seventh preset CTU lines below the picture to be decoded are determined as the second reference decoded picture, and the decoding reference information is determined according to the second reference decoded picture.
  • the filter processing tool may be any at least one of an adaptive loop filter tool (adaptive loop filter), a deblocking filter tool (deblocking filter), and a sample adaptive compensation tool (SAO).
  • adaptive loop filter adaptive loop filter
  • deblocking filter deblocking filter
  • SAO sample adaptive compensation tool
  • the decoding information includes a first switch identifier corresponding to the deblocking filtering tool and a second switch identifier corresponding to the sample adaptive compensation tool.
  • the filtering tool for removing blockiness is enabled
  • the second switch identification it is determined whether the sample adaptive compensation tool is enabled.
  • the first switch flag is an on flag, it is determined that the deblocking filtering tool is turned on, and if the first switch flag is an off flag, then it is determined that the deblocking filtering tool is off.
  • the fourth preset value can be 2, the fifth preset value can be 1, the sixth preset value can be 1, and the seventh preset value can be 1.
  • the fourth preset value, the fifth preset value The preset value, the sixth preset value, and the seventh preset value can also be other positive integers.
  • the fourth preset CTU rows above the image to be decoded include the first CTU row and the second CTU row
  • Decoding reference information is determined according to the first processed pixel set, the second processed pixel set and the third original pixel set.
  • the first original pixel set is obtained by decoding the first CTU row
  • the second original pixel set is obtained by decoding the second CTU row
  • the third original pixel set is obtained by decoding the third CTU row.
  • the first processed pixel set is obtained by performing in-loop filtering on the first original pixel set
  • the second processed pixel set is obtained by performing in-loop filtering on the second original pixel set.
  • the de-filtering processing tool is used to perform in-loop filtering processing on the first original pixel set and the second original pixel set respectively, to obtain the first processing A pixel set and a second processed pixel set comprising:
  • the in-loop filtering process is performed on the first original pixel set by using the block effect removal filter tool to obtain the first processed pixel set, and the in-loop filter process is performed on the second original pixel set by the sample adaptive compensation tool to obtain the second processed pixel set.
  • the first processed pixel set and the second processed pixel set respectively include N rows of pixel data, and N is an integer greater than or equal to 2; according to the first processed pixel set, the second processed pixel set and the third original pixel set, Determine decoding reference information, including:
  • M is a positive integer less than N
  • the second processed pixel set, the third processed pixel set and the third original pixel set are determined as decoding reference information.
  • N can be 64, 32, 16, 4, etc.
  • FIG. 7 is a schematic diagram of determining decoding reference information provided by an embodiment of the present application. As shown in FIG. 7 , the first CTU line, the second CTU line and the third CTU line are respectively decoded to obtain the first original pixel set, the second original pixel set and the third original pixel set.
  • Loop filtering is performed on the first original pixel set and the second original pixel set respectively to obtain the first processed pixel set and the second processed pixel set.
  • a third processed pixel set is obtained.
  • the third processed pixel set, the second processed pixel set, and the third original pixel set are determined as decoding reference information.
  • the sixth preset value of the CTU row above the image to be decoded includes the first CTU row
  • the seventh preset value of the CTU row above the image to be decoded includes the first CTU row
  • the CTU row below the image includes the second CTU row
  • Determining decoding reference information according to the second reference decoding image including:
  • the second pixel set and the second original pixel set are determined as decoding reference information.
  • FIG. 8 is a schematic diagram of another method for determining decoding reference information provided by the embodiment of the present application.
  • the first CTU row, the second CTU row, and the third CTU row are decoded respectively to obtain the first original pixel set and the second original pixel.
  • a second pixel set is obtained.
  • the second pixel set and the second original pixel are determined as decoding reference information.
  • S602 specifically includes: decoding the image to be decoded according to the decoding reference information to obtain a reconstructed pixel value; storing the reconstructed pixel value in a preset area to obtain a reconstructed image; the size of the preset area is the same as that of the image to be decoded; The starting position, the first height, and the first width determine the target original image in the reconstructed image.
  • the target original image is determined in the reconstructed image, including: the initial position of the height, and the left shift value after the third preset value is shifted to the left by the minimum boundary value
  • the difference is determined as the top offset
  • the difference between the second width and the sum of the left offset and the first width is determined as the right offset;
  • the top offset, bottom offset, left offset, and right offset indicate the image to be deleted in the reconstructed image;
  • the top offset can be determined by the following formula 3:
  • luma_offset_top is the top offset.
  • the bottom offset can be determined by the following formula 4:
  • luma_offset_bottom min(((Max_crop_ctu_row+1) ⁇ C),H2-(Y0+H1)) (4);
  • luma_offset_bottom is the bottom offset
  • + is the plus sign
  • the left offset can be determined by the following formula 5:
  • luma_offset_left is the left offset
  • X0 is the starting position of the width
  • the right offset can be determined by the following formula 6:
  • luma_offset_right src->width-(luma_offset_left+W1) (6);
  • luma_offset_right is the right offset
  • src->width indicates the second width
  • FIG. 9 is a schematic diagram of obtaining a reconstructed image provided by an embodiment of the present application.
  • the third processed pixel set and the second processed pixel set are sequentially stored above the preset area, and the third original pixel set is stored below the preset area, according to
  • the decoding reference information determined by the third processed pixel set, the second processed pixel set and the third original pixel, and the reconstructed pixel values obtained by decoding the image to be decoded are stored in a preset area to obtain a reconstructed image.
  • the reconstructed image includes reconstructed pixel values.
  • FIG. 10 is a schematic diagram of determining a target original image in a reconstructed image according to an embodiment of the present application. As shown in FIG. 10 , it includes: a reconstructed image 1001 , a target original image 1002 , and an image to be deleted 1003 .
  • image 1003 indicates images to be deleted in the reconstructed image for top offset, bottom offset, left offset and right offset. Further, after the image 1003 is deleted from the reconstructed image, the target original image 1002 is obtained.
  • the memory address of the target original image is p_src0, and the pixel memory interval is stride, then the memory address of the upper left corner of the target original image is p_src0+luma_offset_top*stride+luma_offset_left.
  • the present application also provides another method for determining the region to be decoded according to the starting position, the first height and the second height. The following description will be made in conjunction with FIG. 11 .
  • FIG. 11 is a second flow chart of a method for determining an image to be decoded provided by an embodiment of the present application. As shown in Figure 10, the method includes:
  • S111 analyze and process the image parameter set included in the encoding information to obtain the location area and the number of image slices included in the encoded image.
  • the image slices may be image slices or image tiles.
  • the slice is to divide the coded image according to the strip shape
  • the tile is to divide the coded image according to the rectangle.
  • S113 Determine the area to be decoded according to the starting position, the first height and the second height.
  • S114 is exemplarily described below with reference to FIG. 12 , taking tiles as an example of an image slice.
  • FIG. 12 is a schematic diagram of a coded image provided by an embodiment of the present application including multiple tiles.
  • a coded image includes multiple tiles.
  • multiple tiles include T1-T10.
  • the image slices T1-T4 and T7-T10 are 8 image slices that do not overlap with the marked area in the coded image.
  • the image slices T1-T4 and T7-T10 that do not overlap with the marked area can be deleted in the coded image to obtain the remaining coded image, and then according to the starting position, the first height and the second height, determine the remaining coded image to be decoded area.
  • the method of determining the area to be decoded in the remaining coded image is similar to the above S303, and will not be repeated here.
  • FIG. 13 is a schematic diagram of a coded image provided by an embodiment of the present application including multiple slices.
  • a coded image includes multiple slices.
  • multiple slices include S1-S5.
  • the image slices S1, S2 and S5 are three image slices that do not overlap with the marked area in the coded image.
  • the image slices S1, S2, and S5 that do not overlap with the marked area can be deleted in the coded image to obtain the remaining coded image, and then according to the starting position, the first height and the second height, determine the area to be decoded in the remaining coded image.
  • the method of determining the area to be decoded in the remaining coded image is similar to the above S303, and will not be repeated here.
  • the image to be decoded it is necessary to decode the completed CTU lines included in the image to be decoded, that is, the first width in the present application has no influence on the decoding speed and memory.
  • the image to be decoded with H2/2, H2/4, H2/8 height i.e. the first height
  • H2/2, H2/4, H2/8 height i.e. the first height
  • Table 1 is an example of the test results obtained based on the fact that the initial height position and width initial position of the test data are both 0, and the first width is 1920.
  • the decoding time length is 51.000 milliseconds (61.68% of 82.679 milliseconds), and the size of the memory occupation is 4.15 megabytes (6.09 megabytes 68.14% of bytes).
  • codec standards to which the image processing method provided in this application can be applied include but are not limited to the heif codec standard or a certain codec standard.
  • FIG. 14 is a schematic structural diagram of an image processing device provided by an embodiment of the present application. As shown in Figure 14, the image processing device 10 includes:
  • the receiving module 11 is configured to receive the encoded information sent by the server; the encoded information includes the encoded image corresponding to the original image;
  • An acquisition module 12 configured to acquire an operation instruction
  • the determination module 13 is used to determine the image to be decoded in the encoded image according to the operation instruction and the encoding information; the image to be decoded is the encoded image corresponding to the target original image in the marked area in the original image;
  • the processing module 14 is used to decode the image to be decoded to obtain the target original image
  • the display module 15 is used for displaying the target original image in the marked area.
  • the image processing device provided in the embodiment of the present application can execute the above-mentioned image processing method, and its implementation principles and beneficial effects are similar, and will not be repeated here.
  • the operation instruction includes the starting position, the first height and the first width of the marking area, and the encoding information includes a sequence parameter set; the determination module 13 is specifically used to: determine whether the starting position, the first height and the first width are are default values;
  • the determining module 13 is specifically configured to: judge whether the marked area is located in the coded image according to the starting position, the first height, the first width, the second height and the second width;
  • the determining module 13 is specifically configured to:
  • the first height is smaller than the second height, and the first width is smaller than the second width, the marked area is located in the coded image;
  • the determination module 13 is specifically configured to: determine the area to be decoded according to the starting position, the first height and the second height; determine the image in the area to be decoded in the coded image as the image to be decoded.
  • the starting position includes a height starting position; the determination module 13 is specifically used to: determine the minimum boundary value according to the height starting position; determine the maximum boundary value according to the first height, the second height and the height starting position; Determine the CTU line from the minimum boundary value to the maximum boundary value in the coded image as the image to be decoded.
  • the determining module 13 is specifically configured to: move the height starting position to the right by a third preset value; the third preset value is a preset value corresponding to the encoding method corresponding to the encoded image; set the first preset value, and The maximum value of the difference between the height starting position after the right shift and the second preset value is determined as the minimum boundary value.
  • the determining module 13 is specifically configured to: shift the third preset value to the left by the tenth preset value; determine the sum of the height starting position, the first height, and the third preset value after the left shift, and the third preset value after the left shift; The difference between ten preset values; the difference is shifted to the third preset value to the right; the minimum value of the difference between the second height and the right shift is determined as the maximum boundary value.
  • the processing module 14 is specifically configured to: acquire decoding reference information; decode the image to be decoded according to the decoding reference information to obtain the target original image.
  • the decoding information includes a switch identification of the filter processing tool; the processing module 14 is specifically configured to: judge that the filter processing tool is turned on according to the switch identification;
  • the fourth preset value of CTU lines located above the image to be decoded and the fifth preset value of CTU lines located below the image to be decoded in the coded image are determined as the first reference decoded image, and according to the first reference Decode the image and determine the decoding reference information;
  • the sixth preset value of CTU lines located above the image to be decoded and the seventh preset value of CTU lines located below the image to be decoded in the coded image are determined as the second reference decoded image, and according to the second reference Decode the image and determine the decoding reference information.
  • the fourth preset number of CTU rows above the image to be decoded includes the first CTU row and the second CTU row
  • the fifth preset number of CTU rows below the image to be decoded includes the third CTU row
  • Module 14 is specifically used to: respectively decode the first CTU line, the second CTU line and the third CTU line to obtain the first original pixel set, the second original pixel set and the third original pixel set
  • In-loop filtering is performed on the first original pixel set and the second original pixel set to obtain the first processed pixel set and the second processed pixel set
  • the first processing pixel set and the second processing pixel set respectively include N rows of pixel data, and N is an integer greater than or equal to 2; the processing module 14 is specifically configured to: use The last M rows of pixel data are replaced with the last M rows of pixel data in the N rows of pixel data in the first processing pixel set to obtain the third processing pixel set corresponding to the first processing pixel set; M is a positive integer less than N; the second processing The pixel set, the third processed pixel set and the third original pixel set are determined as decoding reference information.
  • the sixth preset number of CTU rows above the image to be decoded includes the first CTU row
  • the seventh preset number of CTU rows below the image to be decoded includes the second CTU row
  • the processing module 14 is specifically used to : Decode the first CTU line and the second CTU line respectively to obtain the first original pixel set and the second original pixel set
  • the first original pixel set includes N lines of original pixel data
  • the last M lines of original pixel data of the data are replaced with the first M lines of original pixel data of the N lines of original pixel data in the first original pixel set to obtain a second pixel set
  • the second pixel set and the second original pixel set are determined as decoding references information.
  • the processing module 14 is specifically configured to: decode the image to be decoded according to the decoding reference information to obtain a reconstructed pixel value; store the reconstructed pixel value in a preset area to obtain a reconstructed image; the preset area and the image to be decoded The same size; determine the target original image in the reconstructed image according to the starting position, the first height, and the first width.
  • the processing module 14 is specifically configured to: determine the difference between the initial height position and the left shift value after the third preset value is shifted to the left by the minimum boundary value as the top offset; determine the maximum boundary value and the first boundary value The sum of the nine preset values, the value after the third preset value is shifted to the left, and the minimum value of the difference between the second height and the initial position of the height and the first height, is determined as the bottom offset; The width starting position of the starting position is determined as the left offset; the difference between the second width and the sum of the left offset and the first width is determined as the right offset; the top offset, The bottom offset, the left offset and the right offset indicate the image to be deleted in the reconstructed image; the image to be deleted is deleted in the reconstructed image to obtain the target original image.
  • the determining module 13 is specifically configured to: analyze and process the image parameter set included in the encoding information to obtain the location area and number of image slices included in the encoded image; if the number of slices is equal to a preset value, Then according to the starting position, the first height and the second height, determine the area to be decoded; if the number of slices is not equal to the preset value, delete the image slices that do not overlap with the marked area in the coded image, and according to the starting position , the first height and the second height, the area to be decoded is determined in the coded image after the image slice is deleted.
  • the operation instruction is an instruction corresponding to the sliding operation; the determination module 13 is specifically used to: detect the pause time corresponding to the sliding operation; when the pause time exceeds a preset value, determine the marked area in the current display interface; according to the marked area and The encoding information is used to determine the image to be decoded corresponding to the marked area in the encoded image.
  • the image processing device provided in the embodiment of the present application can execute the above-mentioned image processing method, and its implementation principles and beneficial effects are similar, and will not be repeated here.
  • FIG. 15 is a schematic hardware diagram of a terminal device provided by an embodiment of the present application.
  • the terminal device 20 may include: a transceiver 21 , a memory 22 , and a processor 23 .
  • the transceiver 21 may include: a transmitter and/or a receiver.
  • the transmitter may also be called a transmitter, a transmitter, a sending port, or a sending interface, and similar descriptions
  • the receiver may also be called a receiver, a receiver, a receiving port, or a receiving interface, or similar descriptions.
  • parts of the transceiver 21 , the memory 22 , and the processor 23 are connected to each other through a bus 404 .
  • the memory 22 is used to store computer-executable instructions
  • the processor 23 is configured to execute the computer-executed instructions stored in the memory 22, so that the processor 23 executes the above image processing method.
  • An embodiment of the present application provides a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, the foregoing image processing method is realized.
  • An embodiment of the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the above image processing method can be realized.
  • An embodiment of the present application further provides a computer program, which can implement the above image processing method when the computer program is executed by a processor.
  • the aforementioned program can be stored in a readable memory.
  • the program executes the steps comprising the above-mentioned method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (read-only memory, ROM for short), RAM, flash memory, hard disk, solid-state hard disk, Magnetic tape, floppy disk, optical disc, and any combination thereof.
  • Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processing unit of other programmable data processing equipment to produce a machine such that the instructions executed by the processing unit of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
  • the device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
  • the term “include” and its variants may mean non-limiting inclusion; the term “or” and its variants may mean “and/or”.
  • the terms “first”, “second”, etc. in this application are used to distinguish similar objects, and not necessarily used to describe a specific order or sequence.
  • “plurality” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently.
  • the character “/” generally indicates that the contextual objects are an "or” relationship.

Abstract

Provided in the embodiments of the present application are an image processing method and apparatus, and a device, a storage medium and a program product. The method comprises: receiving coded information, which is sent by a server, wherein the coded information comprises coded images corresponding to an original image; acquiring an operation instruction; according to the operation instruction and the coded information, determining, from among the coded images, an image to be decoded, wherein the image to be decoded is a coded image, which corresponds to a target original image in a marked area, in the original image; and decoding the image to be decoded, so as to obtain the target original image, and then displaying the target original image in the marked area. The image processing method and apparatus, and the device, the storage medium and the program product provided in the embodiments of the present application are used for saving on a memory space of a terminal device, so as to avoid lagging, crashing, etc. of an information application program.

Description

图像处理方法、装置、设备、存储介质及程序产品Image processing method, device, equipment, storage medium and program product
本申请要求于2021年10月29日提交的、申请号为202111267729.1、名称为“图像处理方法、装置、设备、存储介质及程序产品”的中国专利申请的优先权,其全部内容通过引用并入本文。This application claims priority to a Chinese patent application with application number 202111267729.1 and titled "Image processing method, device, device, storage medium, and program product" filed on October 29, 2021, the entire contents of which are incorporated by reference This article.
技术领域technical field
本申请涉及图像处理技术领域,尤其涉及一种图像处理方法、装置、设备、存储介质及程序产品。The present application relates to the technical field of image processing, and in particular to an image processing method, device, equipment, storage medium and program product.
背景技术Background technique
目前,资讯应用程序可以包括图文内容丰富的长图,终端设备可以向用户展示资讯应用程序上包括的长图。Currently, an information application program may include a long picture with rich graphic content, and the terminal device may display the long picture included in the information application program to the user.
在相关技术中,与资讯应用程序对应的终端设备可以向终端设备发送长图对应的编码信息,在用户通过终端设备浏览该资讯应用程序时,终端设备能够对编码信息进行解码,得到长图,进而向用户展示长图。In related technologies, the terminal device corresponding to the information application program can send the coded information corresponding to the long picture to the terminal device, and when the user browses the information application program through the terminal device, the terminal device can decode the coded information to obtain the long picture, Then display the long picture to the user.
在实际应用中,用户通常仅浏览长图中的部分图像(例如开始部分的图像),因此终端设备若对编码信息进行解码得到长图,则会使得终端设备浪费较多的内存空间,进而使得资讯应用程序卡顿或者崩溃等。In practical applications, the user usually only browses part of the images in the long image (such as the image at the beginning), so if the terminal device decodes the coded information to obtain the long image, it will cause the terminal device to waste more memory space, thereby causing The news app freezes or crashes, etc.
发明内容Contents of the invention
本申请实施例提供一种图像处理方法、装置、设备、存储介质及程序产品,用以解决终端设备浪费较多的内存空间,进而使得资讯应用程序卡顿或者崩溃等问题。Embodiments of the present application provide an image processing method, device, device, storage medium, and program product, which are used to solve problems such as waste of a lot of memory space in a terminal device, and further cause information application programs to freeze or crash.
第一方面,本申请实施例提供一种图像处理方法,应用于终端设备,方法包括:In the first aspect, the embodiment of the present application provides an image processing method, which is applied to a terminal device, and the method includes:
接收服务器发送的编码信息;编码信息中包括原始图像对应的编码图像;receiving the encoded information sent by the server; the encoded information includes the encoded image corresponding to the original image;
获取操作指令;Obtain operation instructions;
根据操作指令和编码信息,在编码图像中确定待解码图像;待解码图像为原始图像中标定区域内的目标原始图像对应的编码图像;According to the operation instruction and the encoding information, determine the image to be decoded in the encoded image; the image to be decoded is the encoded image corresponding to the target original image in the marked area in the original image;
对待解码图像进行解码,得到目标原始图像,并在标定区域内显示目标原始图像。Decode the image to be decoded to obtain the target original image, and display the target original image in the marked area.
可选地,操作指令包括标定区域的起始位置、第一高度和第一宽度,编码信息中包括序列参数集;根据操作指令和编码信息,在编码图像中确定待解码图像,包括:判断起始位置、第一高度和第一宽度是否均为预设值;Optionally, the operation instruction includes the starting position, the first height, and the first width of the marked area, and the encoding information includes a sequence parameter set; according to the operation instruction and the encoding information, determining the image to be decoded in the encoded image includes: judging the start Whether the initial position, the first height and the first width are all preset values;
若是,则对序列参数集进行解析处理,得到解码信息,解码信息中包括编码图像的第二高度和第二宽度;并根据起始位置、第一高度、第一宽度、第二高度和第二宽度,在编码图像中确定待解码图像。If so, analyze and process the sequence parameter set to obtain decoding information, which includes the second height and second width of the encoded image; and according to the starting position, the first height, the first width, the second height and the second Width, to determine the image to be decoded in the encoded image.
可选地,根据起始位置、第一高度、第一宽度、第二高度和第二宽度,在编码图像中确定待解码图像,包括:根据起始位置、第一高度、第一宽度、第二高度和第二宽度,判断标定区域是否位于编码图像中;Optionally, determining the image to be decoded in the coded image according to the starting position, the first height, the first width, the second height and the second width includes: according to the starting position, the first height, the first width, the second width Two heights and a second width, judging whether the marked area is located in the coded image;
若是,则根据起始位置、第一高度和第二高度,在编码图像中确定待解码图像。If so, determine the image to be decoded in the coded image according to the starting position, the first height and the second height.
可选地,根据起始位置、第一高度、第一宽度、第二高度和第二宽度,判断标定区域是否位于编码图像中,包括:Optionally, according to the starting position, the first height, the first width, the second height and the second width, judging whether the marked area is located in the coded image includes:
若起始位置位于编码图像中、第一高度小于第二高度、第一宽度小于第二宽度,则标定区域位于编码图像中;If the starting position is located in the coded image, the first height is smaller than the second height, and the first width is smaller than the second width, the marked area is located in the coded image;
否则,标定区域不在编码图像中。Otherwise, the labeled region is not in the coded image.
可选地,根据起始位置、第一高度和第二高度,在编码图像中确定待解码图像,包括:根据起始位置、第一高度和第二高度,确定待解码区域;将编码图像内待解码区域中的图像,确定为待解码图像。Optionally, determining the image to be decoded in the coded image according to the starting position, the first height and the second height includes: determining the region to be decoded according to the starting position, the first height and the second height; The image in the area to be decoded is determined as the image to be decoded.
可选地,起始位置包括高度起始位置;根据起始位置、第一高度和第二高度,确定待解码区域,包括:根据高度起始位置,确定最小边界值;根据第一高度、第二高度和高度起始位置,确定最大边界值;将编码图像中最小边界值至最大边界值的CTU行,确定为待解码图像。Optionally, the starting position includes a height starting position; according to the starting position, the first height and the second height, determining the area to be decoded includes: determining the minimum boundary value according to the height starting position; according to the first height, the second height 2. Determine the maximum boundary value for the height and the starting position of the height; determine the CTU line from the minimum boundary value to the maximum boundary value in the coded image as the image to be decoded.
可选地,根据高度起始位置,确定最小边界值,包括:将高度起始位置右移第三预设值;第三预设值为编码图像对应的编码方式对应的预设值;将第一预设值、以及右移之后的高度起始位置与第二预设值的差值中的最大值,确定为最小边界值。Optionally, determining the minimum boundary value according to the starting position of the height includes: moving the starting position of the height to the right by a third preset value; the third preset value is a preset value corresponding to the encoding method corresponding to the encoded image; A preset value and the maximum value of the difference between the height starting position after the right shift and the second preset value are determined as the minimum boundary value.
可选地,根据第一高度、第二高度和高度起始位置,确定最大边界值,包括:将第三预设值左移第十预设值;确定高度起始位置、第一高度、左移之后的第三预设值的和值,与第十预设值的差值;将差值右移第三预设值;将第二高度和右移之后的差值中的最小值,确定为最大边界值。Optionally, determining the maximum boundary value according to the first height, the second height, and the starting position of the height includes: shifting the third preset value to the left by the tenth preset value; determining the starting position of the height, the first height, the left The difference between the sum of the third preset value after shifting and the tenth preset value; shifting the difference to the third preset value to the right; and determining the minimum value of the difference between the second height and the right shifting is the maximum boundary value.
可选地,对待解码图像进行解码,得到目标原始图像,包括:获取解码参考信息;根据解码参考信息,对待解码图像进行解码,得到目标原始图像。Optionally, decoding the image to be decoded to obtain the target original image includes: acquiring decoding reference information; decoding the image to be decoded according to the decoding reference information to obtain the target original image.
可选地,解码信息中包括滤波处理工具的开关标识;获取解码参考信息,包括:根据开关标识,判断滤波处理工具是否开启;Optionally, the decoding information includes the switch identification of the filtering processing tool; obtaining the decoding reference information includes: judging whether the filtering processing tool is turned on according to the switch identification;
若是,则将编码图像中第四预设值个位于待解码图像上方的CTU行和第五预设值个位于待解码图像下方的CTU行,确定为第一参考解码图像,并根据第一参考解码图像,确定解码参考信息;If so, the fourth preset value of CTU lines located above the image to be decoded and the fifth preset value of CTU lines located below the image to be decoded in the coded image are determined as the first reference decoded image, and according to the first reference Decode the image and determine the decoding reference information;
否则,则将编码图像中第六预设值个位于待解码图像上方的CTU行和第七预设值个位于待解码图像下方的CTU行,确定为第二参考解码图像,并根据第二参考解码图像,确定解码参考信息。Otherwise, the sixth preset value of CTU lines located above the image to be decoded and the seventh preset value of CTU lines located below the image to be decoded in the coded image are determined as the second reference decoded image, and according to the second reference Decode the image and determine the decoding reference information.
可选地,第四预设值个位于待解码图像上方的CTU行包括第一CTU行和第二CTU行,第五预设值个位于待解码图像下方的CTU行包括第三CTU行;根据第一参考解码图像,确定解码参考信息,包括:分别对第一CTU行、第二CTU行和第三CTU行进行解码,得到第一原始像素集、第二原始像素集和第三原始像素集;采用滤波处理工具分别对第一原始像素集和第二原始像素集进行环内滤波处理,得到第一处理像素集和第二处理像素集;根据第一处理像素集、第二处理像素集和第三原始像素集,确定解码参考信息。Optionally, the fourth preset number of CTU rows above the image to be decoded includes the first CTU row and the second CTU row, and the fifth preset number of CTU rows below the image to be decoded includes the third CTU row; according to Determining decoding reference information for the first reference decoded image includes: decoding the first CTU line, the second CTU line and the third CTU line respectively to obtain the first original pixel set, the second original pixel set and the third original pixel set ; Using a filter processing tool to perform in-loop filtering on the first original pixel set and the second original pixel set, respectively, to obtain the first processed pixel set and the second processed pixel set; according to the first processed pixel set, the second processed pixel set and The third original pixel set is used to determine decoding reference information.
可选地,第一处理像素集和第二处理像素集分别包括N行像素数据,N为大于或等于2的整数;根据第一处理像素集、第二处理像素集和第三原始像素集,确定解码参考信息,包括:采用第二处理像素集中N行像素数据中的最后M行像素数据,替换第一处理像素集中N行像素数据中的最后M行像素数据,得到第一处理像素集对应的第三处理像素集;M为小于N 的正整数;将第二处理像素集、第三处理像素集和第三原始像素集,确定为解码参考信息。Optionally, the first processed pixel set and the second processed pixel set respectively include N rows of pixel data, and N is an integer greater than or equal to 2; according to the first processed pixel set, the second processed pixel set and the third original pixel set, Determining the decoding reference information includes: using the last M rows of pixel data in the N rows of pixel data in the second processing pixel set to replace the last M rows of pixel data in the N rows of pixel data in the first processing pixel set to obtain the corresponding M is a positive integer less than N; the second processed pixel set, the third processed pixel set and the third original pixel set are determined as decoding reference information.
可选地,第六预设值个位于待解码图像上方的CTU行包括第一CTU行,第七预设值个位于待解码图像下方的CTU行包括第二CTU行;根据第二参考解码图像,确定解码参考信息,包括:分别对第一CTU行和第二CTU行进行解码,得到第一原始像素集和第二原始像素集;第一原始像素集包括N行原始像素数据;采用第一原始像素集中N行原始像素数据的最后M行原始像素数据,替换第一原始像素集中N行原始像素数据的前M行原始像素数据,得到第二像素集;将第二像素集和第二原始像素集,确定为解码参考信息。Optionally, the sixth preset number of CTU rows above the image to be decoded includes the first CTU row, and the seventh preset number of CTU rows below the image to be decoded includes the second CTU row; according to the second reference decoded image , to determine the decoding reference information, including: respectively decoding the first CTU line and the second CTU line to obtain the first original pixel set and the second original pixel set; the first original pixel set includes N rows of original pixel data; using the first The last M lines of original pixel data of N lines of original pixel data in the original pixel set are replaced with the first M lines of original pixel data of N lines of original pixel data in the first original pixel set to obtain a second pixel set; the second pixel set and the second original Pixel set, determined as decoding reference information.
可选地,根据解码参考信息,对待解码图像进行解码,得到目标原始图像,包括:根据解码参考信息,对待解码图像进行解码,得到重建像素值;并将重建像素值存储至预设区域,得到重建图像;预设区域和待解码图像的尺寸相同;根据起始位置、第一高度、第一宽度,在重建图像中确定目标原始图像。Optionally, decoding the image to be decoded according to the decoding reference information to obtain the target original image includes: decoding the image to be decoded according to the decoding reference information to obtain reconstructed pixel values; and storing the reconstructed pixel values in a preset area to obtain The image is reconstructed; the size of the preset area is the same as that of the image to be decoded; and the target original image is determined in the reconstructed image according to the starting position, the first height, and the first width.
可选地,根据起始位置、第一高度、第一宽度,在重建图像中确定目标原始图像,包括:将高度初始位置,与将第三预设值左移最小边界值之后的左移值的差值,确定为顶部偏移量;确定最大边界值和第九预设值的和值,将第三预设值左移和值之后的值、以及第二高度与高度初始位置和第一高度的差值中的最小值,确定为底部偏移量;将起始位置的宽度起始位置,确定为左侧偏移量;将第二宽度与左侧偏移量和第一宽度之和的差值,确定为右侧偏移量;顶部偏移量、底部偏移量、左侧偏移量和右侧偏移量指示在重建图像中待删除的图像;在重建图像中删除待删除的图像,得到目标原始图像。Optionally, according to the initial position, the first height, and the first width, the target original image is determined in the reconstructed image, including: the initial position of the height, and the left shift value after the third preset value is shifted to the left by the minimum boundary value The difference is determined as the top offset; determine the sum of the maximum boundary value and the ninth preset value, shift the third preset value to the left and the value after the value, and the second height and the initial position of the height and the first The minimum value of the height difference is determined as the bottom offset; the width start position of the starting position is determined as the left offset; the second width is summed with the left offset and the first width The difference is determined as the right offset; the top offset, bottom offset, left offset, and right offset indicate the image to be deleted in the reconstructed image; delete the image to be deleted in the reconstructed image image to get the target original image.
可选地,根据起始位置、第一高度和第二高度,确定待解码区域,包括:对编码信息中包括的图像参数集进行解析处理,得到编码图像中包括的图像分片的位置区域和分片数量;若分片数量等于预设值,则根据起始位置、第一高度和第二高度,确定待解码区域;若分片数量不等于预设值,则在编码图像中删除与标定区域无重叠的图像分片,并根据起始位置、第一高度和第二高度,在删除图像分片之后的在编码图像中确定待解码区域。Optionally, determining the area to be decoded according to the starting position, the first height, and the second height includes: analyzing and processing the image parameter set included in the encoding information to obtain the position area and the location area of the image slice included in the encoding image Number of slices; if the number of slices is equal to the preset value, then determine the area to be decoded according to the starting position, first height and second height; if the number of slices is not equal to the preset value, delete and mark in the encoded image There are no overlapping image slices, and according to the starting position, the first height and the second height, the area to be decoded is determined in the coded image after the image slice is deleted.
可选地,操作指令为滑动操作对应的指令;根据操作指令和编码信息,在编码图像中确定待解码图像,包括:检测滑动操作对应的停顿时间;在停顿时间超过预设值时,在当前显示界面中确定标定区域;根据标定区域和编码信息,在编码图像中确定与标定区域对应的待解码图像。Optionally, the operation instruction is an instruction corresponding to the slide operation; according to the operation instruction and the encoding information, determining the image to be decoded in the encoded image includes: detecting the pause time corresponding to the slide operation; when the pause time exceeds a preset value, at the current The marked area is determined in the display interface; according to the marked area and the coding information, the image to be decoded corresponding to the marked area is determined in the coded image.
第二方面,本申请实施例提供一种图像处理装置,应用于终端设备,装置包括:In the second aspect, the embodiment of the present application provides an image processing device, which is applied to a terminal device, and the device includes:
接收模块,用于接收服务器发送的编码信息;编码信息中包括原始图像对应的编码图像;The receiving module is used to receive the encoded information sent by the server; the encoded information includes the encoded image corresponding to the original image;
获取模块,用于获取操作指令;an acquisition module, configured to acquire operation instructions;
确定模块,用于根据操作指令和编码信息,在编码图像中确定待解码图像;待解码图像为原始图像中标定区域内的目标原始图像对应的编码图像;The determination module is used to determine the image to be decoded in the encoded image according to the operation instruction and the encoding information; the image to be decoded is the encoded image corresponding to the target original image in the marked area in the original image;
处理模块,用于对待解码图像进行解码,得到目标原始图像;The processing module is used to decode the image to be decoded to obtain the target original image;
显示模块,用于在标定区域内显示目标原始图像。The display module is used to display the target original image in the calibration area.
可选地,操作指令包括标定区域的起始位置、第一高度和第一宽度,编码信息中包括序列参数集;确定模块具体用于:判断起始位置、第一高度和第一宽度是否均为预设值;Optionally, the operation instruction includes the starting position, the first height and the first width of the marking area, and the encoding information includes a sequence parameter set; the determination module is specifically used to: judge whether the starting position, the first height and the first width are all is the default value;
若是,则对序列参数集进行解析处理,得到解码信息,解码信息中包括编码图像的第二高度和第二宽度;并根据起始位置、第一高度、第一宽度、第二高度和第二宽度,在编码图像中确定待解码图像。If so, analyze and process the sequence parameter set to obtain decoding information, which includes the second height and second width of the encoded image; and according to the starting position, the first height, the first width, the second height and the second Width, to determine the image to be decoded in the encoded image.
可选地,确定模块具体用于:根据起始位置、第一高度、第一宽度、第二高度和第二宽度,判断标定区域是否位于编码图像中;Optionally, the determining module is specifically configured to: judge whether the marked area is located in the coded image according to the starting position, the first height, the first width, the second height, and the second width;
若是,则根据起始位置、第一高度和第二高度,在编码图像中确定待解码图像。If so, determine the image to be decoded in the coded image according to the starting position, the first height and the second height.
可选地,确定模块具体用于:Optionally, identify modules specifically for:
若起始位置位于编码图像中、第一高度小于第二高度、第一宽度小于第二宽度,则标定区域位于编码图像中;If the starting position is located in the coded image, the first height is smaller than the second height, and the first width is smaller than the second width, the marked area is located in the coded image;
否则,标定区域不在编码图像中。Otherwise, the labeled region is not in the coded image.
可选地,确定模块具体用于:根据起始位置、第一高度和第二高度,确定待解码区域;将编码图像内待解码区域中的图像,确定为待解码图像。Optionally, the determining module is specifically configured to: determine the area to be decoded according to the starting position, the first height and the second height; determine the image in the area to be decoded in the coded image as the image to be decoded.
可选地,起始位置包括高度起始位置;确定模块具体用于:根据高度起始位置,确定最小边界值;根据第一高度、第二高度和高度起始位置,确定最大边界值;将编码图像中最小边界值至最大边界值的CTU行,确定为待解码图像。Optionally, the starting position includes a height starting position; the determination module is specifically used to: determine the minimum boundary value according to the height starting position; determine the maximum boundary value according to the first height, the second height and the height starting position; The CTU line from the minimum boundary value to the maximum boundary value in the coded image is determined as the image to be decoded.
可选地,确定模块具体用于:将高度起始位置右移第三预设值;第三预设值为编码图像对应的编码方式对应的预设值;将第一预设值、以及右移之后的高度起始位置与第二预设值的差值中的最大值,确定为最小边界值。Optionally, the determining module is specifically configured to: move the height starting position to the right by a third preset value; the third preset value is a preset value corresponding to the encoding mode corresponding to the encoded image; the first preset value, and the right The maximum value of the difference between the height starting position after the shift and the second preset value is determined as the minimum boundary value.
可选地,确定模块具体用于:将第三预设值左移第十预设值;确定高度起始位置、第一高度、左移之后的第三预设值的和值,与第十预设值的差值;将差值右移第三预设值;将第二高度和右移之后的差值中的最小值,确定为最大边界值。Optionally, the determination module is specifically used to: shift the third preset value to the left by the tenth preset value; The difference of the preset value; shifting the difference to the third preset value to the right; determining the minimum value of the difference between the second height and the right shifted value as the maximum boundary value.
可选地,处理模块具体用于:获取解码参考信息;根据解码参考信息,对待解码图像进行解码,得到目标原始图像。Optionally, the processing module is specifically configured to: acquire decoding reference information; decode the image to be decoded according to the decoding reference information to obtain the target original image.
可选地,解码信息中包括滤波处理工具的开关标识;处理模块具体用于:根据开关标识,判断滤波处理工具是否开启;Optionally, the decoding information includes a switch identification of the filter processing tool; the processing module is specifically used to: judge whether the filter processing tool is enabled according to the switch identification;
若是,则将编码图像中第四预设值个位于待解码图像上方的CTU行和第五预设值个位于待解码图像下方的CTU行,确定为第一参考解码图像,并根据第一参考解码图像,确定解码参考信息;If so, the fourth preset value of CTU lines located above the image to be decoded and the fifth preset value of CTU lines located below the image to be decoded in the coded image are determined as the first reference decoded image, and according to the first reference Decode the image and determine the decoding reference information;
否则,则将编码图像中第六预设值个位于待解码图像上方的CTU行和第七预设值个位于待解码图像下方的CTU行,确定为第二参考解码图像,并根据第二参考解码图像,确定解码参考信息。Otherwise, the sixth preset value of CTU lines located above the image to be decoded and the seventh preset value of CTU lines located below the image to be decoded in the coded image are determined as the second reference decoded image, and according to the second reference Decode the image and determine the decoding reference information.
可选地,第四预设值个位于待解码图像上方的CTU行包括第一CTU行和第二CTU行,第五预设值个位于待解码图像下方的CTU行包括第三CTU行;处理模块具体用于:分别对第一CTU行、第二CTU行和第三CTU行进行解码,得到第一原始像素集、第二原始像素集和第三原始像素集;采用滤波处理工具分别对第一原始像素集和第二原始像素集进行环内滤波处理,得到第一处理像素集和第二处理像素集;根据第一处理像素集、第二处理像素集和第三原始像素集,确定解码参考信息。Optionally, the fourth preset number of CTU rows above the image to be decoded includes the first CTU row and the second CTU row, and the fifth preset number of CTU rows below the image to be decoded includes the third CTU row; The module is specifically used to: respectively decode the first CTU line, the second CTU line and the third CTU line to obtain the first original pixel set, the second original pixel set and the third original pixel set; An original pixel set and a second original pixel set are subjected to in-loop filtering processing to obtain a first processed pixel set and a second processed pixel set; according to the first processed pixel set, the second processed pixel set and the third original pixel set, determine the decoding Reference Information.
可选地,第一处理像素集和第二处理像素集分别包括N行像素数据,N为大于或等于2的整数;处理模块具体用于:采用第二处理像素集中N行像素数据中的最后M行像素数据,替换第一处理像素集中N行像素数据中的最后M行像素数据,得到第一处理像素集对应的第三处理像素集;M为小于N的正整数;将第二处理像素集、第三处理像素集和第三原始像素集,确定为解码参考信息。Optionally, the first processing pixel set and the second processing pixel set respectively include N rows of pixel data, and N is an integer greater than or equal to 2; the processing module is specifically configured to: use the last row of pixel data in the second processing pixel set M rows of pixel data are replaced with the last M rows of pixel data in the N rows of pixel data in the first processing pixel set to obtain the third processing pixel set corresponding to the first processing pixel set; M is a positive integer less than N; the second processing pixel set, the third processed pixel set and the third original pixel set are determined as decoding reference information.
可选地,第六预设值个位于待解码图像上方的CTU行包括第一CTU行,第七预设值个位于待解码图像下方的CTU行包括第二CTU行;处理模块具体用于:分别对第一CTU行和第二CTU行进行解码,得到第一原始像素集和第二原始像素集;第一原始像素集包括N行原始像素数据;采用第一原始像素集中N行原始像素数据的最后M行原始像素数据,替换第一原始像素集中N行原始像素数据的前M行原始像素数据,得到第二像素集;将第二像素集和第二原始像素集,确定为解码参考信息。Optionally, the sixth preset value of CTU rows located above the image to be decoded includes the first CTU row, and the seventh preset value of CTU rows located below the image to be decoded includes the second CTU row; the processing module is specifically used for: Decode the first CTU line and the second CTU line respectively to obtain the first original pixel set and the second original pixel set; the first original pixel set includes N lines of original pixel data; adopt N lines of original pixel data in the first original pixel set The last M lines of original pixel data of the first original pixel set are replaced with the first M lines of original pixel data of N lines of original pixel data to obtain a second pixel set; the second pixel set and the second original pixel set are determined as decoding reference information .
可选地,处理模块具体用于:根据解码参考信息,对待解码图像进行解码,得到重建像素值;并将重建像素值存储至预设区域,得到重建图像;预设区域和待解码图像的尺寸相同;根据起始位置、第一高度、第一宽度,在重建图像中确定目标原始图像。Optionally, the processing module is specifically used to: decode the image to be decoded according to the decoding reference information to obtain the reconstructed pixel value; store the reconstructed pixel value in a preset area to obtain the reconstructed image; the size of the preset area and the image to be decoded Same; determine the target original image in the reconstructed image according to the starting position, the first height, and the first width.
可选地,处理模块具体用于:将高度初始位置,与将第三预设值左移最小边界值之后的左移值的差值,确定为顶部偏移量;确定最大边界值和第九预设值的和值,将第三预设值左移和值之后的值、以及第二高度与高度初始位置和第一高度的差值中的最小值,确定为底部偏移量;将起始位置的宽度起始位置,确定为左侧偏移量;将第二宽度与左侧偏移量和第一宽度之和的差值,确定为右侧偏移量;顶部偏移量、底部偏移量、左侧偏移量和右侧偏移量指示在重建图像中待删除的图像;在重建图像中删除待删除的图像,得到目标原始图像。Optionally, the processing module is specifically used to: determine the difference between the initial height position and the left shift value after the third preset value is shifted to the left by the minimum boundary value as the top offset; determine the maximum boundary value and the ninth The sum of the preset values, the value after the third preset value is shifted to the left and the minimum value of the difference between the second height and the initial position of the height and the first height is determined as the bottom offset; The width starting position of the starting position is determined as the left offset; the difference between the second width and the sum of the left offset and the first width is determined as the right offset; the top offset, bottom The offset, the left offset and the right offset indicate the image to be deleted in the reconstructed image; the image to be deleted is deleted in the reconstructed image to obtain the target original image.
可选地,确定模块具体用于:对编码信息中包括的图像参数集进行解析处理,得到编码图像中包括的图像分片的位置区域和分片数量;若分片数量等于预设值,则根据起始位置、第一高度和第二高度,确定待解码区域;若分片数量不等于预设值,则在编码图像中删除与标定区域无重叠的图像分片,并根据起始位置、第一高度和第二高度,在删除图像分片之后的在编码图像中确定待解码区域。Optionally, the determining module is specifically configured to: analyze and process the image parameter set included in the encoding information to obtain the location area and the number of slices of the image slices included in the encoded image; if the number of slices is equal to a preset value, then According to the starting position, the first height and the second height, determine the area to be decoded; if the number of slices is not equal to the preset value, delete the image slices that do not overlap with the marked area in the coded image, and according to the starting position, The first height and the second height determine the area to be decoded in the coded image after the image slice is deleted.
可选地,操作指令为滑动操作对应的指令;确定模块具体用于:检测滑动操作对应的停顿时间;在停顿时间超过预设值时,在当前显示界面中确定标定区域;根据标定区域和编码信息,在编码图像中确定与标定区域对应的待解码图像。Optionally, the operation instruction is an instruction corresponding to the sliding operation; the determination module is specifically used to: detect the pause time corresponding to the sliding operation; when the pause time exceeds a preset value, determine the calibration area in the current display interface; according to the calibration area and code Information to determine the image to be decoded corresponding to the marked area in the coded image.
第三方面,本申请实施例还提供一种终端设备,包括:处理器,以及与处理器通信连接的存储器;In a third aspect, the embodiment of the present application further provides a terminal device, including: a processor, and a memory communicatively connected to the processor;
存储器存储计算机执行指令;the memory stores computer-executable instructions;
处理器执行存储器存储的计算机执行指令,以实现第一方面中任一项的方法。The processor executes the computer-implemented instructions stored in the memory to implement the method of any one of the first aspects.
第四方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,计算机执行指令被处理器执行时用于实现第一方面中任一项的方法。In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are used to implement the method in any one of the first aspects when executed by a processor.
第五方面,本申请实施例提供一种计算机程序产品,包括:计算机程序;计算机程序被处理器执行时实现第一方面中任一项的方法。In a fifth aspect, an embodiment of the present application provides a computer program product, including: a computer program; when the computer program is executed by a processor, the method in any one of the first aspects is implemented.
第六方面,本申请实施例提供一种计算机程序,所述计算机程序被处理器执行时实现第一方面中任一项的方法。In a sixth aspect, the embodiments of the present application provide a computer program, which implements the method in any one of the first aspects when the computer program is executed by a processor.
本申请实施例提供一种图像处理方法、装置、设备、存储介质及程序产品,其中,图像处理方法包括:接收服务器发送的编码信息;编码信息中包括原始图像对应的编码图像;获取操作指令;根据操作指令和编码信息,在编码图像中确定待解码图像;待解码图像为原始图像中标定区域内的目标原始图像对应的编码图像;对待解码图像进行解码,得到目标原始图像,并在标定区域内显示目标原始图像。在上述方法中,根据操作指令和编码信息,在编码图像中确定待解码图像,对待解码图像进行解码,得到目标原始图像,并在标定区域内显示目标原始图 像,能够实现终端设备仅对编码图像中的部分编码图像(即待解码图像)进行解码,以得到用户想要浏览的目标原始图像,从而节省终端设备的内存空间,避免资讯应用程序卡顿或者崩溃等。Embodiments of the present application provide an image processing method, device, device, storage medium, and program product, wherein the image processing method includes: receiving encoding information sent by a server; the encoding information includes an encoded image corresponding to the original image; acquiring an operation instruction; According to the operation instruction and encoding information, determine the image to be decoded in the encoded image; the image to be decoded is the encoded image corresponding to the target original image in the marked area in the original image; decode the image to be decoded to obtain the target original image, and place it in the marked area The original image of the target is displayed inside. In the above method, according to the operation instruction and the encoding information, the image to be decoded is determined in the encoded image, the image to be decoded is decoded, the target original image is obtained, and the target original image is displayed in the marked area, so that the terminal device can realize only the encoded image Part of the coded images in (that is, the images to be decoded) are decoded to obtain the target original images that the user wants to browse, thereby saving the memory space of the terminal device and avoiding the freeze or crash of the information application program.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.
图1为本申请实施例提的一种场景示意图;FIG. 1 is a schematic diagram of a scenario proposed in an embodiment of the present application;
图2为本申请实施例提供的图像处理方法的流程图;FIG. 2 is a flowchart of an image processing method provided in an embodiment of the present application;
图3为本申请实施例提供的确定待解码图像的方法流程图一;FIG. 3 is a flow chart 1 of a method for determining an image to be decoded provided by an embodiment of the present application;
图4为本申请实施例提供确定待解码图像的一种示意图;Fig. 4 provides a schematic diagram of determining an image to be decoded according to an embodiment of the present application;
图5为本申请实施例提供确定待解码图像的另一种示意图;FIG. 5 is another schematic diagram for determining an image to be decoded according to an embodiment of the present application;
图6为本申请实施例提供的得到目标原始图像的方法流程图;FIG. 6 is a flowchart of a method for obtaining an original image of a target provided by an embodiment of the present application;
图7为本申请实施例提供的一种确定解码参考信息的示意图;FIG. 7 is a schematic diagram of determining decoding reference information provided by an embodiment of the present application;
图8为本申请实施例提供的另一种确定解码参考信息的示意图;FIG. 8 is another schematic diagram of determining decoding reference information provided by the embodiment of the present application;
图9为本申请实施例提供的一种得到重建图像的示意图;FIG. 9 is a schematic diagram of obtaining a reconstructed image provided by an embodiment of the present application;
图10为本申请实施例提供一种在重建图像中确定目标原始图像的示意图;FIG. 10 is a schematic diagram of determining an original image of a target in a reconstructed image according to an embodiment of the present application;
图11为本申请实施例提供的确定待解码图像的方法流程图二;FIG. 11 is the second flow chart of the method for determining the image to be decoded provided by the embodiment of the present application;
图12为本申请实施例提供的一种编码图像包括多个tile的示意图;FIG. 12 is a schematic diagram of a coded image provided by an embodiment of the present application including multiple tiles;
图13为本申请实施例提供的一种编码图像包括多个slice的示意图;FIG. 13 is a schematic diagram of a coded image provided by an embodiment of the present application including multiple slices;
图14为本申请实施例提供的图像处理装置的结构示意图;FIG. 14 is a schematic structural diagram of an image processing device provided by an embodiment of the present application;
图15本申请实施例提供的终端设备的硬件示意图。FIG. 15 is a schematic hardware diagram of a terminal device provided by an embodiment of the present application.
通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。By means of the above drawings, specific embodiments of the present application have been shown, which will be described in more detail hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the application in any way, but to illustrate the concept of the application for those skilled in the art by referring to specific embodiments.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
首先对现有技术进行简要说明。First, the prior art is briefly described.
在现有技术中,当用户通过终端设备浏览资讯应用程序中包括的长图(或者高清视频)时,终端设备会对终端设备下发的长图(或者高清视频)对应的编码信息进行解码,以得到完成的长图(或者高清视频),并显示完成的长图(或者高清视频)。In the prior art, when a user browses a long picture (or high-definition video) included in an information application through a terminal device, the terminal device will decode the encoded information corresponding to the long picture (or high-definition video) delivered by the terminal device, To get the completed long picture (or high-definition video), and display the completed long picture (or high-definition video).
在实际中,通过对用户浏览长图(或者高清视频)的调查研究发现,用户通常较大概率地仅浏览长图(或者高清视频)的开始部分或者中间部分,因此若采用现有技术中终端设备对编码信息进行解码,得到完成的长图(或者高清视频)的方法,则会使得终端设备浪费较多的内 存空间,进而使得资讯应用程序卡顿或者崩溃等。In practice, through investigation and research on users browsing long pictures (or high-definition videos), it is found that users usually only browse the beginning or middle part of long pictures (or high-definition videos) with a high probability. The device decodes the coded information to obtain the completed long picture (or high-definition video), which will cause the terminal device to waste more memory space, and then cause the information application program to freeze or crash.
在本申请中,为了终端设备能够节省的内存空间,进而避免资讯应用程序卡顿或者崩溃等,发明人想到:在用户浏览过程中,使得终端设备仅对待编码图像进行解码,得到长图(或者高清视频)中用户想要浏览的部分图像,从而实现节省终端设备的内存空间,进而避免资讯应用程序卡顿或者崩溃等。In this application, in order to save the memory space of the terminal device and avoid the stalling or crash of the information application program, the inventor thought of: during the browsing process of the user, the terminal device only decodes the image to be encoded to obtain a long image (or High-definition video) part of the image that the user wants to browse, so as to save the memory space of the terminal device, thereby avoiding the freeze or crash of the information application program.
下面结合图1,对本申请实施例提供的图像处理方法的应用场景进行说明。The application scenario of the image processing method provided by the embodiment of the present application will be described below with reference to FIG. 1 .
图1为本申请实施例提的一种场景示意图。如图1所示,包括:终端设备和至少一个终端设备。FIG. 1 is a schematic diagram of a scenario provided in an embodiment of the present application. As shown in FIG. 1 , it includes: a terminal device and at least one terminal device.
终端设备中可以安装资讯应用程序,终端设备为资讯应用程序对应的终端设备。An information application program may be installed in the terminal device, and the terminal device is a terminal device corresponding to the information application program.
为了节省终端设备向终端设备发送原始图像的传输流量,终端设备通常将可视的原始图像进行编码,得到原始图像对应的编码信息,并向终端设备发送编码信息。In order to save the transmission traffic of the terminal device sending the original image to the terminal device, the terminal device usually encodes the visible original image to obtain the encoding information corresponding to the original image, and sends the encoding information to the terminal device.
终端设备接收到编码信息之后,根据操作指令和编码信息,确定待解码图像,进而对待解码图像进行解码,得到目标原始图像,并显示目标原始图像。其中,目标原始图像为原始图像中用户想要浏览的部分图像。After receiving the encoded information, the terminal device determines the image to be decoded according to the operation instruction and the encoded information, and then decodes the image to be decoded to obtain the target original image and display the target original image. Wherein, the target original image is a part of the original image that the user wants to browse.
在上述过程中,终端设备根据操作指令和编码信息,确定待解码图像,进而对待解码图像进行解码,得到目标原始图像,可以节省终端设备的内存空间,避免资讯应用程序卡顿或者崩溃等。In the above process, the terminal device determines the image to be decoded according to the operation instruction and the encoding information, and then decodes the image to be decoded to obtain the target original image, which can save the memory space of the terminal device and prevent the information application program from freezing or crashing.
下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本申请的实施例进行描述。The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below in conjunction with the accompanying drawings.
图2为本申请实施例提供的图像处理方法的流程图。如图2所示,该方法包括:FIG. 2 is a flowchart of an image processing method provided by an embodiment of the present application. As shown in Figure 2, the method includes:
S201,接收服务器发送的编码信息;编码信息中包括原始图像对应的编码图像。S201. Receive encoding information sent by a server; the encoding information includes an encoded image corresponding to an original image.
可选地,本申请实施例的执行主体可以为终端设备,也可以为设置在终端设备中的图像处理装置,该图像处理装置可以通过软件和/或硬件的结合来实现。Optionally, the execution subject of the embodiment of the present application may be a terminal device, or may be an image processing device installed in the terminal device, and the image processing device may be implemented through a combination of software and/or hardware.
上述终端设备可以是无线终端也可以是有线终端。无线终端可以是指向用户提供语音和/或其他业务数据连通性的设备,具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备。无线终端可以经无线接入网(Radio Access Network,简称RAN)与一个或多个核心网设备进行通信,无线终端可以是移动终端,如移动电话(或称为“蜂窝”电话、或成为智能手机)和具有移动终端的计算机。例如,无线终端还可以是个人通信业务(Personal Communication Service,简称PCS)电话、无绳电话、会话发起协议(Session Initiation Protocol,简称SIP)话机、无线本地环路(Wireless Local Loop,简称WLL)站、个人数字助理(Personal Digital Assistant,简称PDA)等设备。无线终端也可以称为系统、用户终端(User Terminal)、用户设备(User Device or User Equipment),在此不作限定。可选的,上述终端设备还可以是平板电脑等设备。The aforementioned terminal device may be a wireless terminal or a wired terminal. A wireless terminal may be a device that provides voice and/or other business data connectivity to a user, a handheld device with a wireless connection function, or other processing device connected to a wireless modem. The wireless terminal can communicate with one or more core network devices via the radio access network (Radio Access Network, referred to as RAN). The wireless terminal can be a mobile terminal, such as a mobile phone (or called a "cellular" phone, or a smart phone) ) and a computer with a mobile terminal. For example, the wireless terminal may also be a Personal Communication Service (PCS for short) phone, a cordless phone, a Session Initiation Protocol (SIP for short) phone, a Wireless Local Loop (WLL for short) station, Personal digital assistant (Personal Digital Assistant, referred to as PDA) and other equipment. The wireless terminal may also be called a system, a user terminal (User Terminal), or a user device (User Device or User Equipment), which is not limited here. Optionally, the above-mentioned terminal device may also be a device such as a tablet computer.
编码信息中可以包括原始图像对应的编码图像、序列参数集(slice parameter set,SPS)、图片参数集(picture parameter set,PPS)。The encoding information may include an encoded image corresponding to the original image, a sequence parameter set (slice parameter set, SPS), and a picture parameter set (picture parameter set, PPS).
原始图像为用户可视的长图、或者高清图像。例如原始图像为RGB或者YUV等格式的可视图像。The original image is a long image or a high-definition image visible to the user. For example, the original image is a visible image in RGB or YUV format.
S202,获取操作指令。S202. Obtain an operation instruction.
操作指令可以为用户的滑动操作对应的指令。The operation instruction may be an instruction corresponding to the user's sliding operation.
例如,当终端设备为智能手机是,滑动操作可以为用户对在终端设备的触摸屏的滑动操作。For example, when the terminal device is a smart phone, the sliding operation may be a user's sliding operation on the touch screen of the terminal device.
可选地,滑动操作可以为连续,也可以停顿。Optionally, the sliding operation can be continuous or paused.
S203,根据操作指令和编码信息,在编码图像中确定待解码图像。S203. Determine the image to be decoded in the encoded image according to the operation instruction and the encoding information.
待解码图像为原始图像中标定区域内的目标原始图像对应的编码图像。The image to be decoded is the coded image corresponding to the target original image in the marked area of the original image.
可选地,待解码图像的尺寸可以与标定区域的尺寸相同、或者不相同。Optionally, the size of the image to be decoded may be the same as or different from the size of the marked area.
当待解码图像的尺寸与标定区域的尺寸不相同时,待解码图像的尺寸大于标定区域的尺寸。例如,待解码图像的高度等于标定区域的第一高度、且待解码图像的宽度大于等于标定区域的第一宽度。例如,待解码图像的高度大于标定区域的第一高度、且待解码图像的宽度大于等于标定区域的第一宽度。When the size of the image to be decoded is different from the size of the marked area, the size of the image to be decoded is larger than the size of the marked area. For example, the height of the image to be decoded is equal to the first height of the marked area, and the width of the image to be decoded is greater than or equal to the first width of the marked area. For example, the height of the image to be decoded is greater than the first height of the marked area, and the width of the image to be decoded is greater than or equal to the first width of the marked area.
可选地,可以通过如下两种方式(方式B1和方式B2)实现S203。Optionally, S203 may be implemented in the following two manners (mode B1 and manner B2).
方式B1,判断操作指令包括标定区域的起始位置、第一高度和第一宽度是否为均为预设值;Mode B1, judging whether the operation instruction includes the initial position of the calibration area, the first height and the first width are all preset values;
若是,则对编码信息中的SPS进行解析处理,得到解码信息;解码信息中包括编码图像的第二高度和第二宽度;并根据起始位置、第一高度、第一宽度、第二高度和第二宽度,在编码图像中确定待解码图像;If so, analyze and process the SPS in the coded information to obtain the decoded information; include the second height and the second width of the coded image in the decoded information; and according to the starting position, the first height, the first width, the second height and The second width is to determine the image to be decoded in the encoded image;
否则,进行全帧解码,得到原始图像。Otherwise, perform full-frame decoding to obtain the original image.
其中,预设值可以为0或者其他值,此处不对预设值的取值进行限定。Wherein, the preset value may be 0 or other values, and the value of the preset value is not limited here.
可选地,当起始位置位于编码图像内、第一高度小于或等于第二高度、且第一宽度小于或等于第二宽度,则确定编码图像中确定待解码图像。Optionally, when the starting position is within the encoded image, the first height is less than or equal to the second height, and the first width is less than or equal to the second width, then determine the image to be decoded in the encoded image.
第一高度小于或等于第二高度指示标定区域中第一高度对应的编码树单元(Coding Tree Unit,简称CTU)行包含于编码图像中第二高度对应的CTU行。The first height being less than or equal to the second height indicates that the Coding Tree Unit (Coding Tree Unit, CTU) row corresponding to the first height in the marked area is included in the CTU row corresponding to the second height in the coded image.
第一宽度小于或等于第二宽度指示标定区域中第一宽度对应的CTU行包含于编码图像中第二宽度对应的CTU行。The first width being less than or equal to the second width indicates that the CTU line corresponding to the first width in the marked area is included in the CTU line corresponding to the second width in the coded image.
具体的,进行全帧解码以得到原始图像的方法可参见现有技术,此处不再赘述。Specifically, for the method of performing full-frame decoding to obtain the original image, reference may be made to the prior art, which will not be repeated here.
方式B2,操作指令为滑动操作对应的指令;S203具体包括:检测滑动操作对应的停顿时间;在停顿时间超过预设值时,在当前显示界面中确定标定区域;根据标定区域和编码信息,在编码图像中确定与标定区域对应的待解码图像。Mode B2, the operation instruction is an instruction corresponding to the sliding operation; S203 specifically includes: detecting the pause time corresponding to the sliding operation; when the pause time exceeds a preset value, determining the calibration area in the current display interface; according to the calibration area and coding information, in the The image to be decoded corresponding to the marked area is determined in the coded image.
进一步地,可以通过上述方式B1,实现方式B2中的根据标定区域和编码信息,在编码图像中确定与标定区域对应的待解码图像。Further, the method B1 can be used to implement the method B2 in which the image to be decoded corresponding to the marked area is determined in the coded image according to the marked area and the coding information.
S204,对待解码图像进行解码,得到目标原始图像,并在标定区域内显示目标原始图像。S204. Decode the image to be decoded to obtain the target original image, and display the target original image in the marked area.
可选地,当待解码图像的尺寸与标定区域的尺寸相同时,对待解码图像进行解码,得到目标原始图像。可选地,当待解码图像的尺寸与标定区域的尺寸不相同时,对待解码图像进行解码,得到解码图像,并根据标定区域的尺寸对解码图像进行剪裁得到目标原始图像。Optionally, when the size of the image to be decoded is the same as the size of the marked area, the image to be decoded is decoded to obtain the target original image. Optionally, when the size of the image to be decoded is different from the size of the marked area, the image to be decoded is decoded to obtain a decoded image, and the decoded image is clipped according to the size of the marked area to obtain a target original image.
图2实施例提供的图像处理方法包括:根据操作指令和编码信息,在编码图像中确定待解码图像,对待解码图像进行解码,得到目标原始图像,并在标定区域内显示目标原始图像,能够实现终端设备仅对编码图像中的部分编码图像(即待解码图像)进行解码,以得到用户想要浏览的目标原始图像,从而节省终端设备的内存空间,避免资讯应用程序卡顿或者崩溃等, 提升终端设备中资讯应用程序的性能,进而提高用户的应用体验。The image processing method provided by the embodiment in Fig. 2 includes: according to the operation instruction and the encoding information, determine the image to be decoded in the encoded image, decode the image to be decoded, obtain the target original image, and display the target original image in the marked area, which can realize The terminal device only decodes part of the coded images (that is, the images to be decoded) in the coded images to obtain the target original image that the user wants to browse, thereby saving the memory space of the terminal device and avoiding the freeze or crash of the information application program. The performance of the information application program in the terminal device, thereby improving the application experience of the user.
在上述实施例的基础上,下面结合图3以待解码图像的尺寸大于标定区域的尺寸为例,对根据起始位置、第一高度、第一宽度、第二高度和第二宽度,在编码图像中确定待解码图像的具体执行过程进行说明。On the basis of the above-mentioned embodiment, in conjunction with Fig. 3 below, taking the size of the image to be decoded larger than the size of the marked area as an example, according to the starting position, first height, first width, second height and second width, in the encoding The specific execution process of determining the image to be decoded in the image will be described.
图3为本申请实施例提供的确定待解码图像的方法流程图一。如图3所示,在上述S203的基础上,该方法包括:FIG. 3 is a first flowchart of a method for determining an image to be decoded provided by an embodiment of the present application. As shown in Figure 3, on the basis of the above S203, the method includes:
S301,获取起始位置、第一高度、第一宽度、第二高度和第二宽度。S301. Acquire a starting position, a first height, a first width, a second height, and a second width.
可选地,在获取操作指令之后,可以存储标定区域的起始位置、第一高度和第一宽度。Optionally, after the operation instruction is acquired, the initial position, first height and first width of the marked area may be stored.
可选地,在对编码信息中包括序列参数集进行解析处理,得到编码图像的第二高度和第二宽度之后,可以存储第二高度和第二宽度。Optionally, after parsing and processing the sequence parameter set included in the coding information to obtain the second height and the second width of the coded image, the second height and the second width may be stored.
当执行S301时,可以执行获取已经存储的起始位置、第一高度、第一宽度、第二高度和第二宽度。When S301 is executed, acquiring the stored starting position, first height, first width, second height and second width may be performed.
可选地,也可以在确定起始位置、第一高度和第一宽度均不是预设值之后,直接Optionally, after determining that the initial position, the first height, and the first width are not preset values, directly
S302,根据起始位置、第一高度、第一宽度、第二高度和第二宽度,判断标定区域是否位于编码图像中。S302. According to the starting position, the first height, the first width, the second height, and the second width, determine whether the marked area is located in the coded image.
若是,则执行S303,否则执行S304。If yes, execute S303, otherwise execute S304.
可选地,若起始位置位于编码图像中、第一高度小于第二高度、第一宽度小于第二宽度,则标定区域位于编码图像中;Optionally, if the starting position is located in the coded image, the first height is smaller than the second height, and the first width is smaller than the second width, the marked area is located in the coded image;
否则,标定区域不在编码图像中。Otherwise, the labeled region is not in the coded image.
S303,根据起始位置、第一高度和第二高度,在编码图像中确定待解码图像。S303. Determine an image to be decoded in the encoded image according to the starting position, the first height, and the second height.
可选地,S303的具体执行方法可以包括如下两种方式(方式A1和方式A2)。Optionally, the specific execution method of S303 may include the following two ways (way A1 and way A2).
方式A1,起始位置包括高度起始位置;根据高度起始位置,确定最小边界值;根据第一高度、第二高度和高度起始位置,确定最大边界值;将编码图像中最小边界值至最大边界值的CTU行,确定为待解码图像。Mode A1, the starting position includes the height starting position; determine the minimum boundary value according to the height starting position; determine the maximum boundary value according to the first height, the second height and the height starting position; encode the minimum boundary value in the image to The CTU row with the maximum boundary value is determined as the image to be decoded.
可选地,可以采用如下方法确定最小边界值:Optionally, the following method can be used to determine the minimum boundary value:
将高度起始位置右移第三预设值;第三预设值为编码图像对应的编码方式对应的预设值;将第一预设值、以及右移之后的高度起始位置与第二预设值的差值中的最小值,确定为最小边界值。Move the height start position to the right by the third preset value; the third preset value is the preset value corresponding to the encoding method corresponding to the encoded image; the first preset value and the height start position after the right shift are the same as the second The minimum value among the differences of the preset values is determined as the minimum boundary value.
即可以通过如下公式1得到最小边界值:That is, the minimum boundary value can be obtained by the following formula 1:
Min_crop_ctu_row=max(F1,(Y0>>C)-F2)    (1);Min_crop_ctu_row=max(F1,(Y0>>C)-F2) (1);
其中,Min_crop_ctu_row为最小边界值,max为取大值操作,F1为第一预设值,Y0为高度起始位置,>>为右移符号,-为减号,C为第三预设值,F2为第二预设值。可选地,F1可以为0或者其他正整数,F2可以为2或者其他正整数。Among them, Min_crop_ctu_row is the minimum boundary value, max is the operation of taking a large value, F1 is the first preset value, Y0 is the height starting position, >> is the right shift symbol, - is the minus sign, C is the third preset value, F2 is the second preset value. Optionally, F1 may be 0 or other positive integers, and F2 may be 2 or other positive integers.
可选地,可以采用如下方法确定最大边界值:Optionally, the following method can be used to determine the maximum boundary value:
将第三预设值左移第十预设值;确定高度起始位置、第一高度、左移之后的第三预设值的和值,与第十预设值的差值;将差值右移第三预设值;将第二高度和右移之后的差值中的最小值,确定为最大边界值。Move the third preset value to the left by the tenth preset value; determine the sum of the height starting position, the first height, and the third preset value after the left shift, and the difference between the tenth preset value; The third preset value is shifted to the right; the minimum value of the difference between the second height and the right shifted value is determined as the maximum boundary value.
即可以通过如下公式2得到最大边界值:That is, the maximum boundary value can be obtained by the following formula 2:
Max_crop_ctu_row=min(H2,(Y0+H1+(F3<<C)-F3)>>C)    (2);Max_crop_ctu_row=min(H2,(Y0+H1+(F3<<C)-F3)>>C) (2);
其中,Max_crop_ctu_row为最大边界值,min为取小值操作,H2为第二高度,H1为第一高度,F3为第十预设值,<<为左移符号。可选地,F3可以为0或者其他正整数。Among them, Max_crop_ctu_row is the maximum boundary value, min is the operation of taking a small value, H2 is the second height, H1 is the first height, F3 is the tenth preset value, << is the left shift symbol. Optionally, F3 may be 0 or other positive integers.
需要说明的是,在上述公式2中,F3<<C表示将第三预设值左移第十预设值,Y0+H1+(F3<<C)表示上述和值,Y0+H1+(F3<<C)-F3为上述差值,(Y0+H1+(F3<<C)-F3)>>C表示将上述差值右移第三预设值。It should be noted that, in the above formula 2, F3<<C means shifting the third preset value to the left by the tenth preset value, Y0+H1+(F3<<C) means the above sum value, Y0+H1+(F3< <C)-F3 is the above-mentioned difference, (Y0+H1+(F3<<C)-F3)>>C means shifting the above-mentioned difference to the right by a third preset value.
图4为本申请实施例提供确定待解码图像的一种示意图。如图4所示,包括:编码图像41、标定区域42和待解码图像43。其中,标定区域42上方的最小边界值为采用公式1得到的,标定区域42下方的最大边界值为采用公式2得到的。在图4中,待解码图像43包括:最小边界值所在的CTU行、最大边界值所在的CTU行、以及最小边界值至最大边界值之间的CTU行。FIG. 4 is a schematic diagram of determining an image to be decoded according to an embodiment of the present application. As shown in FIG. 4 , it includes: a coded image 41 , a marked area 42 and an image to be decoded 43 . Wherein, the minimum boundary value above the calibration area 42 is obtained by using Formula 1, and the maximum boundary value below the calibration area 42 is obtained by using Formula 2. In FIG. 4 , the image 43 to be decoded includes: a CTU line where the minimum boundary value is located, a CTU line where the maximum boundary value is located, and a CTU line between the minimum boundary value and the maximum boundary value.
方式A2,起始位置包括高度起始位置;将满足编码图像中第一预设条件的编码图像,确定为待解码图像,其中,第一预设条件为第一高度、第一预设高度和第二预设高度之和小于第二高度。Way A2, the starting position includes the starting position of the height; the coded picture that satisfies the first preset condition in the coded picture is determined as the picture to be decoded, wherein the first preset condition is the first height, the first preset height and The sum of the second preset heights is less than the second height.
图5为本申请实施例提供确定待解码图像的另一种示意图。如图5所示,包括:编码图像51、标定区域52和待解码图像53。其中,第一预设高度位于第一高度的上方,第二预设高度位于第一高度的下方。在图5中,待解码图像53包括:第一预设高度、第一高度、第二预设高度的高度之和所跨越的CTU行。FIG. 5 is another schematic diagram of determining an image to be decoded according to an embodiment of the present application. As shown in FIG. 5 , it includes: a coded image 51 , a marked area 52 and an image to be decoded 53 . Wherein, the first preset height is located above the first height, and the second preset height is located below the first height. In FIG. 5 , the image to be decoded 53 includes: the first preset height, the sum of the heights of the first height and the second preset height, and the CTU rows spanned.
S304,进行全帧解码,得到原始图像。S304. Perform full-frame decoding to obtain an original image.
在图3实施例中,在根据起始位置、第一高度和第二高度,在编码图像中确定待解码图像的过程中,可以将编码图像中最小边界值至最大边界值的CTU行,确定为待解码图像,使得待解码图像中包括目标原始图像对应的编码图像,从而提高对待解码图像进行解码得到的目标原始图像的准确性。In the embodiment in Fig. 3, in the process of determining the image to be decoded in the coded image according to the starting position, the first height and the second height, the CTU line from the minimum boundary value to the maximum boundary value in the coded image can be determined For the image to be decoded, the image to be decoded includes a coded image corresponding to the target original image, thereby improving the accuracy of the target original image obtained by decoding the image to be decoded.
在上述实施例的基础上,下面结合图6下面以待解码图像为编码图像中最小边界值至最大边界值的CTU行为例,对上述S204的具体执行过程进行说明。On the basis of the above-mentioned embodiments, the specific execution process of S204 above will be described below in conjunction with FIG. 6 , where the image to be decoded is taken as an example of the CTU behavior from the minimum boundary value to the maximum boundary value in the coded image.
图6为本申请实施例提供的得到目标原始图像的方法流程图。如图6所示,该方法包括:FIG. 6 is a flowchart of a method for obtaining an original image of a target provided by an embodiment of the present application. As shown in Figure 6, the method includes:
S601,获取解码参考信息。S601. Acquire decoding reference information.
可选地,解码信息中包括滤波处理工具的开关标识;S601具体包括:根据开关标识,判断滤波处理工具是否开启;若是,则将编码图像中第四预设值个位于待解码图像上方的CTU行和第五预设值个位于待解码图像下方的CTU行,确定为第一参考解码图像,并根据第一参考解码图像,确定解码参考信息;否则,则将编码图像中第六预设值个位于待解码图像上方的CTU行和第七预设值个位于待解码图像下方的CTU行,确定为第二参考解码图像,并根据第二参考解码图像,确定解码参考信息。Optionally, the decoding information includes the switch identification of the filter processing tool; S601 specifically includes: judging whether the filter processing tool is enabled according to the switch identification; row and the fifth preset value CTU row located below the image to be decoded are determined as the first reference decoded image, and the decoding reference information is determined according to the first reference decoded image; otherwise, the sixth preset value in the coded image The CTU lines above the picture to be decoded and the seventh preset CTU lines below the picture to be decoded are determined as the second reference decoded picture, and the decoding reference information is determined according to the second reference decoded picture.
可选地,滤波处理工具可以为自适应环路滤波工具(adaptive loop filter)、去除块效应滤波工具(deblocking filter)、样本自适应补偿工具(SAO)中的任意至少一种。Optionally, the filter processing tool may be any at least one of an adaptive loop filter tool (adaptive loop filter), a deblocking filter tool (deblocking filter), and a sample adaptive compensation tool (SAO).
可选地,当滤波处理工具包括去除块效应滤波工具和样本自适应补偿工具时,解码信息中包括去除块效应滤波工具对应的第一开关标识和样本自适应补偿工具对应的第二开关标识。Optionally, when the filtering processing tool includes a deblocking filtering tool and a sample adaptive compensation tool, the decoding information includes a first switch identifier corresponding to the deblocking filtering tool and a second switch identifier corresponding to the sample adaptive compensation tool.
进一步地,根据第一开关标识,判断去除块效应滤波工具是否开启,根据第二开关标识,判断样本自适应补偿工具是否开启。Further, according to the first switch identification, it is judged whether the filtering tool for removing blockiness is enabled, and according to the second switch identification, it is determined whether the sample adaptive compensation tool is enabled.
例如,若第一开关标识为开启标识,则确定去除块效应滤波工具开启,若第一开关标识为 关闭标识,则确定去除块效应滤波工具关闭。For example, if the first switch flag is an on flag, it is determined that the deblocking filtering tool is turned on, and if the first switch flag is an off flag, then it is determined that the deblocking filtering tool is off.
可选地,第四预设值可以为2,第五预设值可以为1,第六预设值可以为1,第七预设值可以为1,当然,第四预设值、第五预设值、第六预设值、第七预设值还可以为其他正整数。Optionally, the fourth preset value can be 2, the fifth preset value can be 1, the sixth preset value can be 1, and the seventh preset value can be 1. Of course, the fourth preset value, the fifth preset value The preset value, the sixth preset value, and the seventh preset value can also be other positive integers.
可选地,当第四预设值为2、第五预设值为1时,第四预设值个位于待解码图像上方的CTU行包括第一CTU行和第二CTU行,第五预设值个位于待解码图像下方的CTU行包括第三CTU行;根据第一参考解码图像,确定解码参考信息,包括:Optionally, when the fourth preset value is 2 and the fifth preset value is 1, the fourth preset CTU rows above the image to be decoded include the first CTU row and the second CTU row, and the fifth preset Set the CTU row below the image to be decoded to include the third CTU row; according to the first reference decoded image, determine the decoding reference information, including:
分别对第一CTU行、第二CTU行和第三CTU行进行解码,得到第一原始像素集、第二原始像素集和第三原始像素集;Decoding the first CTU line, the second CTU line and the third CTU line respectively to obtain the first original pixel set, the second original pixel set and the third original pixel set;
采用滤波处理工具分别对第一原始像素集和第二原始像素集进行环内滤波处理,得到第一处理像素集和第二处理像素集;performing in-loop filtering processing on the first original pixel set and the second original pixel set respectively by using a filtering processing tool to obtain a first processed pixel set and a second processed pixel set;
根据第一处理像素集、第二处理像素集和第三原始像素集,确定解码参考信息。Decoding reference information is determined according to the first processed pixel set, the second processed pixel set and the third original pixel set.
其中,第一原始像素集对第一CTU行进行解码得到的,第二原始像素集为对第二CTU行进行解码得到,第三原始像素集为对第三CTU行进行解码得到的。Wherein, the first original pixel set is obtained by decoding the first CTU row, the second original pixel set is obtained by decoding the second CTU row, and the third original pixel set is obtained by decoding the third CTU row.
其中,第一处理像素集为对第一原始像素集进行环内滤波处理得到的,第二处理像素集为对第二原始像素集进行环内滤波处理得到的。Wherein, the first processed pixel set is obtained by performing in-loop filtering on the first original pixel set, and the second processed pixel set is obtained by performing in-loop filtering on the second original pixel set.
可选地,当当滤波处理工具包括去除块效应滤波工具和样本自适应补偿工具时,采用去滤波处理工具分别对第一原始像素集和第二原始像素集进行环内滤波处理,得到第一处理像素集和第二处理像素集,包括:Optionally, when the filtering processing tool includes a blocking removal filtering tool and a sample adaptive compensation tool, the de-filtering processing tool is used to perform in-loop filtering processing on the first original pixel set and the second original pixel set respectively, to obtain the first processing A pixel set and a second processed pixel set comprising:
采用去除块效应滤波工具,分别对第一原始像素集和第二原始像素集进行环内滤波处理,得到第一处理像素集和第二处理像素集;或者,performing in-loop filtering on the first original set of pixels and the second set of original pixels respectively by using a filtering tool for removing block effects, to obtain a first set of processed pixels and a second set of processed pixels; or,
采用样本自适应补偿工具,分别对第一原始像素集和第二原始像素集进行环内滤波处理,得到第一处理像素集和第二处理像素集;或者,Using a sample adaptive compensation tool, respectively performing in-loop filtering on the first original pixel set and the second original pixel set to obtain the first processed pixel set and the second processed pixel set; or,
采用去除块效应滤波工具对第一原始像素集进行环内滤波处理,得到第一处理像素集,采用样本自适应补偿工具对第二原始像素集进行环内滤波处理,得到第二处理像素集。The in-loop filtering process is performed on the first original pixel set by using the block effect removal filter tool to obtain the first processed pixel set, and the in-loop filter process is performed on the second original pixel set by the sample adaptive compensation tool to obtain the second processed pixel set.
可选地,第一处理像素集和第二处理像素集分别包括N行像素数据,N为大于或等于2的整数;根据第一处理像素集、第二处理像素集和第三原始像素集,确定解码参考信息,包括:Optionally, the first processed pixel set and the second processed pixel set respectively include N rows of pixel data, and N is an integer greater than or equal to 2; according to the first processed pixel set, the second processed pixel set and the third original pixel set, Determine decoding reference information, including:
采用第二处理像素集中N行像素数据中的最后M行像素数据,替换第一处理像素集中N行像素数据中的最后M行像素数据,得到第一处理像素集对应的第三处理像素集;M为小于N的正整数;Using the last M rows of pixel data in the N rows of pixel data in the second processed pixel set to replace the last M rows of pixel data in the N rows of pixel data in the first processed pixel set to obtain a third processed pixel set corresponding to the first processed pixel set; M is a positive integer less than N;
将第二处理像素集、第三处理像素集和第三原始像素集,确定为解码参考信息。The second processed pixel set, the third processed pixel set and the third original pixel set are determined as decoding reference information.
可选地,N可以为64、32、16、4等。Optionally, N can be 64, 32, 16, 4, etc.
下面结合图7对本申请中根据第一参考解码图像确定解码参考信息的框图进行说明。The block diagram of determining the decoding reference information according to the first reference decoded image in this application will be described below with reference to FIG. 7 .
图7为本申请实施例提供的一种确定解码参考信息的示意图。如图7所示,分别对第一CTU行、第二CTU行和第三CTU行进行解码,得到第一原始像素集、第二原始像素集和第三原始像素集。FIG. 7 is a schematic diagram of determining decoding reference information provided by an embodiment of the present application. As shown in FIG. 7 , the first CTU line, the second CTU line and the third CTU line are respectively decoded to obtain the first original pixel set, the second original pixel set and the third original pixel set.
分别对第一原始像素集、第二原始像素集进行环路滤波,得到第一处理像素集、第二处理像素集。Loop filtering is performed on the first original pixel set and the second original pixel set respectively to obtain the first processed pixel set and the second processed pixel set.
根据第一处理像素集、第二处理像素集,得到第三处理像素集。According to the first processed pixel set and the second processed pixel set, a third processed pixel set is obtained.
进而将第三处理像素集、第二处理像素集、第三原始像素集确定为解码参考信息。Further, the third processed pixel set, the second processed pixel set, and the third original pixel set are determined as decoding reference information.
可选地,当第六预设值和第七预设值均为1时,第六预设值个位于待解码图像上方的CTU行包括第一CTU行,第七预设值个位于待解码图像下方的CTU行包括第二CTU行;Optionally, when both the sixth preset value and the seventh preset value are 1, the sixth preset value of the CTU row above the image to be decoded includes the first CTU row, and the seventh preset value of the CTU row above the image to be decoded includes the first CTU row. The CTU row below the image includes the second CTU row;
根据第二参考解码图像,确定解码参考信息,包括:Determining decoding reference information according to the second reference decoding image, including:
分别对第一CTU行和第二CTU行进行解码,得到第一原始像素集和第二原始像素集;第一原始像素集和第二原始像素集分别包括N行原始像素数据;Decoding the first CTU line and the second CTU line respectively to obtain a first original pixel set and a second original pixel set; the first original pixel set and the second original pixel set respectively include N rows of original pixel data;
采用第一原始像素集中N行原始像素数据的最后M行原始像素数据,替换第一原始像素集中N行原始像素数据的前M行原始像素数据,得到第二像素集;Using the last M rows of raw pixel data of the N rows of raw pixel data in the first raw pixel set to replace the first M rows of raw pixel data of the N rows of raw pixel data in the first raw pixel set to obtain a second pixel set;
将第二像素集和第二原始像素集,确定为解码参考信息。The second pixel set and the second original pixel set are determined as decoding reference information.
下面结合图8对本申请中根据第二参考解码图像确定解码参考信息的框图进行说明。图8为本申请实施例提供的另一种确定解码参考信息的示意图。如图8所示,分别对第一CTU行和第二CTU行和第三CTU行进行解码,得到第一原始像素集和第二原始像素。根据第一原始像素集,得到第二像素集。将第二像素集和第二原始像素,确定为解码参考信息。The block diagram of determining the decoding reference information according to the second reference decoded image in this application will be described below with reference to FIG. 8 . FIG. 8 is a schematic diagram of another method for determining decoding reference information provided by the embodiment of the present application. As shown in FIG. 8 , the first CTU row, the second CTU row, and the third CTU row are decoded respectively to obtain the first original pixel set and the second original pixel. According to the first original pixel set, a second pixel set is obtained. The second pixel set and the second original pixel are determined as decoding reference information.
S602,根据解码参考信息,对待解码图像进行解码,得到目标原始图像。S602. Decode the image to be decoded according to the decoding reference information to obtain a target original image.
可选地,S602具体包括:根据解码参考信息,对待解码图像进行解码,得到重建像素值;将重建像素值存储至预设区域,得到重建图像;预设区域和待解码图像的尺寸相同;根据起始位置、第一高度、第一宽度,在重建图像中确定目标原始图像。Optionally, S602 specifically includes: decoding the image to be decoded according to the decoding reference information to obtain a reconstructed pixel value; storing the reconstructed pixel value in a preset area to obtain a reconstructed image; the size of the preset area is the same as that of the image to be decoded; The starting position, the first height, and the first width determine the target original image in the reconstructed image.
可选地,根据起始位置、第一高度、第一宽度,在重建图像中确定目标原始图像,包括:将高度初始位置,与将第三预设值左移最小边界值之后的左移值的差值,确定为顶部偏移量;Optionally, according to the initial position, the first height, and the first width, the target original image is determined in the reconstructed image, including: the initial position of the height, and the left shift value after the third preset value is shifted to the left by the minimum boundary value The difference is determined as the top offset;
将第三预设值左移最大边界值和第九预设值的和值之后的值、以及第二高度与高度初始位置和第一高度和值的差值中的最小值,确定为底部偏移量;The value after the third preset value is shifted to the left by the maximum boundary value and the sum of the ninth preset value, and the minimum value of the difference between the second height and the height initial position and the first height sum value is determined as the bottom deviation displacement;
将起始位置的宽度起始位置,确定为左侧偏移量;Determine the width starting position of the starting position as the left offset;
将第二宽度与左侧偏移量和第一宽度之和的差值,确定为右侧偏移量;顶部偏移量、底部偏移量、左侧偏移量和右侧偏移量指示在重建图像中待删除的图像;The difference between the second width and the sum of the left offset and the first width is determined as the right offset; the top offset, bottom offset, left offset, and right offset indicate the image to be deleted in the reconstructed image;
在重建图像中删除待删除的图像,得到目标原始图像。Delete the image to be deleted in the reconstructed image to obtain the target original image.
可选地,可以通过如下公式3确定顶部偏移量:Optionally, the top offset can be determined by the following formula 3:
luma_offset_top=Y0-(Min_crop_ctu_row<<C)   公式3;luma_offset_top=Y0-(Min_crop_ctu_row<<C) Formula 3;
其中,luma_offset_top为顶部偏移量。Among them, luma_offset_top is the top offset.
可选地,可以通过如下公式4确定底部偏移量:Optionally, the bottom offset can be determined by the following formula 4:
luma_offset_bottom=min(((Max_crop_ctu_row+1)<<C),H2-(Y0+H1))   (4);luma_offset_bottom=min(((Max_crop_ctu_row+1)<<C),H2-(Y0+H1)) (4);
其中,luma_offset_bottom为底部偏移量,+为加号。Among them, luma_offset_bottom is the bottom offset, + is the plus sign.
可选地,可以通过如下公式5确定左侧偏移量:Optionally, the left offset can be determined by the following formula 5:
luma_offset_left=X0   (5);luma_offset_left = X0 (5);
其中,luma_offset_left为左侧偏移量,X0为宽度起始位置。Among them, luma_offset_left is the left offset, and X0 is the starting position of the width.
可选地,可以通过如下公式6确定右侧偏移量:Optionally, the right offset can be determined by the following formula 6:
luma_offset_right=src->width-(luma_offset_left+W1)   (6);luma_offset_right=src->width-(luma_offset_left+W1) (6);
其中,luma_offset_right为右侧偏移量,src->width指示第二宽度。Among them, luma_offset_right is the right offset, and src->width indicates the second width.
图9为本申请实施例提供的一种得到重建图像的示意图。在图7的基础上,如图9所示,将第三处理像素集、第二处理像素集依次存储至预设区域的上方,将第三原始像素集存储至预设区域的下方,将根据第三处理像素集、第二处理像素集和第三原始像素确定的解码参考信 息,对待解码图像进行解码得到的重建像素值存储至预设区域,得到重建图像。FIG. 9 is a schematic diagram of obtaining a reconstructed image provided by an embodiment of the present application. On the basis of Figure 7, as shown in Figure 9, the third processed pixel set and the second processed pixel set are sequentially stored above the preset area, and the third original pixel set is stored below the preset area, according to The decoding reference information determined by the third processed pixel set, the second processed pixel set and the third original pixel, and the reconstructed pixel values obtained by decoding the image to be decoded are stored in a preset area to obtain a reconstructed image.
其中,重建图像中包括重建像素值。Wherein, the reconstructed image includes reconstructed pixel values.
图10为本申请实施例提供一种在重建图像中确定目标原始图像的示意图。如图10所示,包括:重建图像1001、目标原始图像1002、待删除的图像1003。FIG. 10 is a schematic diagram of determining a target original image in a reconstructed image according to an embodiment of the present application. As shown in FIG. 10 , it includes: a reconstructed image 1001 , a target original image 1002 , and an image to be deleted 1003 .
其中,图像1003为顶部偏移量、底部偏移量、左侧偏移量和右侧偏移量指示在重建图像中待删除的图像。进一步地,在重建图像中删除图像1003之后,得到目标原始图像1002。Wherein, image 1003 indicates images to be deleted in the reconstructed image for top offset, bottom offset, left offset and right offset. Further, after the image 1003 is deleted from the reconstructed image, the target original image 1002 is obtained.
在本申请中,还可以根据确定目标原始图像的内存地址。例如,在图10中,重建图像的左上角的内存地址为p_src0、像素的内存间隔是stride,则目标原始图像的左上角的内存地址为p_src0+luma_offset_top*stride+luma_offset_left。In this application, it is also possible to determine the memory address of the target original image. For example, in Figure 10, the memory address of the upper left corner of the reconstructed image is p_src0, and the pixel memory interval is stride, then the memory address of the upper left corner of the target original image is p_src0+luma_offset_top*stride+luma_offset_left.
在上述实施例的基础上,本申请还提供另一种根据起始位置、第一高度和第二高度,确定待解码区域的方法。下面结合图11进行说明。On the basis of the above embodiments, the present application also provides another method for determining the region to be decoded according to the starting position, the first height and the second height. The following description will be made in conjunction with FIG. 11 .
图11为本申请实施例提供的确定待解码图像的方法流程图二。如图10所示,该方法包括:FIG. 11 is a second flow chart of a method for determining an image to be decoded provided by an embodiment of the present application. As shown in Figure 10, the method includes:
S111,对编码信息中包括的图像参数集进行解析处理,得到编码图像中包括的图像分片的位置区域和分片数量。S111, analyze and process the image parameter set included in the encoding information to obtain the location area and the number of image slices included in the encoded image.
可选地,图像分片可以为图像片(slice)或者图像瓦(tile)。Optionally, the image slices may be image slices or image tiles.
需要说明的是,slice是按照条带状对编码图像进行划分,tile是按照矩形对编码图像进行划分。It should be noted that the slice is to divide the coded image according to the strip shape, and the tile is to divide the coded image according to the rectangle.
S112,判断分片数量是否等于预设值。S112. Determine whether the number of fragments is equal to a preset value.
若是,则执行S113,否则执行S114。If yes, execute S113, otherwise execute S114.
S113,根据起始位置、第一高度和第二高度,确定待解码区域。S113. Determine the area to be decoded according to the starting position, the first height and the second height.
需要说明的是,S113的执行过程可以参见图3中的S303,此处不再赘述。It should be noted that, the execution process of S113 may refer to S303 in FIG. 3 , which will not be repeated here.
S114,在编码图像中删除与标定区域无重叠的图像分片,并根据起始位置、第一高度和第二高度,在删除图像分片之后的在编码图像中确定待解码区域。S114. Delete image slices that do not overlap with the marked area in the coded image, and determine a region to be decoded in the coded image after the image slice is deleted according to the starting position, the first height, and the second height.
下面结合图12以图像分片为tile为例,对S114进行示例性说明。S114 is exemplarily described below with reference to FIG. 12 , taking tiles as an example of an image slice.
图12为本申请实施例提供的一种编码图像包括多个tile的示意图。如图12所示,编码图像中包括多个tile。例如多个tile包括T1-T10。其中,图像分片T1-T4和T7-T10为在编码图像中与标定区域无重叠的8个图像分片。FIG. 12 is a schematic diagram of a coded image provided by an embodiment of the present application including multiple tiles. As shown in FIG. 12, a coded image includes multiple tiles. For example, multiple tiles include T1-T10. Among them, the image slices T1-T4 and T7-T10 are 8 image slices that do not overlap with the marked area in the coded image.
可以在编码图像中删除与标定区域无重叠的图像分片T1-T4和T7-T10,得到剩余编码图像,进而根据起始位置、第一高度和第二高度,在剩余编码图像中确定待解码区域。The image slices T1-T4 and T7-T10 that do not overlap with the marked area can be deleted in the coded image to obtain the remaining coded image, and then according to the starting position, the first height and the second height, determine the remaining coded image to be decoded area.
需要说明的是,在根据起始位置、第一高度和第二高度,在剩余编码图像中确定待解码区域的方法与上述S303相似,此处不再赘述。It should be noted that, according to the starting position, the first height and the second height, the method of determining the area to be decoded in the remaining coded image is similar to the above S303, and will not be repeated here.
下面结合图13以图像分片为slice为例,对S114进行示例性说明。S114 will be exemplarily described below with reference to FIG. 13 , taking the image slice as slices as an example.
图13为本申请实施例提供的一种编码图像包括多个slice的示意图。如图12所示,编码图像中包括多个slice。例如多个slice包括S1-S5。其中,图像分片S1、S2和S5为在编码图像中与标定区域无重叠的3个图像分片。FIG. 13 is a schematic diagram of a coded image provided by an embodiment of the present application including multiple slices. As shown in FIG. 12 , a coded image includes multiple slices. For example, multiple slices include S1-S5. Among them, the image slices S1, S2 and S5 are three image slices that do not overlap with the marked area in the coded image.
可以在编码图像中删除与标定区域无重叠的图像分片S1、S2和S5,得到剩余编码图像,进而根据起始位置、第一高度和第二高度,在剩余编码图像中确定待解码区域。The image slices S1, S2, and S5 that do not overlap with the marked area can be deleted in the coded image to obtain the remaining coded image, and then according to the starting position, the first height and the second height, determine the area to be decoded in the remaining coded image.
需要说明的是,在根据起始位置、第一高度和第二高度,在剩余编码图像中确定待解码区 域的方法与上述S303相似,此处不再赘述。It should be noted that, according to the starting position, the first height and the second height, the method of determining the area to be decoded in the remaining coded image is similar to the above S303, and will not be repeated here.
根据本申请的方法设计,针对待解码图像,需要将待解码图像中包括的完成CTU行进行解码,即本申请中的第一宽度对解码速度和内存没有影响。下面结合表1,对比于全帧解码(即对编码图像(具有高度H2)进行全帧解码),对具有H2/2、H2/4、H2/8高度(即第一高度)的待解码图像进行解码,得到解码时间和占用内存大小,如下表1所示。According to the method design of the present application, for the image to be decoded, it is necessary to decode the completed CTU lines included in the image to be decoded, that is, the first width in the present application has no influence on the decoding speed and memory. Below in conjunction with Table 1, compared to full-frame decoding (i.e. full-frame decoding of the encoded image (with height H2)), the image to be decoded with H2/2, H2/4, H2/8 height (i.e. the first height) Perform decoding to obtain the decoding time and occupied memory size, as shown in Table 1 below.
表1Table 1
解析高度resolution height 解码时长(毫秒,百分比)Decoding time (milliseconds, percentage) 内存(兆字节,百分比)memory (megabytes, percent)
1080(H2)1080(H2) 82.679,100%82.679, 100% 6.09,100%6.09, 100%
540(H2/2)540(H2/2) 51.000,61.68%51.000, 61.68% 4.15,68.14%4.15, 68.14%
270(H2/4)270(H2/4) 31.008,37.50%31.008, 37.50% 3.03,49.75%3.03, 49.75%
135(H2/8)135(H2/8) 21.383,25.86%21.383, 25.86% 2.46,40.39%2.46, 40.39%
需要说明的是,表1为根据测试数据高度起始位置和宽度起始位置均为0,第一宽度为1920为例,得到的测试结果。It should be noted that Table 1 is an example of the test results obtained based on the fact that the initial height position and width initial position of the test data are both 0, and the first width is 1920.
在表1中,1080(H2)用于指示进行全帧解码。当进行全帧解码时,解码时长为82.679毫秒(认为是参考时长百分比100%),内存占用的大小为6.09兆字节(认为是参考内存占用百分比100%)。In Table 1, 1080 (H2) is used to indicate full-frame decoding. When performing full-frame decoding, the decoding time is 82.679 milliseconds (considered as a reference time percentage of 100%), and the size of the memory occupation is 6.09 megabytes (considered as a reference memory occupation percentage of 100%).
例如,当对第一高度为540(即H2/2高度)的待解码图像进行解码,得到解码时长为51.000毫秒(为82.679毫秒的61.68%,内存占用的大小为4.15兆字节(为6.09兆字节的68.14%)。For example, when the image to be decoded whose first height is 540 (that is, H2/2 height) is decoded, the decoding time length is 51.000 milliseconds (61.68% of 82.679 milliseconds), and the size of the memory occupation is 4.15 megabytes (6.09 megabytes 68.14% of bytes).
进一步地,从表1中可以看出第一高度越小解码时长越短,占用的内存越小。Further, it can be seen from Table 1 that the smaller the first height is, the shorter the decoding duration is, and the smaller the occupied memory is.
需要说明的是,本申请提供的图像处理方法可以应用于的编解码标准包括但不限于heif编解码标准或者某个编解码标准。It should be noted that the codec standards to which the image processing method provided in this application can be applied include but are not limited to the heif codec standard or a certain codec standard.
图14为本申请实施例提供的图像处理装置的结构示意图。如图14所示,图像处理装置10包括:FIG. 14 is a schematic structural diagram of an image processing device provided by an embodiment of the present application. As shown in Figure 14, the image processing device 10 includes:
接收模块11,用于接收服务器发送的编码信息;编码信息中包括原始图像对应的编码图像;The receiving module 11 is configured to receive the encoded information sent by the server; the encoded information includes the encoded image corresponding to the original image;
获取模块12,用于获取操作指令;An acquisition module 12, configured to acquire an operation instruction;
确定模块13,用于根据操作指令和编码信息,在编码图像中确定待解码图像;待解码图像为原始图像中标定区域内的目标原始图像对应的编码图像;The determination module 13 is used to determine the image to be decoded in the encoded image according to the operation instruction and the encoding information; the image to be decoded is the encoded image corresponding to the target original image in the marked area in the original image;
处理模块14,用于对待解码图像进行解码,得到目标原始图像;The processing module 14 is used to decode the image to be decoded to obtain the target original image;
显示模块15,用于在标定区域内显示目标原始图像。The display module 15 is used for displaying the target original image in the marked area.
本申请实施例提供的图像处理装置可以执行上述图像处理方法,其实现原理以及有益效果类似,此处不再进行赘述。The image processing device provided in the embodiment of the present application can execute the above-mentioned image processing method, and its implementation principles and beneficial effects are similar, and will not be repeated here.
可选地,操作指令包括标定区域的起始位置、第一高度和第一宽度,编码信息中包括序列参数集;确定模块13具体用于:判断起始位置、第一高度和第一宽度是否均为预设值;Optionally, the operation instruction includes the starting position, the first height and the first width of the marking area, and the encoding information includes a sequence parameter set; the determination module 13 is specifically used to: determine whether the starting position, the first height and the first width are are default values;
若是,则对序列参数集进行解析处理,得到解码信息,解码信息中包括编码图像的第二高度和第二宽度;并根据起始位置、第一高度、第一宽度、第二高度和第二宽度,在编码图像中确定待解码图像。If so, analyze and process the sequence parameter set to obtain decoding information, which includes the second height and second width of the encoded image; and according to the starting position, the first height, the first width, the second height and the second Width, to determine the image to be decoded in the encoded image.
可选地,确定模块13具体用于:根据起始位置、第一高度、第一宽度、第二高度和第二 宽度,判断标定区域是否位于编码图像中;Optionally, the determining module 13 is specifically configured to: judge whether the marked area is located in the coded image according to the starting position, the first height, the first width, the second height and the second width;
若是,则根据起始位置、第一高度和第二高度,在编码图像中确定待解码图像。If so, determine the image to be decoded in the coded image according to the starting position, the first height and the second height.
可选地,确定模块13具体用于:Optionally, the determining module 13 is specifically configured to:
若起始位置位于编码图像中、第一高度小于第二高度、第一宽度小于第二宽度,则标定区域位于编码图像中;If the starting position is located in the coded image, the first height is smaller than the second height, and the first width is smaller than the second width, the marked area is located in the coded image;
否则,标定区域不在编码图像中。Otherwise, the labeled region is not in the coded image.
可选地,确定模块13具体用于:根据起始位置、第一高度和第二高度,确定待解码区域;将编码图像内待解码区域中的图像,确定为待解码图像。Optionally, the determination module 13 is specifically configured to: determine the area to be decoded according to the starting position, the first height and the second height; determine the image in the area to be decoded in the coded image as the image to be decoded.
可选地,起始位置包括高度起始位置;确定模块13具体用于:根据高度起始位置,确定最小边界值;根据第一高度、第二高度和高度起始位置,确定最大边界值;将编码图像中最小边界值至最大边界值的CTU行,确定为待解码图像。Optionally, the starting position includes a height starting position; the determination module 13 is specifically used to: determine the minimum boundary value according to the height starting position; determine the maximum boundary value according to the first height, the second height and the height starting position; Determine the CTU line from the minimum boundary value to the maximum boundary value in the coded image as the image to be decoded.
可选地,确定模块13具体用于:将高度起始位置右移第三预设值;第三预设值为编码图像对应的编码方式对应的预设值;将第一预设值、以及右移之后的高度起始位置与第二预设值的差值中的最大值,确定为最小边界值。Optionally, the determining module 13 is specifically configured to: move the height starting position to the right by a third preset value; the third preset value is a preset value corresponding to the encoding method corresponding to the encoded image; set the first preset value, and The maximum value of the difference between the height starting position after the right shift and the second preset value is determined as the minimum boundary value.
可选地,确定模块13具体用于:将第三预设值左移第十预设值;确定高度起始位置、第一高度、左移之后的第三预设值的和值,与第十预设值的差值;将差值右移第三预设值;将第二高度和右移之后的差值中的最小值,确定为最大边界值。Optionally, the determining module 13 is specifically configured to: shift the third preset value to the left by the tenth preset value; determine the sum of the height starting position, the first height, and the third preset value after the left shift, and the third preset value after the left shift; The difference between ten preset values; the difference is shifted to the third preset value to the right; the minimum value of the difference between the second height and the right shift is determined as the maximum boundary value.
可选地,处理模块14具体用于:获取解码参考信息;根据解码参考信息,对待解码图像进行解码,得到目标原始图像。Optionally, the processing module 14 is specifically configured to: acquire decoding reference information; decode the image to be decoded according to the decoding reference information to obtain the target original image.
可选地,解码信息中包括滤波处理工具的开关标识;处理模块14具体用于:根据开关标识,判断滤波处理工具开启;Optionally, the decoding information includes a switch identification of the filter processing tool; the processing module 14 is specifically configured to: judge that the filter processing tool is turned on according to the switch identification;
若是,则将编码图像中第四预设值个位于待解码图像上方的CTU行和第五预设值个位于待解码图像下方的CTU行,确定为第一参考解码图像,并根据第一参考解码图像,确定解码参考信息;If so, the fourth preset value of CTU lines located above the image to be decoded and the fifth preset value of CTU lines located below the image to be decoded in the coded image are determined as the first reference decoded image, and according to the first reference Decode the image and determine the decoding reference information;
否则,则将编码图像中第六预设值个位于待解码图像上方的CTU行和第七预设值个位于待解码图像下方的CTU行,确定为第二参考解码图像,并根据第二参考解码图像,确定解码参考信息。Otherwise, the sixth preset value of CTU lines located above the image to be decoded and the seventh preset value of CTU lines located below the image to be decoded in the coded image are determined as the second reference decoded image, and according to the second reference Decode the image and determine the decoding reference information.
可选地,第四预设值个位于待解码图像上方的CTU行包括第一CTU行和第二CTU行,第五预设值个位于待解码图像下方的CTU行包括第三CTU行;处理模块14具体用于:分别对第一CTU行、第二CTU行和第三CTU行进行解码,得到第一原始像素集、第二原始像素集和第三原始像素集;采用滤波处理工具分别对第一原始像素集和第二原始像素集进行环内滤波处理,得到第一处理像素集和第二处理像素集;根据第一处理像素集、第二处理像素集和第三原始像素集,确定解码参考信息。Optionally, the fourth preset number of CTU rows above the image to be decoded includes the first CTU row and the second CTU row, and the fifth preset number of CTU rows below the image to be decoded includes the third CTU row; Module 14 is specifically used to: respectively decode the first CTU line, the second CTU line and the third CTU line to obtain the first original pixel set, the second original pixel set and the third original pixel set; In-loop filtering is performed on the first original pixel set and the second original pixel set to obtain the first processed pixel set and the second processed pixel set; according to the first processed pixel set, the second processed pixel set and the third original pixel set, determine Decode reference information.
可选地,第一处理像素集和第二处理像素集分别包括N行像素数据,N为大于或等于2的整数;处理模块14具体用于:采用第二处理像素集中N行像素数据中的最后M行像素数据,替换第一处理像素集中N行像素数据中的最后M行像素数据,得到第一处理像素集对应的第三处理像素集;M为小于N的正整数;将第二处理像素集、第三处理像素集和第三原始像素集,确定为解码参考信息。Optionally, the first processing pixel set and the second processing pixel set respectively include N rows of pixel data, and N is an integer greater than or equal to 2; the processing module 14 is specifically configured to: use The last M rows of pixel data are replaced with the last M rows of pixel data in the N rows of pixel data in the first processing pixel set to obtain the third processing pixel set corresponding to the first processing pixel set; M is a positive integer less than N; the second processing The pixel set, the third processed pixel set and the third original pixel set are determined as decoding reference information.
可选地,第六预设值个位于待解码图像上方的CTU行包括第一CTU行,第七预设值个 位于待解码图像下方的CTU行包括第二CTU行;处理模块14具体用于:分别对第一CTU行和第二CTU行进行解码,得到第一原始像素集和第二原始像素集;第一原始像素集包括N行原始像素数据;采用第一原始像素集中N行原始像素数据的最后M行原始像素数据,替换第一原始像素集中N行原始像素数据的前M行原始像素数据,得到第二像素集;将第二像素集和第二原始像素集,确定为解码参考信息。Optionally, the sixth preset number of CTU rows above the image to be decoded includes the first CTU row, and the seventh preset number of CTU rows below the image to be decoded includes the second CTU row; the processing module 14 is specifically used to : Decode the first CTU line and the second CTU line respectively to obtain the first original pixel set and the second original pixel set; the first original pixel set includes N lines of original pixel data; adopt N lines of original pixels in the first original pixel set The last M lines of original pixel data of the data are replaced with the first M lines of original pixel data of the N lines of original pixel data in the first original pixel set to obtain a second pixel set; the second pixel set and the second original pixel set are determined as decoding references information.
可选地,处理模块14具体用于:根据解码参考信息,对待解码图像进行解码,得到重建像素值;并将重建像素值存储至预设区域,得到重建图像;预设区域和待解码图像的尺寸相同;根据起始位置、第一高度、第一宽度,在重建图像中确定目标原始图像。Optionally, the processing module 14 is specifically configured to: decode the image to be decoded according to the decoding reference information to obtain a reconstructed pixel value; store the reconstructed pixel value in a preset area to obtain a reconstructed image; the preset area and the image to be decoded The same size; determine the target original image in the reconstructed image according to the starting position, the first height, and the first width.
可选地,处理模块14具体用于:将高度初始位置,与将第三预设值左移最小边界值之后的左移值的差值,确定为顶部偏移量;确定最大边界值和第九预设值的和值,将第三预设值左移和值之后的值、以及第二高度与高度初始位置和第一高度的差值中的最小值,确定为底部偏移量;将起始位置的宽度起始位置,确定为左侧偏移量;将第二宽度与左侧偏移量和第一宽度之和的差值,确定为右侧偏移量;顶部偏移量、底部偏移量、左侧偏移量和右侧偏移量指示在重建图像中待删除的图像;在重建图像中删除待删除的图像,得到目标原始图像。Optionally, the processing module 14 is specifically configured to: determine the difference between the initial height position and the left shift value after the third preset value is shifted to the left by the minimum boundary value as the top offset; determine the maximum boundary value and the first boundary value The sum of the nine preset values, the value after the third preset value is shifted to the left, and the minimum value of the difference between the second height and the initial position of the height and the first height, is determined as the bottom offset; The width starting position of the starting position is determined as the left offset; the difference between the second width and the sum of the left offset and the first width is determined as the right offset; the top offset, The bottom offset, the left offset and the right offset indicate the image to be deleted in the reconstructed image; the image to be deleted is deleted in the reconstructed image to obtain the target original image.
可选地,确定模块13具体用于:对编码信息中包括的图像参数集进行解析处理,得到编码图像中包括的图像分片的位置区域和分片数量;若分片数量等于预设值,则根据起始位置、第一高度和第二高度,确定待解码区域;若分片数量不等于预设值,则在编码图像中删除与标定区域无重叠的图像分片,并根据起始位置、第一高度和第二高度,在删除图像分片之后的在编码图像中确定待解码区域。Optionally, the determining module 13 is specifically configured to: analyze and process the image parameter set included in the encoding information to obtain the location area and number of image slices included in the encoded image; if the number of slices is equal to a preset value, Then according to the starting position, the first height and the second height, determine the area to be decoded; if the number of slices is not equal to the preset value, delete the image slices that do not overlap with the marked area in the coded image, and according to the starting position , the first height and the second height, the area to be decoded is determined in the coded image after the image slice is deleted.
可选地,操作指令为滑动操作对应的指令;确定模块13具体用于:检测滑动操作对应的停顿时间;在停顿时间超过预设值时,在当前显示界面中确定标定区域;根据标定区域和编码信息,在编码图像中确定与标定区域对应的待解码图像。Optionally, the operation instruction is an instruction corresponding to the sliding operation; the determination module 13 is specifically used to: detect the pause time corresponding to the sliding operation; when the pause time exceeds a preset value, determine the marked area in the current display interface; according to the marked area and The encoding information is used to determine the image to be decoded corresponding to the marked area in the encoded image.
本申请实施例提供的图像处理装置可以执行上述图像处理方法,其实现原理以及有益效果类似,此处不再进行赘述。The image processing device provided in the embodiment of the present application can execute the above-mentioned image processing method, and its implementation principles and beneficial effects are similar, and will not be repeated here.
图15本申请实施例提供的终端设备的硬件示意图。如图15所示,终端设备20可以包括:收发器21、存储器22、处理器23。FIG. 15 is a schematic hardware diagram of a terminal device provided by an embodiment of the present application. As shown in FIG. 15 , the terminal device 20 may include: a transceiver 21 , a memory 22 , and a processor 23 .
收发器21可以包括:发射器和/或接收器。该发射器还可称为发送器、发射机、发送端口或发送接口等类似描述,接收器还可称为接收器、接收机、接收端口或接收接口等类似描述。示例性地,收发器21、存储器22、处理器23各部分之间通过总线404相互连接。The transceiver 21 may include: a transmitter and/or a receiver. The transmitter may also be called a transmitter, a transmitter, a sending port, or a sending interface, and similar descriptions, and the receiver may also be called a receiver, a receiver, a receiving port, or a receiving interface, or similar descriptions. Exemplarily, parts of the transceiver 21 , the memory 22 , and the processor 23 are connected to each other through a bus 404 .
存储器22用于存储计算机执行指令;The memory 22 is used to store computer-executable instructions;
处理器23用于执行存储器22存储的计算机执行指令,使得处理器23执行上述图像处理方法。The processor 23 is configured to execute the computer-executed instructions stored in the memory 22, so that the processor 23 executes the above image processing method.
本申请实施例提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当计算机执行指令被处理器执行时实现上述图像处理方法。An embodiment of the present application provides a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, the foregoing image processing method is realized.
本申请实施例还提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时,可实现上述图像处理方法。An embodiment of the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the above image processing method can be realized.
本申请实施例还提供一种计算机程序,该计算机程序被处理器执行时,可实现上述图像处理方法。An embodiment of the present application further provides a computer program, which can implement the above image processing method when the computer program is executed by a processor.
实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的 程序可以存储于一可读取存储器中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储器(存储介质)包括:只读存储器(read-only memory,简称ROM)、RAM、快闪存储器、硬盘、固态硬盘、磁带(magnetic tape)、软盘(floppy disk)、光盘(optical disc)及其任意组合。All or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a readable memory. When the program is executed, it executes the steps comprising the above-mentioned method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (read-only memory, ROM for short), RAM, flash memory, hard disk, solid-state hard disk, Magnetic tape, floppy disk, optical disc, and any combination thereof.
本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理单元以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理单元执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processing unit of other programmable data processing equipment to produce a machine such that the instructions executed by the processing unit of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
显然,本领域的技术人员可以对本申请实施例进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请实施例的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Apparently, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. In this way, if the modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and equivalent technologies, the present application also intends to include these modifications and variations.
在本申请中,术语“包括”及其变形可以指非限制性的包括;术语“或”及其变形可以指“和/或”。本本申请中术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。本申请中,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。In this application, the term "include" and its variants may mean non-limiting inclusion; the term "or" and its variants may mean "and/or". The terms "first", "second", etc. in this application are used to distinguish similar objects, and not necessarily used to describe a specific order or sequence. In the present application, "plurality" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character "/" generally indicates that the contextual objects are an "or" relationship.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求书指出。Other embodiments of the present application will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the application, these modifications, uses or adaptations follow the general principles of the application and include common knowledge or conventional technical means in the technical field not disclosed in the application . The specification and examples are to be considered exemplary only, with a true scope and spirit of the application indicated by the following claims.
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求书来限制。It should be understood that the present application is not limited to the precise constructions which have been described above and shown in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (22)

  1. 一种图像处理方法,其特征在于,应用于终端设备,所述方法包括:An image processing method, characterized in that it is applied to a terminal device, the method comprising:
    接收服务器发送的编码信息;所述编码信息中包括原始图像对应的编码图像;receiving the encoding information sent by the server; the encoding information includes an encoding image corresponding to the original image;
    获取操作指令;Obtain operation instructions;
    根据操作指令和所述编码信息,在所述编码图像中确定待解码图像;所述待解码图像为所述原始图像中标定区域内的目标原始图像对应的编码图像;According to the operation instruction and the encoding information, determine the image to be decoded in the encoded image; the image to be decoded is an encoded image corresponding to the target original image in the marked area in the original image;
    对所述待解码图像进行解码,得到所述目标原始图像,并在所述标定区域内显示所述目标原始图像。Decoding the image to be decoded to obtain the target original image, and displaying the target original image in the marked area.
  2. 根据权利要求1所述的方法,其特征在于,所述操作指令包括所述标定区域的起始位置、第一高度和第一宽度,所述编码信息中包括序列参数集;The method according to claim 1, wherein the operation instruction includes the starting position, the first height and the first width of the marked area, and the encoded information includes a sequence parameter set;
    所述根据操作指令和所述编码信息,在所述编码图像中确定待解码图像,包括:The determining the image to be decoded in the encoded image according to the operation instruction and the encoding information includes:
    判断所述起始位置、所述第一高度和所述第一宽度是否均为预设值;judging whether the initial position, the first height and the first width are all preset values;
    若是,则对所述序列参数集进行解析处理,得到解码信息,所述解码信息中包括所述编码图像的第二高度和第二宽度;并根据所述起始位置、所述第一高度、所述第一宽度、所述第二高度和所述第二宽度,在所述编码图像中确定所述待解码图像。If so, analyze and process the sequence parameter set to obtain decoding information, the decoding information includes the second height and the second width of the coded image; and according to the starting position, the first height, The first width, the second height and the second width determine the image to be decoded in the coded image.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述起始位置、所述第一高度、所述第一宽度、所述第二高度和所述第二宽度,在所述编码图像中确定所述待解码图像,包括:The method according to claim 2, wherein, according to the starting position, the first height, the first width, the second height and the second width, in the encoding The image to be decoded is determined in the image, including:
    根据所述起始位置、所述第一高度、所述第一宽度、所述第二高度和所述第二宽度,判断所述标定区域是否位于所述编码图像中;judging whether the marked area is located in the coded image according to the starting position, the first height, the first width, the second height, and the second width;
    若是,则根据所述起始位置、所述第一高度和所述第二高度,在所述编码图像中确定所述待解码图像。If yes, then determine the image to be decoded in the coded image according to the starting position, the first height and the second height.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述起始位置、所述第一高度、所述第一宽度、所述第二高度和所述第二宽度,判断所述标定区域是否位于所述编码图像中,包括:The method according to claim 3, characterized in that, according to the initial position, the first height, the first width, the second height and the second width, it is judged that the calibration Whether a region is located in the coded image, including:
    若所述起始位置位于所述编码图像中、所述第一高度小于所述第二高度、所述第一宽度小于所述第二宽度,则所述标定区域位于所述编码图像中;If the starting position is located in the encoded image, the first height is smaller than the second height, and the first width is smaller than the second width, the marked area is located in the encoded image;
    否则,所述标定区域不在所述编码图像中。Otherwise, the marked area is not in the coded picture.
  5. 根据权利要求2-4任一项所述的方法,其特征在于,所述根据所述起始位置、所述第一高度和所述第二高度,在所述编码图像中确定所述待解码图像,包括:The method according to any one of claims 2-4, wherein, according to the starting position, the first height and the second height, the to-be-decoded images, including:
    根据所述起始位置、所述第一高度和所述第二高度,确定待解码区域;determining an area to be decoded according to the starting position, the first height, and the second height;
    将所述编码图像内所述待解码区域中的图像,确定为所述待解码图像。Determining an image in the area to be decoded in the coded image as the image to be decoded.
  6. 根据权利要求5所述的方法,其特征在于,所述起始位置包括高度起始位置;The method according to claim 5, wherein the starting position comprises a height starting position;
    所述根据所述起始位置、所述第一高度和所述第二高度,确定待解码区域,包括:The determining the area to be decoded according to the starting position, the first height and the second height includes:
    根据所述高度起始位置,确定最小边界值;Determine the minimum boundary value according to the height starting position;
    根据所述第一高度、所述第二高度和所述高度起始位置,确定最大边界值;determining a maximum boundary value according to the first height, the second height, and the height starting position;
    将所述编码图像中所述最小边界值至所述最大边界值的CTU行,确定为所述待解码图像。Determining the CTU lines from the minimum boundary value to the maximum boundary value in the coded image as the image to be decoded.
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述高度起始位置,确定最小边界值,包括:The method according to claim 6, wherein said determining the minimum boundary value according to the height starting position comprises:
    将所述高度起始位置右移第三预设值;所述第三预设值为所述编码图像对应的编码方式对应的预设值;Move the starting position of the height to the right by a third preset value; the third preset value is a preset value corresponding to the encoding method corresponding to the encoded image;
    将第一预设值、以及右移之后的高度起始位置与第二预设值的差值中的最大值,确定为所述最小边界值。The maximum value of the first preset value and the difference between the height starting position after the right shift and the second preset value is determined as the minimum boundary value.
  8. 根据权利要求7所述的方法,其特征在于,所述根据所述第一高度、所述第二高度和所述高度起始位置,确定最大边界值,包括:The method according to claim 7, wherein said determining a maximum boundary value according to said first height, said second height and said height starting position comprises:
    将所述第三预设值左移第十预设值;shifting the third preset value to the left by a tenth preset value;
    确定所述高度起始位置、所述第一高度、左移之后的第三预设值的和值,与所述第十预设值的差值;Determine the difference between the height starting position, the first height, the sum of the third preset value after the left shift, and the tenth preset value;
    将所述差值右移所述第三预设值;shifting the difference to the right by the third preset value;
    将所述第二高度和右移之后的差值中的最小值,确定为所述最大边界值。The minimum value of the difference between the second height and the right-shifted value is determined as the maximum boundary value.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述对所述待解码图像进行解码,得到所述目标原始图像,包括:The method according to any one of claims 1-8, wherein the decoding the image to be decoded to obtain the target original image comprises:
    获取解码参考信息;Obtain decoding reference information;
    根据所述解码参考信息,对所述待解码图像进行解码,得到所述目标原始图像。Decoding the image to be decoded according to the decoding reference information to obtain the target original image.
  10. 根据权利要求9所述的方法,其特征在于,所述解码信息中包括滤波处理工具的开关标识;The method according to claim 9, wherein the decoding information includes a switch identification of a filtering processing tool;
    所述获取解码参考信息,包括:The acquisition of decoding reference information includes:
    根据所述开关标识,判断所述滤波处理工具是否开启;According to the switch identification, it is judged whether the filter processing tool is turned on;
    若是,则将所述编码图像中第四预设值个位于所述待解码图像上方的CTU行和第五预设值个位于所述待解码图像下方的CTU行,确定为第一参考解码图像,并根据所述第一参考解码图像,确定解码参考信息;If so, the fourth preset value of CTU lines located above the image to be decoded and the fifth preset value of CTU lines located below the image to be decoded in the coded image are determined as the first reference decoded image , and determine decoding reference information according to the first reference decoded image;
    否则,则将所述编码图像中第六预设值个位于所述待解码图像上方的CTU行和第七预设值个位于所述待解码图像下方的CTU行,确定为第二参考解码图像,并根据所述第二参考解码图像,确定解码参考信息。Otherwise, the sixth preset number of CTU lines located above the image to be decoded and the seventh preset number of CTU lines located below the image to be decoded in the coded image are determined as the second reference decoded image , and determine decoding reference information according to the second reference decoded image.
  11. 根据权利要求10所述的方法,其特征在于,所述第四预设值个位于所述待解码图像上方的CTU行包括第一CTU行和第二CTU行,第五预设值个位于所述待解码图像下方的CTU行包括第三CTU行;The method according to claim 10, wherein the fourth preset number of CTU lines above the image to be decoded includes the first CTU line and the second CTU line, and the fifth preset number of CTU lines is located above the image to be decoded. The CTU row below the image to be decoded includes the third CTU row;
    所述根据所述第一参考解码图像,确定所述解码参考信息,包括:The determining the decoding reference information according to the first reference decoded image includes:
    分别对所述第一CTU行、所述第二CTU行和所述第三CTU行进行解码,得到第一原始像素集、第二原始像素集和第三原始像素集;Decoding the first CTU row, the second CTU row, and the third CTU row respectively to obtain a first original pixel set, a second original pixel set, and a third original pixel set;
    采用所述滤波处理工具分别对所述第一原始像素集和所述第二原始像素集进行环内滤波处理,得到第一处理像素集和第二处理像素集;performing in-loop filtering processing on the first original pixel set and the second original pixel set by using the filtering processing tool to obtain a first processed pixel set and a second processed pixel set;
    根据所述第一处理像素集、所述第二处理像素集和所述第三原始像素集,确定解码参考信息。Decoding reference information is determined according to the first set of processed pixels, the second set of processed pixels, and the third set of original pixels.
  12. 根据权利要求11所述的方法,其特征在于,所述第一处理像素集和所述第二处理像素集分别包括N行像素数据,N为大于或等于2的整数;The method according to claim 11, wherein the first processing pixel set and the second processing pixel set respectively include N rows of pixel data, and N is an integer greater than or equal to 2;
    所述根据所述第一处理像素集、所述第二处理像素集和所述第三原始像素集,确定解码参考信息,包括:The determining the decoding reference information according to the first processed pixel set, the second processed pixel set and the third original pixel set includes:
    采用所述第二处理像素集中N行像素数据中的最后M行像素数据,替换所述第一处理像素集中N行像素数据中的最后M行像素数据,得到所述第一处理像素集对应的第三处理像素集;M为小于N的正整数;Using the last M rows of pixel data in the N rows of pixel data in the second processing pixel set to replace the last M rows of pixel data in the N rows of pixel data in the first processing pixel set, to obtain the pixel data corresponding to the first processing pixel set The third processing pixel set; M is a positive integer less than N;
    将所述第二处理像素集、所述第三处理像素集和所述第三原始像素集,确定为所述解码参考信息。The second processed pixel set, the third processed pixel set, and the third original pixel set are determined as the decoding reference information.
  13. 根据权利要求10所述的方法,其特征在于,所述第六预设值个位于所述待解码图像上方的CTU行包括第一CTU行,所述第七预设值个位于所述待解码图像下方的CTU行包括第二CTU行;The method according to claim 10, wherein the sixth preset value of the CTU lines above the image to be decoded includes the first CTU line, and the seventh preset value of CTU lines located above the image to be decoded The CTU row below the image includes the second CTU row;
    所述根据所述第二参考解码图像,确定所述解码参考信息,包括:The determining the decoding reference information according to the second reference decoded image includes:
    分别对第一CTU行和第二CTU行进行解码,得到第一原始像素集和第二原始像素集;第一原始像素集包括N行原始像素数据;Decoding the first CTU line and the second CTU line respectively to obtain a first original pixel set and a second original pixel set; the first original pixel set includes N rows of original pixel data;
    采用所述第一原始像素集中N行原始像素数据的最后M行原始像素数据,替换所述第一原始像素集中N行原始像素数据的前M行原始像素数据,得到第二像素集;Using the last M lines of original pixel data of N lines of original pixel data in the first original pixel set to replace the first M lines of original pixel data of N lines of original pixel data in the first original pixel set to obtain a second pixel set;
    将所述第二像素集和所述第二原始像素集,确定为解码参考信息。The second pixel set and the second original pixel set are determined as decoding reference information.
  14. 根据权利要求9-13任一项所述的方法,其特征在于,根据所述解码参考信息,对所述待解码图像进行解码,得到所述目标原始图像,包括:The method according to any one of claims 9-13, wherein decoding the image to be decoded according to the decoding reference information to obtain the target original image includes:
    根据所述解码参考信息,对所述待解码图像进行解码,得到重建像素值;Decoding the image to be decoded according to the decoding reference information to obtain reconstructed pixel values;
    并将重建像素值存储至预设区域,得到重建图像;所述预设区域和所述待解码图像的尺寸相同;and storing the reconstructed pixel values in a preset area to obtain a reconstructed image; the size of the preset area is the same as that of the image to be decoded;
    根据所述起始位置、所述第一高度、所述第一宽度,在所述重建图像中确定所述目标原始图像。The target original image is determined in the reconstructed image according to the starting position, the first height, and the first width.
  15. 根据权利要求14所述的方法,其特征在于,所述根据所述起始位置、所述第一高度、所述第一宽度,在所述重建图像中确定所述目标原始图像,包括:The method according to claim 14, wherein the determining the target original image in the reconstructed image according to the initial position, the first height, and the first width includes:
    将所述高度初始位置,与将第三预设值左移最小边界值之后的左移值的差值,确定为顶部偏移量;The difference between the initial position of the height and the left shift value after the third preset value is shifted to the left by the minimum boundary value is determined as the top offset;
    确定最大边界值和第九预设值的和值,将所述第三预设值左移所述和值之后的值、以及第二高度与所述高度初始位置和第一高度的差值中的最小值,确定为底部偏移量;Determine the sum of the maximum boundary value and the ninth preset value, shift the third preset value to the left after the sum, and the difference between the second height and the initial position of the height and the first height The minimum value of is determined as the bottom offset;
    将所述起始位置的宽度起始位置,确定为左侧偏移量;Determining the width starting position of the starting position as the left offset;
    将所述第二宽度与所述左侧偏移量和所述第一宽度之和的差值,确定为右侧偏移量;所述顶部偏移量、底部偏移量、左侧偏移量和右侧偏移量指示在所述重建图像中待删除的图像;Determine the difference between the second width and the sum of the left offset and the first width as the right offset; the top offset, bottom offset, left offset The amount and the right offset indicate the image to be deleted in the reconstructed image;
    在所述重建图像中删除所述待删除的图像,得到目标原始图像。Deleting the image to be deleted from the reconstructed image to obtain a target original image.
  16. 根据权利要求5所述的方法,其特征在于,所述根据所述起始位置、所述第一高度和所述第二高度,确定待解码区域,包括:The method according to claim 5, wherein the determining the area to be decoded according to the starting position, the first height and the second height comprises:
    对所述编码信息中包括的图像参数集进行解析处理,得到所述编码图像中包括的图像分片的位置区域和分片数量;Analyzing the image parameter set included in the encoding information to obtain the location area and number of image slices included in the encoded image;
    若所述分片数量等于预设值,则根据所述起始位置、所述第一高度和所述第二高度,确定所述待解码区域;If the number of slices is equal to a preset value, then determine the region to be decoded according to the starting position, the first height and the second height;
    若所述分片数量不等于预设值,则在编码图像中删除与所述标定区域无重叠的图像分片,并根据所述起始位置、所述第一高度和所述第二高度,在删除图像分片之后的在编码图像中确 定所述待解码区域。If the number of slices is not equal to the preset value, delete image slices that do not overlap with the marked area in the coded image, and according to the starting position, the first height and the second height, The area to be decoded is determined in the coded image after the image slice is deleted.
  17. 根据权利要求1-16任一项所述的方法,其特征在于,所述操作指令为滑动操作对应的指令;The method according to any one of claims 1-16, wherein the operation instruction is an instruction corresponding to a sliding operation;
    所述根据操作指令和所述编码信息,在所述编码图像中确定待解码图像,包括:The determining the image to be decoded in the encoded image according to the operation instruction and the encoding information includes:
    检测所述滑动操作对应的停顿时间;在所述停顿时间超过预设值时,在当前显示界面中确定标定区域;Detecting the pause time corresponding to the sliding operation; when the pause time exceeds a preset value, determine the calibration area in the current display interface;
    根据所述标定区域和所述编码信息,在所述编码图像中确定与所述标定区域对应的待解码图像。An image to be decoded corresponding to the marked area is determined in the coded image according to the marked area and the encoding information.
  18. 一种图像处理装置,其特征在于,应用于终端设备,所述装置包括:An image processing device, characterized in that it is applied to a terminal device, and the device includes:
    接收模块,用于接收服务器发送的编码信息;所述编码信息中包括原始图像对应的编码图像;The receiving module is used to receive the encoded information sent by the server; the encoded information includes the encoded image corresponding to the original image;
    获取模块,用于获取操作指令;an acquisition module, configured to acquire operation instructions;
    确定模块,用于根据操作指令和所述编码信息,在所述编码图像中确定待解码图像;所述待解码图像为所述原始图像中标定区域内的目标原始图像对应的编码图像;A determining module, configured to determine an image to be decoded in the encoded image according to the operation instruction and the encoding information; the image to be decoded is an encoded image corresponding to the target original image in the marked area in the original image;
    处理模块,用于对所述待解码图像进行解码,得到所述目标原始图像;A processing module, configured to decode the image to be decoded to obtain the target original image;
    显示模块,用于在所述标定区域内显示所述目标原始图像。A display module, configured to display the target original image in the marked area.
  19. 一种终端设备,其特征在于,包括:处理器,以及与所述处理器通信连接的存储器;A terminal device, characterized by comprising: a processor, and a memory communicatively connected to the processor;
    所述存储器存储计算机执行指令;the memory stores computer-executable instructions;
    所述处理器执行所述存储器存储的计算机执行指令,以实现如权利要求1-17任一项所述的方法。The processor executes the computer-implemented instructions stored in the memory to implement the method according to any one of claims 1-17.
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如权利要求1-17任一项所述的方法。A computer-readable storage medium, characterized in that, computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are used to implement any one of claims 1-17 when executed by a processor Methods.
  21. 一种计算机程序产品,其特征在于,包括:计算机程序;所述计算机程序被处理器执行时实现权利要求1-17任一项所述的方法。A computer program product, characterized by comprising: a computer program; when the computer program is executed by a processor, the method according to any one of claims 1-17 is implemented.
  22. 一种计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-17任一项所述的方法。A computer program, characterized in that, when the computer program is executed by a processor, the method according to any one of claims 1-17 is implemented.
PCT/CN2022/118849 2021-10-29 2022-09-14 Image processing method and apparatus, and device, storage medium and program product WO2023071584A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111267729.1A CN114007076A (en) 2021-10-29 2021-10-29 Image processing method, apparatus, device, storage medium, and program product
CN202111267729.1 2021-10-29

Publications (1)

Publication Number Publication Date
WO2023071584A1 true WO2023071584A1 (en) 2023-05-04

Family

ID=79925170

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/118849 WO2023071584A1 (en) 2021-10-29 2022-09-14 Image processing method and apparatus, and device, storage medium and program product

Country Status (2)

Country Link
CN (1) CN114007076A (en)
WO (1) WO2023071584A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114007076A (en) * 2021-10-29 2022-02-01 北京字节跳动科技有限公司 Image processing method, apparatus, device, storage medium, and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070216699A1 (en) * 2004-04-23 2007-09-20 Canon Kabushiki Kaisha Method and Device for Decoding an Image
CN102811347A (en) * 2011-05-30 2012-12-05 索尼公司 Image processing device, image processing method, and program
CN109582196A (en) * 2018-11-02 2019-04-05 深圳市创梦天地科技有限公司 A kind of method and device that information is shown
CN111161385A (en) * 2019-12-30 2020-05-15 北京奇艺世纪科技有限公司 Image rendering method and device, electronic equipment and storage medium
CN114007076A (en) * 2021-10-29 2022-02-01 北京字节跳动科技有限公司 Image processing method, apparatus, device, storage medium, and program product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070216699A1 (en) * 2004-04-23 2007-09-20 Canon Kabushiki Kaisha Method and Device for Decoding an Image
CN102811347A (en) * 2011-05-30 2012-12-05 索尼公司 Image processing device, image processing method, and program
CN109582196A (en) * 2018-11-02 2019-04-05 深圳市创梦天地科技有限公司 A kind of method and device that information is shown
CN111161385A (en) * 2019-12-30 2020-05-15 北京奇艺世纪科技有限公司 Image rendering method and device, electronic equipment and storage medium
CN114007076A (en) * 2021-10-29 2022-02-01 北京字节跳动科技有限公司 Image processing method, apparatus, device, storage medium, and program product

Also Published As

Publication number Publication date
CN114007076A (en) 2022-02-01

Similar Documents

Publication Publication Date Title
US10771813B2 (en) Reference frame encoding method and apparatus, and reference frame decoding method and apparatus
CN110446062B (en) Receiving processing method for big data file transmission, electronic device and storage medium
US8520728B2 (en) Adaptive data transmission rate control for a wireless display device
JP2018505571A (en) Image compression method / apparatus and server
EP3657800A1 (en) Method and device for coding image, and method and device for decoding image
WO2023071584A1 (en) Image processing method and apparatus, and device, storage medium and program product
KR102528877B1 (en) Video decoding control method, device, electronic device and storage medium
EP3075168A1 (en) Video presentation quality display in a wireless communication device
US11627369B2 (en) Video enhancement control method, device, electronic device, and storage medium
CN105430417B (en) Encoding method, decoding method, device and electronic equipment
KR20170091323A (en) Image Display Apparatus, Driving Method of Image Display Apparatus, and Computer Readable Recording Medium
JP6217643B2 (en) Video encoding device
US20180109792A1 (en) Image Processing Method and Apparatus
CN109413637B (en) Electromagnetic interference control method, related device, related equipment and storage medium
US9076207B1 (en) Image processing method, system and electronic device
CN108184101B (en) Apparatus and method for processing video
WO2016161899A1 (en) Multimedia information processing method, device and computer storage medium
CN112291588A (en) Display content sharing method and device, equipment and readable storage medium
WO2020107970A1 (en) Video decoding method and apparatus, electronic device, and storage medium
CN116668741A (en) Cloud desktop display method, image display method, device and storage medium
WO2016032383A1 (en) Sharing of multimedia content
CN113542859A (en) Intelligent screen projection system and method
WO2022152284A1 (en) Image processing method, related apparatus, device, and computer-readable storage medium
EP2988502B1 (en) Method for transmitting data
CN114040197B (en) Video detection method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22885471

Country of ref document: EP

Kind code of ref document: A1