WO2022142952A1 - Image data storage method and device, storage medium, chip, and module device - Google Patents

Image data storage method and device, storage medium, chip, and module device Download PDF

Info

Publication number
WO2022142952A1
WO2022142952A1 PCT/CN2021/134214 CN2021134214W WO2022142952A1 WO 2022142952 A1 WO2022142952 A1 WO 2022142952A1 CN 2021134214 W CN2021134214 W CN 2021134214W WO 2022142952 A1 WO2022142952 A1 WO 2022142952A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel data
image
data set
pixel
stored
Prior art date
Application number
PCT/CN2021/134214
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 WO2022142952A1 publication Critical patent/WO2022142952A1/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/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • H04N19/139Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
    • 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/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • 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
    • H04N19/423Methods 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 characterised by memory arrangements
    • H04N19/426Methods 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 characterised by memory arrangements using memory downsizing methods

Definitions

  • the invention relates to the field of data storage, in particular to an image data storage method, device, storage medium, chip and module device.
  • Image insertion technology refers to a technology that improves video fluency and enhances user viewing experience by inserting a frame of image between two adjacent frames of images.
  • image frame interpolation technology it is necessary to store all the original image data of two adjacent frames, which results in a large space for storing the image data, resulting in a shortage of space resources. Therefore, how to reduce the storage space of image data during image interpolation processing is a hot research topic at present.
  • the embodiments of the present application provide an image data storage method, a device, a storage medium, a chip, and a module device, which can reduce the amount of data storage and reduce the storage space while ensuring the effect of frame insertion.
  • an embodiment of the present application provides an image data storage method, including: acquiring a first type of first pixel data set corresponding to a reference image, and acquiring a first type of pixel data set corresponding to a current image a second set of pixel data, the reference image and the current image are used to determine the frame image to be inserted between the reference image and the current image;
  • the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image
  • a target pixel data set is determined from the first pixel data set and the second pixel data set according to the reference phase information, and a to-be-stored pixel data set is determined from the target pixel data set according to the reference phase information ;
  • Pixel data in the set of pixel data to be stored is stored.
  • an embodiment of the present application further provides an image data storage device, the device includes: an acquisition module configured to acquire a first pixel data set of a first type corresponding to a reference image, and acquire a first pixel data set corresponding to a current image A type of second pixel data set, the reference image and the current image are used to determine the frame image to be inserted between the reference image and the current image;
  • a determining module configured to determine reference phase information of the frame image to be inserted, where the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image;
  • a processing module configured to determine a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, and determine from the target pixel data set according to the reference phase information The set of pixel data to be stored;
  • the processing module is further configured to store pixel data in the set of pixel data to be stored.
  • embodiments of the present application further provide an image data storage device, including a processor and a memory, wherein the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to use in calling the program instructions to execute the method described in the first aspect
  • embodiments of the present application further provide a computer-readable storage medium, including: the computer-readable storage medium stores one or more instructions, and the one or more instructions are suitable for being loaded by a processor and storing The method as described in the first aspect is performed.
  • the present application provides a chip for receiving a first pixel data set of a first type corresponding to a reference image, and receiving a second pixel data set of the first type corresponding to a current image, where The reference image and the current image are used to determine the frame image to be inserted between the reference image and the current image;
  • the chip is further configured to determine reference phase information of the frame image to be inserted, where the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image;
  • the chip is further configured to determine a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, and from the target pixel data set according to the reference phase information Determine the set of pixel data to be stored in ;
  • the chip is further configured to output pixel data in the set of pixel data to be stored, so as to store the pixel data in the set of pixel data to be stored.
  • the application provides a chip module
  • the module device includes a communication module, a power module, a storage module and a chip module, wherein:
  • the power module is used to provide power for the module device
  • the storage module is used to store data and instructions
  • the communication module is used for internal communication of the module device, or for the module device to communicate with an external device;
  • the chip module is used for:
  • the first pixel data set of the first type corresponding to the reference image is obtained through the communication module, and the second pixel data set of the first type corresponding to the current image is obtained, and the reference image and the current image are used to determine an image to be inserted between the reference image and the current image;
  • the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image
  • a target pixel data set is determined from the first pixel data set and the second pixel data set according to the reference phase information, and a to-be-stored pixel data set is determined from the target pixel data set according to the reference phase information ;
  • Pixel data in the to-be-stored pixel data set is stored in the storage module.
  • Implementing the embodiments of the present application has the following beneficial effects: obtaining the first pixel data set of the first type corresponding to the reference image, and obtaining the second pixel data set of the first type corresponding to the current image; then, determining the frame size of the image to be inserted With reference to the phase information, the target pixel data set is determined from the first pixel data set and the second pixel data set according to the phase information, and the storage pixel data set is determined from the target pixel data set according to the reference phase information; finally, the pixel data to be stored The pixel data in the collection is stored. It can be seen that the embodiments of the present application can reduce the amount of data storage, and reduce the storage space while ensuring the effect of frame insertion.
  • FIG. 1 is a schematic flowchart of a first image data storage method provided by an exemplary embodiment of the present application
  • FIG. 2a is a schematic diagram of a first pixel data set provided by an exemplary embodiment of the present application
  • FIG. 2b is a schematic diagram of motion estimation provided by an exemplary embodiment of the present application.
  • 2c is a schematic diagram of reflecting reference phase information in a reference image and a current image provided by an exemplary embodiment of the present application;
  • FIG. 3 is a schematic flowchart of a second image data storage method provided by an exemplary embodiment of the present application.
  • 4a is another schematic diagram of reflecting reference phase information in a reference image and a current image provided by an exemplary embodiment of the present application;
  • 4b is a schematic diagram of determining an image area to be stored in a reference image provided by an exemplary embodiment of the present application
  • FIG. 5 is a schematic flowchart of a third image data storage method provided by an exemplary embodiment of the present application.
  • Fig. 6a is a schematic diagram of a third pixel data set provided by an exemplary embodiment of the present application.
  • 6b is a schematic diagram of determining a first image area to be stored and a second image area to be stored provided by an exemplary embodiment of the present application;
  • FIG. 7 is a schematic structural diagram of an image data storage device provided by an exemplary embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of another image data storage device provided by an exemplary embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a modular device provided by an exemplary embodiment of the present application.
  • overlapping block motion compensation technology is an advanced block motion compensation technology that reduces discontinuity at block boundaries. accuracy and reduce the distortion (blocking, etc.) caused by blocking.
  • the overlapping block motion compensation algorithm considers that the motion vector of a certain block also affects adjacent blocks, that is, the prediction of a block depends not only on the motion vector of the current block, but also by a series of motions of adjacent blocks. Therefore, the overlapping block motion compensation algorithm reduces the prediction error of the block boundary pixels with the constraint of smoothing the block boundaries as much as possible.
  • a data storage method is a first image data storage method provided by an exemplary embodiment of the present application.
  • the method can be performed by an image data storage device, and the device Mobile devices with storage functions such as PDAs, Personal Digital Assistants (PDAs), Portable Media Players (PMPs), navigation devices, wearable devices, smart bracelets, and pedometers, and Fixed devices with storage functions such as digital TVs, desktop computers, etc., the method includes:
  • the reference image may be a previous frame image and/or a next frame image of the current image
  • the frame image to be inserted is a frame image located between the current image and the reference image.
  • the first pixel data set of the first type corresponding to the reference image may be a processed high-frequency data information set related to the reference image.
  • the acquiring the first pixel data set of the first type corresponding to the reference image may be: Including: acquiring a reference image, and splitting multiple rows of pixel points in the reference image into multiple groups of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, and M is a positive integer greater than 1; For each group of pixel rows, determine the pixel value difference of M pixels in the same column among M rows of pixel points included in a group of pixel rows; determine the first type corresponding to the reference image according to the pixel value difference The first pixel data set of .
  • multiple groups of pixel rows refer to grouping multiple rows of pixel points in the reference image, and each group includes M rows of pixel points, thereby obtaining multiple groups of pixel rows in the reference image.
  • the pixel value of each pixel in the reference image is determined, and then it is determined that the M rows of pixels included in each group of pixel rows are in the same column
  • the pixel value difference of the M pixel points, and then the first pixel data set of the first type corresponding to the reference image is determined according to the difference value. For example, as shown in Fig.
  • the reference image is an image with a size of 6*6 pixels
  • 6 rows of pixel points in the reference image are divided into 3 groups of pixel rows, and each group of pixel rows includes adjacent 2 rows of pixels.
  • Point, for each group of pixel rows determine the pixel value difference of 2 pixel points in the same column in the 2 rows of pixel points included in a group of pixel rows, thereby obtaining the first type of the first type of 6*3 pixel size.
  • the multiple rows of pixel points in the reference image in the embodiments of the present application may be the pixel points of all rows in the entire reference image, or may be the pixel points of some rows in the reference image;
  • a group of pixel rows includes more than two rows of pixel rows, when calculating the difference value, the difference value of multiple pixel values in the same column can be calculated from each other.
  • a group of pixel rows includes three rows of pixel rows, which are the first row, the second row and the In the third row, when calculating the pixel value difference, the difference between the pixel value of the pixel point in the first row and the pixel value of the pixel point in the second row in the same column, the pixel value of the second pixel point is the same as the pixel value of the pixel point in the third row.
  • the pixel value is the difference, and the pixel value of the pixel point in the first row is different from the pixel value of the pixel point in the third row.
  • the acquiring the second set of pixel data of the first type corresponding to the current image may include: acquiring the current image, and dividing multiple rows of pixel points in the current image into multiple A group of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, where M is a positive integer greater than 1; for each group of pixel rows, it is determined that the M rows of pixel points included in a group of pixel rows are in the same column The pixel value difference of the M pixel points; the second pixel data set of the first type corresponding to the current image is determined according to the pixel value difference.
  • the second pixel data set of the first type corresponding to the current image may be a processed high-frequency data information set related to the current image. Specifically, in the process of determining the second pixel data set of the first type corresponding to the current image, the pixel value of each pixel point in the current image is determined, and then it is determined that the pixel points in the M rows included in each group of pixel rows are located in the current image. The pixel value difference of the M pixel points in the same column, and then the second pixel data set of the first type corresponding to the current image is determined according to the difference.
  • the reference phase information may be used to indicate the time interval between the image to be inserted and the reference image and the current image.
  • the reference image is a frame of image at 0.1s
  • the current image is a frame of image at 0.5s.
  • the reference phase information refers to the difference between the frame to be inserted and the reference image.
  • the time interval is 0.1s
  • the time interval between the frame image to be inserted and the current image is 0.3s.
  • S103 Determine a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, and determine a to-be-stored pixel data set from the target pixel data set according to the reference phase information.
  • the target pixel data set is determined, that is, the first pixel data set is determined as the target pixel data set according to the reference phase information, or the second pixel data set is determined as the target pixel data set, Or determine the first pixel data set and the second pixel data set as the target pixel data set.
  • the determining a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information may include: if the reference phase information Indicate that the interval between the frame image to be inserted and the reference image is smaller than the interval between the frame image to be inserted and the current image, then the second pixel data set is determined as the target pixel data set; if The reference phase information indicates that the interval between the frame image to be inserted and the reference image is greater than the interval between the frame image to be inserted and the current image, then the first pixel data set is determined as the target A collection of pixel data.
  • the determining a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information may further include: if the reference phase information information indicates that the interval between the frame image to be inserted and the reference image is equal to the interval between the frame image to be inserted and the current image, then the first pixel data set and the second pixel data The set is determined to be the target pixel data set.
  • the final target pixel data set is determined according to the interval between the image to be inserted and the reference image indicated by the reference phase information is greater than, less than or equal to the interval between the image to be inserted and the current image.
  • the set of pixel data to be stored is determined from the target pixel data according to the reference phase information.
  • the A block in the reference image matches the C block in the current image (there is a relative displacement between the A block and the C block).
  • the reference phase information indicates that the interval between the frame image to be inserted and the reference image is less than the interval between the frame image to be inserted and the current image, so the second pixel data set is determined as the target pixel data set, as shown in Figure 2b,
  • the C block and the reference phase information it is determined that the boundary position of the uppermost row of pixel data in the multi-line pixel data of the image area where the C block is located in the second pixel data set corresponding to the current image to the position D
  • the pixel data between is the set of data to be stored, wherein the position D is the border position of the bottom row of pixel data in the multi-line pixel data of the image area where the B block in the frame image to be inserted corresponds to the same position in the current image. location D.
  • the first pixel data set of the first type corresponding to the reference image is obtained, and the second pixel data set of the first type corresponding to the current image is obtained; then, the reference phase information of the frame image to be inserted is determined,
  • the target pixel data set is determined from the first pixel data set and the second pixel data set according to the phase information, and the storage pixel data set is determined from the target pixel data set according to the reference phase information; data is stored.
  • FIG. 3 is a second image data storage method provided by an exemplary embodiment of the present application.
  • the method can be executed by an image data storage device, and the device can include, for example, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, Personal Digital Assistant (PDA), Portable Media Player (PMP), navigation device, wearable device, smart bracelet, pedometer and other mobile devices with storage function, as well as digital TV , desktop computers and other fixed devices with storage functions, the method includes:
  • steps S301-S302 in this embodiment of the present application reference may be made to steps S101-S103 in the foregoing embodiment, and details are not repeated in this embodiment of the present application.
  • the first pixel data set, the second The pixel data set or the first pixel data set and the second pixel data set are used as the target pixel data set.
  • the current image of the image sequence is divided into many non-overlapping macroblocks, and it is considered that the displacements of all pixels in the macroblock are the same, and then a given specific search range from each macroblock to the reference image is determined.
  • find the block that is most similar to the current block, that is, the matching block, and the relative displacement between the matching block and the current block is the motion vector, that is, to determine the motion vector information between the reference image and the current image is Determine the relative displacement information of the matching block in the reference image and the current block in the current image.
  • after the determining the motion vector information between the reference image and the current image may include: according to the reference phase information, the relationship between the reference image and the current image
  • the pixel data set to be stored is determined from the target pixel data set according to the motion vector information between them; wherein, the pixel data set to be stored includes part of the pixel data in the target pixel data set.
  • S305 Determine the image area to be stored from the image corresponding to the target pixel data set according to the reference phase information and the motion vector information between the reference image and the current image.
  • the reference phase information indicates that the interval between the frame to be inserted and the reference image is greater than the interval between the frame to be inserted and the current image. Therefore, refer to The first pixel data set of the first type corresponding to the image is used as the target pixel data set, according to the determined relative displacement of the M block in the reference image and the Q block in the current image, based on the reference phase information, the position information of the M block and the Q block.
  • the position information of the block can determine that the image area to be stored in the image corresponding to the first pixel data set is the uppermost row of pixels in the multiple rows of pixels in the image area where the M blocks are located in the first pixel data set corresponding to the reference image.
  • the boundary position of the point, to the boundary position of the pixel point of the bottom row in the multi-line pixel data of the image area where the P block is located in the frame to be inserted corresponds to the image area between the same position N in the reference image.
  • S306 Determine the pixel data set to be stored according to the pixel data corresponding to the image area to be stored in the target pixel data set.
  • the pixel data set to be stored is determined according to the target pixel data set and the pixel data corresponding to the image area to be stored. is the area between the boundary position of the uppermost row of pixel data and the position N in the multi-line pixel data of the image area where the M blocks are located, and then determines the multi-line pixel data between the areas, and the multi-line pixel data is determined as The pixel data in the pixel data set to be stored.
  • the first pixel data set of the first type corresponding to the reference image is obtained, and the second pixel data set of the first type corresponding to the current image is obtained; then, the reference phase information of the frame image to be inserted is determined, Determine the target pixel data set from the first pixel data set and the second pixel data set according to the phase information, and determine the motion vector information between the reference image and the current image; then, according to the reference phase information, the reference image and all The motion vector information between the current images determines the pixel data set to be stored from the target pixel data set.
  • the pixel data in the pixel data set to be stored can be dynamically adjusted according to the position of the frame to be inserted, and the pixel data in the pixel data set to be stored can be accurately determined, the storage quantity can be reduced, and the amount of storage can be reduced. Frame effects while reducing storage space.
  • FIG. 5 is a third image data storage method provided by an exemplary embodiment of the present application.
  • the method can be executed by an image data storage device, and the device may include, for example, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, Personal Digital Assistant (PDA), Portable Media Player (PMP), navigation device, wearable device, smart bracelet, pedometer and other mobile devices with storage function, as well as digital TV , desktop computers and other fixed devices with storage functions, the method includes:
  • S503 Determine a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, and determine a to-be-stored pixel data set from the target pixel data set according to the reference phase information.
  • steps S501-S504 in this embodiment of the present application reference may be made to steps S101-S104 in the foregoing embodiment, which will not be repeated in this embodiment of the present application.
  • the execution order of steps S501-S504 and steps S505-S507 in this application can be sorted arbitrarily. S504, of course, can also be executed at the same time. It can be understood that, each of the steps in steps S501-S507 does not represent a fixed execution step, and the execution of each step may be in any order.
  • the third pixel data set of the second type corresponding to the reference image may be a processed low-frequency data information set related to the reference image.
  • the acquiring the third pixel data set of the second type corresponding to the reference image The pixel data set may include: acquiring a reference image, and dividing multiple rows of pixel points in the reference image into multiple groups of pixel rows, each group of pixel rows including adjacent M rows of pixel points, where M is greater than A positive integer of 1; for each group of pixel rows, determine the average value of the pixel values of M pixel points in the same column among the M rows of pixel points included in a group of pixel rows; determine the corresponding value of the reference image according to the average value.
  • a third set of pixel data of the second type in the process of specifically determining the third pixel data set of the second type corresponding to the reference image, the pixel value of each pixel in the reference image is determined, and then the M rows included in each group of pixel rows are determined.
  • the average value of the pixel values of the M pixel points in the same column in the pixel points, and then the third pixel data set of the second type corresponding to the reference image is determined according to the average value.
  • the reference image is an image with a size of 9*9 pixels, and 9 rows of pixel points in the reference image are divided into 3 groups of pixel rows, and each group of pixel rows includes adjacent 3 rows of pixels.
  • For each group of pixel rows determine the average value of the pixel values of the 3 pixel points in the same column in the 3 rows of pixel points included in the group of pixel rows, thereby obtaining the second type of 9*3 pixel size.
  • a collection of pixel data For each group of pixel rows, determine the average value of the pixel values of the 3 pixel points in the same column in the 3 rows of pixel points included in the group of pixel rows, thereby obtaining the second type of 9*3 pixel size.
  • the obtaining the fourth pixel data set of the second type corresponding to the current image may include: obtaining the current image, and dividing the multiple rows of pixel points in the current image into multiple pixel data sets.
  • a group of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, where M is a positive integer greater than 1; for each group of pixel rows, it is determined that the M rows of pixel points included in a group of pixel rows are in the same column
  • the average value of the pixel values of the M pixel points; the fourth pixel data set of the second type corresponding to the current image is determined according to the average value.
  • the pixel value of each pixel in the current image is determined, and then the M rows included in each group of pixel rows are determined.
  • the average value of the pixel values of the M pixel points in the same column in the pixel points, and then the fourth pixel data set of the second type corresponding to the current image is determined according to the average value.
  • S506. Determine the first image area to be stored in the reference image, and determine the second image area to be stored in the current image.
  • the motion vector information between the reference image and the current image that is, based on the relative displacement information of the matching block in the reference image and the current block in the current image, and then based on the reference phase information of the image to be inserted
  • the first image area to be stored in the reference image is determined
  • the second image area to be stored in the current image area is determined.
  • the image area between ef is the first image area to be stored in the reference image
  • the image area between dg is the second image area to be stored in the current image.
  • the determining of the first image area to be stored in the reference image and the determination of the second image area to be stored in the current image may include: determining area boundary information of the image area to be stored; A first image area to be stored in the reference image is determined according to the area boundary information, and a second image area to be stored in the current image is determined according to the area boundary information; wherein the area boundary information indicates The boundary position in the first direction is a preset designated position, and the boundary position in the second direction indicated by the region boundary information is determined according to the motion vector information between the reference image and the current image.
  • the boundary position in the first direction indicated by the region boundary information is a preset designated position, that is, the reference image in the moving direction of the matching block a relative to the current block c
  • a specified position m that is farthest from the image area where the matching block a is located position m is the area boundary position where the first row of pixels in the reference image is located
  • a specified position n position n is where the matching block a in the reference image is located.
  • the boundary position of any row of pixel area between the multi-line pixel area to the position m), the position g can also be specifically determined according to the image area where the current block c is located (the position g is the multi-line where the current block c in the current image is located.
  • the boundary position in the second direction indicated by the region boundary information may be the boundary position f of the lowermost row of pixel point regions in the multi-line pixel point regions where the matching block a is located in the reference image.
  • the boundary position in the second direction indicated by the region boundary When specifically determining the boundary position in the second direction indicated by the region boundary, according to the motion vector information between the reference image and the current image, that is, according to the relative relationship between the matching block a in the reference image and the current block c in the current image
  • the displacement information is used to determine the final boundary position (the boundary position f of the pixel point region of the bottom row in the multi-line pixel point region where the matching block a is located). It can be understood that, the boundary position in the second direction indicated by the region boundary information can also be more accurately determined according to the motion vector information and phase information between the reference image and the current image.
  • the first image area to be stored ef and the second image area to be stored dg have been determined, and then the pixels corresponding to the first image area to be stored are searched in the third pixel data set data, and searching for pixel data corresponding to the second to-be-stored area in the fourth pixel data set, and storing the found pixel data.
  • the first pixel data set of the first type corresponding to the reference image is obtained, and the second pixel data set of the first type corresponding to the current image is obtained, and the target is determined according to the reference phase information of the frame image to be inserted.
  • the image area to be stored, and the second image area to be stored in the current image determine the pixel data corresponding to the first image area to be stored and the second image area to be stored;
  • the pixel data corresponding to the first image area to be stored in the set and the pixel data corresponding to the second image area to be stored in the fourth pixel data set are stored, thereby reducing the amount of data storage while ensuring the effect of frame insertion, and further improving
  • the image data storage space is dynamically allocated through the reference phase information of the image to be inserted, so as to maximize the utilization of the existing storage space.
  • FIG. 7 is a schematic structural diagram of an image data storage device provided by an exemplary embodiment of the present application.
  • the device may be mounted on the image data storage device in the above method embodiment, and the image data storage device may specifically be a server. Of course, in some embodiments, it can also be mounted on a terminal device.
  • the image data storage device shown in FIG. 7 can be used to perform some or all of the functions in the method embodiments described in the above-mentioned FIGS. 1 , 3 and 5 . Among them, the detailed description of each part is as follows:
  • the obtaining module 701 is configured to obtain the first pixel data set of the first type corresponding to the reference image, and obtain the second pixel data set of the first type corresponding to the current image, and the reference image and the current image are used to determine an image to be inserted between the reference image and the current image;
  • a determination module 702 configured to determine reference phase information of the frame image to be inserted, where the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image;
  • a processing module 703 configured to determine a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, and from the target pixel data set according to the reference phase information Determine the set of pixel data to be stored;
  • the processing module 703 is further configured to store pixel data in the set of pixel data to be stored.
  • the processing module 703 determines a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, which may specifically include: if the reference The phase information indicates that the interval between the frame image to be inserted and the reference image is smaller than the interval between the frame image to be inserted and the current image, then the second pixel data set is determined as the target pixel data set ; If the reference phase information indicates that the interval between the frame image to be inserted and the reference image is greater than the interval between the frame image to be inserted and the current image, then the first pixel data set is determined is the target pixel data set.
  • the processing module 703 determines the pixel data set to be stored from the reference pixel data set according to the reference phase information, which may specifically include: determining the distance between the reference image and the current image the motion vector information; determine the pixel data set to be stored from the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image; wherein, the pixel data to be stored The set includes a portion of pixel data in the target set of pixel data.
  • the processing module 703 determines a set of pixel data to be stored from the reference pixel data set according to the reference phase information, the motion vector information between the reference image and the current image, Specifically, it may include: determining the image area to be stored from the image corresponding to the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image; according to the target pixel data set The pixel data corresponding to the to-be-stored image area described in , determine the to-be-stored pixel data set.
  • the obtaining module 701 is further configured to obtain a third pixel data set of the second type corresponding to the reference image, and obtain a fourth pixel data set of the second type corresponding to the current image;
  • the determining module 702 is further configured to determine the first image area to be stored in the reference image, and determine the second image area to be stored in the current image;
  • the processing module 703 is further configured to analyze the pixel data corresponding to the first image area to be stored in the third pixel data set and the pixel data corresponding to the second image area to be stored in the fourth pixel data set. Pixel data is stored.
  • the determining module 702 determines a first image area to be stored in the reference image, and determines a second image area to be stored in the current image, specifically including: determining an image area to be stored the region boundary information; determine the first image region to be stored in the reference image according to the region boundary information, and determine the second image region to be stored in the current image according to the region boundary information; wherein, the The boundary position in the first direction indicated by the area boundary information is a preset designated position, and the boundary position in the second direction indicated by the area boundary information is based on the motion between the reference image and the current image determined by the vector information.
  • the obtaining module 701 obtains the first pixel data set of the first type corresponding to the reference image, which specifically includes: obtaining the reference image, and splitting multiple rows of pixel points in the reference image into Multiple groups of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, and M is a positive integer greater than 1; for each group of pixel rows, it is determined that the M rows of pixel points included in a group of pixel rows are in the same row. pixel value difference values of the M pixel points in the column; determining the first pixel data set of the first type corresponding to the reference image according to the pixel value difference values.
  • Each module in the image data storage device shown in FIG. 7 may be combined into one or several other modules, respectively or all, or some module(s) may be further divided into multiple modules with smaller functions. It is composed of several units, which can realize the same operation without affecting the realization of the technical effects of the embodiments of the present application.
  • the above modules are divided based on logical functions. In practical applications, the function of one module may also be implemented by multiple modules, or the functions of multiple modules may be implemented by one module. In other embodiments of the present application, the storage device may also include other modules, and in practical applications, these functions may also be implemented with the assistance of other modules, and may be implemented by cooperation of multiple modules.
  • FIG. 8 is a schematic structural diagram of another image data storage device provided by an exemplary embodiment of the present application.
  • the device includes a processor 801 and a memory 802, the processor 801 and the memory 802 are connected by one or more communication buses, and the processor 801 is configured to support the terminal device to perform the corresponding functions in the methods of FIGS. 1, 3 and 5 .
  • the processor 801 may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP), a hardware chip or any combination thereof.
  • Memory 802 is used to store program codes and the like.
  • Memory 802 may include volatile memory (volatile memory), such as random-access memory (RAM); memory 802 may also include non-volatile memory (non-volatile memory), such as read-only memory (read only memory) -only memory, ROM), flash memory (flash memory), hard disk drive (HDD) or solid-state drive (solid-state drive, SSD); the memory 802 may also include a combination of the above-mentioned types of memory.
  • the processor 801 may call program codes stored in the memory 802 to perform the following operations:
  • the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image
  • a target pixel data set is determined from the first pixel data set and the second pixel data set according to the reference phase information, and a to-be-stored pixel data set is determined from the target pixel data set according to the reference phase information ;
  • Pixel data in the set of pixel data to be stored is stored.
  • the processor 801 determines a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, specifically including: if the reference phase information The information indicates that the interval between the frame image to be inserted and the reference image is smaller than the interval between the frame image to be inserted and the current image, then the second pixel data set is determined as the target pixel data set; If the reference phase information indicates that the interval between the frame image to be inserted and the reference image is greater than the interval between the frame image to be inserted and the current image, the first pixel data set is determined as The target pixel data collection.
  • the processor 801 determines the pixel data set to be stored from the reference pixel data set according to the reference phase information, which may specifically include: determining the distance between the reference image and the current image the motion vector information; determine the pixel data set to be stored from the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image; wherein, the pixel data to be stored The set includes a portion of pixel data in the target set of pixel data.
  • the processor 801 determines a set of pixel data to be stored from the reference pixel data set according to the reference phase information and the motion vector information between the reference image and the current image, Specifically, it may include: determining the image area to be stored from the image corresponding to the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image; according to the target pixel data set The pixel data corresponding to the to-be-stored image area described in , determine the to-be-stored pixel data set.
  • the processor 801 obtains a third pixel data set of the second type corresponding to the reference image, and obtains a fourth pixel data set of the second type corresponding to the current image;
  • the processor 801 determines a first image area to be stored in the reference image, and determines a second image area to be stored in the current image;
  • the processor 801 stores the pixel data corresponding to the first image area to be stored in the third pixel data set and the pixel data corresponding to the second image area to be stored in the fourth pixel data set .
  • the processor 801 determines a first image area to be stored in the reference image, and determines a second image area to be stored in the current image, specifically including: determining an image area to be stored the region boundary information; determine the first image region to be stored in the reference image according to the region boundary information, and determine the second image region to be stored in the current image according to the region boundary information; wherein, the The boundary position in the first direction indicated by the area boundary information is a preset designated position, and the boundary position in the second direction indicated by the area boundary information is based on the motion between the reference image and the current image determined by the vector information.
  • the processor 801 acquires the first pixel data set of the first type corresponding to the reference image, which specifically includes: acquiring the reference image, and dividing multiple rows of pixel points in the reference image into Multiple groups of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, and M is a positive integer greater than 1; for each group of pixel rows, it is determined that the M rows of pixel points included in a group of pixel rows are in the same row. pixel value difference values of the M pixel points in the column; determining the first pixel data set of the first type corresponding to the reference image according to the pixel value difference values.
  • the image data storage device may execute the relevant steps of the terminal device in the foregoing method embodiments. For details, reference may be made to the implementation manners provided by the foregoing steps, which will not be repeated here.
  • each module contained therein may be implemented in hardware such as circuits, and different modules may be located in the same component (eg, chip, circuit module, etc.) or different components in the terminal Alternatively, at least some of the modules can be implemented by means of a software program that runs on a processor integrated inside the terminal, and the remaining (if any) partial modules can be implemented by means of hardware such as circuits.
  • Embodiments of the present application further provide a computer-readable storage medium, which can be used to store computer program instructions for implementing the image data storage method in the embodiments shown in FIG. 1 , FIG. 3 , and FIG. 5 .
  • the computer-readable storage medium includes but does not Limited to flash memory, hard drives, solid state drives.
  • an embodiment of the present application provides a chip, which is used for:
  • the reference image and the current image are used to determine the location between the reference image and the the frame images to be inserted between the current images;
  • the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image
  • a target pixel data set is determined from the first pixel data set and the second pixel data set according to the reference phase information, and a to-be-stored pixel data set is determined from the target pixel data set according to the reference phase information ;
  • the chip when the chip determines the target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, the chip is specifically configured to: if the The reference phase information indicates that the interval between the frame image to be inserted and the reference image is smaller than the interval between the frame image to be inserted and the current image, then the second pixel data set is determined as target pixel data collection; if the reference phase information indicates that the interval between the frame image to be inserted and the reference image is greater than the interval between the frame image to be inserted and the current image, then the first pixel data collection Determined as the target pixel data set.
  • the chip when the chip determines the pixel data set to be stored from the reference pixel data set according to the reference phase information, the chip is specifically configured to: determine the difference between the reference image and the current image. motion vector information between the two; determine the pixel data set to be stored from the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image; wherein, the pixel data set to be stored
  • the data set includes part of pixel data in the target pixel data set.
  • the motion vector information between the reference image and the current image which is specifically used for: determining the image area to be stored from the image corresponding to the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image; according to the target pixel data
  • the pixel data corresponding to the to-be-stored image area in the set is determined to determine the to-be-stored pixel data set.
  • the chip is also used for:
  • the chip determines the first image area to be stored in the reference image and the second image area to be stored in the current image, it is specifically used for: determining the image area to be stored Area boundary information of the image area; determining the first image area to be stored in the reference image according to the area boundary information, and determining the second image area to be stored in the current image according to the area boundary information; wherein, The boundary position in the first direction indicated by the area boundary information is a preset designated position, and the boundary position in the second direction indicated by the area boundary information is based on the difference between the reference image and the current image. determined by the motion vector information.
  • the chip when it receives the first pixel data set of the first type corresponding to the reference image, it is specifically configured to: receive the reference image, and split pixels in multiple rows in the reference image Divided into multiple groups of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, and M is a positive integer greater than 1; for each group of pixel rows, determine the M rows of pixel points included in a group of pixel rows. pixel value difference values of M pixel points in the same column; determining a first pixel data set of a first type corresponding to the reference image according to the pixel value difference value.
  • the chip can execute the relevant steps of the terminal device in the foregoing method embodiments. For details, reference may be made to the implementation manners provided by the foregoing steps, which will not be repeated here.
  • the chip includes at least one processor, at least one first memory, and at least one second memory; wherein, the at least one first memory and the at least one processor are interconnected through lines, and the first memory stores There are instructions; the at least one second memory and the at least one processor are interconnected through lines, and the second memory stores the data that needs to be stored in the foregoing method embodiments.
  • each module contained therein may be implemented by hardware such as circuits, or at least some of the modules may be implemented by a software program that runs on the integrated circuit inside the chip.
  • the processor and the remaining (if any) modules can be implemented in hardware such as circuits.
  • FIG. 9 is a schematic structural diagram of a module device provided by an embodiment of the present application.
  • the module device includes: a communication module 901 , a power module 902 , a storage module 903 , and a chip module 904 .
  • the power module 902 is used to provide power for the module device;
  • the storage module 903 is used to store data and instructions;
  • the communication module 901 is used to perform internal communication of the module device, or to The module device communicates with external devices;
  • the chip module 904 is used for:
  • the first pixel data set of the first type corresponding to the reference image is obtained through the communication module 901, and the second pixel data set of the first type corresponding to the current image is obtained, and the reference image and the current image are used to determine an image to be inserted between the reference image and the current image;
  • the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image
  • a target pixel data set is determined from the first pixel data set and the second pixel data set according to the reference phase information, and a to-be-stored pixel data set is determined from the target pixel data set according to the reference phase information ;
  • Pixel data in the to-be-stored pixel data set is stored in the storage module.
  • the chip module 904 determines the target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, it is specifically configured to: If the reference phase information indicates that the interval between the frame image to be inserted and the reference image is smaller than the interval between the frame image to be inserted and the current image, the second pixel data set is determined as Target pixel data set; if the reference phase information indicates that the interval between the frame image to be inserted and the reference image is greater than the interval between the frame image to be inserted and the current image, the first The pixel data set is determined as the target pixel data set.
  • the chip module 904 determines the set of pixel data to be stored from the set of reference pixel data according to the reference phase information, it is specifically configured to: determine the reference image and the set of pixel data to be stored. motion vector information between current images; determining a set of pixel data to be stored from the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image; wherein the The pixel data set to be stored includes part of the pixel data in the target pixel data set.
  • the chip module 904 determines the pixels to be stored from the reference pixel data set according to the reference phase information, the motion vector information between the reference image and the current image
  • the data set is specifically used to: determine the image area to be stored from the image corresponding to the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image;
  • the pixel data corresponding to the to-be-stored image area in the target pixel data set determines the to-be-stored pixel data set.
  • the chip module 904 is further configured to: obtain, through the communication module 901, a third pixel data set of a second type corresponding to the reference image, and obtain a second pixel data set corresponding to the current image type of the fourth pixel data set; determine the first image area to be stored in the reference image, and determine the second image area to be stored in the current image; The pixel data corresponding to the image area to be stored and the pixel data corresponding to the second image area to be stored in the fourth pixel data set are stored.
  • the chip module 904 determines the first image area to be stored in the reference image and the second image area to be stored in the current image, it is specifically used for: Determine the area boundary information of the image area to be stored; determine the first image area to be stored in the reference image according to the area boundary information, and determine the second image area to be stored in the current image according to the area boundary information ; wherein, the boundary position in the first direction indicated by the area boundary information is a preset designated position, and the boundary position in the second direction indicated by the area boundary information is based on the reference image and the current Determined by motion vector information between images.
  • the chip module 904 obtains the first pixel data set of the first type corresponding to the reference image through the communication module 901, it is specifically used for: through the communication module 901 Acquire a reference image, and split multiple rows of pixel points in the reference image into multiple groups of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, where M is a positive integer greater than 1; for each pixel row For a group of pixel rows, determine the pixel value difference of M pixels in the same column among M rows of pixels included in a group of pixel rows; determine the first type of the first type corresponding to the reference image according to the pixel value difference. A collection of pixel data.
  • module device may perform the steps related to the terminal device in the foregoing method embodiments, and for details, reference may be made to the implementation manners provided by the foregoing steps, which will not be repeated here.
  • Each device and product described in the above embodiments includes modules/units, which may be software modules/units or hardware modules/units, or may be partly software modules/units and partly hardware modules/units.
  • each module/unit included in the product may be implemented by hardware such as circuits, or at least some modules/units may be implemented by software programs, which run on the integrated processing inside the chip.
  • each module included can be realized by hardware such as circuits; for each device and product applied to or integrated in the chip module, each module included can be realized by hardware such as circuits, and different modules can be It is located in the same component (such as chip, circuit module, etc.) or different components of the chip module, or, at least part of the modules can be implemented by a software program that runs on the processor integrated inside the chip module, and the rest ( If any) some modules can be implemented by hardware such as circuits.
  • a computer program product includes one or more computer instructions.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted over a computer-readable storage medium.
  • Computer instructions may be sent from one website site, computer, server, or data center to another website site, computer, via wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) , server or data center for transmission.
  • a computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media.
  • Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), and the like.

Landscapes

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

Abstract

The embodiments of the present application disclose an image data storage method and device, a storage medium, a chip, and a module device. Said method comprises: acquiring a first-type first pixel data set corresponding to a reference image, and acquiring a first-type second pixel data set corresponding to a current image, the reference image and the current image being used for determining an image to be frame-interpolated which is located between the reference image and the current image; determining reference phase information of the image to be frame-interpolated, the reference phase information being used for indicating an interval between the image to be frame-interpolated and the reference image and an interval between the image to be frame-interpolated and the current image; determining a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, and according to the reference phase information, determining, from the target pixel data set, a pixel data set to be stored; and storing pixel data in the pixel data set to be stored. By using the image data storage method in the embodiments of the present application, the data storage amount can be reduced while the frame interpolation effect is ensured.

Description

图像数据存储方法、设备及存储介质、芯片、模组设备Image data storage method, device and storage medium, chip, module device 技术领域technical field
本发明涉及数据存储领域,尤其涉及一种图像数据存储方法、设备及存储介质、芯片、模组设备。The invention relates to the field of data storage, in particular to an image data storage method, device, storage medium, chip and module device.
背景技术Background technique
图像插帧技术是指通过在相邻两帧图像之间插入一帧图像,达到提高视频流畅度,提升用户观看感受的一种技术。通常在使用图像插帧技术时,需要存储相邻两帧的全部原始图像数据,由此导致图像数据的存储需要很大的空间,造成空间资源的紧张。因此,如何在图像插帧处理时,减小图像数据存储空间是当前研究的热点。Image insertion technology refers to a technology that improves video fluency and enhances user viewing experience by inserting a frame of image between two adjacent frames of images. Usually, when the image frame interpolation technology is used, it is necessary to store all the original image data of two adjacent frames, which results in a large space for storing the image data, resulting in a shortage of space resources. Therefore, how to reduce the storage space of image data during image interpolation processing is a hot research topic at present.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种图像数据存储方法、设备及存储介质、芯片、模组设备,可减小数据存储量,在保证插帧效果的同时,减小存储空间。The embodiments of the present application provide an image data storage method, a device, a storage medium, a chip, and a module device, which can reduce the amount of data storage and reduce the storage space while ensuring the effect of frame insertion.
为了解决上述技术问题,第一方面,本申请实施例提供了一种图像数据存储方法,包括:获取参考图像对应的第一类型的第一像素数据集合,以及获取当前图像对应的第一类型的第二像素数据集合,所述参考图像和所述当前图像用于确定位于所述参考图像和所述当前图像之间的待插帧图像;In order to solve the above technical problems, in a first aspect, an embodiment of the present application provides an image data storage method, including: acquiring a first type of first pixel data set corresponding to a reference image, and acquiring a first type of pixel data set corresponding to a current image a second set of pixel data, the reference image and the current image are used to determine the frame image to be inserted between the reference image and the current image;
确定所述待插帧图像的参考相位信息,所述参考相位信息用于指示所述待插帧图像与所述参考图像和所述当前图像之间的间隔;determining the reference phase information of the frame image to be inserted, where the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image;
根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合,并根据所述参考相位信息从所述目标像素数据集合中确定待存储像素数据集合;A target pixel data set is determined from the first pixel data set and the second pixel data set according to the reference phase information, and a to-be-stored pixel data set is determined from the target pixel data set according to the reference phase information ;
对所述待存储像素数据集合中的像素数据进行存储。Pixel data in the set of pixel data to be stored is stored.
第二方面,本申请实施例还提供了一种图像数据存储设备,所述设备包括:获取模块,用于获取参考图像对应的第一类型的第一像素数据集合,以及获取当前图像对应的第一类型的第二像素数据集合,所述参考图像和所述当前图像用于确定位于所述参考图像和所述当前图像之间的待插帧图像;In a second aspect, an embodiment of the present application further provides an image data storage device, the device includes: an acquisition module configured to acquire a first pixel data set of a first type corresponding to a reference image, and acquire a first pixel data set corresponding to a current image A type of second pixel data set, the reference image and the current image are used to determine the frame image to be inserted between the reference image and the current image;
确定模块,用于确定所述待插帧图像的参考相位信息,所述参考相位信息用于指示所述待插帧图像与所述参考图像和所述当前图像之间的间隔;a determining module, configured to determine reference phase information of the frame image to be inserted, where the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image;
处理模块,用于根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合,并根据所述参考相位信息从所述目标像素数据集合中确定 待存储像素数据集合;a processing module, configured to determine a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, and determine from the target pixel data set according to the reference phase information The set of pixel data to be stored;
所述处理模块,还用于对所述待存储像素数据集合中的像素数据进行存储。The processing module is further configured to store pixel data in the set of pixel data to be stored.
第三方面,本申请实施例还提供了一种图像数据存储设备,包括处理器和存储器,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行第一方面所述的方法In a third aspect, embodiments of the present application further provide an image data storage device, including a processor and a memory, wherein the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to use in calling the program instructions to execute the method described in the first aspect
第四方面,本申请实施例还提供了一种计算机可读存储介质,包括:所述计算机可读存储介质存储有一条或多条指令,所述一条或多条指令适于由处理器加载并执行如第一方面所述的方法。In a fourth aspect, embodiments of the present application further provide a computer-readable storage medium, including: the computer-readable storage medium stores one or more instructions, and the one or more instructions are suitable for being loaded by a processor and storing The method as described in the first aspect is performed.
第五方面,本申请提供了一种芯片,所述芯片,用于接收参考图像对应的第一类型的第一像素数据集合,以及接收当前图像对应的第一类型的第二像素数据集合,所述参考图像和所述当前图像用于确定位于所述参考图像和所述当前图像之间的待插帧图像;In a fifth aspect, the present application provides a chip for receiving a first pixel data set of a first type corresponding to a reference image, and receiving a second pixel data set of the first type corresponding to a current image, where The reference image and the current image are used to determine the frame image to be inserted between the reference image and the current image;
所述芯片,还用于确定所述待插帧图像的参考相位信息,所述参考相位信息用于指示所述待插帧图像与所述参考图像和所述当前图像之间的间隔;The chip is further configured to determine reference phase information of the frame image to be inserted, where the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image;
所述芯片,还用于根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合,并根据所述参考相位信息从所述目标像素数据集合中确定待存储像素数据集合;The chip is further configured to determine a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, and from the target pixel data set according to the reference phase information Determine the set of pixel data to be stored in ;
所述芯片,还用于输出所述待存储像素数据集合中的像素数据,以便于存储所述待存储像素数据集合中的像素数据。The chip is further configured to output pixel data in the set of pixel data to be stored, so as to store the pixel data in the set of pixel data to be stored.
第六方面,本申请提供了一种芯片模组,所述模组设备包括通信模组、电源模组、存储模组以及芯片模组,其中:In a sixth aspect, the application provides a chip module, the module device includes a communication module, a power module, a storage module and a chip module, wherein:
所述电源模组用于为所述模组设备提供电能;The power module is used to provide power for the module device;
所述存储模组用于存储数据和指令;The storage module is used to store data and instructions;
所述通信模组用于进行模组设备内部通信,或者用于所述模组设备与外部设备进行通信;The communication module is used for internal communication of the module device, or for the module device to communicate with an external device;
所述芯片模组用于:The chip module is used for:
通过所述通信模组获取参考图像对应的第一类型的第一像素数据集合,以及获取当前图像对应的第一类型的第二像素数据集合,所述参考图像和所述当前图像用于确定位于所述参考图像和所述当前图像之间的待插帧图像;The first pixel data set of the first type corresponding to the reference image is obtained through the communication module, and the second pixel data set of the first type corresponding to the current image is obtained, and the reference image and the current image are used to determine an image to be inserted between the reference image and the current image;
确定所述待插帧图像的参考相位信息,所述参考相位信息用于指示所述待插帧图像与所述参考图像和所述当前图像之间的间隔;determining the reference phase information of the frame image to be inserted, where the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image;
根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合,并根据所述参考相位信息从所述目标像素数据集合中确定待存储像素数据集合;A target pixel data set is determined from the first pixel data set and the second pixel data set according to the reference phase information, and a to-be-stored pixel data set is determined from the target pixel data set according to the reference phase information ;
在所述存储模组中存储所述待存储像素数据集合中的像素数据。Pixel data in the to-be-stored pixel data set is stored in the storage module.
实施本申请实施例,具有如下有益效果:获取参考图像对应的第一类型的第一像素数据集合,以及获取当前图像对应的第一类型的第二像素数据集合;然后,确定待插帧图像的参考相位信息,根据相位信息从第一像素数据集合和第二像素数据集合中确定目标像素数据集合,并根据参考相位信息从目标像素数据集合中确定带存储像素数据集合;最后,对待存储像素数据集合中的像素数据进行存储。可见,本申请实施例能够减小数据存储量,在保证插帧效果的同时,减小存储空间。Implementing the embodiments of the present application has the following beneficial effects: obtaining the first pixel data set of the first type corresponding to the reference image, and obtaining the second pixel data set of the first type corresponding to the current image; then, determining the frame size of the image to be inserted With reference to the phase information, the target pixel data set is determined from the first pixel data set and the second pixel data set according to the phase information, and the storage pixel data set is determined from the target pixel data set according to the reference phase information; finally, the pixel data to be stored The pixel data in the collection is stored. It can be seen that the embodiments of the present application can reduce the amount of data storage, and reduce the storage space while ensuring the effect of frame insertion.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
图1是本申请一个示例性实施例提供的第一种图像数据存储方法的流程示意图;1 is a schematic flowchart of a first image data storage method provided by an exemplary embodiment of the present application;
图2a是本申请一个示例性实施例提供的一种第一像素数据集合的示意图;2a is a schematic diagram of a first pixel data set provided by an exemplary embodiment of the present application;
图2b是本申请一个示例性实施例提供的一种运动估计的示意图;FIG. 2b is a schematic diagram of motion estimation provided by an exemplary embodiment of the present application;
图2c是本申请一个示例性实施例提供的一种在参考图像和当前图像中体现参考相位信息的示意图;2c is a schematic diagram of reflecting reference phase information in a reference image and a current image provided by an exemplary embodiment of the present application;
图3是本申请一个示例性实施例提供的第二种图像数据存储方法的流程示意图;3 is a schematic flowchart of a second image data storage method provided by an exemplary embodiment of the present application;
图4a是本申请一个示例性实施例提供的另一种在参考图像和当前图像中体现参考相位信息的示意图;4a is another schematic diagram of reflecting reference phase information in a reference image and a current image provided by an exemplary embodiment of the present application;
图4b是本申请一个示例性实施例提供的一种在参考图像中确定待存储图像区域的示意图;4b is a schematic diagram of determining an image area to be stored in a reference image provided by an exemplary embodiment of the present application;
图5是本申请一个示例性实施例提供的第三种图像数据存储方法的流程示意图;5 is a schematic flowchart of a third image data storage method provided by an exemplary embodiment of the present application;
图6a是本申请一个示例性实施例提供的一种第三像素数据集合示意图;Fig. 6a is a schematic diagram of a third pixel data set provided by an exemplary embodiment of the present application;
图6b是本申请一个示例性实施例提供的一种确定第一待存储图像区域和第二待存储图像区域的示意图;6b is a schematic diagram of determining a first image area to be stored and a second image area to be stored provided by an exemplary embodiment of the present application;
图7是本申请一个示例性实施例提供的一种图像数据存储设备的结构示意图;7 is a schematic structural diagram of an image data storage device provided by an exemplary embodiment of the present application;
图8是本申请一个示例性实施例提供的另一种图像数据存储设备的结构示意图;FIG. 8 is a schematic structural diagram of another image data storage device provided by an exemplary embodiment of the present application;
图9是本申请一个示例性实施例提供的一种模组设备的结构示意图。FIG. 9 is a schematic structural diagram of a modular device provided by an exemplary embodiment of the present application.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实 施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts all belong to the protection scope of the present invention.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本申请实施例涉及重叠块运动补偿技术,该技术是一种减小块边界不连续性的高级块运动补偿技术,其广泛用于图像插帧计算,通过该技术可提高运动估计和运动补偿的精度以及减小分块所带来的失真(块效应等)。具体而言,重叠块运动补偿算法认为某个块的运动矢量也影响相邻块,也就是说,一个块的预测不仅仅取决于本块的运动矢量,而且也受相邻块的一系列运动矢量所影响,因此,重叠块运动补偿算法以尽量平滑块边界的约束减少块边界像素的预测误差。The embodiments of the present application relate to overlapping block motion compensation technology, which is an advanced block motion compensation technology that reduces discontinuity at block boundaries. accuracy and reduce the distortion (blocking, etc.) caused by blocking. Specifically, the overlapping block motion compensation algorithm considers that the motion vector of a certain block also affects adjacent blocks, that is, the prediction of a block depends not only on the motion vector of the current block, but also by a series of motions of adjacent blocks. Therefore, the overlapping block motion compensation algorithm reduces the prediction error of the block boundary pixels with the constraint of smoothing the block boundaries as much as possible.
本申请实施例将重叠块运动补偿技术应用到图像插帧计算中,为减小插帧处理过程中的存储量,在保证插帧效果的同时,减小存储空间,示例性提供了一种图像数据存储方法,如图1,图1是本申请一个示例性实施例提供的第一种图像数据存储方法,该方法可由图像数据存储设备执行,该设备可以包括诸如手机、平板电脑、笔记本电脑、掌上电脑、个人数字助理(Personal Digital Assistant,PDA)、便捷式媒体播放器(Portable Media Player,PMP)、导航装置、可穿戴设备、智能手环、计步器等具有存储功能的移动设备,以及诸如数字TV、台式计算机等具有存储功能的固定设备,所述方法包括:The embodiment of the present application applies the overlapping block motion compensation technology to the calculation of image frame insertion. In order to reduce the storage amount in the frame insertion process, while ensuring the frame insertion effect, the storage space is reduced, and an example of an image is provided. A data storage method, as shown in FIG. 1, is a first image data storage method provided by an exemplary embodiment of the present application. The method can be performed by an image data storage device, and the device Mobile devices with storage functions such as PDAs, Personal Digital Assistants (PDAs), Portable Media Players (PMPs), navigation devices, wearable devices, smart bracelets, and pedometers, and Fixed devices with storage functions such as digital TVs, desktop computers, etc., the method includes:
S101、获取参考图像对应的第一类型的第一像素数据集合,以及获取当前图像对应的第一类型的第二像素数据集合,参考图像和当前图像用于确定位于参考图像和当前图像之间的待插帧图像。S101. Obtain a first pixel data set of a first type corresponding to a reference image, and obtain a second pixel data set of a first type corresponding to a current image, where the reference image and the current image are used to determine a pixel data set between the reference image and the current image. Image to be inserted.
本申请实施例中,参考图像可以是当前图像的前一帧图像和/或后一帧图像,待插帧图像是位于当前图像和参考图像之间的一帧图像。参考图像对应的第一类型的第一像素数据集合可以是经过处理的与参考图像相关的高频数据信息集合,具体的,所述获取参考图像对应的第一类型的第一像素数据集合,可以包括:获取参考图像,并将所述参考图像中的多行像素点拆分成多组像素行,每一组像素行包括相邻的M行像素点,所述M为大于1的正整数;针对每一组像素行,确定一组像素行包括的M行像素点中处于同一列的M个像素点的像素值差值;根据所述像素值差值确定所述参考图像对应的第一类型的第一像素数据集合。本申请实施例中,多组像素行指的是将参考图像中的多行像素点进行分组,每组里面包括M行像素点,由此得到参考图像中多组像素行。在具体确定参考图像对应的第一类型的第一像素数据集合的过程中,确定出参考图像中每个像素点的像素值,再确定出每组像素行包括的M行像素点中处于同一列的M个像素点的像素值差值,进而根据该差值确定出参考图像对应的第一类型的第一像素数据集合。举例来说,如图2a所示,参考图像为6*6像素大小的图像,将参考图像中的6行像素点拆分成3组像素行,每一组像素行 包括相邻的2行像素点,针对每一组像素行,确定一组像素行包括的2行像素点中处于同一列的2个像素点的像素值差值,由此得到6*3像素大小的第一类型的第一像素数据集合。可以理解的是,本申请实施例中的参考图像中的多行像素点可以是整个参考图像中的所有行的像素点,也可以是参考图像中的部分行数的像素点;另外,当一组像素行中包括两行像素行以上时,求差值时,可以是同列中多个像素值相互求差值,例如一组中包括三行像素行,分别是第一行、第二行和第三行,在计算像素值差值时,同一列中通过第一行像素点的像素值与第二行像素点的像素值作差,第二像素点的像素值与第三行像素点的像素值作差,第一行像素点的像素值与第三行像素点的像素值作差。In this embodiment of the present application, the reference image may be a previous frame image and/or a next frame image of the current image, and the frame image to be inserted is a frame image located between the current image and the reference image. The first pixel data set of the first type corresponding to the reference image may be a processed high-frequency data information set related to the reference image. Specifically, the acquiring the first pixel data set of the first type corresponding to the reference image may be: Including: acquiring a reference image, and splitting multiple rows of pixel points in the reference image into multiple groups of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, and M is a positive integer greater than 1; For each group of pixel rows, determine the pixel value difference of M pixels in the same column among M rows of pixel points included in a group of pixel rows; determine the first type corresponding to the reference image according to the pixel value difference The first pixel data set of . In the embodiment of the present application, multiple groups of pixel rows refer to grouping multiple rows of pixel points in the reference image, and each group includes M rows of pixel points, thereby obtaining multiple groups of pixel rows in the reference image. In the process of specifically determining the first pixel data set of the first type corresponding to the reference image, the pixel value of each pixel in the reference image is determined, and then it is determined that the M rows of pixels included in each group of pixel rows are in the same column The pixel value difference of the M pixel points, and then the first pixel data set of the first type corresponding to the reference image is determined according to the difference value. For example, as shown in Fig. 2a, the reference image is an image with a size of 6*6 pixels, and 6 rows of pixel points in the reference image are divided into 3 groups of pixel rows, and each group of pixel rows includes adjacent 2 rows of pixels. Point, for each group of pixel rows, determine the pixel value difference of 2 pixel points in the same column in the 2 rows of pixel points included in a group of pixel rows, thereby obtaining the first type of the first type of 6*3 pixel size. A collection of pixel data. It can be understood that the multiple rows of pixel points in the reference image in the embodiments of the present application may be the pixel points of all rows in the entire reference image, or may be the pixel points of some rows in the reference image; When a group of pixel rows includes more than two rows of pixel rows, when calculating the difference value, the difference value of multiple pixel values in the same column can be calculated from each other. For example, a group of pixel rows includes three rows of pixel rows, which are the first row, the second row and the In the third row, when calculating the pixel value difference, the difference between the pixel value of the pixel point in the first row and the pixel value of the pixel point in the second row in the same column, the pixel value of the second pixel point is the same as the pixel value of the pixel point in the third row. The pixel value is the difference, and the pixel value of the pixel point in the first row is different from the pixel value of the pixel point in the third row.
在一种可选的实施方式中,所述获取当前图像对应的第一类型的第二像素数据集合,可以包括:获取当前图像,并将所述当前图像中的多行像素点拆分成多组像素行,每一组像素行包括相邻的M行像素点,所述M为大于1的正整数;针对每一组像素行,确定一组像素行包括的M行像素点中处于同一列的M个像素点的像素值差值;根据所述像素值差值确定所述当前图像对应的第一类型的第二像素数据集合。本申请实施例中,当前图像对应的第一类型的第二像素数据集合可以是经过处理的与当前图像相关的高频数据信息集合。具体的,在确定当前图像对应的第一类型的第二像素数据集合的过程中,确定出当前图像中每个像素点的像素值,再确定出每组像素行包括的M行像素点中处于同一列的M个像素点的像素值差值,进而根据该差值确定出当前图像对应的第一类型的第二像素数据集合。In an optional implementation manner, the acquiring the second set of pixel data of the first type corresponding to the current image may include: acquiring the current image, and dividing multiple rows of pixel points in the current image into multiple A group of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, where M is a positive integer greater than 1; for each group of pixel rows, it is determined that the M rows of pixel points included in a group of pixel rows are in the same column The pixel value difference of the M pixel points; the second pixel data set of the first type corresponding to the current image is determined according to the pixel value difference. In this embodiment of the present application, the second pixel data set of the first type corresponding to the current image may be a processed high-frequency data information set related to the current image. Specifically, in the process of determining the second pixel data set of the first type corresponding to the current image, the pixel value of each pixel point in the current image is determined, and then it is determined that the pixel points in the M rows included in each group of pixel rows are located in the current image. The pixel value difference of the M pixel points in the same column, and then the second pixel data set of the first type corresponding to the current image is determined according to the difference.
S102、确定待插帧图像的参考相位信息,参考相位信息用于指示待插帧图像与参考图像和当前图像之间的间隔。S102. Determine the reference phase information of the frame image to be inserted, where the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image.
本申请实施例中,参考相位信息可以是用于指示待插帧图像与参考图像和当前图像之间的时间间隔。例如参考图像为0.1s时的一帧图像,当前图像为0.5s时的一帧图像,要插入0.2s时的待插帧图像,参考相位信息则指的是待插帧图像与参考图像之间的时间间隔为0.1s,待插帧图像与当前图像之间的时间间隔为0.3s。In this embodiment of the present application, the reference phase information may be used to indicate the time interval between the image to be inserted and the reference image and the current image. For example, the reference image is a frame of image at 0.1s, and the current image is a frame of image at 0.5s. To insert the frame image to be inserted at 0.2s, the reference phase information refers to the difference between the frame to be inserted and the reference image. The time interval is 0.1s, and the time interval between the frame image to be inserted and the current image is 0.3s.
S103、根据参考相位信息从第一像素数据集合和第二像素数据集合中确定目标像素数据集合,并根据参考相位信息从目标像素数据集合中确定待存储像素数据集合。S103. Determine a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, and determine a to-be-stored pixel data set from the target pixel data set according to the reference phase information.
本申请实施例中,在确定参考相位信息之后,要确定目标像素数据集合,即根据参考相位信息确定第一像素数据集合为目标像素数据集合,或者确定第二像素数据集合为目标像素数据集合,或者确定第一像素数据集合和第二像素数据集合为目标像素数据集合。在一种可选的实施方式中,所述根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合,可以包括:若所述参考相位信息指示所述待插帧图像与所述参考图像之间的间隔小于所述待插帧图像与所述当前图像之间的间隔,则将所述第二像素数据集合确定为目标像素数据集合;若所述参考相位信息指示所述待插帧图像与所述参考图像之间的间隔大于所述待插帧图像与所述当前图像之间的间隔,则将所述第 一像素数据集合确定为目标像素数据集合。在一种可选的实施方式中,所述根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合,还可以包括:若所述参考相位信息指示所述待插帧图像与所述参考图像之间的间隔等于所述待插帧图像与所述当前图像之间的间隔,则将所述第一像素数据集合和所述第二像素数据集合确定为目标像素数据集合。本申请实施例中,根据参考相位信息指示的待插帧图像与参考图像之间的间隔大于、小于或者等于待插帧图像与当前图像之间的间隔,确定最终的目标像素数据集合。In this embodiment of the present application, after the reference phase information is determined, the target pixel data set is determined, that is, the first pixel data set is determined as the target pixel data set according to the reference phase information, or the second pixel data set is determined as the target pixel data set, Or determine the first pixel data set and the second pixel data set as the target pixel data set. In an optional implementation manner, the determining a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information may include: if the reference phase information Indicate that the interval between the frame image to be inserted and the reference image is smaller than the interval between the frame image to be inserted and the current image, then the second pixel data set is determined as the target pixel data set; if The reference phase information indicates that the interval between the frame image to be inserted and the reference image is greater than the interval between the frame image to be inserted and the current image, then the first pixel data set is determined as the target A collection of pixel data. In an optional implementation manner, the determining a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information may further include: if the reference phase information information indicates that the interval between the frame image to be inserted and the reference image is equal to the interval between the frame image to be inserted and the current image, then the first pixel data set and the second pixel data The set is determined to be the target pixel data set. In the embodiment of the present application, the final target pixel data set is determined according to the interval between the image to be inserted and the reference image indicated by the reference phase information is greater than, less than or equal to the interval between the image to be inserted and the current image.
同时,根据参考相位信息从目标像素数据中确定待存储像素数据集合,如图2b所示,参考图像中的A块与当前图像中的C块相匹配(A块与C块之间具有相对位移),参考相位信息指示待插帧图像与参考图像之间的间隔小于待插帧图像与当前图像之间的间隔,因此将所述第二像素数据集合确定为目标像素数据集合,如图2b、图2c所示,根据A块、C块和参考相位信息,确定出当前图像对应的第二像素数据集合中C块所在的图像区域的多行像素数据中最上面一行像素数据边界位置到位置D之间的像素数据为待存储数据集合,其中,位置D为待插帧图像中B块所在的图像区域的多行像素数据中最下面的一行像素数据的边界位置对应于当前图像中相同位置的位置D。At the same time, the set of pixel data to be stored is determined from the target pixel data according to the reference phase information. As shown in Figure 2b, the A block in the reference image matches the C block in the current image (there is a relative displacement between the A block and the C block). ), the reference phase information indicates that the interval between the frame image to be inserted and the reference image is less than the interval between the frame image to be inserted and the current image, so the second pixel data set is determined as the target pixel data set, as shown in Figure 2b, As shown in Figure 2c, according to the A block, the C block and the reference phase information, it is determined that the boundary position of the uppermost row of pixel data in the multi-line pixel data of the image area where the C block is located in the second pixel data set corresponding to the current image to the position D The pixel data between is the set of data to be stored, wherein the position D is the border position of the bottom row of pixel data in the multi-line pixel data of the image area where the B block in the frame image to be inserted corresponds to the same position in the current image. location D.
S104、对待存储像素数据集合中的像素数据进行存储。S104. Store the pixel data in the pixel data set to be stored.
在本申请实施例中,获取参考图像对应的第一类型的第一像素数据集合,以及获取当前图像对应的第一类型的第二像素数据集合;然后,确定待插帧图像的参考相位信息,根据相位信息从第一像素数据集合和第二像素数据集合中确定目标像素数据集合,并根据参考相位信息从目标像素数据集合中确定带存储像素数据集合;最后,对待存储像素数据集合中的像素数据进行存储。可见,本申请实施例能够减小数据存储量,在保证插帧效果的同时,减小存储空间。In the embodiment of the present application, the first pixel data set of the first type corresponding to the reference image is obtained, and the second pixel data set of the first type corresponding to the current image is obtained; then, the reference phase information of the frame image to be inserted is determined, The target pixel data set is determined from the first pixel data set and the second pixel data set according to the phase information, and the storage pixel data set is determined from the target pixel data set according to the reference phase information; data is stored. It can be seen that the embodiments of the present application can reduce the amount of data storage, and reduce the storage space while ensuring the effect of frame insertion.
请参见图3,图3是本申请一个示例性实施例提供的第二种图像数据存储方法,该方法可由图像数据存储设备执行,该设备可以包括诸如手机、平板电脑、笔记本电脑、掌上电脑、个人数字助理(Personal Digital Assistant,PDA)、便捷式媒体播放器(Portable Media Player,PMP)、导航装置、可穿戴设备、智能手环、计步器等具有存储功能的移动设备,以及诸如数字TV、台式计算机等具有存储功能的固定设备,所述方法包括:Please refer to FIG. 3. FIG. 3 is a second image data storage method provided by an exemplary embodiment of the present application. The method can be executed by an image data storage device, and the device can include, for example, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, Personal Digital Assistant (PDA), Portable Media Player (PMP), navigation device, wearable device, smart bracelet, pedometer and other mobile devices with storage function, as well as digital TV , desktop computers and other fixed devices with storage functions, the method includes:
S301、获取参考图像对应的第一类型的第一像素数据集合,以及获取当前图像对应的第一类型的第二像素数据集合,参考图像和当前图像用于确定位于参考图像和当前图像之间的待插帧图像。S301. Obtain a first pixel data set of a first type corresponding to a reference image, and obtain a second pixel data set of a first type corresponding to a current image, where the reference image and the current image are used to determine the pixel data set between the reference image and the current image. Image to be inserted.
S302、确定待插帧图像的参考相位信息,参考相位信息用于指示待插帧图像与参考图像和当前图像之间的间隔。S302. Determine the reference phase information of the frame image to be inserted, where the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image.
需要说明的是,本申请实施例中步骤S301-S302具体可参见上述实施例中步骤 S101-S103,本申请实施例不再赘述。It should be noted that, for details of steps S301-S302 in this embodiment of the present application, reference may be made to steps S101-S103 in the foregoing embodiment, and details are not repeated in this embodiment of the present application.
S303、根据参考相位信息从第一像素数据集合和第二像素数据集合中确定目标像素数据集合。S303. Determine a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information.
本申请实施例中,根据参考相位信息指示的待插帧图像与参考图像之间的间隔大于、小于或者等于待插帧图像与当前图像之间的间隔,具体确定第一像素数据集合、第二像素数据集合或者第一像素数据集合和第二像素数据集合作为目标像素数据集合。In this embodiment of the present application, according to the interval between the image to be inserted and the reference image indicated by the reference phase information is greater than, less than or equal to the interval between the image to be inserted and the current image, the first pixel data set, the second The pixel data set or the first pixel data set and the second pixel data set are used as the target pixel data set.
S304、确定参考图像和当前图像之间的运动向量信息。S304. Determine motion vector information between the reference image and the current image.
本申请实施例中,将图像序列的当前图像分成许多互不重叠的宏块,并认为宏块内所有像素的位移量都相同,然后对每个宏块到参考图像某一给定特定搜索范围内根据一定的匹配准则找出与当前块最相似的块,即匹配块,匹配块与当前块的相对位移即为运动矢量,也就是说,确定参考图像和当前图像之间的运动向量信息就是确定参考图像中的匹配块和当前图像中的当前块的相对位移信息。In the embodiment of the present application, the current image of the image sequence is divided into many non-overlapping macroblocks, and it is considered that the displacements of all pixels in the macroblock are the same, and then a given specific search range from each macroblock to the reference image is determined. According to certain matching criteria, find the block that is most similar to the current block, that is, the matching block, and the relative displacement between the matching block and the current block is the motion vector, that is, to determine the motion vector information between the reference image and the current image is Determine the relative displacement information of the matching block in the reference image and the current block in the current image.
在一种可选的实施方式中,所述确定所述参考图像和所述当前图像之间的运动向量信息之后,可以包括:根据所述参考相位信息、所述参考图像和所述当前图像之间的运动向量信息从所述目标像素数据集合中确定待存储像素数据集合;其中,所述待存储像素数据集合包括所述目标像素数据集合中的部分像素数据。In an optional implementation manner, after the determining the motion vector information between the reference image and the current image, may include: according to the reference phase information, the relationship between the reference image and the current image The pixel data set to be stored is determined from the target pixel data set according to the motion vector information between them; wherein, the pixel data set to be stored includes part of the pixel data in the target pixel data set.
S305、根据参考相位信息、参考图像和当前图像之间的运动向量信息从目标像素数据集合对应的图像中确定待存储图像区域。S305: Determine the image area to be stored from the image corresponding to the target pixel data set according to the reference phase information and the motion vector information between the reference image and the current image.
本申请实施例中,举例来说,如图4a、图4b所示,参考相位信息指示待插帧图像与参考图像之间的间隔大于待插帧图像与当前图像之间的间隔,因此将参考图像对应的第一类型的第一像素数据集合作为目标像素数据集合,根据确定出的参考图像中M块和当前图像中的Q块存在相对位移,基于参考相位信息、M块的位置信息和Q块的位置信息可以确定出第一像素数据集合对应的图像中确定出待存储图像区域为,参考图像对应的第一像素数据集合中M块所在的图像区域的多行像素点中最上面一行像素点的边界位置,到待插帧图像中P块所在的图像区域的多行像素数据中最下面的一行像素点的边界位置对应于参考图像中相同位置的位置N之间的图像区域。In the embodiment of the present application, for example, as shown in FIG. 4a and FIG. 4b, the reference phase information indicates that the interval between the frame to be inserted and the reference image is greater than the interval between the frame to be inserted and the current image. Therefore, refer to The first pixel data set of the first type corresponding to the image is used as the target pixel data set, according to the determined relative displacement of the M block in the reference image and the Q block in the current image, based on the reference phase information, the position information of the M block and the Q block. The position information of the block can determine that the image area to be stored in the image corresponding to the first pixel data set is the uppermost row of pixels in the multiple rows of pixels in the image area where the M blocks are located in the first pixel data set corresponding to the reference image. The boundary position of the point, to the boundary position of the pixel point of the bottom row in the multi-line pixel data of the image area where the P block is located in the frame to be inserted corresponds to the image area between the same position N in the reference image.
S306、根据目标像素数据集合中待存储图像区域对应的像素数据,确定待存储像素数据集合。S306: Determine the pixel data set to be stored according to the pixel data corresponding to the image area to be stored in the target pixel data set.
本申请实施例中,根据目标像素数据集和待存储图像区域对应的像素数据,确定待存储像素数据集合,如图4b所示,确定第一像素数据集合中对应的图像中确定待存储图像区域为M块所在的图像区域的多行像素数据中最上面一行像素数据边界位置到位置N之间的区域,进而确定出该区域之间的多行像素数据,将所述多行像素数据确定为待存储像素数据集合中的像素数据。In the embodiment of the present application, the pixel data set to be stored is determined according to the target pixel data set and the pixel data corresponding to the image area to be stored. is the area between the boundary position of the uppermost row of pixel data and the position N in the multi-line pixel data of the image area where the M blocks are located, and then determines the multi-line pixel data between the areas, and the multi-line pixel data is determined as The pixel data in the pixel data set to be stored.
S307、对待存储像素数据集合中的像素数据进行存储。S307. Store the pixel data in the pixel data set to be stored.
在本申请实施例中,获取参考图像对应的第一类型的第一像素数据集合,以及获取当前图像对应的第一类型的第二像素数据集合;然后,确定待插帧图像的参考相位信息,根据相位信息从第一像素数据集合和第二像素数据集合中确定目标像素数据集合,确定参考图像和当前图像之间的运动向量信息;然后,根据所述参考相位信息、所述参考图像和所述当前图像之间的运动向量信息从所述目标像素数据集合中确定待存储像素数据集合。可见,本申请实施例中,可根据待插帧位置动态调整待存储像素数据集合中的像素数据,且能准确确定出待存储像素数据集合中的像素数据,能减小存储数量,在保证插帧效果的同时减小存储空间。In the embodiment of the present application, the first pixel data set of the first type corresponding to the reference image is obtained, and the second pixel data set of the first type corresponding to the current image is obtained; then, the reference phase information of the frame image to be inserted is determined, Determine the target pixel data set from the first pixel data set and the second pixel data set according to the phase information, and determine the motion vector information between the reference image and the current image; then, according to the reference phase information, the reference image and all The motion vector information between the current images determines the pixel data set to be stored from the target pixel data set. It can be seen that in the embodiment of the present application, the pixel data in the pixel data set to be stored can be dynamically adjusted according to the position of the frame to be inserted, and the pixel data in the pixel data set to be stored can be accurately determined, the storage quantity can be reduced, and the amount of storage can be reduced. Frame effects while reducing storage space.
请参见图5,图5是本申请一个示例性实施例提供的第三种图像数据存储方法,该方法可由图像数据存储设备执行,该设备可以包括诸如手机、平板电脑、笔记本电脑、掌上电脑、个人数字助理(Personal Digital Assistant,PDA)、便捷式媒体播放器(Portable Media Player,PMP)、导航装置、可穿戴设备、智能手环、计步器等具有存储功能的移动设备,以及诸如数字TV、台式计算机等具有存储功能的固定设备,所述方法包括:Please refer to FIG. 5. FIG. 5 is a third image data storage method provided by an exemplary embodiment of the present application. The method can be executed by an image data storage device, and the device may include, for example, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, Personal Digital Assistant (PDA), Portable Media Player (PMP), navigation device, wearable device, smart bracelet, pedometer and other mobile devices with storage function, as well as digital TV , desktop computers and other fixed devices with storage functions, the method includes:
S501、获取参考图像对应的第一类型的第一像素数据集合,以及获取当前图像对应的第一类型的第二像素数据集合,参考图像和当前图像用于确定位于参考图像和当前图像之间的待插帧图像。S501. Obtain a first pixel data set of a first type corresponding to a reference image, and obtain a second pixel data set of a first type corresponding to a current image, where the reference image and the current image are used to determine the pixel data set between the reference image and the current image. Image to be inserted.
S502、确定待插帧图像的参考相位信息,参考相位信息用于指示待插帧图像与参考图像和当前图像之间的间隔。S502. Determine the reference phase information of the image to be inserted, where the reference phase information is used to indicate the interval between the image to be inserted and the reference image and the current image.
S503、根据参考相位信息从第一像素数据集合和第二像素数据集合中确定目标像素数据集合,并根据参考相位信息从目标像素数据集合中确定待存储像素数据集合。S503. Determine a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, and determine a to-be-stored pixel data set from the target pixel data set according to the reference phase information.
S504、对待存储像素数据集合中的像素数据进行存储。S504. Store the pixel data in the pixel data set to be stored.
需要说明的是,本申请实施例中的S501-S504具体可参见上述实施例中的步骤S101-S104,本申请实施例中不在赘述。本申请中的步骤S501-S504与步骤S505-S507的执行顺序可任意排序,例如,先执行步骤S501-S504,再执行步骤S505-S507,也可先执行步骤S505-S507,再执行步骤S501-S504,当然也可同时执行。可以理解的是,步骤S501-S507中各个步骤并不代表固定的执行步骤,各个步骤的执行可以是任意顺序。It should be noted that, for details of S501-S504 in this embodiment of the present application, reference may be made to steps S101-S104 in the foregoing embodiment, which will not be repeated in this embodiment of the present application. The execution order of steps S501-S504 and steps S505-S507 in this application can be sorted arbitrarily. S504, of course, can also be executed at the same time. It can be understood that, each of the steps in steps S501-S507 does not represent a fixed execution step, and the execution of each step may be in any order.
S505、获取参考图像对应的第二类型的第三像素数据集合,以及获取当前图像对应的第二类型的第四像素数据集合。S505. Acquire a third pixel data set of the second type corresponding to the reference image, and acquire a fourth pixel data set of the second type corresponding to the current image.
本申请实施例中,参考图像对应的第二类型的第三像素数据集合可以是经过处理的与参考图像相关的低频数据信息集合,具体的,所述获取参考图像对应的第二类型的第三像素数据集合,可以包括:获取参考图像,并将所述参考图像中的多行像素点拆分成多组像素行,每一组像素行包括相邻的M行像素点,所述M为大于1的正整数;针对每一组像素行,确定一组像素行包括的M行像素点中处于同一列的M个像素点像素值的平均值; 根据所述平均值确定所述参考图像对应的第二类型的第三像素数据集合。本申请实施例中,在具体确定参考图像对应的第二类型的第三像素数据集合的过程中,确定出参考图像中每个像素点的像素值,再确定出每组像素行包括的M行像素点中处于同一列的M个像素点像素值的平均值,进而根据该平均值确定出参考图像对应的第二类型的第三像素数据集合。举例来说,如图6a所示,参考图像为9*9像素大小的图像,将参考图像中的9行像素点拆分成3组像素行,每一组像素行包括相邻的3行像素点,针对每一组像素行,确定一组像素行包括的3行像素点中处于同一列的3个像素点像素值的平均值,由此得到9*3像素大小的第二类型的第三像素数据集合。In this embodiment of the present application, the third pixel data set of the second type corresponding to the reference image may be a processed low-frequency data information set related to the reference image. Specifically, the acquiring the third pixel data set of the second type corresponding to the reference image The pixel data set may include: acquiring a reference image, and dividing multiple rows of pixel points in the reference image into multiple groups of pixel rows, each group of pixel rows including adjacent M rows of pixel points, where M is greater than A positive integer of 1; for each group of pixel rows, determine the average value of the pixel values of M pixel points in the same column among the M rows of pixel points included in a group of pixel rows; determine the corresponding value of the reference image according to the average value. A third set of pixel data of the second type. In the embodiment of the present application, in the process of specifically determining the third pixel data set of the second type corresponding to the reference image, the pixel value of each pixel in the reference image is determined, and then the M rows included in each group of pixel rows are determined. The average value of the pixel values of the M pixel points in the same column in the pixel points, and then the third pixel data set of the second type corresponding to the reference image is determined according to the average value. For example, as shown in Figure 6a, the reference image is an image with a size of 9*9 pixels, and 9 rows of pixel points in the reference image are divided into 3 groups of pixel rows, and each group of pixel rows includes adjacent 3 rows of pixels. For each group of pixel rows, determine the average value of the pixel values of the 3 pixel points in the same column in the 3 rows of pixel points included in the group of pixel rows, thereby obtaining the second type of 9*3 pixel size. A collection of pixel data.
在一种可选的实施方式中,所述获取当前图像对应的第二类型的第四像素数据集合,可以包括:获取当前图像,并将所述当前图像中的多行像素点拆分成多组像素行,每一组像素行包括相邻的M行像素点,所述M为大于1的正整数;针对每一组像素行,确定一组像素行包括的M行像素点中处于同一列的M个像素点像素值的平均值;根据所述平均值确定所述当前图像对应的第二类型的第四像素数据集合。本申请实施例中,在具体确定当前图像对应的第二类型的第四像素数据集合的过程中,确定出当前图像中每个像素点的像素值,再确定出每组像素行包括的M行像素点中处于同一列的M个像素点像素值的平均值,进而根据该平均值确定出当前图像对应的第二类型的第四像素数据集合。In an optional implementation manner, the obtaining the fourth pixel data set of the second type corresponding to the current image may include: obtaining the current image, and dividing the multiple rows of pixel points in the current image into multiple pixel data sets. A group of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, where M is a positive integer greater than 1; for each group of pixel rows, it is determined that the M rows of pixel points included in a group of pixel rows are in the same column The average value of the pixel values of the M pixel points; the fourth pixel data set of the second type corresponding to the current image is determined according to the average value. In the embodiment of the present application, in the process of specifically determining the fourth pixel data set of the second type corresponding to the current image, the pixel value of each pixel in the current image is determined, and then the M rows included in each group of pixel rows are determined. The average value of the pixel values of the M pixel points in the same column in the pixel points, and then the fourth pixel data set of the second type corresponding to the current image is determined according to the average value.
S506、确定参考图像中的第一待存储图像区域,以及确定当前图像中的第二待存储图像区域。S506. Determine the first image area to be stored in the reference image, and determine the second image area to be stored in the current image.
本申请实施例中,根据参考图像和当前图像之间的运动向量信息,也就是根据参考图像中的匹配块和当前图像中的当前块的相对位移信息,再根据待插帧图像的参考相位信息确定出参考图像中的第一待存储图像区域,确定出当前图像区域中的第二待存储图像区域。如图6b所示,ef之间的图像区域即为参考图像中的第一待存储图像区域,dg之间的图像区域即为当前图像中第二待存储图像区域。In this embodiment of the present application, based on the motion vector information between the reference image and the current image, that is, based on the relative displacement information of the matching block in the reference image and the current block in the current image, and then based on the reference phase information of the image to be inserted The first image area to be stored in the reference image is determined, and the second image area to be stored in the current image area is determined. As shown in Figure 6b, the image area between ef is the first image area to be stored in the reference image, and the image area between dg is the second image area to be stored in the current image.
在一种可选的实施方式中,所述确定参考图像中的第一待存储图像区域,以及确定当前图像中的第二待存储图像区域,可以包括:确定待存储图像区域的区域边界信息;根据所述区域边界信息确定所述参考图像中的第一待存储图像区域,以及根据所述区域边界信息确定所述当前图像中的第二待存储图像区域;其中,所述区域边界信息所指示的第一方向上的边界位置为预设的指定位置,所述区域边界信息所指示的第二方向上的边界位置是根据所述参考图像和所述当前图像之间的运动向量信息所确定的。In an optional implementation manner, the determining of the first image area to be stored in the reference image and the determination of the second image area to be stored in the current image may include: determining area boundary information of the image area to be stored; A first image area to be stored in the reference image is determined according to the area boundary information, and a second image area to be stored in the current image is determined according to the area boundary information; wherein the area boundary information indicates The boundary position in the first direction is a preset designated position, and the boundary position in the second direction indicated by the region boundary information is determined according to the motion vector information between the reference image and the current image. .
本申请实施例中,如图6b所示,区域边界信息所指示的第一方向上的边界位置为预设的指定位置,即可为匹配块a相对于当前块c的运动方向上,参考图像中距离匹配块a所在图像区域最远的一个指定位置m(位置m为参考图像中的第一行像素点所在的区域边界位置)或者一个指定位置n(位置n为参考图像中匹配块a所在的多行像素点区域到位置m之间的任意一行像素点区域的边界位置),也可根据当前块c所在图像区域具体确定位置g (位置g为当前图像中的当前块c所在的多行像素点区域中的最上面一行像素点区域边界位置)。区域边界信息所指示的第二方向上的边界位置,可为参考图像中匹配块a所在的多行像素点区域中的最下面的一行像素点区域的边界位置f。在具体确定区域边界所指示的第二方向上的边界位置时,根据参考图像和当前图像之间的运动向量信息,也就是根据参考图像中的匹配块a和当前图像中的当前块c的相对位移信息,确定出最终的边界位置(匹配块a所在的多行像素点区域中的最下面的一行像素点区域的边界位置f)。可以理解的是,区域边界信息所指示的第二方向上的边界位置也可以根据参考图像和当前图像之间的运动向量信息和相位信息进行更为准确的确定。In this embodiment of the present application, as shown in FIG. 6b , the boundary position in the first direction indicated by the region boundary information is a preset designated position, that is, the reference image in the moving direction of the matching block a relative to the current block c A specified position m that is farthest from the image area where the matching block a is located (position m is the area boundary position where the first row of pixels in the reference image is located) or a specified position n (position n is where the matching block a in the reference image is located. The boundary position of any row of pixel area between the multi-line pixel area to the position m), the position g can also be specifically determined according to the image area where the current block c is located (the position g is the multi-line where the current block c in the current image is located. The boundary position of the uppermost row of pixel regions in the pixel region). The boundary position in the second direction indicated by the region boundary information may be the boundary position f of the lowermost row of pixel point regions in the multi-line pixel point regions where the matching block a is located in the reference image. When specifically determining the boundary position in the second direction indicated by the region boundary, according to the motion vector information between the reference image and the current image, that is, according to the relative relationship between the matching block a in the reference image and the current block c in the current image The displacement information is used to determine the final boundary position (the boundary position f of the pixel point region of the bottom row in the multi-line pixel point region where the matching block a is located). It can be understood that, the boundary position in the second direction indicated by the region boundary information can also be more accurately determined according to the motion vector information and phase information between the reference image and the current image.
S507、对第三像素数据集合中第一待存储图像区域所对应的像素数据,以及第四像素数据集合中第二待存储图像区域所对应的像素数据进行存储。S507. Store the pixel data corresponding to the first image area to be stored in the third pixel data set and the pixel data corresponding to the second image area to be stored in the fourth pixel data set.
本申请实施例中,如图6b所示,已确定出第一待存储图像区域ef和第二待存储图像区域dg,进而在第三像素数据集合中查找与第一待存储图像区域对应的像素数据,以及在第四像素数据集合中查找与第二待存储区域对应的像素数据,将查找到的像素数据进行存储。In the embodiment of the present application, as shown in FIG. 6b, the first image area to be stored ef and the second image area to be stored dg have been determined, and then the pixels corresponding to the first image area to be stored are searched in the third pixel data set data, and searching for pixel data corresponding to the second to-be-stored area in the fourth pixel data set, and storing the found pixel data.
在本申请实施例中,获取参考图像对应的第一类型的第一像素数据集合,以及获取当前图像对应的第一类型的第二像素数据集合,根据待插帧图像的参考相位信息确定出目标像素集合,并确定出待存储像素数据集合;获取参考图像对应的第二类型的第三像素数据集合,以及获取当前图像对应的第二类型的第四像素数据集合,根据参考图像中的第一待存储图像区域,以及当前图像中的第二待存储图像区域,确定出第一待存储图像区域和第二待存储图像区域所对应的像素数据;最后将待存储像素数据集合、第三像素数据集合中第一待存储图像区域所对应的像素数据、第四像素数据集合中第二待存储图像区域所对应的像素数据进行存储,从而在保证插帧效果的同时减小数据存储量,进一步可通过待插帧图像的参考相位信息对图像数据存储空间动态分配,使得现有的存储空间利用程度最大化。In the embodiment of the present application, the first pixel data set of the first type corresponding to the reference image is obtained, and the second pixel data set of the first type corresponding to the current image is obtained, and the target is determined according to the reference phase information of the frame image to be inserted. pixel set, and determine the set of pixel data to be stored; obtain the third pixel data set of the second type corresponding to the reference image, and obtain the fourth pixel data set of the second type corresponding to the current image, according to the first pixel data set in the reference image The image area to be stored, and the second image area to be stored in the current image, determine the pixel data corresponding to the first image area to be stored and the second image area to be stored; The pixel data corresponding to the first image area to be stored in the set and the pixel data corresponding to the second image area to be stored in the fourth pixel data set are stored, thereby reducing the amount of data storage while ensuring the effect of frame insertion, and further improving The image data storage space is dynamically allocated through the reference phase information of the image to be inserted, so as to maximize the utilization of the existing storage space.
图7是本申请一个示例性实施例提供的一种图像数据存储设备的结构示意图,该设备可搭载在上述方法实施例中的图像数据存储设备上,该图像数据存储设备具体可以是服务器。当然,在一些实施例中,也可搭载在终端设备上。图7所示的图像数据存储设备可以用于执行上述图1、图3和图5所描述的方法实施例中的部分或全部功能。其中,各个部分的详细描述如下:7 is a schematic structural diagram of an image data storage device provided by an exemplary embodiment of the present application. The device may be mounted on the image data storage device in the above method embodiment, and the image data storage device may specifically be a server. Of course, in some embodiments, it can also be mounted on a terminal device. The image data storage device shown in FIG. 7 can be used to perform some or all of the functions in the method embodiments described in the above-mentioned FIGS. 1 , 3 and 5 . Among them, the detailed description of each part is as follows:
获取模块701,用于获取参考图像对应的第一类型的第一像素数据集合,以及获取当前图像对应的第一类型的第二像素数据集合,所述参考图像和所述当前图像用于确定位于所述参考图像和所述当前图像之间的待插帧图像;The obtaining module 701 is configured to obtain the first pixel data set of the first type corresponding to the reference image, and obtain the second pixel data set of the first type corresponding to the current image, and the reference image and the current image are used to determine an image to be inserted between the reference image and the current image;
确定模块702,用于确定所述待插帧图像的参考相位信息,所述参考相位信息用于指示所述待插帧图像与所述参考图像和所述当前图像之间的间隔;A determination module 702, configured to determine reference phase information of the frame image to be inserted, where the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image;
处理模块703,用于根据所述参考相位信息从所述第一像素数据集合和所述第二像素 数据集合中确定目标像素数据集合,并根据所述参考相位信息从所述目标像素数据集合中确定待存储像素数据集合;A processing module 703, configured to determine a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, and from the target pixel data set according to the reference phase information Determine the set of pixel data to be stored;
所述处理模块703,还用于对所述待存储像素数据集合中的像素数据进行存储。The processing module 703 is further configured to store pixel data in the set of pixel data to be stored.
在一种可选的实施方式中,处理模块703根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合,具体可包括:若所述参考相位信息指示所述待插帧图像与所述参考图像之间的间隔小于所述待插帧图像与所述当前图像之间的间隔,则将所述第二像素数据集合确定为目标像素数据集合;若所述参考相位信息指示所述待插帧图像与所述参考图像之间的间隔大于所述待插帧图像与所述当前图像之间的间隔,则将所述第一像素数据集合确定为目标像素数据集合。In an optional implementation manner, the processing module 703 determines a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, which may specifically include: if the reference The phase information indicates that the interval between the frame image to be inserted and the reference image is smaller than the interval between the frame image to be inserted and the current image, then the second pixel data set is determined as the target pixel data set ; If the reference phase information indicates that the interval between the frame image to be inserted and the reference image is greater than the interval between the frame image to be inserted and the current image, then the first pixel data set is determined is the target pixel data set.
在一种可选的实施方式中,处理模块703根据所述参考相位信息从所述参考像素数据集合中确定待存储像素数据集合,具体可包括:确定所述参考图像和所述当前图像之间的运动向量信息;根据所述参考相位信息、所述参考图像和所述当前图像之间的运动向量信息从所述目标像素数据集合中确定待存储像素数据集合;其中,所述待存储像素数据集合包括所述目标像素数据集合中的部分像素数据。In an optional implementation manner, the processing module 703 determines the pixel data set to be stored from the reference pixel data set according to the reference phase information, which may specifically include: determining the distance between the reference image and the current image the motion vector information; determine the pixel data set to be stored from the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image; wherein, the pixel data to be stored The set includes a portion of pixel data in the target set of pixel data.
在一种可选的实施方式中,处理模块703根据所述参考相位信息、所述参考图像和所述当前图像之间的运动向量信息从所述参考像素数据集合中确定待存储像素数据集合,具体可包括:根据所述参考相位信息、所述参考图像和所述当前图像之间的运动向量信息从所述目标像素数据集合对应的图像中确定待存储图像区域;根据所述目标像素数据集合中所述待存储图像区域对应的像素数据,确定待存储像素数据集合。In an optional implementation manner, the processing module 703 determines a set of pixel data to be stored from the reference pixel data set according to the reference phase information, the motion vector information between the reference image and the current image, Specifically, it may include: determining the image area to be stored from the image corresponding to the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image; according to the target pixel data set The pixel data corresponding to the to-be-stored image area described in , determine the to-be-stored pixel data set.
在一种可选的实施方式中,获取模块701,还用于获取参考图像对应的第二类型的第三像素数据集合,以及获取当前图像对应的第二类型的第四像素数据集合;In an optional implementation manner, the obtaining module 701 is further configured to obtain a third pixel data set of the second type corresponding to the reference image, and obtain a fourth pixel data set of the second type corresponding to the current image;
确定模块702,还用于确定所述参考图像中的第一待存储图像区域,以及确定所述当前图像中的第二待存储图像区域;The determining module 702 is further configured to determine the first image area to be stored in the reference image, and determine the second image area to be stored in the current image;
处理模块703,还用于对所述第三像素数据集合中所述第一待存储图像区域所对应的像素数据,以及所述第四像素数据集合中所述第二待存储图像区域所对应的像素数据进行存储。The processing module 703 is further configured to analyze the pixel data corresponding to the first image area to be stored in the third pixel data set and the pixel data corresponding to the second image area to be stored in the fourth pixel data set. Pixel data is stored.
在一种可选的实施方式中,确定模块702确定所述参考图像中的第一待存储图像区域,以及确定所述当前图像中的第二待存储图像区域,具体包括:确定待存储图像区域的区域边界信息;根据所述区域边界信息确定所述参考图像中的第一待存储图像区域,以及根据所述区域边界信息确定所述当前图像中的第二待存储图像区域;其中,所述区域边界信息所指示的第一方向上的边界位置为预设的指定位置,所述区域边界信息所指示的第二方向上的边界位置是根据所述参考图像和所述当前图像之间的运动向量信息所确定的。In an optional implementation manner, the determining module 702 determines a first image area to be stored in the reference image, and determines a second image area to be stored in the current image, specifically including: determining an image area to be stored the region boundary information; determine the first image region to be stored in the reference image according to the region boundary information, and determine the second image region to be stored in the current image according to the region boundary information; wherein, the The boundary position in the first direction indicated by the area boundary information is a preset designated position, and the boundary position in the second direction indicated by the area boundary information is based on the motion between the reference image and the current image determined by the vector information.
在一种可选的实施方式中,获取模块701获取参考图像对应的第一类型的第一像素数据集合,具体包括:获取参考图像,并将所述参考图像中的多行像素点拆分成多组像素行, 每一组像素行包括相邻的M行像素点,所述M为大于1的正整数;针对每一组像素行,确定一组像素行包括的M行像素点中处于同一列的M个像素点的像素值差值;根据所述像素值差值确定所述参考图像对应的第一类型的第一像素数据集合。In an optional implementation manner, the obtaining module 701 obtains the first pixel data set of the first type corresponding to the reference image, which specifically includes: obtaining the reference image, and splitting multiple rows of pixel points in the reference image into Multiple groups of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, and M is a positive integer greater than 1; for each group of pixel rows, it is determined that the M rows of pixel points included in a group of pixel rows are in the same row. pixel value difference values of the M pixel points in the column; determining the first pixel data set of the first type corresponding to the reference image according to the pixel value difference values.
图7所示的图像数据存储设备中的各个模块可以分别或全部合并为一个或若干个另外的模块来构成,或者其中的某个(些)模块还可以再拆分为功能上更小的多个单元来构成,这可以实现同样的操作,而不影响本申请的实施例的技术效果的实现。上述模块是基于逻辑功能划分的,在实际应用中,一个模块的功能也可以由多个模块来实现,或者多个模块的功能由一个模块实现。在本申请的其它实施例中,存储设备也可以包括其它模块,在实际应用中,这些功能也可以由其它模块协助实现,并且可以由多个模块协作实现。Each module in the image data storage device shown in FIG. 7 may be combined into one or several other modules, respectively or all, or some module(s) may be further divided into multiple modules with smaller functions. It is composed of several units, which can realize the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above modules are divided based on logical functions. In practical applications, the function of one module may also be implemented by multiple modules, or the functions of multiple modules may be implemented by one module. In other embodiments of the present application, the storage device may also include other modules, and in practical applications, these functions may also be implemented with the assistance of other modules, and may be implemented by cooperation of multiple modules.
基于同一发明构思,本申请实施例中提供的图像数据存储设备解决问题的原理与有益效果与本申请方法实施例中图像数据存储方法解决问题的原理和有益效果相似,可以参见方法的实施的原理和有益效果,为简洁描述,在这里不再赘述。Based on the same inventive concept, the principles and beneficial effects of the image data storage device provided in the embodiments of the present application for solving problems are similar to the principles and beneficial effects of the image data storage methods for solving the problems in the method embodiments of the present application. For details, please refer to the principle of method implementation. and beneficial effects, for the sake of brevity, they will not be repeated here.
参见图8,图8是本申请一个示例性实施例提供的另一种图像数据存储设备的结构示意图。该设备包括处理器801和存储器802,处理器801和存储器802通过一条或多条通信总线连接,处理器801被配置为支持终端设备执行图1、图3和图5方法中相应的功能。该处理器801可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP),硬件芯片或者其任意组合。Referring to FIG. 8, FIG. 8 is a schematic structural diagram of another image data storage device provided by an exemplary embodiment of the present application. The device includes a processor 801 and a memory 802, the processor 801 and the memory 802 are connected by one or more communication buses, and the processor 801 is configured to support the terminal device to perform the corresponding functions in the methods of FIGS. 1, 3 and 5 . The processor 801 may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP), a hardware chip or any combination thereof.
存储器802用于存储程序代码等。存储器802可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器802也可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器802还可以包括上述种类的存储器的组合。The memory 802 is used to store program codes and the like. Memory 802 may include volatile memory (volatile memory), such as random-access memory (RAM); memory 802 may also include non-volatile memory (non-volatile memory), such as read-only memory (read only memory) -only memory, ROM), flash memory (flash memory), hard disk drive (HDD) or solid-state drive (solid-state drive, SSD); the memory 802 may also include a combination of the above-mentioned types of memory.
在本申请实施例中,该处理器801可以调用存储器802中存储的程序代码以执行以下操作:In this embodiment of the present application, the processor 801 may call program codes stored in the memory 802 to perform the following operations:
获取参考图像对应的第一类型的第一像素数据集合,以及获取当前图像对应的第一类型的第二像素数据集合,所述参考图像和所述当前图像用于确定位于所述参考图像和所述当前图像之间的待插帧图像;Obtain a first pixel data set of the first type corresponding to the reference image, and obtain a second pixel data set of the first type corresponding to the current image, the reference image and the current image are used to determine the location between the reference image and the the frame images to be inserted between the current images;
确定所述待插帧图像的参考相位信息,所述参考相位信息用于指示所述待插帧图像与所述参考图像和所述当前图像之间的间隔;determining the reference phase information of the frame image to be inserted, where the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image;
根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合,并根据所述参考相位信息从所述目标像素数据集合中确定待存储像素数据集合;A target pixel data set is determined from the first pixel data set and the second pixel data set according to the reference phase information, and a to-be-stored pixel data set is determined from the target pixel data set according to the reference phase information ;
对所述待存储像素数据集合中的像素数据进行存储。Pixel data in the set of pixel data to be stored is stored.
在一种可选的实施方式中,处理器801根据所述参考相位信息从所述第一像素数据集 合和所述第二像素数据集合中确定目标像素数据集合,具体包括:若所述参考相位信息指示所述待插帧图像与所述参考图像之间的间隔小于所述待插帧图像与所述当前图像之间的间隔,则将所述第二像素数据集合确定为目标像素数据集合;若所述参考相位信息指示所述待插帧图像与所述参考图像之间的间隔大于所述待插帧图像与所述当前图像之间的间隔,则将所述第一像素数据集合确定为目标像素数据集合。In an optional implementation manner, the processor 801 determines a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, specifically including: if the reference phase information The information indicates that the interval between the frame image to be inserted and the reference image is smaller than the interval between the frame image to be inserted and the current image, then the second pixel data set is determined as the target pixel data set; If the reference phase information indicates that the interval between the frame image to be inserted and the reference image is greater than the interval between the frame image to be inserted and the current image, the first pixel data set is determined as The target pixel data collection.
在一种可选的实施方式中,处理器801根据所述参考相位信息从所述参考像素数据集合中确定待存储像素数据集合,具体可包括:确定所述参考图像和所述当前图像之间的运动向量信息;根据所述参考相位信息、所述参考图像和所述当前图像之间的运动向量信息从所述目标像素数据集合中确定待存储像素数据集合;其中,所述待存储像素数据集合包括所述目标像素数据集合中的部分像素数据。In an optional implementation manner, the processor 801 determines the pixel data set to be stored from the reference pixel data set according to the reference phase information, which may specifically include: determining the distance between the reference image and the current image the motion vector information; determine the pixel data set to be stored from the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image; wherein, the pixel data to be stored The set includes a portion of pixel data in the target set of pixel data.
在一种可选的实施方式中,处理器801根据所述参考相位信息、所述参考图像和所述当前图像之间的运动向量信息从所述参考像素数据集合中确定待存储像素数据集合,具体可包括:根据所述参考相位信息、所述参考图像和所述当前图像之间的运动向量信息从所述目标像素数据集合对应的图像中确定待存储图像区域;根据所述目标像素数据集合中所述待存储图像区域对应的像素数据,确定待存储像素数据集合。In an optional implementation manner, the processor 801 determines a set of pixel data to be stored from the reference pixel data set according to the reference phase information and the motion vector information between the reference image and the current image, Specifically, it may include: determining the image area to be stored from the image corresponding to the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image; according to the target pixel data set The pixel data corresponding to the to-be-stored image area described in , determine the to-be-stored pixel data set.
在一种可选的实施方式中,处理器801获取参考图像对应的第二类型的第三像素数据集合,以及获取当前图像对应的第二类型的第四像素数据集合;In an optional implementation manner, the processor 801 obtains a third pixel data set of the second type corresponding to the reference image, and obtains a fourth pixel data set of the second type corresponding to the current image;
处理器801确定所述参考图像中的第一待存储图像区域,以及确定所述当前图像中的第二待存储图像区域;The processor 801 determines a first image area to be stored in the reference image, and determines a second image area to be stored in the current image;
处理器801对所述第三像素数据集合中所述第一待存储图像区域所对应的像素数据,以及所述第四像素数据集合中所述第二待存储图像区域所对应的像素数据进行存储。The processor 801 stores the pixel data corresponding to the first image area to be stored in the third pixel data set and the pixel data corresponding to the second image area to be stored in the fourth pixel data set .
在一种可选的实施方式中,处理器801确定所述参考图像中的第一待存储图像区域,以及确定所述当前图像中的第二待存储图像区域,具体包括:确定待存储图像区域的区域边界信息;根据所述区域边界信息确定所述参考图像中的第一待存储图像区域,以及根据所述区域边界信息确定所述当前图像中的第二待存储图像区域;其中,所述区域边界信息所指示的第一方向上的边界位置为预设的指定位置,所述区域边界信息所指示的第二方向上的边界位置是根据所述参考图像和所述当前图像之间的运动向量信息所确定的。In an optional implementation manner, the processor 801 determines a first image area to be stored in the reference image, and determines a second image area to be stored in the current image, specifically including: determining an image area to be stored the region boundary information; determine the first image region to be stored in the reference image according to the region boundary information, and determine the second image region to be stored in the current image according to the region boundary information; wherein, the The boundary position in the first direction indicated by the area boundary information is a preset designated position, and the boundary position in the second direction indicated by the area boundary information is based on the motion between the reference image and the current image determined by the vector information.
在一种可选的实施方式中,处理器801获取参考图像对应的第一类型的第一像素数据集合,具体包括:获取参考图像,并将所述参考图像中的多行像素点拆分成多组像素行,每一组像素行包括相邻的M行像素点,所述M为大于1的正整数;针对每一组像素行,确定一组像素行包括的M行像素点中处于同一列的M个像素点的像素值差值;根据所述像素值差值确定所述参考图像对应的第一类型的第一像素数据集合。In an optional implementation manner, the processor 801 acquires the first pixel data set of the first type corresponding to the reference image, which specifically includes: acquiring the reference image, and dividing multiple rows of pixel points in the reference image into Multiple groups of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, and M is a positive integer greater than 1; for each group of pixel rows, it is determined that the M rows of pixel points included in a group of pixel rows are in the same row. pixel value difference values of the M pixel points in the column; determining the first pixel data set of the first type corresponding to the reference image according to the pixel value difference values.
需要说明的是,所述图像数据存储设备可以执行前述方法实施例中终端设备的相关步骤,具体可参见上述各个步骤所提供的实现方式,在此不再赘述。It should be noted that the image data storage device may execute the relevant steps of the terminal device in the foregoing method embodiments. For details, reference may be made to the implementation manners provided by the foregoing steps, which will not be repeated here.
对于应用于或集成于计算机设备的各个装置、产品,其包含的各个模块可以都采用电路等硬件的方式实现,不同的模块可以位于终端内同一组件(例如,芯片、电路模块等)或者不同组件中,或者,至少部分模块可以采用软件程序的方式实现,该软件程序运行于终端内部集成的处理器,剩余的(如果有)部分模块可以采用电路等硬件方式实现。For each device and product applied to or integrated in computer equipment, each module contained therein may be implemented in hardware such as circuits, and different modules may be located in the same component (eg, chip, circuit module, etc.) or different components in the terminal Alternatively, at least some of the modules can be implemented by means of a software program that runs on a processor integrated inside the terminal, and the remaining (if any) partial modules can be implemented by means of hardware such as circuits.
本申请实施例还提供一种计算机可读存储介质,可以用于存储实现图1、图3和图5所示实施例中图像数据存储方法的计算机程序指令,上述计算机可读存储介质包括但不限于快闪存储器、硬盘、固态硬盘。Embodiments of the present application further provide a computer-readable storage medium, which can be used to store computer program instructions for implementing the image data storage method in the embodiments shown in FIG. 1 , FIG. 3 , and FIG. 5 . The computer-readable storage medium includes but does not Limited to flash memory, hard drives, solid state drives.
在一种可选的实施方式中,本申请实施例提供一种芯片,所述芯片用于:In an optional implementation manner, an embodiment of the present application provides a chip, which is used for:
接收参考图像对应的第一类型的第一像素数据集合,以及接收当前图像对应的第一类型的第二像素数据集合,所述参考图像和所述当前图像用于确定位于所述参考图像和所述当前图像之间的待插帧图像;Receiving a first pixel data set of a first type corresponding to a reference image, and receiving a second pixel data set of a first type corresponding to a current image, the reference image and the current image are used to determine the location between the reference image and the the frame images to be inserted between the current images;
确定所述待插帧图像的参考相位信息,所述参考相位信息用于指示所述待插帧图像与所述参考图像和所述当前图像之间的间隔;determining the reference phase information of the frame image to be inserted, where the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image;
根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合,并根据所述参考相位信息从所述目标像素数据集合中确定待存储像素数据集合;A target pixel data set is determined from the first pixel data set and the second pixel data set according to the reference phase information, and a to-be-stored pixel data set is determined from the target pixel data set according to the reference phase information ;
输出所述待存储像素数据集合中的像素数据,以便于存储所述待存储像素数据集合中的像素数据。Outputting pixel data in the set of pixel data to be stored, so as to store the pixel data in the set of pixel data to be stored.
在一种可选的实施方式中,所述芯片根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合时,具体用于:若所述参考相位信息指示所述待插帧图像与所述参考图像之间的间隔小于所述待插帧图像与所述当前图像之间的间隔,则将所述第二像素数据集合确定为目标像素数据集合;若所述参考相位信息指示所述待插帧图像与所述参考图像之间的间隔大于所述待插帧图像与所述当前图像之间的间隔,则将所述第一像素数据集合确定为目标像素数据集合。In an optional implementation manner, when the chip determines the target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, the chip is specifically configured to: if the The reference phase information indicates that the interval between the frame image to be inserted and the reference image is smaller than the interval between the frame image to be inserted and the current image, then the second pixel data set is determined as target pixel data collection; if the reference phase information indicates that the interval between the frame image to be inserted and the reference image is greater than the interval between the frame image to be inserted and the current image, then the first pixel data collection Determined as the target pixel data set.
在一种可选的实施方式中,所述芯片根据所述参考相位信息从所述参考像素数据集合中确定待存储像素数据集合时,具体用于:确定所述参考图像和所述当前图像之间的运动向量信息;根据所述参考相位信息、所述参考图像和所述当前图像之间的运动向量信息从所述目标像素数据集合中确定待存储像素数据集合;其中,所述待存储像素数据集合包括所述目标像素数据集合中的部分像素数据。In an optional implementation manner, when the chip determines the pixel data set to be stored from the reference pixel data set according to the reference phase information, the chip is specifically configured to: determine the difference between the reference image and the current image. motion vector information between the two; determine the pixel data set to be stored from the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image; wherein, the pixel data set to be stored The data set includes part of pixel data in the target pixel data set.
在一种可选的实施方式中,所述芯片根据所述参考相位信息、所述参考图像和所述当前图像之间的运动向量信息从所述参考像素数据集合中确定待存储像素数据集合时,具体用于:根据所述参考相位信息、所述参考图像和所述当前图像之间的运动向量信息从所述目标像素数据集合对应的图像中确定待存储图像区域;根据所述目标像素数据集合中所述待存储图像区域对应的像素数据,确定待存储像素数据集合。In an optional implementation manner, when the chip determines the pixel data set to be stored from the reference pixel data set according to the reference phase information, the motion vector information between the reference image and the current image , which is specifically used for: determining the image area to be stored from the image corresponding to the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image; according to the target pixel data The pixel data corresponding to the to-be-stored image area in the set is determined to determine the to-be-stored pixel data set.
在一种可选的实施方式中,所述芯片,还用于:In an optional embodiment, the chip is also used for:
接收参考图像对应的第二类型的第三像素数据集合,以及接收当前图像对应的第二类型的第四像素数据集合;确定所述参考图像中的第一待存储图像区域,以及确定所述当前图像中的第二待存储图像区域;对所述第三像素数据集合中所述第一待存储图像区域所对应的像素数据,以及所述第四像素数据集合中所述第二待存储图像区域所对应的像素数据进行存储。Receive a third pixel data set of a second type corresponding to a reference image, and receive a fourth pixel data set of a second type corresponding to a current image; determine a first image area to be stored in the reference image, and determine the current image area the second image area to be stored in the image; for the pixel data corresponding to the first image area to be stored in the third pixel data set, and the second image area to be stored in the fourth pixel data set The corresponding pixel data is stored.
在一种可选的实施方式中,所述芯片确定所述参考图像中的第一待存储图像区域,以及确定所述当前图像中的第二待存储图像区域时,具体用于:确定待存储图像区域的区域边界信息;根据所述区域边界信息确定所述参考图像中的第一待存储图像区域,以及根据所述区域边界信息确定所述当前图像中的第二待存储图像区域;其中,所述区域边界信息所指示的第一方向上的边界位置为预设的指定位置,所述区域边界信息所指示的第二方向上的边界位置是根据所述参考图像和所述当前图像之间的运动向量信息所确定的。In an optional implementation manner, when the chip determines the first image area to be stored in the reference image and the second image area to be stored in the current image, it is specifically used for: determining the image area to be stored Area boundary information of the image area; determining the first image area to be stored in the reference image according to the area boundary information, and determining the second image area to be stored in the current image according to the area boundary information; wherein, The boundary position in the first direction indicated by the area boundary information is a preset designated position, and the boundary position in the second direction indicated by the area boundary information is based on the difference between the reference image and the current image. determined by the motion vector information.
在一种可选的实施方式中,所述芯片接收参考图像对应的第一类型的第一像素数据集合时,具体用于:接收参考图像,并将所述参考图像中的多行像素点拆分成多组像素行,每一组像素行包括相邻的M行像素点,所述M为大于1的正整数;针对每一组像素行,确定一组像素行包括的M行像素点中处于同一列的M个像素点的像素值差值;根据所述像素值差值确定所述参考图像对应的第一类型的第一像素数据集合。In an optional implementation manner, when the chip receives the first pixel data set of the first type corresponding to the reference image, it is specifically configured to: receive the reference image, and split pixels in multiple rows in the reference image Divided into multiple groups of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, and M is a positive integer greater than 1; for each group of pixel rows, determine the M rows of pixel points included in a group of pixel rows. pixel value difference values of M pixel points in the same column; determining a first pixel data set of a first type corresponding to the reference image according to the pixel value difference value.
需要说明的是,所述芯片可以执行前述方法实施例中终端设备的相关步骤,具体可参见上述各个步骤所提供的实现方式,在此不再赘述。It should be noted that the chip can execute the relevant steps of the terminal device in the foregoing method embodiments. For details, reference may be made to the implementation manners provided by the foregoing steps, which will not be repeated here.
在一个实施例中,上述芯片包括至少一个处理器、至少一个第一存储器和至少一个第二存储器;其中,前述至少一个第一存储器和前述至少一个处理器通过线路互联,前述第一存储器中存储有指令;前述至少一个第二存储器和前述至少一个处理器通过线路互联,前述第二存储器中存储前述方法实施例中需要存储的数据。In one embodiment, the chip includes at least one processor, at least one first memory, and at least one second memory; wherein, the at least one first memory and the at least one processor are interconnected through lines, and the first memory stores There are instructions; the at least one second memory and the at least one processor are interconnected through lines, and the second memory stores the data that needs to be stored in the foregoing method embodiments.
对于应用于或集成于芯片的各个装置、产品,其包含的各个模块可以都采用电路等硬件的方式实现,或者,至少部分模块可以采用软件程序的方式实现,该软件程序运行于芯片内部集成的处理器,剩余的(如果有)部分模块可以采用电路等硬件方式实现。For each device or product applied to or integrated in the chip, each module contained therein may be implemented by hardware such as circuits, or at least some of the modules may be implemented by a software program that runs on the integrated circuit inside the chip. The processor and the remaining (if any) modules can be implemented in hardware such as circuits.
如图9所示,图9是本申请实施例提供的一种模组设备的结构示意图,该模组设备,包括:通信模组901、电源模组902、存储模组903以及芯片模组904。As shown in FIG. 9 , FIG. 9 is a schematic structural diagram of a module device provided by an embodiment of the present application. The module device includes: a communication module 901 , a power module 902 , a storage module 903 , and a chip module 904 .
其中,所述电源模组902用于为所述模组设备提供电能;所述存储模组903用于存储数据和指令;所述通信模组901用于进行模组设备内部通信,或者用于所述模组设备与外部设备进行通信;所述芯片模组904用于:Wherein, the power module 902 is used to provide power for the module device; the storage module 903 is used to store data and instructions; the communication module 901 is used to perform internal communication of the module device, or to The module device communicates with external devices; the chip module 904 is used for:
通过所述通信模组901获取参考图像对应的第一类型的第一像素数据集合,以及获取当前图像对应的第一类型的第二像素数据集合,所述参考图像和所述当前图像用于确定位于所述参考图像和所述当前图像之间的待插帧图像;The first pixel data set of the first type corresponding to the reference image is obtained through the communication module 901, and the second pixel data set of the first type corresponding to the current image is obtained, and the reference image and the current image are used to determine an image to be inserted between the reference image and the current image;
确定所述待插帧图像的参考相位信息,所述参考相位信息用于指示所述待插帧图像与所述参考图像和所述当前图像之间的间隔;determining the reference phase information of the frame image to be inserted, where the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image;
根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合,并根据所述参考相位信息从所述目标像素数据集合中确定待存储像素数据集合;A target pixel data set is determined from the first pixel data set and the second pixel data set according to the reference phase information, and a to-be-stored pixel data set is determined from the target pixel data set according to the reference phase information ;
在所述存储模组中存储所述待存储像素数据集合中的像素数据。Pixel data in the to-be-stored pixel data set is stored in the storage module.
在一种可选的实施方式中,所述芯片模组904根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合时,具体用于:若所述参考相位信息指示所述待插帧图像与所述参考图像之间的间隔小于所述待插帧图像与所述当前图像之间的间隔,则将所述第二像素数据集合确定为目标像素数据集合;若所述参考相位信息指示所述待插帧图像与所述参考图像之间的间隔大于所述待插帧图像与所述当前图像之间的间隔,则将所述第一像素数据集合确定为目标像素数据集合。In an optional implementation manner, when the chip module 904 determines the target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, it is specifically configured to: If the reference phase information indicates that the interval between the frame image to be inserted and the reference image is smaller than the interval between the frame image to be inserted and the current image, the second pixel data set is determined as Target pixel data set; if the reference phase information indicates that the interval between the frame image to be inserted and the reference image is greater than the interval between the frame image to be inserted and the current image, the first The pixel data set is determined as the target pixel data set.
在一种可选的实施方式中,所述芯片模组904根据所述参考相位信息从所述参考像素数据集合中确定待存储像素数据集合时,具体用于:确定所述参考图像和所述当前图像之间的运动向量信息;根据所述参考相位信息、所述参考图像和所述当前图像之间的运动向量信息从所述目标像素数据集合中确定待存储像素数据集合;其中,所述待存储像素数据集合包括所述目标像素数据集合中的部分像素数据。In an optional implementation manner, when the chip module 904 determines the set of pixel data to be stored from the set of reference pixel data according to the reference phase information, it is specifically configured to: determine the reference image and the set of pixel data to be stored. motion vector information between current images; determining a set of pixel data to be stored from the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image; wherein the The pixel data set to be stored includes part of the pixel data in the target pixel data set.
在一种可选的实施方式中,所述芯片模组904根据所述参考相位信息、所述参考图像和所述当前图像之间的运动向量信息从所述参考像素数据集合中确定待存储像素数据集合时,具体用于:根据所述参考相位信息、所述参考图像和所述当前图像之间的运动向量信息从所述目标像素数据集合对应的图像中确定待存储图像区域;根据所述目标像素数据集合中所述待存储图像区域对应的像素数据,确定待存储像素数据集合。In an optional implementation manner, the chip module 904 determines the pixels to be stored from the reference pixel data set according to the reference phase information, the motion vector information between the reference image and the current image When the data set is used, it is specifically used to: determine the image area to be stored from the image corresponding to the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image; The pixel data corresponding to the to-be-stored image area in the target pixel data set determines the to-be-stored pixel data set.
在一种可选的实施方式中,所述芯片模组904还用于:通过所述通信模组901获取参考图像对应的第二类型的第三像素数据集合,以及获取当前图像对应的第二类型的第四像素数据集合;确定所述参考图像中的第一待存储图像区域,以及确定所述当前图像中的第二待存储图像区域;对所述第三像素数据集合中所述第一待存储图像区域所对应的像素数据,以及所述第四像素数据集合中所述第二待存储图像区域所对应的像素数据进行存储。In an optional implementation manner, the chip module 904 is further configured to: obtain, through the communication module 901, a third pixel data set of a second type corresponding to the reference image, and obtain a second pixel data set corresponding to the current image type of the fourth pixel data set; determine the first image area to be stored in the reference image, and determine the second image area to be stored in the current image; The pixel data corresponding to the image area to be stored and the pixel data corresponding to the second image area to be stored in the fourth pixel data set are stored.
在一种可选的实施方式中,所述芯片模组904确定所述参考图像中的第一待存储图像区域,以及确定所述当前图像中的第二待存储图像区域时,具体用于:确定待存储图像区域的区域边界信息;根据所述区域边界信息确定所述参考图像中的第一待存储图像区域,以及根据所述区域边界信息确定所述当前图像中的第二待存储图像区域;其中,所述区域边界信息所指示的第一方向上的边界位置为预设的指定位置,所述区域边界信息所指示的第二方向上的边界位置是根据所述参考图像和所述当前图像之间的运动向量信息所确定的。In an optional implementation manner, when the chip module 904 determines the first image area to be stored in the reference image and the second image area to be stored in the current image, it is specifically used for: Determine the area boundary information of the image area to be stored; determine the first image area to be stored in the reference image according to the area boundary information, and determine the second image area to be stored in the current image according to the area boundary information ; wherein, the boundary position in the first direction indicated by the area boundary information is a preset designated position, and the boundary position in the second direction indicated by the area boundary information is based on the reference image and the current Determined by motion vector information between images.
在一种可选的实施方式中,所述芯片模组904通过所述通信模组901获取参考图像对应的第一类型的第一像素数据集合时,具体用于:通过所述通信模组901获取参考图像,并将所述参考图像中的多行像素点拆分成多组像素行,每一组像素行包括相邻的M行像素点,所述M为大于1的正整数;针对每一组像素行,确定一组像素行包括的M行像素点中处于同一列的M个像素点的像素值差值;根据所述像素值差值确定所述参考图像对应的第一类型的第一像素数据集合。In an optional implementation manner, when the chip module 904 obtains the first pixel data set of the first type corresponding to the reference image through the communication module 901, it is specifically used for: through the communication module 901 Acquire a reference image, and split multiple rows of pixel points in the reference image into multiple groups of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, where M is a positive integer greater than 1; for each pixel row For a group of pixel rows, determine the pixel value difference of M pixels in the same column among M rows of pixels included in a group of pixel rows; determine the first type of the first type corresponding to the reference image according to the pixel value difference. A collection of pixel data.
需要说明的是,所述模组设备可以执行前述方法实施例中终端设备的相关步骤,具体可参见上述各个步骤所提供的实现方式,在此不再赘述。It should be noted that the module device may perform the steps related to the terminal device in the foregoing method embodiments, and for details, reference may be made to the implementation manners provided by the foregoing steps, which will not be repeated here.
关于上述实施例中描的各个装置、产品包含模块/单元,其可以是软件模块/单元,也可以是硬件模块/单元,或者也可以部分是软件模块/单元,部分是硬件模块/单元。例如,对于应用或集成芯片的各个装置、产品其包含的各个模块/单元可以都采用电路等硬件的方式实现,或者至少部分模块/单元可以采用软件程序的方式实现,该运行于芯片内部集成处理器,剩余的部分模块/单元可以采用电路等硬件方式实现;对于应用于或集成于芯片模组的各个装置、产品,其包含的各个模块可以都采用电路等硬件的方式实现,不同的模块可以位于芯片模组的同一组件(例如芯片、电路模块等)或者不同组件中,或者,至少部分模块可以采用软件程序的方式实现,该软件程序运行于芯片模组内部集成的处理器,剩余的(如果有)部分模块可以采用电路等硬件方式实现。Each device and product described in the above embodiments includes modules/units, which may be software modules/units or hardware modules/units, or may be partly software modules/units and partly hardware modules/units. For example, for each device or product of an application or integrated chip, each module/unit included in the product may be implemented by hardware such as circuits, or at least some modules/units may be implemented by software programs, which run on the integrated processing inside the chip. The remaining part of the modules/units can be realized by hardware such as circuits; for each device and product applied to or integrated in the chip module, each module included can be realized by hardware such as circuits, and different modules can be It is located in the same component (such as chip, circuit module, etc.) or different components of the chip module, or, at least part of the modules can be implemented by a software program that runs on the processor integrated inside the chip module, and the rest ( If any) some modules can be implemented by hardware such as circuits.
本领域普通技术人员可以意识到,结合本申请中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者通过计算机可读存储介质进行传输。计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present application are generated in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. Computer instructions may be stored in or transmitted over a computer-readable storage medium. Computer instructions may be sent from one website site, computer, server, or data center to another website site, computer, via wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) , server or data center for transmission. A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, or the like that includes an integration of one or more available media. Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), and the like.
以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本 技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, and should cover within the scope of protection of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (20)

  1. 一种图像数据存储方法,其特征在于,包括:A method for storing image data, comprising:
    获取参考图像对应的第一类型的第一像素数据集合,以及获取当前图像对应的第一类型的第二像素数据集合,所述参考图像和所述当前图像用于确定位于所述参考图像和所述当前图像之间的待插帧图像;Obtain a first pixel data set of the first type corresponding to the reference image, and obtain a second pixel data set of the first type corresponding to the current image, the reference image and the current image are used to determine the location between the reference image and the the frame images to be inserted between the current images;
    确定所述待插帧图像的参考相位信息,所述参考相位信息用于指示所述待插帧图像与所述参考图像和所述当前图像之间的间隔;determining the reference phase information of the frame image to be inserted, where the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image;
    根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合,并根据所述参考相位信息从所述目标像素数据集合中确定待存储像素数据集合;A target pixel data set is determined from the first pixel data set and the second pixel data set according to the reference phase information, and a to-be-stored pixel data set is determined from the target pixel data set according to the reference phase information ;
    对所述待存储像素数据集合中的像素数据进行存储。Pixel data in the set of pixel data to be stored is stored.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合,包括:The method according to claim 1, wherein the determining a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information comprises:
    若所述参考相位信息指示所述待插帧图像与所述参考图像之间的间隔小于所述待插帧图像与所述当前图像之间的间隔,则将所述第二像素数据集合确定为目标像素数据集合;If the reference phase information indicates that the interval between the frame image to be inserted and the reference image is smaller than the interval between the frame image to be inserted and the current image, the second pixel data set is determined as target pixel data set;
    若所述参考相位信息指示所述待插帧图像与所述参考图像之间的间隔大于所述待插帧图像与所述当前图像之间的间隔,则将所述第一像素数据集合确定为目标像素数据集合。If the reference phase information indicates that the interval between the frame image to be inserted and the reference image is greater than the interval between the frame image to be inserted and the current image, the first pixel data set is determined as The target pixel data collection.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合,还包括:The method according to claim 2, wherein the determining a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information further comprises:
    若所述参考相位信息指示所述待插帧图像与所述参考图像之间的间隔大于所述待插帧图像与所述当前图像之间的间隔,则将所述第一像素数据集合和所述第二像素数据集合确定为目标像素数据集合。If the reference phase information indicates that the interval between the image to be inserted and the reference image is greater than the interval between the image to be inserted and the current image, the first pixel data set and the The second pixel data set is determined as the target pixel data set.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述根据所述参考相位信息从所述参考像素数据集合中确定待存储像素数据集合,包括:The method according to any one of claims 1-3, wherein the determining the pixel data set to be stored from the reference pixel data set according to the reference phase information comprises:
    确定所述参考图像和所述当前图像之间的运动向量信息;determining motion vector information between the reference image and the current image;
    根据所述参考相位信息、所述参考图像和所述当前图像之间的运动向量信息从所述目标像素数据集合中确定待存储像素数据集合;其中,所述待存储像素数据集合包括所述目标像素数据集合中的部分像素数据。A set of pixel data to be stored is determined from the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image; wherein the pixel data set to be stored includes the target pixel data set Part of the pixel data in the pixel data set.
  5. 根据权利要求4所述的方法,其特征在于,所述确定所述参考图像和所述当前图像 之间的运动向量信息,包括:The method according to claim 4, wherein the determining the motion vector information between the reference image and the current image comprises:
    确定所述参考图像中的匹配块和所述当前图像中的当前块的相对位移信息;determining the relative displacement information of the matching block in the reference image and the current block in the current image;
    根据所述相对位移信息确定所述运行向量信息。The running vector information is determined according to the relative displacement information.
  6. 根据权利要求4所述的方法,其特征在于,所述根据所述参考相位信息、所述参考图像和所述当前图像之间的运动向量信息从所述参考像素数据集合中确定待存储像素数据集合,包括:The method according to claim 4, wherein the pixel data to be stored is determined from the reference pixel data set according to the reference phase information, the motion vector information between the reference image and the current image Collection, including:
    根据所述参考相位信息、所述参考图像和所述当前图像之间的运动向量信息从所述目标像素数据集合对应的图像中确定待存储图像区域;Determine the image area to be stored from the image corresponding to the target pixel data set according to the reference phase information, the motion vector information between the reference image and the current image;
    根据所述目标像素数据集合中所述待存储图像区域对应的像素数据,确定待存储像素数据集合。A set of pixel data to be stored is determined according to pixel data corresponding to the to-be-stored image area in the target pixel data set.
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    获取参考图像对应的第二类型的第三像素数据集合,以及获取当前图像对应的第二类型的第四像素数据集合;Obtaining the second type of third pixel data set corresponding to the reference image, and obtaining the second type of the fourth pixel data set corresponding to the current image;
    确定所述参考图像中的第一待存储图像区域,以及确定所述当前图像中的第二待存储图像区域;determining a first image area to be stored in the reference image, and determining a second image area to be stored in the current image;
    对所述第三像素数据集合中所述第一待存储图像区域所对应的像素数据,以及所述第四像素数据集合中所述第二待存储图像区域所对应的像素数据进行存储。Pixel data corresponding to the first image area to be stored in the third pixel data set and pixel data corresponding to the second image area to be stored in the fourth pixel data set are stored.
  8. 根据权利要求7所述的方法,其特征在于,所述确定所述参考图像中的第一待存储图像区域,以及确定所述当前图像中的第二待存储图像区域,包括:The method according to claim 7, wherein the determining of the first image area to be stored in the reference image and the determination of the second image area to be stored in the current image include:
    确定待存储图像区域的区域边界信息;Determine the area boundary information of the image area to be stored;
    根据所述区域边界信息确定所述参考图像中的第一待存储图像区域,以及根据所述区域边界信息确定所述当前图像中的第二待存储图像区域;Determine a first image area to be stored in the reference image according to the area boundary information, and determine a second image area to be stored in the current image according to the area boundary information;
    其中,所述区域边界信息所指示的第一方向上的边界位置为预设的指定位置,所述区域边界信息所指示的第二方向上的边界位置是根据所述参考图像和所述当前图像之间的运动向量信息所确定的。The boundary position in the first direction indicated by the area boundary information is a preset designated position, and the boundary position in the second direction indicated by the area boundary information is based on the reference image and the current image. determined by the motion vector information between.
  9. 根据权利要求7或8所述的方法,其特征在于,所述参考图像对应的第二类型的第三像素数据集合包括经过处理的与参考图像相关的低频数据信息集合。The method according to claim 7 or 8, wherein the third pixel data set of the second type corresponding to the reference image comprises a processed low-frequency data information set related to the reference image.
  10. 根据权利要求9所述方法,其特征在于,所述获取参考图像对应的第二类型的第三像素数据集合,包括:The method according to claim 9, wherein the acquiring the third pixel data set of the second type corresponding to the reference image comprises:
    获取参考图像,并将所述参考图像中的多行像素点拆分成多组像素行,每一组像素行包括相邻的M行像素点,所述M为大于1的正整数;Acquiring a reference image, and dividing the multiple rows of pixel points in the reference image into multiple groups of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, and M is a positive integer greater than 1;
    针对每一组像素行,确定一组像素行包括的M行像素点中处于同一列的M个像素点像素值的平均值;For each group of pixel rows, determine the average value of the pixel values of M pixel points in the same column in the M rows of pixel points included in a group of pixel rows;
    根据所述平均值确定所述参考图像对应的第二类型的第三像素数据集合。A third pixel data set of the second type corresponding to the reference image is determined according to the average value.
  11. 根据权利要求9所述方法,其特征在于,所述获取当前图像对应的第二类型的第四像素数据集合,包括:The method according to claim 9, wherein the acquiring the fourth pixel data set of the second type corresponding to the current image comprises:
    获取当前图像,并将所述当前图像中的多行像素点拆分成多组像素行,每一组像素行包括相邻的M行像素点,所述M为大于1的正整数;Acquire the current image, and split the multiple rows of pixel points in the current image into multiple groups of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, and the M is a positive integer greater than 1;
    针对每一组像素行,确定一组像素行包括的M行像素点中处于同一列的M个像素点像素值的平均值;For each group of pixel rows, determine the average value of the pixel values of M pixel points in the same column in the M rows of pixel points included in a group of pixel rows;
    根据所述平均值确定所述当前图像对应的第二类型的第四像素数据集合。A fourth pixel data set of the second type corresponding to the current image is determined according to the average value.
  12. 根据权利要求1所述的方法,其特征在于,所述获取参考图像对应的第一类型的第一像素数据集合,包括:The method according to claim 1, wherein the acquiring the first pixel data set of the first type corresponding to the reference image comprises:
    获取参考图像,并将所述参考图像中的多行像素点拆分成多组像素行,每一组像素行包括相邻的M行像素点,所述M为大于1的正整数;Obtaining a reference image, and splitting the multiple rows of pixel points in the reference image into multiple groups of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, and M is a positive integer greater than 1;
    针对每一组像素行,确定一组像素行包括的M行像素点中处于同一列的M个像素点的像素值差值;For each group of pixel rows, determine the pixel value difference of M pixel points in the same column in M rows of pixel points included in a group of pixel rows;
    根据所述像素值差值确定所述参考图像对应的第一类型的第一像素数据集合。A first pixel data set of a first type corresponding to the reference image is determined according to the pixel value difference.
  13. 根据权利要求1所述的方法,其特征在于,所述获取当前图像对应的第一类型的第二像素数据集合,包括:获取当前图像,并将所述当前图像中的多行像素点拆分成多组像素行,每一组像素行包括相邻的M行像素点,所述M为大于1的正整数;The method according to claim 1, wherein the acquiring the second pixel data set of the first type corresponding to the current image comprises: acquiring the current image and splitting multiple rows of pixel points in the current image In multiple groups of pixel rows, each group of pixel rows includes adjacent M rows of pixel points, where M is a positive integer greater than 1;
    针对每一组像素行,确定一组像素行包括的M行像素点中处于同一列的M个像素点的像素值差值;For each group of pixel rows, determine the pixel value difference of M pixel points in the same column in M rows of pixel points included in a group of pixel rows;
    根据所述像素值差值确定所述当前图像对应的第一类型的第二像素数据集合。A second pixel data set of the first type corresponding to the current image is determined according to the pixel value difference.
  14. 根据权利要求1所述的方法,其特征在于,所述参考图像包括当前图像的前一帧图像和/或后一帧图像。The method according to claim 1, wherein the reference image comprises a previous frame image and/or a next frame image of the current image.
  15. 根据权利要求1所述的方法,其特征在于,所述参考图像对应的第一类型的第一像素数据集合包括经过处理的与参考图像相关的高频数据信息集合。The method according to claim 1, wherein the first pixel data set of the first type corresponding to the reference image comprises a processed high-frequency data information set related to the reference image.
  16. 一种图像数据存储设备,其特征在于,所述设备包括:An image data storage device, characterized in that the device comprises:
    获取模块,用于获取参考图像对应的第一类型的第一像素数据集合,以及获取当前图像对应的第一类型的第二像素数据集合,所述参考图像和所述当前图像用于确定位于所述参考图像和所述当前图像之间的待插帧图像;The acquiring module is used for acquiring the first pixel data set of the first type corresponding to the reference image, and acquiring the second pixel data set of the first type corresponding to the current image, the reference image and the current image are used to determine an image to be inserted between the reference image and the current image;
    确定模块,用于确定所述待插帧图像的参考相位信息,所述参考相位信息用于指示所述待插帧图像与所述参考图像和所述当前图像之间的间隔;a determining module, configured to determine reference phase information of the frame image to be inserted, where the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image;
    处理模块,用于根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合,并根据所述参考相位信息从所述目标像素数据集合中确定待存储像素数据集合;a processing module, configured to determine a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, and determine from the target pixel data set according to the reference phase information The set of pixel data to be stored;
    所述处理模块,还用于对所述待存储像素数据集合中的像素数据进行存储。The processing module is further configured to store pixel data in the set of pixel data to be stored.
  17. 一种图像数据存储设备,其特征在于,包括:处理器和存储器,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如权利要求1至15中任一项所述的方法。An image data storage device, comprising: a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to invoke the program instructions , performing the method of any one of claims 1 to 15.
  18. 一种计算机可读存储介质,其特征在于,包括:所述计算机可读存储介质存储有一条或多条指令,所述一条或多条指令适于由处理器加载并执行如权利要求1至15中任一项所述的方法。A computer-readable storage medium, comprising: the computer-readable storage medium stores one or more instructions, and the one or more instructions are suitable for being loaded by a processor and executing as claimed in claims 1 to 15 The method of any of the above.
  19. 一种芯片,其特征在于,A chip, characterized in that:
    所述芯片,用于接收参考图像对应的第一类型的第一像素数据集合,以及接收当前图像对应的第一类型的第二像素数据集合,所述参考图像和所述当前图像用于确定位于所述参考图像和所述当前图像之间的待插帧图像;The chip is configured to receive the first pixel data set of the first type corresponding to the reference image, and receive the second pixel data set of the first type corresponding to the current image, where the reference image and the current image are used to determine an image to be inserted between the reference image and the current image;
    所述芯片,还用于确定所述待插帧图像的参考相位信息,所述参考相位信息用于指示所述待插帧图像与所述参考图像和所述当前图像之间的间隔;The chip is further configured to determine reference phase information of the frame image to be inserted, where the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image;
    所述芯片,还用于根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合,并根据所述参考相位信息从所述目标像素数据集合中确定待存储像素数据集合;The chip is further configured to determine a target pixel data set from the first pixel data set and the second pixel data set according to the reference phase information, and from the target pixel data set according to the reference phase information Determine the set of pixel data to be stored in ;
    所述芯片,还用于输出所述待存储像素数据集合中的像素数据,以便于存储所述待存储像素数据集合中的像素数据。The chip is further configured to output pixel data in the set of pixel data to be stored, so as to store the pixel data in the set of pixel data to be stored.
  20. 一种模组设备,其特征在于,所述模组设备包括通信模组、电源模组、存储模组以及芯片模组,其中:A modular device, characterized in that the modular device includes a communication module, a power module, a storage module and a chip module, wherein:
    所述电源模组用于为所述模组设备提供电能;The power module is used to provide power for the module device;
    所述存储模组用于存储数据和指令;The storage module is used to store data and instructions;
    所述通信模组用于进行模组设备内部通信,或者用于所述模组设备与外部设备进行通信;The communication module is used for internal communication of the module device, or for the module device to communicate with an external device;
    所述芯片模组用于:The chip module is used for:
    通过所述通信模组获取参考图像对应的第一类型的第一像素数据集合,以及获取当前图像对应的第一类型的第二像素数据集合,所述参考图像和所述当前图像用于确定位于所述参考图像和所述当前图像之间的待插帧图像;The first pixel data set of the first type corresponding to the reference image is obtained through the communication module, and the second pixel data set of the first type corresponding to the current image is obtained, and the reference image and the current image are used to determine an image to be inserted between the reference image and the current image;
    确定所述待插帧图像的参考相位信息,所述参考相位信息用于指示所述待插帧图像与所述参考图像和所述当前图像之间的间隔;determining the reference phase information of the frame image to be inserted, where the reference phase information is used to indicate the interval between the frame image to be inserted and the reference image and the current image;
    根据所述参考相位信息从所述第一像素数据集合和所述第二像素数据集合中确定目标像素数据集合,并根据所述参考相位信息从所述目标像素数据集合中确定待存储像素数据集合;A target pixel data set is determined from the first pixel data set and the second pixel data set according to the reference phase information, and a to-be-stored pixel data set is determined from the target pixel data set according to the reference phase information ;
    在所述存储模组中存储所述待存储像素数据集合中的像素数据。Pixel data in the to-be-stored pixel data set is stored in the storage module.
PCT/CN2021/134214 2020-12-31 2021-11-30 Image data storage method and device, storage medium, chip, and module device WO2022142952A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011637822.2 2020-12-31
CN202011637822.2A CN112804526B (en) 2020-12-31 2020-12-31 Image data storage method and equipment, storage medium, chip and module equipment

Publications (1)

Publication Number Publication Date
WO2022142952A1 true WO2022142952A1 (en) 2022-07-07

Family

ID=75808837

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/134214 WO2022142952A1 (en) 2020-12-31 2021-11-30 Image data storage method and device, storage medium, chip, and module device

Country Status (2)

Country Link
CN (1) CN112804526B (en)
WO (1) WO2022142952A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112804526B (en) * 2020-12-31 2022-11-11 紫光展锐(重庆)科技有限公司 Image data storage method and equipment, storage medium, chip and module equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011094871A1 (en) * 2010-02-05 2011-08-11 Sensio Technologies Inc. Method and apparatus of frame interpolation
US20110255596A1 (en) * 2010-04-15 2011-10-20 Himax Technologies Limited Frame rate up conversion system and method
JP2013165485A (en) * 2012-01-11 2013-08-22 Panasonic Corp Image processing apparatus, image capturing apparatus, and computer program
CN105874783A (en) * 2014-02-04 2016-08-17 英特尔公司 Techniques for frame repetition control in frame rate up-conversion
US20180144448A1 (en) * 2016-11-18 2018-05-24 Samsung Electronics Co., Ltd. Image processing apparatus and control method thereof
CN109891891A (en) * 2016-11-08 2019-06-14 Ati科技无限责任公司 It is converted using the video frame rate of streaming metadata
CN112804526A (en) * 2020-12-31 2021-05-14 紫光展锐(重庆)科技有限公司 Image data storage method and equipment, storage medium, chip and module equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4991890B2 (en) * 2010-03-01 2012-08-01 株式会社東芝 Interpolated frame generation apparatus and method
US8532171B1 (en) * 2010-12-23 2013-09-10 Juniper Networks, Inc. Multiple stream adaptive bit rate system
CN107454428B (en) * 2017-09-12 2019-08-27 中广热点云科技有限公司 A kind of encoding and decoding preprocess method of video data
CN109547786B (en) * 2017-09-22 2023-05-09 阿里巴巴集团控股有限公司 Video encoding and video decoding methods and devices
CN111654746B (en) * 2020-05-15 2022-01-21 北京百度网讯科技有限公司 Video frame insertion method and device, electronic equipment and storage medium
CN111641828B (en) * 2020-05-16 2022-03-18 Oppo广东移动通信有限公司 Video processing method and device, storage medium and electronic equipment
CN111770332B (en) * 2020-06-04 2022-08-09 Oppo广东移动通信有限公司 Frame insertion processing method, frame insertion processing device, storage medium and electronic equipment
CN111741303B (en) * 2020-06-09 2022-03-25 Oppo广东移动通信有限公司 Deep video processing method and device, storage medium and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011094871A1 (en) * 2010-02-05 2011-08-11 Sensio Technologies Inc. Method and apparatus of frame interpolation
US20110255596A1 (en) * 2010-04-15 2011-10-20 Himax Technologies Limited Frame rate up conversion system and method
JP2013165485A (en) * 2012-01-11 2013-08-22 Panasonic Corp Image processing apparatus, image capturing apparatus, and computer program
CN105874783A (en) * 2014-02-04 2016-08-17 英特尔公司 Techniques for frame repetition control in frame rate up-conversion
CN109891891A (en) * 2016-11-08 2019-06-14 Ati科技无限责任公司 It is converted using the video frame rate of streaming metadata
US20180144448A1 (en) * 2016-11-18 2018-05-24 Samsung Electronics Co., Ltd. Image processing apparatus and control method thereof
CN112804526A (en) * 2020-12-31 2021-05-14 紫光展锐(重庆)科技有限公司 Image data storage method and equipment, storage medium, chip and module equipment

Also Published As

Publication number Publication date
CN112804526B (en) 2022-11-11
CN112804526A (en) 2021-05-14

Similar Documents

Publication Publication Date Title
CN111368185B (en) Data display method and device, storage medium and electronic equipment
CN109767466B (en) Picture rendering method and device, terminal and corresponding storage medium
CN109767401B (en) Picture optimization method, device, terminal and corresponding storage medium
CN111599022B (en) House display method and device and electronic equipment
WO2019084788A1 (en) Computation apparatus, circuit and relevant method for neural network
CN111314626B (en) Method and apparatus for processing video
WO2022142952A1 (en) Image data storage method and device, storage medium, chip, and module device
CN113721807B (en) Information display method and device, electronic equipment and storage medium
US20160371340A1 (en) Modifying search results based on context characteristics
CN109194878A (en) Video image anti-fluttering method, device, equipment and storage medium
CN111738917A (en) Picture scaling method, device, equipment and storage medium
CN112929728A (en) Video rendering method, device and system, electronic equipment and storage medium
CN111915532B (en) Image tracking method and device, electronic equipment and computer readable medium
WO2021114981A1 (en) Method and apparatus for displaying video playing page, and electronic device and medium
CN110209462B (en) Window arrangement method, device and equipment
US20220086350A1 (en) Image Generation Method and Apparatus, Terminal and Corresponding Storage Medium
CN113204557B (en) Electronic form importing method, device, equipment and medium
CN116033199A (en) Multi-device audio and video synchronization method and device, electronic device and storage medium
WO2018201993A1 (en) Image drawing method, terminal and storage medium
CN111338827B (en) Method and device for pasting form data and electronic equipment
CN115454923A (en) Data calculation device, board card, method and storage medium
CN113538269A (en) Image processing method and device, computer readable storage medium and electronic device
CN112770015B (en) Data processing method and related device
CN107205034B (en) Data sharing equipment and method
CN111191056A (en) Multimedia recommendation method and device

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: 21913693

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21913693

Country of ref document: EP

Kind code of ref document: A1