WO2020056622A1 - Method for reading image check coefficient, flash memory controller, system and storage medium - Google Patents

Method for reading image check coefficient, flash memory controller, system and storage medium Download PDF

Info

Publication number
WO2020056622A1
WO2020056622A1 PCT/CN2018/106472 CN2018106472W WO2020056622A1 WO 2020056622 A1 WO2020056622 A1 WO 2020056622A1 CN 2018106472 W CN2018106472 W CN 2018106472W WO 2020056622 A1 WO2020056622 A1 WO 2020056622A1
Authority
WO
WIPO (PCT)
Prior art keywords
flash memory
image check
subset
image
coefficients
Prior art date
Application number
PCT/CN2018/106472
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 深圳市汇顶科技股份有限公司
Priority to PCT/CN2018/106472 priority Critical patent/WO2020056622A1/en
Priority to CN201880001521.5A priority patent/CN109313608B/en
Publication of WO2020056622A1 publication Critical patent/WO2020056622A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to the technical field of data processing, and in particular, to a method for reading an image check coefficient, a flash memory controller, a system, and a storage medium.
  • an image signal processor receives an image collected from an image sensor, and performs processing such as noise reduction and verification on the image.
  • the ISP needs to perform noise reduction and verification on the image through the image verification coefficient.
  • the process by which an ISP obtains an image check coefficient includes: usually the ISP reads the image check coefficient from a buffer (Buffer), and when the image check coefficient in the buffer has been read, the buffer generates an interrupt request. And sends the interrupt request to a central processing unit (CPU), and after receiving the interrupt request, the CPU controls the flash controller (Flash Controller) to read the next image check coefficient from the flash (Flash), The read image check coefficient is stored in the buffer.
  • the cache memory is limited, the internal image check coefficient can be easily read. Based on this, the cache generates interrupt requests very frequently. The CPU needs to process these interrupt requests in real time in order to control the flash memory controller to read the image check coefficient from the flash memory. This will consume a lot of time of the CPU and affect the CPU to process other transactions, that is, the transaction processing efficiency of the CPU.
  • the application provides a method for reading an image check coefficient, a flash memory controller, a system, and a storage medium.
  • the present application provides a method for reading an image check coefficient, comprising: a flash memory controller obtaining an interrupt request sent by a cache; the flash memory controller reading a subset of image check coefficients currently required to be cached from the flash memory according to the interrupt request ; The flash controller stores a subset of the image check coefficients that currently need to be cached into the cache.
  • the CPU can prevent the interrupt request from occupying the CPU time, so that the CPU can process other transactions, which improves the transaction efficiency of the CPU.
  • the CPU controls the flash memory controller to read the image verification coefficient from the flash memory, but the memory controller can directly read the current cache required according to the interrupt request. A subset of the image check coefficient, thereby improving the reading efficiency of the image check coefficient.
  • the flash memory controller before the flash memory controller obtains the interrupt request sent by the cache, the flash memory controller further includes: the flash memory controller receives the instruction information sent by the central processing unit; correspondingly, the flash memory controller reads the current cached image check from the flash memory according to the interrupt request
  • the subset of coefficients includes: the flash memory controller reads a subset of image check coefficients that need to be buffered from the flash memory according to the interrupt request and the instruction information.
  • the CPU sends only one instruction message to the flash memory controller, and subsequent flash memory controllers only need to read a subset of the image check coefficients that need to be cached from the flash memory according to the interrupt request and the instruction information.
  • the interrupt request can be prevented.
  • the CPU time is occupied so that the CPU can process other transactions, that is, the transaction processing efficiency of the CPU is improved.
  • the embodiment of the present application does not need the CPU to receive an interrupt request every time, the CPU controls the flash memory controller to read the image verification coefficient from the flash memory, but the memory controller can directly read the current cache required according to the interrupt request. A subset of the image check coefficient, thereby improving the reading efficiency of the image check coefficient.
  • the indication information includes: a start address of the image check coefficient set in the flash memory, an end address of the image check coefficient set in the flash memory, and an image check included in the image check coefficient subset that needs to be cached each time.
  • the total length of the factor is: a start address of the image check coefficient set in the flash memory, an end address of the image check coefficient set in the flash memory, and an image check included in the image check coefficient subset that needs to be cached each time.
  • the indication information further includes: a start address of each image check coefficient subset.
  • the flash memory controller reads the current subset of image check coefficients to be cached from the flash memory according to the interrupt request and the instruction information, including: the flash memory controller determines, based on the instruction information, that the current image buffer needs to be cached according to the instruction request.
  • the start address starts to read the data of the total length.
  • the interrupt request includes: a start address of a subset of image check coefficients that currently needs to be cached and a total length of image check coefficients included in the subset of image check coefficients that currently need to be cached; a subset of image check coefficients It is a subset of the image check coefficient set.
  • the image check coefficient set is composed of all the image check coefficients required in the image processing process.
  • the flash memory controller reads the currently checked cached image check from the flash memory according to the interrupt request.
  • the coefficient subset includes: the flash memory controller reads data of the total length from the flash memory, starting from the start address of the image verification coefficient subset that currently needs to be buffered.
  • the flash memory controller before the flash memory controller reads the total length of data from the flash memory, starting from the start address of the subset of image check coefficients that currently needs to be buffered, the flash memory controller further includes: the flash memory controller determines the image check coefficients that currently need to be buffered.
  • the total length of data includes: If the start address of the subset of image check coefficients currently required to be cached is less than the end address of the image check coefficient set in the flash memory, the flash memory controller The start address of the subset of test coefficients starts to read the data of the total length.
  • the flash memory controller determines that the start address of the image check coefficient subset that needs to be cached is The starting address of the image check coefficient set in the flash memory.
  • the total length of the image check coefficient included in the image check coefficient subset that needs to be cached is the first image check coefficient subset included in the image check coefficient set.
  • the total length of the image check coefficients in the flash memory controller; starting from the flash memory, the data of the total length of the image check coefficient subsets that need to be buffered is read from the start address of the subset of the image check coefficients that currently need to be buffered. This ensures that when the image check coefficients required for a frame of image have been transmitted, the flash memory controller can still accurately obtain a subset of the image check coefficients that currently need to be cached, thereby improving the reliability of the flash memory controller.
  • the present application provides a flash memory controller, including: the flash memory controller is configured to: obtain an interrupt request sent by a cache; read a subset of image check coefficients that currently need to be cached from the flash memory according to the interrupt request; A subset of the image check coefficients is stored in the cache.
  • the flash memory controller is further configured to: receive instruction information sent by the central processing unit; correspondingly, the flash memory controller is specifically configured to: read the subset of image check coefficients currently required to be cached from the flash memory according to the interrupt request and the instruction information .
  • the indication information includes: a start address of the image check coefficient set in the flash memory, an end address of the image check coefficient set in the flash memory, and an image check included in the image check coefficient subset that needs to be cached each time.
  • the total length of the coefficients; among them, the image check coefficient set is composed of all the image check coefficients required in the image processing process, and the image check coefficient subset is a subset of the image check coefficient set.
  • the indication information further includes: a start address of each image check coefficient subset.
  • the flash memory controller is specifically configured to: under the trigger of the interrupt request, determine the start address of the image check coefficient subset that needs to be cached currently and the image check coefficient subset that needs to be cached according to the instruction information.
  • the total length of the image check coefficient; from the flash memory, the data of the total length is read from the start address of the subset of the image check coefficient that currently needs to be cached.
  • the start address of the subset of image check coefficients that currently needs to be cached and the total length of the image check coefficients included in the subset of image check coefficients that currently need to be cached; the subset of image check coefficients is image verification A subset of the coefficient set.
  • the image check coefficient set is composed of all the image check coefficients required in the image processing process.
  • the flash memory controller is specifically used to: from the flash memory, the image check coefficients that are currently buffered.
  • the start address of the set starts to read the total length of data.
  • the flash memory controller is further configured to: determine whether a start address of a subset of image check coefficients currently required to be cached is smaller than an end address of the image check coefficient set in the flash memory; accordingly, the flash memory controller is specifically configured to: If the start address of the image check coefficient subset that needs to be cached is less than the end address of the image check coefficient set in the flash memory, then read from the flash memory starting from the start address of the image check coefficient subset that currently needs to be cached. Take the total length of the data.
  • the flash memory controller is further configured to: if the start address of the subset of image check coefficients currently required to be cached is greater than or equal to the end address of the set of image check coefficients in the flash memory, determine the currently required cached image check
  • the starting address of the coefficient subset is the starting address of the image verification coefficient set in the flash memory.
  • the total length of the image verification coefficient included in the image verification coefficient subset that needs to be cached is the first in the image verification coefficient set.
  • the total length of the image check coefficients included in the image check coefficient subset; from the flash memory, the data of the total length is read from the start address of the image check coefficient subset that currently needs to be buffered.
  • the present application provides an image check coefficient reading system, including a cache, a flash memory, a central processing unit, and an optional flash memory controller for implementing the first aspect or the first aspect.
  • the system further includes: an image sensor and an image signal processor; the image sensor is configured to acquire an image; the image signal processor is configured to acquire an image acquired by the image sensor, and obtain a current subset of image check coefficients to be cached from the cache. , Processing the images acquired by the image sensor according to the current subset of image check coefficients to be buffered.
  • the present application provides a computer storage medium, where the storage medium includes computer instructions, and when the instructions are executed by a computer, the computer implements the first aspect or the method of the first aspect.
  • the present application provides a computer program product, including computer instructions, which, when executed by a computer, cause the computer to implement the first aspect or the method of the first aspect.
  • the application provides a method for reading an image check coefficient, a flash memory controller, a system, and a storage medium, including: the flash memory controller obtains an interrupt request sent by a cache; the flash memory controller reads an image that needs to be cached from the flash memory according to the interrupt request Check coefficient subset; the flash memory controller stores a subset of image check coefficients that currently need to be buffered into the cache. On the one hand, it can prevent the interrupt request from occupying the CPU time, so that the CPU can process other transactions, which improves the transaction efficiency of the CPU.
  • the embodiment of the present application does not need the CPU to receive an interrupt request every time, the CPU controls the flash memory controller to read the image verification coefficient from the flash memory, but the memory controller can directly read the current cache required according to the interrupt request. A subset of the image check coefficient, thereby improving the reading efficiency of the image check coefficient.
  • FIG. 1 is a schematic application scenario diagram of the technical solution of the present application
  • FIG. 2 is a flowchart of a method for reading an image check coefficient provided by an embodiment of the present application
  • FIG. 3 is a flowchart of a method for reading an image check coefficient provided by another embodiment of the present application.
  • FIG. 4 is a flowchart of a method for reading an image check coefficient provided by another embodiment of the present application.
  • FIG. 5 is a flowchart of a method for reading an image check coefficient according to another embodiment of the present application.
  • FIG. 6 is a flowchart of a method for reading an image check coefficient according to another embodiment of the present application.
  • FIG. 7 is a schematic diagram of an image check coefficient reading system 70 according to an embodiment of the present application.
  • the image check coefficient set is composed of all the image check coefficients required in the image processing process.
  • the image check coefficient subset is composed of at least one image check coefficient to be buffered into the cache each time, and the subset is a subset of the image check coefficient set.
  • FIG. 1 is an application scenario diagram of the technical solution of the present application.
  • the flash memory 11 stores an image check coefficient set corresponding to the frame image, and the flash memory controller 12 may The image check coefficient subset that needs to be cached is read each time.
  • the flash memory controller 12 stores the read image check coefficient subset into the cache 13.
  • the ISP 14 reads the currently cached image correction coefficient in the cache 13. Check the subset of coefficients, and obtain image data through the image sensor 15, and process the image data through the read subset of the image check coefficients, such as noise reduction, verification and other processing.
  • the cache 13 After the current cached image check coefficient subset in the cache 13 is read, the cache 13 generates an interrupt request and sends the interrupt request to the flash controller 12, so that the flash controller 12 reads from the flash 11 the next time it needs Cached image check coefficient subset, and store the read image check coefficient subset into cache 13 so that ISP 14 reads the cached image check coefficient subset cached in cache 13 and acquires the image through image sensor 15 Data, the image data is processed again through the read image check coefficient subset.
  • step S21 The description of step S21:
  • the interrupt request is used to trigger the flash memory controller to read from the flash memory a subset of image check coefficients that currently need to be buffered.
  • the interrupt request includes: a start address of a subset of image check coefficients that currently needs to be buffered and a total length of the image check coefficients included in the subset of image check coefficients that currently need to be buffered.
  • step S22 The description of step S22:
  • the starting address of the subset of the image check coefficients refers to the starting address of the pixels in the first row and the first column in the flash memory.
  • the subset of image check coefficients that currently needs to be buffered includes at least one image check coefficient.
  • the subset of image check coefficients that currently need to be buffered includes one image check coefficient
  • the subset of image check coefficients that currently need to be buffered includes the total length of the included image check coefficient refers to the length of the one image check coefficient.
  • the total length of the image check coefficients included in the subset of image check coefficients that currently need to be cached refers to the multiple image check coefficients Total length. Assume that the image check coefficients corresponding to the pixels in the first line are currently stored in the cache. In this case, the total length of the image check coefficient subset refers to the total length of the image check coefficients corresponding to all pixels in the first line.
  • the flash memory controller also receives instruction information sent by the CPU before step S21, and the instruction information is used to determine a start address of a subset of image check coefficients that currently needs to be buffered. And the total length of image check coefficients included in the subset of image check coefficients that need to be cached.
  • the cache does not need to send an interrupt request to the CPU, but directly sends an interrupt request to the flash memory controller, so that the flash memory controller reads from the flash memory a subset of image check coefficients that currently need to be cached according to the interrupt request, and Store a subset of image check coefficients that currently need to be cached into the cache.
  • it can prevent the interrupt request from occupying the CPU time, so that the CPU can process other transactions, which improves the transaction efficiency of the CPU.
  • the embodiment of the present application does not need the CPU to receive an interrupt request every time, the CPU controls the flash memory controller to read the image verification coefficient from the flash memory, but the memory controller can directly read the current cache required according to the interrupt request. A subset of the image check coefficient, thereby improving the reading efficiency of the image check coefficient.
  • FIG. 3 is a flowchart of a method for reading an image check coefficient provided by another embodiment of the present application. As shown in FIG. 3, the method It includes the following steps:
  • Step S31 The flash memory controller receives instruction information sent by the CPU.
  • Step S32 The flash memory controller obtains an interrupt request sent by the cache.
  • Step S33 The flash memory controller reads from the flash memory a subset of image check coefficients that currently needs to be buffered according to the interrupt request and the instruction information.
  • Step S34 The flash memory controller stores a subset of image check coefficients that currently needs to be buffered into the buffer.
  • step S32 is the same as step S21
  • step S34 is the same as step S23, which is not repeated in the embodiment of the present application.
  • step S31 The following describes step S31:
  • the indication information includes: a start address of the image check coefficient set in the flash memory, an end address of the image check coefficient set in the flash memory, and an image check coefficient that needs to be cached each time. The total length of the image check coefficients included in the subset.
  • the indication information includes: a start address of the image check coefficient set in the flash memory, an end address of the image check coefficient set in the flash memory, and an image check that needs to be cached each time.
  • the total length of the image check coefficients included in the image check coefficient subsets that need to be cached each time may be the same or different.
  • the termination address of the image check coefficient set in the flash memory refers to the termination address of the last image check coefficient set in the image check coefficient set in the flash memory.
  • step S33 The following describes step S33:
  • FIG. 4 is a flowchart of a method for reading an image verification coefficient according to another embodiment of the present application. As shown in FIG. 4, the above step S33 includes:
  • Step S332 The flash memory controller reads the data of the total length from the flash memory, starting from the start address of the image check coefficient subset that currently needs to be buffered.
  • the flash memory controller directly determines the initial address of the first image check coefficient subset as the image that needs to be cached currently.
  • the initial address of the check coefficient subset and determines the total length of the image check coefficients included in the first image check coefficient subset as the image check coefficients included in the image check coefficient subset that currently needs to be cached. Total length.
  • the flash memory controller first determines the initial address of the image check coefficient subset that was successfully read last time, and the total length of the image check coefficient included in the image check coefficient, and calculates the last successfully read The sum of the initial address of the image check coefficient subset and the total length of the image check coefficient included in the image check coefficient subset, to obtain the initial address of the image check coefficient subset that needs to be buffered.
  • the flash memory controller can directly determine the current image check coefficient subset that needs to be cached in the instruction information. The total length of the image check coefficients included.
  • the second optional manner for the indication information is that the indication information includes: a start address of the image check coefficient set in the flash memory, an end address of the image check coefficient set in the flash memory, The total length of the image check coefficient subset included in the cached image check coefficient subset, and the start address of each of the image check coefficient subsets. Based on this, the flash memory controller can directly determine the current through the instruction information. The initial address of the subset of image check coefficients to be cached and the total length of the image check coefficients it contains.
  • the CPU sends only one instruction message to the flash memory controller, and subsequent flash memory controllers only need to read a subset of image check coefficients that need to be cached from the flash memory according to the interrupt request and the instruction information.
  • it can prevent the interrupt request from occupying the CPU time, so that the CPU can process other transactions, which improves the transaction efficiency of the CPU.
  • the embodiment of the present application does not need the CPU to receive an interrupt request every time, the CPU controls the flash memory controller to read the image verification coefficient from the flash memory, but the memory controller can directly read the current cache required according to the interrupt request. A subset of the image check coefficient, thereby improving the reading efficiency of the image check coefficient.
  • FIG. 5 is a flowchart of a method for reading an image verification coefficient according to another embodiment of the present application. As shown in FIG. 5, the method include:
  • Step S51 The flash memory controller obtains an interrupt request sent by the cache.
  • Step S52 The flash memory controller reads, from the flash memory, the data of the total length of the image check coefficients included in the image check coefficient subset starting from the start address of the image check coefficient subset that currently needs to be buffered.
  • Step S53 The flash memory controller stores a subset of image check coefficients that currently needs to be buffered into the buffer.
  • step S52 is the same as step S21
  • step S53 is the same as step S33, which is not repeated in the embodiment of the present application.
  • step S52 The following describes step S52:
  • the cache does not need to send an interrupt request to the CPU, but directly sends an interrupt request to the flash memory controller, so that the flash memory controller reads from the flash memory a subset of image check coefficients that currently need to be cached according to the interrupt request, and Store a subset of image check coefficients that currently need to be cached into the cache.
  • it can prevent the interrupt request from occupying the CPU time, so that the CPU can process other transactions, which improves the transaction efficiency of the CPU.
  • the embodiment of the present application does not need the CPU to receive an interrupt request every time, the CPU controls the flash memory controller to read the image verification coefficient from the flash memory, but the memory controller can directly read the current cache required according to the interrupt request. A subset of the image check coefficient, thereby improving the reading efficiency of the image check coefficient.
  • the method for reading image verification coefficients further includes: optionally, the flash memory controller determines whether the start address of the subset of image verification coefficients that currently needs to be buffered is smaller than the image verification The termination address of the coefficient set in the flash memory. If the start address of the image check coefficient subset that currently needs to be buffered is smaller than the end address of the image check coefficient set in the flash memory, step S332 or step S52 is performed.
  • the flash memory controller determines the currently needed buffered image check
  • the starting address of the coefficient subset is the starting address of the image verification coefficient set in the flash memory
  • the total length of the image verification coefficient included in the image verification coefficient subset that needs to be buffered is the image calibration.
  • the total length of the image check coefficient included in the first image check coefficient subset in the test coefficient set, and then the flash memory controller reads from the flash memory, starting from the start address of the image check coefficient subset that currently needs to be buffered Take the data of the total length.
  • Step S61 The flash memory controller receives instruction information sent by the CPU.
  • Step S65 The flash memory controller reads the data of the total length from the flash memory, starting from the start address of the subset of image check coefficients that currently needs to be buffered.
  • Step S66 The flash memory controller determines that the start address of the subset of image check coefficients that needs to be cached is the start address of the set of image check coefficients in the flash memory.
  • the total length of the test coefficients is the total length of the image check coefficients included in the first image check coefficient subset in the image check coefficient set.
  • Step S67 The flash memory controller reads the data of the total length from the flash memory, starting from the start address of the subset of image check coefficients that currently needs to be buffered.
  • Step S68 The flash memory controller stores a subset of image check coefficients that need to be buffered into the buffer.
  • the flash memory controller needs to determine whether the start address of the subset of image check coefficients that currently need to be cached is smaller than the image check coefficient Start address set in flash memory; if the start address of the subset of image check coefficients currently needed to be cached is smaller than the start address of the image check coefficient set in flash, the flash memory controller reads the currently calibrated image Check coefficient subset, otherwise, the flash memory controller reads the first subset of image check coefficients in the image check coefficient set. This ensures that when the image check coefficients required for a frame of image have been transmitted, the flash memory controller can still accurately obtain a subset of the image check coefficients that currently need to be cached, thereby improving the reliability of the flash memory controller.
  • An embodiment of the present application further provides a flash memory controller, where the flash memory controller is configured to: obtain an interrupt request sent by a cache; read a subset of image check coefficients that currently need to be cached from the flash memory according to the interrupt request; A subset of the test coefficients is stored in the cache.
  • the indication information includes: a start address of the image check coefficient set in the flash memory, an end address of the image check coefficient set in the flash memory, and an image check included in the image check coefficient subset that needs to be cached each time.
  • the total length of the coefficients; among them, the image check coefficient set is composed of all the image check coefficients required in the image processing process, and the image check coefficient subset is a subset of the image check coefficient set.
  • the flash memory controller is specifically configured to: under the trigger of the interrupt request, determine the start address of the image check coefficient subset that needs to be cached currently and the image check coefficient subset that needs to be cached according to the instruction information.
  • the total length of the image check coefficient; from the flash memory, the data of the total length is read from the start address of the subset of the image check coefficient that currently needs to be cached.
  • the image check coefficient subset is a subset of the image check coefficient set Set, the image check coefficient set is composed of all the image check coefficients required in the image processing process;
  • the flash memory controller is specifically used to: from the flash memory, from the beginning of the current subset of image check coefficients to be cached The address starts to read the total length of data.
  • the flash memory controller is further configured to: determine whether a start address of a subset of image check coefficients currently required to be cached is smaller than an end address of the image check coefficient set in the flash memory; accordingly, the flash memory controller is specifically configured to: If the start address of the image check coefficient subset that needs to be cached is less than the end address of the image check coefficient set in the flash memory, then read from the flash memory starting from the start address of the image check coefficient subset that currently needs to be cached. Take the total length of the data.
  • the flash memory controller provided in the embodiment of the present application may be used to execute the above-mentioned method for reading the image verification coefficient.
  • the method section which is not limited in the embodiment of the present application.
  • FIG. 7 is a schematic diagram of an image check coefficient reading system 70 according to an embodiment of the present application. As shown in FIG. 7, the system includes: a cache 71, a flash memory 72, a CPU 73, and an image check coefficient. Read method of flash controller 74.
  • the system 70 further includes: an image sensor 75 and an ISP 76.
  • the image sensor 75 is used to collect images; the ISP 76 is used to acquire the images collected by the image sensor 75, and from the cache 71, to obtain a subset of the image check coefficients that need to be cached, and to process according to the subset of the image check coefficients that are currently cached. An image captured by the image sensor 75.
  • the flash memory controller in the image check coefficient reading system provided by the embodiment of the present application can be used to execute the above-mentioned method for reading the image check coefficient.
  • the method part which is not done in the embodiment of the present application. limit.
  • An embodiment of the present application further provides a computer program product, including: computer instructions that, when executed by a computer, cause the computer to implement the method for reading an image check coefficient as described above.
  • a person of ordinary skill in the art may understand that all or part of the steps of implementing the foregoing method embodiments may be implemented by a program instructing related hardware.
  • the aforementioned program may be stored in a computer-readable storage medium.
  • the steps including the foregoing method embodiments are executed; and the foregoing storage medium includes: various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)

Abstract

Provided by the present application are a method for reading an image check coefficient, a flash memory controller, a system and a storage medium, the method comprising: a flash memory controller acquiring an interruption request sent by a cache; according to the interruption request, the flash memory controller reading from a flash memory an image check coefficient subset which currently needs to be cached; and the flash memory controller storing the image check coefficient subset which currently needs to be cached in the cache. Thus, it is possible to prevent an interruption request from taking up the time of a CPU so that the CPU is able to process other tasks, thereby increasing the task processing efficiency of the CPU.

Description

图像校验系数的读取方法、闪存控制器、系统及存储介质Method for reading image check coefficient, flash memory controller, system and storage medium 技术领域Technical field
本申请涉及数据处理技术领域,尤其涉及一种图像校验系数的读取方法、闪存控制器、系统及存储介质。The present application relates to the technical field of data processing, and in particular, to a method for reading an image check coefficient, a flash memory controller, a system, and a storage medium.
背景技术Background technique
在3D或者2D成像系统中,图像信号处理器(Image Signal Processor,ISP)接收来自图像传感器采集的图像,并对该图像进行降噪、校验等处理。而ISP需要通过图像校验系数对图像进行降噪、校验等处理。In a 3D or 2D imaging system, an image signal processor (ISP) receives an image collected from an image sensor, and performs processing such as noise reduction and verification on the image. The ISP needs to perform noise reduction and verification on the image through the image verification coefficient.
在现有技术中,ISP获取图像校验系数的过程包括:通常ISP从缓存(Buffer)中读取图像校验系数,当缓存中图像校验系数被读完时,缓存将生成中断请求。并向中央处理器(Central Processing Unit,CPU)发送该中断请求,CPU接收到该中断请求之后控制闪存控制器(Flash Controller)从闪存(Flash)中读取接下来要用的图像校验系数,并将读取到图像校验系数存放到缓存中。In the prior art, the process by which an ISP obtains an image check coefficient includes: usually the ISP reads the image check coefficient from a buffer (Buffer), and when the image check coefficient in the buffer has been read, the buffer generates an interrupt request. And sends the interrupt request to a central processing unit (CPU), and after receiving the interrupt request, the CPU controls the flash controller (Flash Controller) to read the next image check coefficient from the flash (Flash), The read image check coefficient is stored in the buffer.
然而,由于缓存内存有限,其内部的图像校验系数很容易被读完,基于此,缓存生成中断请求的频率非常高。而CPU需要实时处理这些中断请求,以控制闪存控制器从闪存中读取图像校验系数,这将占用CPU的大量时间,影响CPU处理其它事务,即影响了CPU的事务处理效率。However, because the cache memory is limited, the internal image check coefficient can be easily read. Based on this, the cache generates interrupt requests very frequently. The CPU needs to process these interrupt requests in real time in order to control the flash memory controller to read the image check coefficient from the flash memory. This will consume a lot of time of the CPU and affect the CPU to process other transactions, that is, the transaction processing efficiency of the CPU.
发明内容Summary of the Invention
本申请提供一种图像校验系数的读取方法、闪存控制器、系统及存储介质。The application provides a method for reading an image check coefficient, a flash memory controller, a system, and a storage medium.
第一方面,本申请提供一种图像校验系数的读取方法,包括:闪存控制器获取缓存发送的中断请求;闪存控制器根据中断请求从闪存读取当前需要缓存的图像校验系数子集;闪存控制器将当前需要缓存的图像校验系数子集存储至缓存中。In a first aspect, the present application provides a method for reading an image check coefficient, comprising: a flash memory controller obtaining an interrupt request sent by a cache; the flash memory controller reading a subset of image check coefficients currently required to be cached from the flash memory according to the interrupt request ; The flash controller stores a subset of the image check coefficients that currently need to be cached into the cache.
一方面,可以防止中断请求对CPU的时间占用,以使CPU可以处理其 它事务,即提高了CPU的事务处理效率。另一方面,由于本申请实施例无需CPU每接到一次中断请求,CPU就要控制闪存控制器从闪存读取一次图像校验系数,而是内存控制器可以直接根据中断请求读取当前需要缓存的图像校验系数子集,从而提高了图像校验系数的读取效率。On the one hand, it can prevent the interrupt request from occupying the CPU time, so that the CPU can process other transactions, which improves the transaction efficiency of the CPU. On the other hand, since the embodiment of the present application does not need the CPU to receive an interrupt request every time, the CPU controls the flash memory controller to read the image verification coefficient from the flash memory, but the memory controller can directly read the current cache required according to the interrupt request. A subset of the image check coefficient, thereby improving the reading efficiency of the image check coefficient.
可选地,闪存控制器获取缓存发送的中断请求之前,还包括:闪存控制器接收中央处理器发送的指示信息;相应的,闪存控制器根据中断请求从闪存读取当前需要缓存的图像校验系数子集,包括:闪存控制器根据中断请求和指示信息从闪存读取当前需要缓存的图像校验系数子集。Optionally, before the flash memory controller obtains the interrupt request sent by the cache, the flash memory controller further includes: the flash memory controller receives the instruction information sent by the central processing unit; correspondingly, the flash memory controller reads the current cached image check from the flash memory according to the interrupt request The subset of coefficients includes: the flash memory controller reads a subset of image check coefficients that need to be buffered from the flash memory according to the interrupt request and the instruction information.
即CPU仅向闪存控制器发送一条指示信息,后续闪存控制器只需根据中断请求和该指示信息从闪存读取当前需要缓存的图像校验系数子集即可,一方面,可以防止中断请求对CPU的时间占用,以使CPU可以处理其它事务,即提高了CPU的事务处理效率。另一方面,由于本申请实施例无需CPU每接到一次中断请求,CPU就要控制闪存控制器从闪存读取一次图像校验系数,而是内存控制器可以直接根据中断请求读取当前需要缓存的图像校验系数子集,从而提高了图像校验系数的读取效率。That is, the CPU sends only one instruction message to the flash memory controller, and subsequent flash memory controllers only need to read a subset of the image check coefficients that need to be cached from the flash memory according to the interrupt request and the instruction information. On the one hand, the interrupt request can be prevented. The CPU time is occupied so that the CPU can process other transactions, that is, the transaction processing efficiency of the CPU is improved. On the other hand, since the embodiment of the present application does not need the CPU to receive an interrupt request every time, the CPU controls the flash memory controller to read the image verification coefficient from the flash memory, but the memory controller can directly read the current cache required according to the interrupt request. A subset of the image check coefficient, thereby improving the reading efficiency of the image check coefficient.
可选地,指示信息包括:图像校验系数集在闪存中的起始地址、图像校验系数集在闪存中的终止地址、每次需要缓存的图像校验系数子集所包括的图像校验系数的总长度。Optionally, the indication information includes: a start address of the image check coefficient set in the flash memory, an end address of the image check coefficient set in the flash memory, and an image check included in the image check coefficient subset that needs to be cached each time. The total length of the factor.
可选地,指示信息还包括:每个图像校验系数子集的起始地址。Optionally, the indication information further includes: a start address of each image check coefficient subset.
可选地,闪存控制器根据中断请求和指示信息从闪存读取当前需要缓存的图像校验系数子集,包括:闪存控制器在中断请求的触发下,根据指示信息确定当前需要缓存的图像校验系数子集的起始地址和当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度;闪存控制器从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据。Optionally, the flash memory controller reads the current subset of image check coefficients to be cached from the flash memory according to the interrupt request and the instruction information, including: the flash memory controller determines, based on the instruction information, that the current image buffer needs to be cached according to the instruction request. The start address of the subset of verification coefficients and the total length of the image verification coefficients included in the subset of image verification coefficients that currently need to be cached; the flash memory controller starts from the flash memory, starting from the subset of image verification coefficients that currently needs to be cached The start address starts to read the data of the total length.
可选地,中断请求包括:当前需要缓存的图像校验系数子集的起始地址和当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度;图像校验系数子集为图像校验系数集的子集,图像校验系数集由图像处理过程中所需的所有图像校验系数构成;相应的,闪存控制器根据中断请求从闪存读取当前需要缓存的图像校验系数子集,包括:闪存控制器从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取总长度的数据。Optionally, the interrupt request includes: a start address of a subset of image check coefficients that currently needs to be cached and a total length of image check coefficients included in the subset of image check coefficients that currently need to be cached; a subset of image check coefficients It is a subset of the image check coefficient set. The image check coefficient set is composed of all the image check coefficients required in the image processing process. Correspondingly, the flash memory controller reads the currently checked cached image check from the flash memory according to the interrupt request. The coefficient subset includes: the flash memory controller reads data of the total length from the flash memory, starting from the start address of the image verification coefficient subset that currently needs to be buffered.
可选地,闪存控制器从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取总长度的数据之前,还包括:闪存控制器判断当前需要缓存的图像校验系数子集的起始地址是否小于图像校验系数集在闪存中的终止地址;相应地,闪存控制器从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据,包括:若当前需要缓存的图像校验系数子集的起始地址小于图像校验系数集在闪存中的终止地址,则闪存控制器从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据。若当前需要缓存的图像校验系数子集的起始地址大于或等于图像校验系数集在闪存中的终止地址,则闪存控制器确定当前需要缓存的图像校验系数子集的起始地址为图像校验系数集在闪存中的起始地址,当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度为图像校验系数集中第一个图像校验系数子集所包括的图像校验系数的总长度;闪存控制器从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取当前需要缓存的图像校验系数子集的总长度的数据。从而保证在一帧图像需要的图像校验系数已传输完成时,闪存控制器还是能够精确的获取到当前需要缓存的图像校验系数子集,进而提高了闪存控制器的可靠性。Optionally, before the flash memory controller reads the total length of data from the flash memory, starting from the start address of the subset of image check coefficients that currently needs to be buffered, the flash memory controller further includes: the flash memory controller determines the image check coefficients that currently need to be buffered. Whether the start address of the subset is smaller than the end address of the image check coefficient set in the flash memory; correspondingly, the flash memory controller reads from the flash memory the starting address of the subset of the image check coefficient that currently needs to be cached The total length of data includes: If the start address of the subset of image check coefficients currently required to be cached is less than the end address of the image check coefficient set in the flash memory, the flash memory controller The start address of the subset of test coefficients starts to read the data of the total length. If the start address of the image check coefficient subset that needs to be cached is greater than or equal to the end address of the image check coefficient set in the flash memory, the flash memory controller determines that the start address of the image check coefficient subset that needs to be cached is The starting address of the image check coefficient set in the flash memory. The total length of the image check coefficient included in the image check coefficient subset that needs to be cached is the first image check coefficient subset included in the image check coefficient set. The total length of the image check coefficients in the flash memory controller; starting from the flash memory, the data of the total length of the image check coefficient subsets that need to be buffered is read from the start address of the subset of the image check coefficients that currently need to be buffered. This ensures that when the image check coefficients required for a frame of image have been transmitted, the flash memory controller can still accurately obtain a subset of the image check coefficients that currently need to be cached, thereby improving the reliability of the flash memory controller.
下面将介绍闪存控制器、系统、存储介质及计算机程序产品,其效果可参考方法部分的效果,下面对此不再赘述。The following describes the flash memory controller, system, storage medium, and computer program products. For the effects, refer to the effects in the method section.
第二方面,本申请提供一种闪存控制器,包括:闪存控制器用于:获取缓存发送的中断请求;根据中断请求从闪存读取当前需要缓存的图像校验系数子集;将当前需要缓存的图像校验系数子集存储至缓存中。In a second aspect, the present application provides a flash memory controller, including: the flash memory controller is configured to: obtain an interrupt request sent by a cache; read a subset of image check coefficients that currently need to be cached from the flash memory according to the interrupt request; A subset of the image check coefficients is stored in the cache.
可选地,闪存控制器还用于:接收中央处理器发送的指示信息;相应的,闪存控制器具体用于:根据中断请求和指示信息从闪存读取当前需要缓存的图像校验系数子集。Optionally, the flash memory controller is further configured to: receive instruction information sent by the central processing unit; correspondingly, the flash memory controller is specifically configured to: read the subset of image check coefficients currently required to be cached from the flash memory according to the interrupt request and the instruction information .
可选地,指示信息包括:图像校验系数集在闪存中的起始地址、图像校验系数集在闪存中的终止地址、每次需要缓存的图像校验系数子集所包括的图像校验系数的总长度;其中,图像校验系数集由图像处理过程中所需的所有图像校验系数构成,图像校验系数子集为图像校验系数集的子集。Optionally, the indication information includes: a start address of the image check coefficient set in the flash memory, an end address of the image check coefficient set in the flash memory, and an image check included in the image check coefficient subset that needs to be cached each time. The total length of the coefficients; among them, the image check coefficient set is composed of all the image check coefficients required in the image processing process, and the image check coefficient subset is a subset of the image check coefficient set.
可选地,指示信息还包括:每个图像校验系数子集的起始地址。Optionally, the indication information further includes: a start address of each image check coefficient subset.
可选地,闪存控制器具体用于:在中断请求的触发下,根据指示信息确 定当前需要缓存的图像校验系数子集的起始地址和当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度;从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取总长度的数据。Optionally, the flash memory controller is specifically configured to: under the trigger of the interrupt request, determine the start address of the image check coefficient subset that needs to be cached currently and the image check coefficient subset that needs to be cached according to the instruction information. The total length of the image check coefficient; from the flash memory, the data of the total length is read from the start address of the subset of the image check coefficient that currently needs to be cached.
可选地,当前需要缓存的图像校验系数子集的起始地址和当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度;图像校验系数子集为图像校验系数集的子集,图像校验系数集由图像处理过程中所需的所有图像校验系数构成;相应的,闪存控制器具体用于:从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取总长度的数据。Optionally, the start address of the subset of image check coefficients that currently needs to be cached and the total length of the image check coefficients included in the subset of image check coefficients that currently need to be cached; the subset of image check coefficients is image verification A subset of the coefficient set. The image check coefficient set is composed of all the image check coefficients required in the image processing process. Correspondingly, the flash memory controller is specifically used to: from the flash memory, the image check coefficients that are currently buffered. The start address of the set starts to read the total length of data.
可选地,闪存控制器还用于:判断当前需要缓存的图像校验系数子集的起始地址是否小于图像校验系数集在闪存中的终止地址;相应地,闪存控制器具体用于:若当前需要缓存的图像校验系数子集的起始地址小于图像校验系数集在闪存中的终止地址,则从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取总长度的数据。Optionally, the flash memory controller is further configured to: determine whether a start address of a subset of image check coefficients currently required to be cached is smaller than an end address of the image check coefficient set in the flash memory; accordingly, the flash memory controller is specifically configured to: If the start address of the image check coefficient subset that needs to be cached is less than the end address of the image check coefficient set in the flash memory, then read from the flash memory starting from the start address of the image check coefficient subset that currently needs to be cached. Take the total length of the data.
可选地,闪存控制器还用于:若当前需要缓存的图像校验系数子集的起始地址大于或等于图像校验系数集在闪存中的终止地址,则确定当前需要缓存的图像校验系数子集的起始地址为图像校验系数集在闪存中的起始地址,当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度为图像校验系数集中第一个图像校验系数子集所包括的图像校验系数的总长度;从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取总长度的数据。Optionally, the flash memory controller is further configured to: if the start address of the subset of image check coefficients currently required to be cached is greater than or equal to the end address of the set of image check coefficients in the flash memory, determine the currently required cached image check The starting address of the coefficient subset is the starting address of the image verification coefficient set in the flash memory. The total length of the image verification coefficient included in the image verification coefficient subset that needs to be cached is the first in the image verification coefficient set. The total length of the image check coefficients included in the image check coefficient subset; from the flash memory, the data of the total length is read from the start address of the image check coefficient subset that currently needs to be buffered.
第三方面,本申请提供一种图像校验系数的读取系统,包括:缓存、闪存、中央处理器和用于实现第一方面或第一方面的可选方式闪存控制器。In a third aspect, the present application provides an image check coefficient reading system, including a cache, a flash memory, a central processing unit, and an optional flash memory controller for implementing the first aspect or the first aspect.
可选地,系统还包括:图像传感器和图像信号处理器;图像传感器用于采集图像;图像信号处理器用于获取图像传感器采集的图像,并从缓存中获取当前需要缓存的图像校验系数子集,根据当前需要缓存的图像校验系数子集处理图像传感器采集的图像。Optionally, the system further includes: an image sensor and an image signal processor; the image sensor is configured to acquire an image; the image signal processor is configured to acquire an image acquired by the image sensor, and obtain a current subset of image check coefficients to be cached from the cache. , Processing the images acquired by the image sensor according to the current subset of image check coefficients to be buffered.
第四方面,本申请提供一种计算机存储介质,存储介质包括计算机指令,当指令被计算机执行时,使得计算机实现第一方面或第一方面的方法。According to a fourth aspect, the present application provides a computer storage medium, where the storage medium includes computer instructions, and when the instructions are executed by a computer, the computer implements the first aspect or the method of the first aspect.
第五方面,本申请提供一种计算机程序产品,包括计算机指令,当指令被计算机执行时,使得计算机实现第一方面或第一方面的方法。In a fifth aspect, the present application provides a computer program product, including computer instructions, which, when executed by a computer, cause the computer to implement the first aspect or the method of the first aspect.
本申请提供一种图像校验系数的读取方法、闪存控制器、系统及存储介质,包括:闪存控制器获取缓存发送的中断请求;闪存控制器根据中断请求从闪存读取当前需要缓存的图像校验系数子集;闪存控制器将当前需要缓存的图像校验系数子集存储至缓存中。一方面,可以防止中断请求对CPU的时间占用,以使CPU可以处理其它事务,即提高了CPU的事务处理效率。另一方面,由于本申请实施例无需CPU每接到一次中断请求,CPU就要控制闪存控制器从闪存读取一次图像校验系数,而是内存控制器可以直接根据中断请求读取当前需要缓存的图像校验系数子集,从而提高了图像校验系数的读取效率。The application provides a method for reading an image check coefficient, a flash memory controller, a system, and a storage medium, including: the flash memory controller obtains an interrupt request sent by a cache; the flash memory controller reads an image that needs to be cached from the flash memory according to the interrupt request Check coefficient subset; the flash memory controller stores a subset of image check coefficients that currently need to be buffered into the cache. On the one hand, it can prevent the interrupt request from occupying the CPU time, so that the CPU can process other transactions, which improves the transaction efficiency of the CPU. On the other hand, since the embodiment of the present application does not need the CPU to receive an interrupt request every time, the CPU controls the flash memory controller to read the image verification coefficient from the flash memory, but the memory controller can directly read the current cache required according to the interrupt request. A subset of the image check coefficient, thereby improving the reading efficiency of the image check coefficient.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present application or the prior art more clearly, the drawings used in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without paying creative labor.
图1为本申请技术方案的一种示意性应用场景图;FIG. 1 is a schematic application scenario diagram of the technical solution of the present application;
图2为本申请一实施例提供的图像校验系数的读取方法的流程图;2 is a flowchart of a method for reading an image check coefficient provided by an embodiment of the present application;
图3为本申请另一实施例提供的图像校验系数的读取方法的流程图;3 is a flowchart of a method for reading an image check coefficient provided by another embodiment of the present application;
图4为本申请再一实施例提供的图像校验系数的读取方法的流程图;4 is a flowchart of a method for reading an image check coefficient provided by another embodiment of the present application;
图5为本申请又一实施例提供的图像校验系数的读取方法的流程图;5 is a flowchart of a method for reading an image check coefficient according to another embodiment of the present application;
图6为本申请又一实施例提供的图像校验系数的读取方法的流程图;6 is a flowchart of a method for reading an image check coefficient according to another embodiment of the present application;
图7为本申请一实施例提供的一种图像校验系数的读取系统70的示意图。FIG. 7 is a schematic diagram of an image check coefficient reading system 70 according to an embodiment of the present application.
具体实施方式detailed description
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments These are part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第 三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例,例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", and the like (if present) in the description and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used For describing a particular order or sequence. It should be understood that the data used in this way are interchangeable under appropriate circumstances so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. Furthermore, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or device that includes a series of steps or units need not be limited to those explicitly listed Those steps or units may instead include other steps or units not explicitly listed or inherent to these processes, methods, products or equipment.
如上所述,一方面由于缓存内存有限,其内部的图像校验系数很容易被读完,基于此,缓存生成中断请求的频率非常高。而CPU需要实时处理这些中断请求,以控制闪存控制器从闪存中读取图像校验系数,这将占用CPU的大量时间,影响CPU处理其它事务,即影响了CPU的事务处理效率。另一方面,由于现有技术中,CPU每接到一次中断请求,CPU就要控制闪存控制器从闪存读取一次图像校验系数,这势必造成图像校验系数的读取效率较低的问题。为了解决这些技术问题,本申请实施例提供一种图像校验系数的读取方法、闪存控制器、系统及存储介质。As mentioned above, on the one hand, because the cache memory is limited, its internal image check coefficient can be easily read. Based on this, the cache generates interrupt requests very frequently. The CPU needs to process these interrupt requests in real time in order to control the flash memory controller to read the image check coefficient from the flash memory. This will consume a lot of time of the CPU and affect the CPU to process other transactions, that is, the transaction processing efficiency of the CPU. On the other hand, in the prior art, each time the CPU receives an interrupt request, the CPU must control the flash memory controller to read the image verification coefficient from the flash memory, which will inevitably cause a problem that the reading efficiency of the image verification coefficient is low. . In order to solve these technical problems, embodiments of the present application provide a method for reading an image check coefficient, a flash memory controller, a system, and a storage medium.
在介绍本发明实施例之前,下面先对相关概念进行介绍:Before introducing the embodiments of the present invention, the following describes the related concepts:
图像校验系数集是由图像处理过程中,所需要的所有图像校验系数构成。The image check coefficient set is composed of all the image check coefficients required in the image processing process.
图像校验系数子集是由每次需要缓存至缓存中的至少一个图像校验系数构成,该子集为所述图像校验系数集的子集。The image check coefficient subset is composed of at least one image check coefficient to be buffered into the cache each time, and the subset is a subset of the image check coefficient set.
具体地,图1为本申请技术方案的应用场景图,如图1所示,针对一帧图像,闪存11中存储有该帧图像对应的图像校验系数集,闪存控制器12可以从闪存11中读取每次需要缓存的图像校验系数子集,闪存控制器12将读取到的图像校验系数子集存储至缓存13中,进一步地,ISP14读取缓存13中当前缓存的图像校验系数子集,并通过图像传感器15获取图像数据,通过读取到的图像校验系数子集对图像数据进行处理,如降噪、校验等处理。当缓存13中当前缓存的图像校验系数子集被读取完之后,缓存13生成中断请求,并向闪存控制器12发送中断请求,以使闪存控制器12从闪存11中读取下一次需要缓存的图像校验系数子集,并将读取到的图像校验系数子集存储至缓存13中,以便ISP14读取缓存13中缓存的图像校验系数子集,并通过图像传感器15获取图像数据,通过读取到的图像校验系数子集对图像数据再 次进行处理。Specifically, FIG. 1 is an application scenario diagram of the technical solution of the present application. As shown in FIG. 1, for a frame image, the flash memory 11 stores an image check coefficient set corresponding to the frame image, and the flash memory controller 12 may The image check coefficient subset that needs to be cached is read each time. The flash memory controller 12 stores the read image check coefficient subset into the cache 13. Further, the ISP 14 reads the currently cached image correction coefficient in the cache 13. Check the subset of coefficients, and obtain image data through the image sensor 15, and process the image data through the read subset of the image check coefficients, such as noise reduction, verification and other processing. After the current cached image check coefficient subset in the cache 13 is read, the cache 13 generates an interrupt request and sends the interrupt request to the flash controller 12, so that the flash controller 12 reads from the flash 11 the next time it needs Cached image check coefficient subset, and store the read image check coefficient subset into cache 13 so that ISP 14 reads the cached image check coefficient subset cached in cache 13 and acquires the image through image sensor 15 Data, the image data is processed again through the read image check coefficient subset.
基于上述应用场景,下面对本申请技术方案进行详细介绍:Based on the above application scenarios, the technical solution of this application is described in detail below:
实施例一Example one
图2为本申请一实施例提供的图像校验系数的读取方法的流程图,如图2所示,该方法包括如下步骤:FIG. 2 is a flowchart of a method for reading an image verification coefficient according to an embodiment of the present application. As shown in FIG. 2, the method includes the following steps:
步骤S21:闪存控制器获取缓存发送的中断请求。Step S21: The flash memory controller obtains an interrupt request sent by the cache.
步骤S22:闪存控制器根据中断请求从闪存读取当前需要缓存的图像校验系数子集。Step S22: The flash memory controller reads from the flash memory a subset of image check coefficients that currently needs to be buffered according to the interrupt request.
步骤S23:闪存控制器将当前需要缓存的图像校验系数子集存储至缓存中。Step S23: The flash memory controller stores a subset of image check coefficients that currently needs to be buffered into the buffer.
针对步骤S21进行说明:The description of step S21:
一种可选方式:中断请求用于触发闪存控制器从闪存读取当前需要缓存的图像校验系数子集。An optional method: The interrupt request is used to trigger the flash memory controller to read from the flash memory a subset of image check coefficients that currently need to be buffered.
另一种可选方式:中断请求包括:当前需要缓存的图像校验系数子集的起始地址和当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度。Another optional method: the interrupt request includes: a start address of a subset of image check coefficients that currently needs to be buffered and a total length of the image check coefficients included in the subset of image check coefficients that currently need to be buffered.
在步骤S21中,当缓存13中当前缓存的图像校验系数子集被读取完之后,缓存13生成中断请求,并向闪存控制器12发送中断请求。In step S21, after a subset of the image check coefficients currently cached in the cache 13 is read, the cache 13 generates an interrupt request and sends an interrupt request to the flash memory controller 12.
针对步骤S22进行说明:The description of step S22:
首先,闪存控制器根据中断请求确定当前需要缓存的图像校验系数子集的起始地址和当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度。当前需要缓存的图像校验系数子集的起始地址是指图像校验系数子集所包括的第一个图像校验系数的起始地址。通常缓存中存储的是一帧图像中的其中一行像素点对应的图像校验系数,其中每个像素点对应一个图像校验系数。假设缓存中当前存储的是第一行像素点对应的图像校验系数,这时图像校验系数子集的起始地址是指第一行第一列像素点在闪存中的起始地址。进一步地,当前需要缓存的图像校验系数子集包括至少一个图像校验系数,当当前需要缓存的图像校验系数子集包括一个图像校验系数时,当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度是指所述一个图像校验系数的长度。当当前需要缓存的图像校验系数子集包括多个图像校验系数 时,当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度是指所述多个图像校验系数的总长度。假设缓存中当前存储的是第一行像素点对应的图像校验系数,这时图像校验系数子集的总长度是指第一行所有像素点对应的图像校验系数的总长度。First, the flash memory controller determines, based on the interrupt request, the start address of the image check coefficient subset that currently needs to be cached and the total length of the image check coefficient included in the image check coefficient subset that currently needs to be buffered. The start address of the image check coefficient subset that currently needs to be buffered refers to the start address of the first image check coefficient included in the image check coefficient subset. Generally, the cache stores image check coefficients corresponding to one row of pixels in a frame of image, and each pixel corresponds to an image check coefficient. Assume that the image check coefficients corresponding to the pixels in the first row are currently stored in the cache. In this case, the starting address of the subset of the image check coefficients refers to the starting address of the pixels in the first row and the first column in the flash memory. Further, the subset of image check coefficients that currently needs to be buffered includes at least one image check coefficient. When the subset of image check coefficients that currently need to be buffered includes one image check coefficient, the subset of image check coefficients that currently need to be buffered. The total length of the included image check coefficient refers to the length of the one image check coefficient. When the subset of image check coefficients that currently needs to be cached includes multiple image check coefficients, the total length of the image check coefficients included in the subset of image check coefficients that currently need to be cached refers to the multiple image check coefficients Total length. Assume that the image check coefficients corresponding to the pixels in the first line are currently stored in the cache. In this case, the total length of the image check coefficient subset refers to the total length of the image check coefficients corresponding to all pixels in the first line.
其次,闪存控制器从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据。Secondly, the flash memory controller reads the data of the total length from the flash memory, starting from the start address of the subset of image check coefficients that currently needs to be buffered.
其中,若中断请求为上述第一种可选方式,则闪存控制器在步骤S21之前还接收CPU发送的指示信息,该指示信息用于确定当前需要缓存的图像校验系数子集的起始地址和当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度。Wherein, if the interrupt request is the above-mentioned first optional way, the flash memory controller also receives instruction information sent by the CPU before step S21, and the instruction information is used to determine a start address of a subset of image check coefficients that currently needs to be buffered. And the total length of image check coefficients included in the subset of image check coefficients that need to be cached.
若中断请求为上述第二种可选方式,则闪存控制器可以直接根据中断请求确定当前需要缓存的图像校验系数子集的起始地址和当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度。If the interrupt request is the second optional method described above, the flash memory controller may directly determine the start address of the image check coefficient subset that needs to be cached and the image check coefficient subset that currently needs to be cached according to the interrupt request. The total length of the image check coefficient.
可选地,在步骤S23之后,ISP从缓存中读取当前需要缓存的图像校验系数子集,并通过当前需要缓存的图像校验系数子集进行图像处理,具体的,可以是根据当前需要缓存的图像校验系数子集对从图像传感器获得的图像信息进行处理,其中,本申请实施例对如何通过图像校验系数进行图像处理不做限制。Optionally, after step S23, the ISP reads from the cache the subset of image check coefficients that currently needs to be cached, and performs image processing through the subset of image check coefficients that currently need to be cached. Specifically, it can be based on the current needs The buffered image check coefficient subset processes the image information obtained from the image sensor. The embodiment of the present application does not limit how to perform image processing by using the image check coefficient.
在本申请实施例中,缓存无需向CPU发送中断请求,而是直接向闪存控制器发送中断请求,以使闪存控制器根据中断请求从闪存读取当前需要缓存的图像校验系数子集,并将当前需要缓存的图像校验系数子集存储至缓存中。一方面,可以防止中断请求对CPU的时间占用,以使CPU可以处理其它事务,即提高了CPU的事务处理效率。另一方面,由于本申请实施例无需CPU每接到一次中断请求,CPU就要控制闪存控制器从闪存读取一次图像校验系数,而是内存控制器可以直接根据中断请求读取当前需要缓存的图像校验系数子集,从而提高了图像校验系数的读取效率。In the embodiment of the present application, the cache does not need to send an interrupt request to the CPU, but directly sends an interrupt request to the flash memory controller, so that the flash memory controller reads from the flash memory a subset of image check coefficients that currently need to be cached according to the interrupt request, and Store a subset of image check coefficients that currently need to be cached into the cache. On the one hand, it can prevent the interrupt request from occupying the CPU time, so that the CPU can process other transactions, which improves the transaction efficiency of the CPU. On the other hand, since the embodiment of the present application does not need the CPU to receive an interrupt request every time, the CPU controls the flash memory controller to read the image verification coefficient from the flash memory, but the memory controller can directly read the current cache required according to the interrupt request. A subset of the image check coefficient, thereby improving the reading efficiency of the image check coefficient.
实施例二Example two
结合步骤S21的第一种可选方式对步骤S22进行说明:具体地,图3为本申请另一实施例提供的图像校验系数的读取方法的流程图,如图3所示,该方法包括如下步骤:Step S22 is described with reference to the first optional way of step S21: Specifically, FIG. 3 is a flowchart of a method for reading an image check coefficient provided by another embodiment of the present application. As shown in FIG. 3, the method It includes the following steps:
步骤S31:闪存控制器接收CPU发送的指示信息。Step S31: The flash memory controller receives instruction information sent by the CPU.
步骤S32:闪存控制器获取缓存发送的中断请求。Step S32: The flash memory controller obtains an interrupt request sent by the cache.
步骤S33:闪存控制器根据中断请求和指示信息从闪存读取当前需要缓存的图像校验系数子集。Step S33: The flash memory controller reads from the flash memory a subset of image check coefficients that currently needs to be buffered according to the interrupt request and the instruction information.
步骤S34:闪存控制器将当前需要缓存的图像校验系数子集存储至缓存中。Step S34: The flash memory controller stores a subset of image check coefficients that currently needs to be buffered into the buffer.
其中,步骤S32与步骤S21相同,步骤S34与步骤S23相同,本申请实施例对此不再赘述。Among them, step S32 is the same as step S21, and step S34 is the same as step S23, which is not repeated in the embodiment of the present application.
针对步骤S31进行如下说明:The following describes step S31:
一种可选方式:指示信息包括:图像校验系数集在所述闪存中的起始地址、所述图像校验系数集在所述闪存中的终止地址、每次需要缓存的图像校验系数子集所包括的图像校验系数的总长度。An optional method: The indication information includes: a start address of the image check coefficient set in the flash memory, an end address of the image check coefficient set in the flash memory, and an image check coefficient that needs to be cached each time. The total length of the image check coefficients included in the subset.
另一种可选方式:指示信息包括:图像校验系数集在所述闪存中的起始地址、所述图像校验系数集在所述闪存中的终止地址、每次需要缓存的图像校验系数子集所包括的图像校验系数的总长度,以及,每个所述图像校验系数子集的起始地址。Another optional method: The indication information includes: a start address of the image check coefficient set in the flash memory, an end address of the image check coefficient set in the flash memory, and an image check that needs to be cached each time. The total length of the image check coefficients included in the coefficient subsets, and the start address of each of the image check coefficient subsets.
可选地,各次需要缓存的图像校验系数子集所包括的图像校验系数的总长度可以相同,也可以不同。Optionally, the total length of the image check coefficients included in the image check coefficient subsets that need to be cached each time may be the same or different.
图像校验系数集在所述闪存中的起始地址、所述图像校验系数集在所述闪存中的终止地址之间的存储区域为连续存储区域。The storage area between the start address of the image check coefficient set in the flash memory and the end address of the image check coefficient set in the flash memory is a continuous storage area.
图像校验系数集在所述闪存中的终止地址是指:图像校验系数集中的最后一个图像校验系数在闪存中的终止地址。The termination address of the image check coefficient set in the flash memory refers to the termination address of the last image check coefficient set in the image check coefficient set in the flash memory.
针对步骤S33进行如下说明:The following describes step S33:
图4为本申请再一实施例提供的图像校验系数的读取方法的流程图,如图4所示,上述步骤S33包括:FIG. 4 is a flowchart of a method for reading an image verification coefficient according to another embodiment of the present application. As shown in FIG. 4, the above step S33 includes:
步骤S331:闪存控制器在中断请求的触发下,根据指示信息确定当前需要缓存的图像校验系数子集的起始地址和当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度。Step S331: The flash memory controller determines, based on the instruction information, the start address of the image check coefficient subset that needs to be cached and the image check coefficient included in the image check coefficient subset that currently needs to be cached according to the instruction information. Total length.
步骤S332:闪存控制器从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据。Step S332: The flash memory controller reads the data of the total length from the flash memory, starting from the start address of the image check coefficient subset that currently needs to be buffered.
具体地,针对指示信息的第一种可选方式,若当前需要缓存的图像校验系数子集为图像校验系数集中的第一个图像校验系数子集,则由于指示信息包括:第一个图像校验系数子集的初始地址以及第一个图像校验系数子集的长度,基于此,闪存控制器直接将第一个图像校验系数子集的初始地址确定为当前需要缓存的图像校验系数子集的初始地址,并将第一个图像校验系数子集所包括的图像校验系数的总长度确定为当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度。若当前需要缓存的图像校验系数子集不是图像校验系数集中的第一个图像校验系数子集,则由于指示信息未包括:当前需要缓存的图像校验系数子集的初始地址,基于此,闪存控制器首先确定上一次成功读取到的图像校验系数子集的初始地址,以及,该图像校验系数所包括的图像校验系数的总长度,计算上一次成功读取到的图像校验系数子集的初始地址与该图像校验系数子集所包括的图像校验系数的总长度之和,得到当前需要缓存的图像校验系数子集的初始地址。而由于当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度携带在指示信息中,因此闪存控制器可以直接在该指示信息中确定当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度。Specifically, with regard to the first optional manner of the indication information, if the currently required subset of image check coefficients to be cached is the first subset of image check coefficients in the image check coefficient set, since the indication information includes: the first The initial address of each image check coefficient subset and the length of the first image check coefficient subset. Based on this, the flash memory controller directly determines the initial address of the first image check coefficient subset as the image that needs to be cached currently. The initial address of the check coefficient subset, and determines the total length of the image check coefficients included in the first image check coefficient subset as the image check coefficients included in the image check coefficient subset that currently needs to be cached. Total length. If the current subset of image check coefficients to be cached is not the first subset of image check coefficients in the image check coefficient set, because the indication information does not include: the initial address of the subset of image check coefficients that currently need to be cached, based on Therefore, the flash memory controller first determines the initial address of the image check coefficient subset that was successfully read last time, and the total length of the image check coefficient included in the image check coefficient, and calculates the last successfully read The sum of the initial address of the image check coefficient subset and the total length of the image check coefficient included in the image check coefficient subset, to obtain the initial address of the image check coefficient subset that needs to be buffered. And because the total length of the image check coefficient included in the image check coefficient subset that needs to be cached is carried in the instruction information, the flash memory controller can directly determine the current image check coefficient subset that needs to be cached in the instruction information. The total length of the image check coefficients included.
针对指示信息的第二种可选方式,由于指示信息包括:图像校验系数集在所述闪存中的起始地址、所述图像校验系数集在所述闪存中的终止地址、每次需要缓存的图像校验系数子集所包括的图像校验系数的总长度,以及,每个所述图像校验系数子集的起始地址,基于此,闪存控制器直接通过指示信息即可确定当前需要缓存的图像校验系数子集的初始地址和其所包括的图像校验系数的总长度。The second optional manner for the indication information is that the indication information includes: a start address of the image check coefficient set in the flash memory, an end address of the image check coefficient set in the flash memory, The total length of the image check coefficient subset included in the cached image check coefficient subset, and the start address of each of the image check coefficient subsets. Based on this, the flash memory controller can directly determine the current through the instruction information. The initial address of the subset of image check coefficients to be cached and the total length of the image check coefficients it contains.
在本申请实施例中,CPU仅向闪存控制器发送一条指示信息,后续闪存控制器只需根据中断请求和该指示信息从所述闪存读取当前需要缓存的图像校验系数子集即可,一方面,可以防止中断请求对CPU的时间占用,以使CPU可以处理其它事务,即提高了CPU的事务处理效率。另一方面,由于本申请实施例无需CPU每接到一次中断请求,CPU就要控制闪存控制器从闪存读取一次图像校验系数,而是内存控制器可以直接根据中断请求读取当前需要缓存的图像校验系数子集,从而提高了图像校验系数的读取效率。In the embodiment of the present application, the CPU sends only one instruction message to the flash memory controller, and subsequent flash memory controllers only need to read a subset of image check coefficients that need to be cached from the flash memory according to the interrupt request and the instruction information. On the one hand, it can prevent the interrupt request from occupying the CPU time, so that the CPU can process other transactions, which improves the transaction efficiency of the CPU. On the other hand, since the embodiment of the present application does not need the CPU to receive an interrupt request every time, the CPU controls the flash memory controller to read the image verification coefficient from the flash memory, but the memory controller can directly read the current cache required according to the interrupt request. A subset of the image check coefficient, thereby improving the reading efficiency of the image check coefficient.
实施例三Example three
结合步骤S21的第二种可选方式对步骤S22进行说明:具体地,图5为本申请又一实施例提供的图像校验系数的读取方法的流程图,如图5所示,该方法包括:Step S22 is described with reference to the second optional method of step S21: Specifically, FIG. 5 is a flowchart of a method for reading an image verification coefficient according to another embodiment of the present application. As shown in FIG. 5, the method include:
步骤S51:闪存控制器获取缓存发送的中断请求。Step S51: The flash memory controller obtains an interrupt request sent by the cache.
步骤S52:闪存控制器从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取图像校验系数子集所包括的图像校验系数的总长度的数据。Step S52: The flash memory controller reads, from the flash memory, the data of the total length of the image check coefficients included in the image check coefficient subset starting from the start address of the image check coefficient subset that currently needs to be buffered.
步骤S53:闪存控制器将当前需要缓存的图像校验系数子集存储至缓存中。Step S53: The flash memory controller stores a subset of image check coefficients that currently needs to be buffered into the buffer.
其中,步骤S52与步骤S21相同,步骤S53与步骤S33相同,本申请实施例对此不再赘述。Among them, step S52 is the same as step S21, and step S53 is the same as step S33, which is not repeated in the embodiment of the present application.
针对步骤S52进行如下说明:The following describes step S52:
由于中断请求包括了当前需要缓存的图像校验系数子集的起始地址和当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度;所述图像校验系数子集为图像校验系数集的子集,所述图像校验系数集由图像处理过程中所需的所有图像校验系数构成。因此闪存控制器从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据。Because the interrupt request includes the starting address of the image check coefficient subset that needs to be cached and the total length of the image check coefficient included in the image check coefficient subset that needs to be cached, the image check coefficient subset is A subset of the image check coefficient set, which is composed of all the image check coefficients required in the image processing process. Therefore, the flash memory controller reads the data of the total length from the flash memory, starting from the start address of the subset of image check coefficients that currently needs to be buffered.
在本申请实施例中,缓存无需向CPU发送中断请求,而是直接向闪存控制器发送中断请求,以使闪存控制器根据中断请求从闪存读取当前需要缓存的图像校验系数子集,并将当前需要缓存的图像校验系数子集存储至缓存中。一方面,可以防止中断请求对CPU的时间占用,以使CPU可以处理其它事务,即提高了CPU的事务处理效率。另一方面,由于本申请实施例无需CPU每接到一次中断请求,CPU就要控制闪存控制器从闪存读取一次图像校验系数,而是内存控制器可以直接根据中断请求读取当前需要缓存的图像校验系数子集,从而提高了图像校验系数的读取效率。In the embodiment of the present application, the cache does not need to send an interrupt request to the CPU, but directly sends an interrupt request to the flash memory controller, so that the flash memory controller reads from the flash memory a subset of image check coefficients that currently need to be cached according to the interrupt request, and Store a subset of image check coefficients that currently need to be cached into the cache. On the one hand, it can prevent the interrupt request from occupying the CPU time, so that the CPU can process other transactions, which improves the transaction efficiency of the CPU. On the other hand, since the embodiment of the present application does not need the CPU to receive an interrupt request every time, the CPU controls the flash memory controller to read the image verification coefficient from the flash memory, but the memory controller can directly read the current cache required according to the interrupt request. A subset of the image check coefficient, thereby improving the reading efficiency of the image check coefficient.
实施例四Embodiment 4
针对步骤S332或步骤S52之前,所述图像校验系数的读取方法还包括:可选地,闪存控制器判断当前需要缓存的图像校验系数子集的起始地址是否小于所述图像校验系数集在所述闪存中的终止地址。若所述当前需要缓存的图像校验系数子集的起始地址小于所述图像校验系数集在所述闪存中的终止 地址,则执行步骤S332或步骤S52。若所述当前需要缓存的图像校验系数子集的起始地址大于或等于所述图像校验系数集在所述闪存中的终止地址,则所述闪存控制器确定当前需要缓存的图像校验系数子集的起始地址为所述图像校验系数集在所述闪存中的起始地址,当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度为所述图像校验系数集中第一个图像校验系数子集所包括的图像校验系数的总长度,接着闪存控制器从所述闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据。For step S332 or step S52, the method for reading image verification coefficients further includes: optionally, the flash memory controller determines whether the start address of the subset of image verification coefficients that currently needs to be buffered is smaller than the image verification The termination address of the coefficient set in the flash memory. If the start address of the image check coefficient subset that currently needs to be buffered is smaller than the end address of the image check coefficient set in the flash memory, step S332 or step S52 is performed. If the start address of the subset of image check coefficients that currently needs to be buffered is greater than or equal to the end address of the set of image check coefficients in the flash memory, the flash memory controller determines the currently needed buffered image check The starting address of the coefficient subset is the starting address of the image verification coefficient set in the flash memory, and the total length of the image verification coefficient included in the image verification coefficient subset that needs to be buffered is the image calibration. The total length of the image check coefficient included in the first image check coefficient subset in the test coefficient set, and then the flash memory controller reads from the flash memory, starting from the start address of the image check coefficient subset that currently needs to be buffered Take the data of the total length.
具体地,结合实施例二对上述内容进行详细说明:Specifically, the above content is described in detail with reference to the second embodiment:
图6为本申请又一实施例提供的图像校验系数的读取方法的流程图,如图6所示,该方法包括如下步骤:FIG. 6 is a flowchart of a method for reading an image check coefficient according to another embodiment of the present application. As shown in FIG. 6, the method includes the following steps:
步骤S61:闪存控制器接收CPU发送的指示信息。Step S61: The flash memory controller receives instruction information sent by the CPU.
步骤S62:闪存控制器获取缓存发送的中断请求。Step S62: The flash memory controller obtains an interrupt request sent by the cache.
步骤S63:闪存控制器在中断请求的触发下,根据指示信息确定当前需要缓存的图像校验系数子集的起始地址和当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度。Step S63: The flash memory controller determines, based on the instruction information, the start address of the image check coefficient subset that needs to be cached and the image check coefficient included in the image check coefficient subset that needs to be cached according to the instruction information. Total length.
步骤S64:闪存控制器判断当前需要缓存的图像校验系数子集的起始地址是否小于所述图像校验系数集在所述闪存中的终止地址;若小于,则执行步骤S65;否则,则执行步骤S66-步骤S67。Step S64: The flash memory controller judges whether the start address of the subset of image check coefficients currently required to be buffered is smaller than the end address of the image check coefficient set in the flash memory; if it is less than step S65, otherwise, then Steps S66 to S67 are performed.
步骤S65:闪存控制器从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据。Step S65: The flash memory controller reads the data of the total length from the flash memory, starting from the start address of the subset of image check coefficients that currently needs to be buffered.
步骤S66:闪存控制器确定当前需要缓存的图像校验系数子集的起始地址为图像校验系数集在闪存中的起始地址,当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度为图像校验系数集中第一个图像校验系数子集所包括的图像校验系数的总长度。Step S66: The flash memory controller determines that the start address of the subset of image check coefficients that needs to be cached is the start address of the set of image check coefficients in the flash memory. The total length of the test coefficients is the total length of the image check coefficients included in the first image check coefficient subset in the image check coefficient set.
步骤S67:闪存控制器从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据。Step S67: The flash memory controller reads the data of the total length from the flash memory, starting from the start address of the subset of image check coefficients that currently needs to be buffered.
步骤S68:闪存控制器将当前需要缓存的图像校验系数子集存储至缓存中。Step S68: The flash memory controller stores a subset of image check coefficients that need to be buffered into the buffer.
其中,步骤S61与步骤S31相同,步骤S62与步骤S32相同,步骤S63与步骤S331相同,步骤S68与步骤S34相同,本申请实施例对此不再赘述。Among them, step S61 is the same as step S31, step S62 is the same as step S32, step S63 is the same as step S331, and step S68 is the same as step S34, which is not described in this embodiment of the present application.
结合步骤S64至步骤S67进行说明:Description is made with reference to steps S64 to S67:
当闪存控制器首次收到中断请求时,闪存控制器将当前需要缓存的图像校验系数子集的起始地址req_address设置为图像校验系数集在内存中的起始地址start_address,从req_address开始读取当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度req_len的数据到缓存中;然后闪存控制器将req_address增加req_len;即req_address=req_address+req_len。接下来,当闪存控制器每次收到中断请求时,首先判断req_address是否小于图像校验系数集在内存中的终止地址end_address,若是,闪存控制器从req_address开始读取当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度的数据到缓存中;然后闪存控制器将req_address增加req_len;即req_address=req_address+req_len。如果req_address大于或等于end_address,表示一帧图像需要的图像校验系数已传输完成,闪存控制器将req_address重新设置为start_address。When the flash controller receives the interrupt request for the first time, the flash controller sets the start address req_address of the subset of image check coefficients that need to be cached to the start address of the image check coefficient set in memory, and reads from req_address. Take the data of the total length of the image check coefficients included in the image check coefficient subset that needs to be buffered into the buffer; then the flash controller adds req_address to req_len; that is, req_address = req_address + req_len. Next, each time the flash memory controller receives an interrupt request, it first determines whether req_address is less than the end address of the image verification coefficient set in memory. If so, the flash memory controller reads the currently verified image verification from req_address. Data of the total length of the image check coefficients included in the coefficient subset are buffered; then the flash memory controller adds req_address to req_len; that is, req_address = req_address + req_len. If req_address is greater than or equal to end_address, it means that the image check coefficient required for one frame of image has been transferred, and the flash controller resets req_address to start_address.
在本申请实施例中,在闪存控制器读取当前需要缓存的图像校验系数子集之前,闪存控制器需要判断当前需要缓存的图像校验系数子集的起始地址是否小于图像校验系数集在闪存中的起始地址;若当前需要缓存的图像校验系数子集的起始地址小于图像校验系数集在闪存中的起始地址,则闪存控制器读取当前需要缓存的图像校验系数子集,否则,则闪存控制器读取图像校验系数集中的第一个图像校验系数子集。从而保证在一帧图像需要的图像校验系数已传输完成时,闪存控制器还是能够精确的获取到当前需要缓存的图像校验系数子集,进而提高了闪存控制器的可靠性。In the embodiment of the present application, before the flash memory controller reads a subset of image check coefficients that currently needs to be cached, the flash memory controller needs to determine whether the start address of the subset of image check coefficients that currently need to be cached is smaller than the image check coefficient Start address set in flash memory; if the start address of the subset of image check coefficients currently needed to be cached is smaller than the start address of the image check coefficient set in flash, the flash memory controller reads the currently calibrated image Check coefficient subset, otherwise, the flash memory controller reads the first subset of image check coefficients in the image check coefficient set. This ensures that when the image check coefficients required for a frame of image have been transmitted, the flash memory controller can still accurately obtain a subset of the image check coefficients that currently need to be cached, thereby improving the reliability of the flash memory controller.
实施例五Example 5
本申请实施例还提供一种闪存控制器,其中闪存控制器用于:获取缓存发送的中断请求;根据中断请求从闪存读取当前需要缓存的图像校验系数子集;将当前需要缓存的图像校验系数子集存储至缓存中。An embodiment of the present application further provides a flash memory controller, where the flash memory controller is configured to: obtain an interrupt request sent by a cache; read a subset of image check coefficients that currently need to be cached from the flash memory according to the interrupt request; A subset of the test coefficients is stored in the cache.
可选地,闪存控制器还用于:接收中央处理器发送的指示信息;相应的,闪存控制器具体用于:根据中断请求和指示信息从闪存读取当前需要缓存的图像校验系数子集。Optionally, the flash memory controller is further configured to: receive instruction information sent by the central processing unit; correspondingly, the flash memory controller is specifically configured to: read the subset of image check coefficients currently required to be cached from the flash memory according to the interrupt request and the instruction information .
可选地,指示信息包括:图像校验系数集在闪存中的起始地址、图像校验系数集在闪存中的终止地址、每次需要缓存的图像校验系数子集所包括的 图像校验系数的总长度;其中,图像校验系数集由图像处理过程中所需的所有图像校验系数构成,图像校验系数子集为图像校验系数集的子集。Optionally, the indication information includes: a start address of the image check coefficient set in the flash memory, an end address of the image check coefficient set in the flash memory, and an image check included in the image check coefficient subset that needs to be cached each time. The total length of the coefficients; among them, the image check coefficient set is composed of all the image check coefficients required in the image processing process, and the image check coefficient subset is a subset of the image check coefficient set.
可选地,指示信息还包括:每个图像校验系数子集的起始地址。Optionally, the indication information further includes: a start address of each image check coefficient subset.
可选地,闪存控制器具体用于:在中断请求的触发下,根据指示信息确定当前需要缓存的图像校验系数子集的起始地址和当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度;从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取总长度的数据。Optionally, the flash memory controller is specifically configured to: under the trigger of the interrupt request, determine the start address of the image check coefficient subset that needs to be cached currently and the image check coefficient subset that needs to be cached according to the instruction information. The total length of the image check coefficient; from the flash memory, the data of the total length is read from the start address of the subset of the image check coefficient that currently needs to be cached.
可选地,Optionally,
当前需要缓存的图像校验系数子集的起始地址和当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度;图像校验系数子集为图像校验系数集的子集,图像校验系数集由图像处理过程中所需的所有图像校验系数构成;相应的,闪存控制器具体用于:从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取总长度的数据。The start address of the image check coefficient subset that needs to be cached and the total length of the image check coefficient included in the image check coefficient subset that needs to be cached; the image check coefficient subset is a subset of the image check coefficient set Set, the image check coefficient set is composed of all the image check coefficients required in the image processing process; correspondingly, the flash memory controller is specifically used to: from the flash memory, from the beginning of the current subset of image check coefficients to be cached The address starts to read the total length of data.
可选地,闪存控制器还用于:判断当前需要缓存的图像校验系数子集的起始地址是否小于图像校验系数集在闪存中的终止地址;相应地,闪存控制器具体用于:若当前需要缓存的图像校验系数子集的起始地址小于图像校验系数集在闪存中的终止地址,则从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取总长度的数据。Optionally, the flash memory controller is further configured to: determine whether a start address of a subset of image check coefficients currently required to be cached is smaller than an end address of the image check coefficient set in the flash memory; accordingly, the flash memory controller is specifically configured to: If the start address of the image check coefficient subset that needs to be cached is less than the end address of the image check coefficient set in the flash memory, then read from the flash memory starting from the start address of the image check coefficient subset that currently needs to be cached. Take the total length of the data.
可选地,闪存控制器还用于:若当前需要缓存的图像校验系数子集的起始地址大于或等于图像校验系数集在闪存中的终止地址,则确定当前需要缓存的图像校验系数子集的起始地址为图像校验系数集在闪存中的起始地址,当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度为图像校验系数集中第一个图像校验系数子集所包括的图像校验系数的总长度;从闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取总长度的数据。Optionally, the flash memory controller is further configured to: if the start address of the subset of image check coefficients currently required to be cached is greater than or equal to the end address of the set of image check coefficients in the flash memory, determine the currently required cached image check The starting address of the coefficient subset is the starting address of the image verification coefficient set in the flash memory. The total length of the image verification coefficient included in the image verification coefficient subset that needs to be cached is the first in the image verification coefficient set. The total length of the image check coefficients included in the image check coefficient subset; from the flash memory, the data of the total length is read from the start address of the image check coefficient subset that currently needs to be buffered.
本申请实施例提供的闪存控制器可用于执行上述的图像校验系数的读取方法,其内容和效果可参考方法部分,本申请实施例对此不做限制。The flash memory controller provided in the embodiment of the present application may be used to execute the above-mentioned method for reading the image verification coefficient. For the content and effect, refer to the method section, which is not limited in the embodiment of the present application.
实施例六Example Six
图7为本申请一实施例提供的一种图像校验系数的读取系统70的示意图,如图7所示,该系统包括:缓存71、闪存72、CPU73和用于实现图像校验系 数的读取方法的闪存控制器74。FIG. 7 is a schematic diagram of an image check coefficient reading system 70 according to an embodiment of the present application. As shown in FIG. 7, the system includes: a cache 71, a flash memory 72, a CPU 73, and an image check coefficient. Read method of flash controller 74.
可选地,该系统70还包括:图像传感器75和ISP76。Optionally, the system 70 further includes: an image sensor 75 and an ISP 76.
其中,图像传感器75用于采集图像;ISP76用于获取图像传感器75采集的图像,并从缓存71中获取当前需要缓存的图像校验系数子集,根据当前需要缓存的图像校验系数子集处理图像传感器75采集的图像。Among them, the image sensor 75 is used to collect images; the ISP 76 is used to acquire the images collected by the image sensor 75, and from the cache 71, to obtain a subset of the image check coefficients that need to be cached, and to process according to the subset of the image check coefficients that are currently cached. An image captured by the image sensor 75.
本申请实施例提供的图像校验系数的读取系统中的闪存控制器可用于执行上述的图像校验系数的读取方法,其内容和效果可参考方法部分,本申请实施例对此不做限制。The flash memory controller in the image check coefficient reading system provided by the embodiment of the present application can be used to execute the above-mentioned method for reading the image check coefficient. For the content and effect, refer to the method part, which is not done in the embodiment of the present application. limit.
实施例七Example Seven
本申请一实施例还提供一种计算机存储介质,存储介质包括计算机指令,当指令被计算机执行时,使得计算机实现如上述的图像校验系数的读取方法。An embodiment of the present application further provides a computer storage medium. The storage medium includes computer instructions. When the instructions are executed by a computer, the computer enables the computer to implement the method for reading the image check coefficient as described above.
实施例八Example eight
本申请一实施例还提供一种计算机程序产品,包括:计算机指令,当指令被计算机执行时,使得计算机实现如上述的图像校验系数的读取方法。An embodiment of the present application further provides a computer program product, including: computer instructions that, when executed by a computer, cause the computer to implement the method for reading an image check coefficient as described above.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。A person of ordinary skill in the art may understand that all or part of the steps of implementing the foregoing method embodiments may be implemented by a program instructing related hardware. The aforementioned program may be stored in a computer-readable storage medium. When the program is executed, the steps including the foregoing method embodiments are executed; and the foregoing storage medium includes: various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disc.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention, but not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or to replace some or all of the technical features equivalently; and these modifications or replacements do not depart from the essence of the corresponding technical solutions of the technical solutions of the embodiments of the present invention. range.

Claims (19)

  1. 一种图像校验系数的读取方法,其特征在于,包括:A method for reading an image check coefficient is characterized in that it includes:
    闪存控制器获取缓存发送的中断请求;The flash controller obtains the interrupt request sent by the cache;
    所述闪存控制器根据所述中断请求从闪存读取当前需要缓存的图像校验系数子集;Reading, by the flash memory controller, a subset of image check coefficients that currently need to be buffered from the flash memory according to the interrupt request;
    所述闪存控制器将当前需要缓存的图像校验系数子集存储至所述缓存中。The flash memory controller stores a subset of image check coefficients that currently need to be buffered into the buffer.
  2. 根据权利要求1所述的方法,其特征在于,所述闪存控制器获取缓存发送的中断请求之前,还包括:The method according to claim 1, before the flash memory controller obtaining the interrupt request sent by the cache, further comprising:
    所述闪存控制器接收中央处理器发送的指示信息;Receiving, by the flash memory controller, instruction information sent by a central processing unit;
    相应的,所述闪存控制器根据所述中断请求从闪存读取当前需要缓存的图像校验系数子集,包括:Correspondingly, the flash memory controller reading the current subset of image check coefficients to be cached from the flash memory according to the interrupt request includes:
    所述闪存控制器根据所述中断请求和所述指示信息从所述闪存读取当前需要缓存的图像校验系数子集。The flash memory controller reads, from the flash memory, a subset of image check coefficients that currently need to be buffered according to the interrupt request and the instruction information.
  3. 根据权利要求2所述的方法,其特征在于,所述指示信息包括:图像校验系数集在所述闪存中的起始地址、所述图像校验系数集在所述闪存中的终止地址、每次需要缓存的图像校验系数子集所包括的图像校验系数的总长度;The method according to claim 2, wherein the indication information comprises: a start address of the image check coefficient set in the flash memory, an end address of the image check coefficient set in the flash memory, The total length of the image check coefficients included in the subset of image check coefficients to be cached each time;
    其中,所述图像校验系数集由图像处理过程中所需的所有图像校验系数构成,所述图像校验系数子集为所述图像校验系数集的子集。The image check coefficient set is composed of all the image check coefficients required in the image processing process, and the image check coefficient subset is a subset of the image check coefficient set.
  4. 根据权利要求3所述的方法,其特征在于,所述指示信息还包括:每个所述图像校验系数子集的起始地址。The method according to claim 3, wherein the indication information further comprises: a start address of each of the image check coefficient subsets.
  5. 根据权利要求3或4所述的方法,其特征在于,所述闪存控制器根据所述中断请求和所述指示信息从所述闪存读取当前需要缓存的图像校验系数子集,包括:The method according to claim 3 or 4, wherein the flash memory controller reading the subset of image check coefficients that currently needs to be cached from the flash memory according to the interrupt request and the instruction information, comprises:
    所述闪存控制器在所述中断请求的触发下,根据所述指示信息确定当前需要缓存的图像校验系数子集的起始地址和当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度;When triggered by the interrupt request, the flash memory controller determines, according to the instruction information, a start address of a subset of image check coefficients that currently needs to be cached and an image calibration included in the subset of image check coefficients that currently needs to be cached. Total length of the test coefficient;
    所述闪存控制器从所述闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据。The flash memory controller reads the data of the total length from the flash memory, starting from a start address of a subset of image check coefficients that currently needs to be buffered.
  6. 根据权利要求1所述的方法,其特征在于,所述中断请求包括:当前 需要缓存的图像校验系数子集的起始地址和当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度;所述图像校验系数子集为图像校验系数集的子集,所述图像校验系数集由图像处理过程中所需的所有图像校验系数构成;The method according to claim 1, wherein the interrupt request comprises: a start address of a subset of image check coefficients that currently needs to be buffered and an image check included in the subset of image check coefficients that currently need to be buffered The total length of the coefficients; the image check coefficient subset is a subset of the image check coefficient set, and the image check coefficient set is composed of all the image check coefficients required in the image processing process;
    相应的,所述闪存控制器根据所述中断请求从闪存读取当前需要缓存的图像校验系数子集,包括:Correspondingly, the flash memory controller reading the current subset of image check coefficients to be cached from the flash memory according to the interrupt request includes:
    所述闪存控制器从所述闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据。The flash memory controller reads the data of the total length from the flash memory, starting from a start address of a subset of image check coefficients that currently needs to be buffered.
  7. 根据权利要求5或6所述的方法,其特征在于,所述闪存控制器从所述闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据之前,还包括:The method according to claim 5 or 6, wherein the flash memory controller reads the data of the total length from the flash memory, starting from a start address of a subset of image check coefficients that currently needs to be buffered. Before, it also included:
    所述闪存控制器判断当前需要缓存的图像校验系数子集的起始地址是否小于所述图像校验系数集在所述闪存中的终止地址;The flash memory controller determining whether a start address of a subset of image check coefficients that currently needs to be buffered is smaller than an end address of the image check coefficient set in the flash memory;
    相应地,所述闪存控制器从所述闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据,包括:Correspondingly, the flash memory controller reads the data of the total length from the flash memory, starting from a start address of a subset of image check coefficients that currently needs to be buffered, including:
    若所述当前需要缓存的图像校验系数子集的起始地址小于所述图像校验系数集在所述闪存中的终止地址,则所述闪存控制器从所述闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据。If the start address of the subset of image check coefficients that currently needs to be cached is smaller than the end address of the image check coefficient set in the flash memory, the flash memory controller will cache the current set of cache memory coefficients from the flash memory. The start address of the subset of image check coefficients starts to read the data of the total length.
  8. 根据权利要求7所述的方法,其特征在于,还包括:The method according to claim 7, further comprising:
    若所述当前需要缓存的图像校验系数子集的起始地址大于或等于所述图像校验系数集在所述闪存中的终止地址,则所述闪存控制器确定当前需要缓存的图像校验系数子集的起始地址为所述图像校验系数集在所述闪存中的起始地址,当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度为所述图像校验系数集中第一个图像校验系数子集所包括的图像校验系数的总长度;If the start address of the subset of image check coefficients that currently needs to be buffered is greater than or equal to the end address of the set of image check coefficients in the flash memory, the flash memory controller determines the currently needed buffered image check The starting address of the coefficient subset is the starting address of the image verification coefficient set in the flash memory, and the total length of the image verification coefficient included in the image verification coefficient subset that needs to be buffered is the image calibration. The total length of the image check coefficients included in the first image check coefficient subset of the test coefficient set;
    所述闪存控制器从所述闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据。The flash memory controller reads the data of the total length from the flash memory, starting from a start address of a subset of image check coefficients that currently needs to be buffered.
  9. 一种闪存控制器,其特征在于,包括:所述闪存控制器用于:A flash memory controller, comprising: the flash memory controller is used for:
    获取缓存发送的中断请求;Get the interrupt request sent by the cache;
    根据所述中断请求从闪存读取当前需要缓存的图像校验系数子集;Reading a subset of image check coefficients that currently need to be cached from the flash memory according to the interrupt request;
    将当前需要缓存的图像校验系数子集存储至所述缓存中。A subset of image check coefficients that currently need to be cached is stored in the cache.
  10. 根据权利要求9所述的闪存控制器,其特征在于,所述闪存控制器还用于:The flash memory controller according to claim 9, wherein the flash memory controller is further configured to:
    接收中央处理器发送的指示信息;Receiving instruction information sent by the central processing unit;
    相应的,所述闪存控制器具体用于:Accordingly, the flash memory controller is specifically configured to:
    根据所述中断请求和所述指示信息从所述闪存读取当前需要缓存的图像校验系数子集。And reading a subset of image check coefficients that currently need to be buffered from the flash memory according to the interrupt request and the instruction information.
  11. 根据权利要求10所述的闪存控制器,其特征在于,所述指示信息包括:图像校验系数集在所述闪存中的起始地址、所述图像校验系数集在所述闪存中的终止地址、每次需要缓存的图像校验系数子集所包括的图像校验系数的总长度;The flash memory controller according to claim 10, wherein the indication information comprises: a start address of an image check coefficient set in the flash memory, and an end of the image check coefficient set in the flash memory Address, total length of image check coefficients included in the subset of image check coefficients to be cached each time;
    其中,所述图像校验系数集由图像处理过程中所需的所有图像校验系数构成,所述图像校验系数子集为所述图像校验系数集的子集。The image check coefficient set is composed of all the image check coefficients required in the image processing process, and the image check coefficient subset is a subset of the image check coefficient set.
  12. 根据权利要求11所述的闪存控制器,其特征在于,所述指示信息还包括:每个所述图像校验系数子集的起始地址。The flash memory controller according to claim 11, wherein the indication information further comprises: a start address of each of the image check coefficient subsets.
  13. 根据权利要求11或12所述的闪存控制器,其特征在于,所述闪存控制器具体用于:The flash memory controller according to claim 11 or 12, wherein the flash memory controller is specifically configured to:
    在所述中断请求的触发下,根据所述指示信息确定当前需要缓存的图像校验系数子集的起始地址和当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度;Triggered by the interrupt request, determining a start address of a subset of image check coefficients that currently needs to be cached and a total length of image check coefficients included in the subset of image check coefficients that currently need to be cached according to the instruction information ;
    从所述闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据。The total length of data is read from the flash memory starting from the start address of the subset of image check coefficients that currently needs to be cached.
  14. 根据权利要求9所述的闪存控制器,其特征在于,当前需要缓存的图像校验系数子集的起始地址和当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度;所述图像校验系数子集为图像校验系数集的子集,所述图像校验系数集由图像处理过程中所需的所有图像校验系数构成;The flash memory controller according to claim 9, wherein the start address of the subset of image check coefficients that currently needs to be buffered and the total length of the image check coefficients included in the subset of image check coefficients that need to be currently buffered The image check coefficient subset is a subset of the image check coefficient set, and the image check coefficient set is composed of all the image check coefficients required in the image processing process;
    相应的,所述闪存控制器具体用于:Accordingly, the flash memory controller is specifically configured to:
    从所述闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据。The total length of data is read from the flash memory starting from the start address of the subset of image check coefficients that currently needs to be cached.
  15. 根据权利要求13或14所述的闪存控制器,其特征在于,所述闪存 控制器还用于:The flash memory controller according to claim 13 or 14, wherein the flash memory controller is further configured to:
    判断当前需要缓存的图像校验系数子集的起始地址是否小于所述图像校验系数集在所述闪存中的终止地址;Determining whether a start address of a subset of image check coefficients that needs to be buffered currently is less than an end address of the image check coefficient set in the flash memory;
    相应地,所述闪存控制器具体用于:Accordingly, the flash memory controller is specifically configured to:
    若所述当前需要缓存的图像校验系数子集的起始地址小于所述图像校验系数集在所述闪存中的终止地址,则从所述闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据。If the start address of the subset of image check coefficients that currently needs to be cached is less than the end address of the image check coefficient set in the flash memory, The start address of the subset begins to read the data of the total length.
  16. 根据权利要求15所述的闪存控制器,其特征在于,所述闪存控制器还用于:The flash memory controller according to claim 15, wherein the flash memory controller is further configured to:
    若所述当前需要缓存的图像校验系数子集的起始地址大于或等于所述图像校验系数集在所述闪存中的终止地址,则确定当前需要缓存的图像校验系数子集的起始地址为所述图像校验系数集在所述闪存中的起始地址,当前需要缓存的图像校验系数子集所包括的图像校验系数的总长度为所述图像校验系数集中第一个图像校验系数子集所包括的图像校验系数的总长度;If the start address of the subset of image check coefficients that currently needs to be cached is greater than or equal to the end address of the set of image check coefficients in the flash memory, determine the start of the subset of image check coefficients that currently need to be cached The start address is the start address of the image check coefficient set in the flash memory, and the total length of the image check coefficient included in the image check coefficient subset that needs to be cached is the first in the image check coefficient set. The total length of the image check coefficients included in the image check coefficient subsets;
    从所述闪存中,自当前需要缓存的图像校验系数子集的起始地址开始读取所述总长度的数据。The total length of data is read from the flash memory starting from the start address of the subset of image check coefficients that currently needs to be cached.
  17. 一种图像校验系数的读取系统,其特征在于,包括:缓存、闪存、中央处理器和用于实现权利要求1-8任一项所述方法的闪存控制器。A system for reading image check coefficients, comprising: a cache, a flash memory, a central processing unit, and a flash memory controller for implementing the method according to any one of claims 1-8.
  18. 根据权利要求17所述的系统,其特征在于,还包括:图像传感器和图像信号处理器;The system according to claim 17, further comprising: an image sensor and an image signal processor;
    所述图像传感器用于采集图像;The image sensor is used to acquire an image;
    所述图像信号处理器用于获取所述图像传感器采集的图像,并从所述缓存中获取所述当前需要缓存的图像校验系数子集,根据所述当前需要缓存的图像校验系数子集处理所述图像传感器采集的图像。The image signal processor is configured to obtain an image collected by the image sensor, and obtain the subset of image check coefficients that currently needs to be cached from the cache, and process according to the subset of image check coefficients that currently need to be cached. An image acquired by the image sensor.
  19. 一种计算机存储介质,其特征在于,所述存储介质包括计算机指令,当所述指令被计算机执行时,使得所述计算机实现如权利要求1至8中任一项权利要求所述的方法。A computer storage medium, wherein the storage medium comprises computer instructions, and when the instructions are executed by a computer, the computer is caused to implement the method according to any one of claims 1 to 8.
PCT/CN2018/106472 2018-09-19 2018-09-19 Method for reading image check coefficient, flash memory controller, system and storage medium WO2020056622A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/106472 WO2020056622A1 (en) 2018-09-19 2018-09-19 Method for reading image check coefficient, flash memory controller, system and storage medium
CN201880001521.5A CN109313608B (en) 2018-09-19 2018-09-19 Image verification coefficient reading method, flash memory controller, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/106472 WO2020056622A1 (en) 2018-09-19 2018-09-19 Method for reading image check coefficient, flash memory controller, system and storage medium

Publications (1)

Publication Number Publication Date
WO2020056622A1 true WO2020056622A1 (en) 2020-03-26

Family

ID=65221662

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/106472 WO2020056622A1 (en) 2018-09-19 2018-09-19 Method for reading image check coefficient, flash memory controller, system and storage medium

Country Status (2)

Country Link
CN (1) CN109313608B (en)
WO (1) WO2020056622A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3891614B1 (en) 2019-04-30 2023-06-21 Yangtze Memory Technologies Co., Ltd. Electronic apparatus and method of managing read levels of flash memory

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571790A (en) * 2008-04-29 2009-11-04 环达电脑(上海)有限公司 Flash memory controller
CN101620581A (en) * 2008-07-03 2010-01-06 西安奇维测控科技有限公司 Structure of double-port RAM for realizing flash memory controller cache and method for realizing same
CN105608027A (en) * 2015-12-18 2016-05-25 华为技术有限公司 Non-volatile storage device and method for accessing non-volatile storage device
CN106168932A (en) * 2016-06-29 2016-11-30 联想(北京)有限公司 A kind of Flash control method and device

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100678047B1 (en) * 2004-05-06 2007-02-02 삼성전자주식회사 Mobile communication terminal having nand flash memory and booting method thereof
CN101140809A (en) * 2007-09-07 2008-03-12 炬力集成电路设计有限公司 Flash controller supporting pipelined error-correcting code and configurable operations and control method thereof
CN101478635A (en) * 2008-12-11 2009-07-08 康佳集团股份有限公司 Fingerprint identity recognition system and method for finger print image setting and verification
US8291175B2 (en) * 2009-10-16 2012-10-16 Oracle America, Inc. Processor-bus attached flash main-memory module
KR102012436B1 (en) * 2012-09-17 2019-08-20 휴렛-팩커드 디벨롭먼트 컴퍼니, 엘.피. Image forming apparatus, driving method thereof, and computer-readable recording medium
CN102984233B (en) * 2012-11-19 2016-03-30 北京奇虎科技有限公司 For carrying out the apparatus and method of transfer of data in remote assistance
CN103247035B (en) * 2013-05-20 2017-07-11 重庆邮电大学 Medical image processing devices, method and system based on digital X-ray machine
CN104239271A (en) * 2014-09-16 2014-12-24 中国科学院光电技术研究所 Simulated image player realized by adopting FPGA (Field Programmable Gate Array) and DSP (Digital Signal Processing)
US9697796B2 (en) * 2015-03-26 2017-07-04 Intel Corporation Adaptive linear luma domain video pipeline architecture
CN106612120B (en) * 2016-12-16 2020-03-27 北京华航无线电测量研究所 CRC32 checking method for SAR imaging system
JP6827798B2 (en) * 2016-12-21 2021-02-10 キヤノン株式会社 Image forming apparatus, control method of image forming apparatus, program.
CN107347158A (en) * 2017-06-01 2017-11-14 西南电子技术研究所(中国电子科技集团公司第十研究所) Aircraft load terminal image compression method
CN107613260A (en) * 2017-09-29 2018-01-19 北京航天福道高技术股份有限公司 A kind of IMAQ analysis system and method
CN108171662B (en) * 2017-12-18 2020-08-07 珠海全志科技股份有限公司 Method for reading image compression data and anti-distortion method comprising same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101571790A (en) * 2008-04-29 2009-11-04 环达电脑(上海)有限公司 Flash memory controller
CN101620581A (en) * 2008-07-03 2010-01-06 西安奇维测控科技有限公司 Structure of double-port RAM for realizing flash memory controller cache and method for realizing same
CN105608027A (en) * 2015-12-18 2016-05-25 华为技术有限公司 Non-volatile storage device and method for accessing non-volatile storage device
CN106168932A (en) * 2016-06-29 2016-11-30 联想(北京)有限公司 A kind of Flash control method and device

Also Published As

Publication number Publication date
CN109313608A (en) 2019-02-05
CN109313608B (en) 2023-05-02

Similar Documents

Publication Publication Date Title
CN108737738B (en) Panoramic camera and exposure method and device thereof
US7877777B2 (en) Network camera apparatus and distributing method of video frames
KR102134944B1 (en) Method and system for bandwidth-dependent file transfer
US9940732B2 (en) Implementing reduced video stream bandwidth requirements when remotely rendering complex computer graphics scene
WO2020056622A1 (en) Method for reading image check coefficient, flash memory controller, system and storage medium
US20190245903A1 (en) Web-based content recording and adaptive streaming
US11076092B2 (en) Image processing apparatus, image processing method, and image processing program
JP2012050082A (en) Method of determining movement of optical axis, and apparatus of determining movement of optical axis
KR102126370B1 (en) Apparatus and method for analyzing motion
US20160142456A1 (en) Method and Device for Acquiring Media File
CN109121194B (en) Method and apparatus for state transition of electronic device
CN110740138A (en) Data transmission method and device
US20120106860A1 (en) Image processing device and image processing method
KR20210057442A (en) Vehicle and control method for the same
JP6841097B2 (en) Movement amount calculation program, movement amount calculation method, movement amount calculation device and business support system
WO2018177050A1 (en) Object recognition method, device and system
WO2019114044A1 (en) Image processing method and device, electronic apparatus, and computer readable storage medium
WO2017121040A1 (en) Image display method and device for screen
US8526672B2 (en) Object detection apparatus and method thereof
CN109587403A (en) A kind of shooting bootstrap technique and device
US11659194B2 (en) Method of adjusting bitrate of image and image capturing apparatus
JP7489225B2 (en) IMAGE PROCESSING SYSTEM, INFORMATION PROCESSING APPARATUS, PROGRAM, AND IMAGE PROCESSING METHOD
CN113329170B (en) Image shake correction method, image shake correction apparatus, computer device, and readable storage medium
CN117834949B (en) Real-time interaction prerendering method and device based on edge intelligence
US20150235349A1 (en) Image processing apparatus, image processing method, and computer-readable recording medium

Legal Events

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

Ref document number: 18934317

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

Country of ref document: EP

Kind code of ref document: A1