WO2023020503A1 - Image processing chip, method, application processing chip, and electronic device - Google Patents

Image processing chip, method, application processing chip, and electronic device Download PDF

Info

Publication number
WO2023020503A1
WO2023020503A1 PCT/CN2022/112845 CN2022112845W WO2023020503A1 WO 2023020503 A1 WO2023020503 A1 WO 2023020503A1 CN 2022112845 W CN2022112845 W CN 2022112845W WO 2023020503 A1 WO2023020503 A1 WO 2023020503A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
image
image processing
processing chip
information
Prior art date
Application number
PCT/CN2022/112845
Other languages
French (fr)
Chinese (zh)
Inventor
崔惠婷
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023020503A1 publication Critical patent/WO2023020503A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/54Mounting of pick-up tubes, electronic image sensors, deviation or focusing coils
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/741Circuitry for compensating brightness variation in the scene by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/12Systems in which the television signal is transmitted via one channel or a plurality of parallel channels, the bandwidth of each channel being less than the bandwidth of the television signal

Definitions

  • the present application relates to the technical field of image processing, in particular to an image processing chip, method, application processing chip and electronic equipment.
  • users usually use electronic devices with cameras (such as digital cameras, smart phones, etc.) to take images, so as to record what happens around them, the scenery they see, etc. anytime and anywhere.
  • electronic devices in order to improve the quality of captured images, electronic devices usually perform specific image processing on the captured original images. For example, it is possible to capture multiple frames of images, perform high dynamic composite processing on the multiple frames of images to obtain a high dynamic composite image, or perform multi-frame composite noise reduction processing on the multiple frames of images to obtain a noise-reduced composite image, and the like.
  • the image sensor in the camera needs to occupy multiple data transmission channels of the application processing chip to transmit the captured multiple frames of images to the application processing chip for image processing.
  • the present application provides an image processing chip, an application processing chip, electronic equipment, and an image processing method, which can reduce the occupation of image data on the data transmission channel of the application processing chip, thereby reducing the impact of image data on other types of data transmission and processing.
  • the application discloses an image processing chip, including:
  • the data packaging unit is used to acquire N frames of RAW images, where N is a positive integer greater than 1; and according to the image processing requirement information of the application processing chip, the image data in the acquired N frames of RAW images are reorganized into M data blocks, and M is a positive integer greater than 1; and encapsulates M data blocks into L data packets, where L is a positive integer less than N;
  • the image processing chip is used to transmit the L data packets to the application processing chip.
  • the present application also discloses an application processing chip for transmitting image processing requirement information to the image processing chip, and obtaining L data packets corresponding to the image processing requirement information from the image processing chip, including:
  • an image processing unit configured to generate image processing requirement information
  • the data unpacking unit is used to split L data packets into M data blocks and perform parallel parsing to obtain image data.
  • L data packets are obtained by reassembling the image data in N frames of RAW images into M data blocks and then encapsulating them.
  • N and M are positive integers greater than 1, and L is a positive integer smaller than N;
  • the image processing unit is also used to perform image processing on the analyzed image data.
  • the present application discloses an electronic device, including an image processing chip and an application processing chip, wherein,
  • the application processing chip is used to generate image processing requirement information, and transmit the image processing requirement information to the image processing chip;
  • the image processing chip is used to obtain N frames of RAW images, N being a positive integer greater than 1; and reorganizing the image data in the N frames of RAW images into M data blocks according to the image processing requirement information, and M being a positive integer greater than 1; and Encapsulate M data blocks into L data packets and transmit them to the application processing chip, where L is a positive integer smaller than N;
  • the application processing chip is also used to split the L data packets into M data blocks, perform parallel parsing to obtain image data, and perform image processing on the parsed image data.
  • the present application discloses an image processing method applied to an image processing chip, including:
  • N is a positive integer greater than 1;
  • the image data in the N frames of RAW images are reorganized into M data blocks, and M is a positive integer greater than 1;
  • the present application discloses an image processing method applied to an application processing chip, including:
  • L data packets are obtained by reorganizing image data in N frames of RAW images into M data blocks and encapsulating them. N and M are greater than 1 A positive integer, L is a positive integer less than N;
  • Image processing is performed on the analyzed image data.
  • FIG. 1 is a schematic structural diagram of an image processing chip provided by an embodiment of the present application.
  • FIG. 2 is an example diagram of reorganizing 3 frames of RAW images into 2 data blocks by the data packing unit in the embodiment of the present application.
  • Fig. 3 is an example diagram of reorganizing 2 frames of RAW images into 2 data blocks by the data packing unit in the embodiment of the present application.
  • FIG. 4 is a schematic diagram of a comparison between the packetized transmission mode provided by the embodiment of the present application and related technologies.
  • FIG. 5 is an example diagram of unpacking, parsing and image processing of data packets transmitted by the image processing chip by using the processing chip in the embodiment of the present application.
  • FIG. 6 is an exemplary diagram of an ROI of a shooting scene in an embodiment of the present application.
  • FIG. 7 is an example diagram of reorganizing image data into data blocks by the data packing unit in the embodiment of the present application.
  • FIG. 8 is a schematic diagram of block division of a row of image data in a RAW image in an embodiment of the present application.
  • FIG. 9 is an example diagram of encapsulating reassembled data blocks into data packets in the embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of an application processing chip provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 12 is a schematic flow chart of an image processing method adopted in the embodiment of the present application.
  • FIG. 13 is another schematic flowchart of the image processing method provided by the embodiment of the present application.
  • electronic devices with cameras (such as digital cameras, smart phones, etc.) to take images, so as to record what happens around them, the scenery they see, etc. anytime and anywhere.
  • electronic devices in order to improve the quality of captured images, electronic devices usually perform specific image processing on the captured original images. For example, it is possible to capture multiple frames of images, perform high dynamic composite processing on the multiple frames of images to obtain a high dynamic composite image, or perform multi-frame composite noise reduction processing on the multiple frames of images to obtain a noise-reduced composite image, and the like.
  • the image sensor in the camera needs to occupy multiple data transmission channels of the application processing chip to transmit the captured multi-frame images to the application processing chip for image processing.
  • the data transmission of the application processing chip The number of channels is limited. When the data transmission channel is occupied by too much image data, it will affect the transmission and processing of other types of data.
  • FIG. 1 is a schematic structural diagram of an image processing chip 100 provided by an embodiment of the present application.
  • the image processing chip 100 includes a first data interface unit 110, a data packing unit 120 and a second data interface Unit 130.
  • the image processing chip 100 provided in this application can be configured in an electronic device equipped with an image sensor and an application processing chip (which may be integrated with a central processing unit, a modem, and an image signal processor, etc.), for processing according to the application
  • the image processing demand information of the chip, the image data in N (a positive integer greater than 1) frames of RAW images from the image sensor is reorganized into M (a positive integer greater than 1) data blocks, and the M data
  • the block is encapsulated into L (a positive integer less than N) data packets and then transmitted to the application processing chip for image processing on demand by the application processing chip.
  • the physical type of the electronic device may be a mobile electronic device such as a smart phone, a tablet computer, a palmtop computer, or a notebook computer, or may be a fixed electronic device such as a desktop computer or a television, which is not specifically limited in this application.
  • the first data interface unit 110 is used to provide a data transmission channel between the image sensor and the image processing chip 100 to realize data transmission between the image sensor and the image processing chip 100 .
  • the entity type of the data interface unit 110 is not specifically limited to the embodiment of the present application of the first data interface unit 110 here, including but not limited to Mobile Industry Processor Interface (Mobile Industry Processor Interface, MIPI), PCI-E interface wait.
  • the entity type of the first data interface unit 110 is a mobile industry processor interface.
  • the image processing chip 100 can acquire N frames of unprocessed original RAW images collected by the image sensor from the image sensor through the first data interface unit 110 , where N is a positive integer greater than 1.
  • the image processing chip 100 may further include an image preprocessing unit configured to perform image preprocessing on the N frames of RAW images acquired by the image processing chip 100 from the image sensor to obtain preprocessed The next N frames of RAW images.
  • the image preprocessing performed by the image preprocessing unit can be understood as the image processing performed before the application processing chip performs image processing, which is constrained to be different from the image processing performed by the application processing chip, and can be of any type
  • the image processing can be specifically configured by those skilled in the art according to actual needs.
  • the image preprocessing unit may include two image processing subunits, respectively a first image processing subunit for traditional image processing, and a second image processing subunit for artificial intelligence-based image processing, which can be configured according to actual needs
  • the image processing required by the first image processing subunit including but not limited to image processing methods such as bad pixel correction processing, temporal noise reduction processing, 3D noise reduction processing, linearization processing, and black level correction processing
  • the image processing required by the second image processing sub-unit including but not limited to image processing methods such as super-resolution processing and noise reduction processing based on artificial intelligence).
  • the image processing chip 100 can perform image preprocessing on the N frames of RAW images from the image sensor through the image preprocessing unit as required, or not perform image preprocessing on the N frames of RAW images from the image sensor.
  • the data packaging unit 120 is configured to acquire N frames of RAW images, and reorganize the acquired N frames of RAW images into M data blocks according to the image processing requirement information of the application processing chip, and package the M data blocks into L data blocks. Bag.
  • the image processing requirement information is used to describe the image processing requirement of the application processing chip, including but not limited to what type of image processing to perform and how to perform image processing.
  • the N frames of RAW images acquired by the data packing unit 120 may be the unprocessed N frames of RAW images directly acquired by the image processing chip 100 from the image sensor, or the N frames of RAW images preprocessed by the image preprocessing unit. image.
  • the data packaging unit 120 reorganizes the image data in the N frames of RAW images according to the image processing requirement information of the application processing chip, and correspondingly obtains M frames matching the image processing requirements of the application processing chip.
  • Data blocks, the image data in each data block can be independently used in the image processing of the application processing chip.
  • the data packing unit 120 further packs the M data blocks into L data packets according to the configured data packing strategy.
  • image processing requirement information can describe:
  • the application processing chip needs to use 3 frames of RAW images of the same shooting scene for high dynamic range synthesis processing, and it is necessary to perform high dynamic range synthesis processing on the region of interest (Region of Interest, ROI) of the shooting scene first, and then perform high dynamic range synthesis processing on the non-identical images of the shooting scene. Regions of interest are processed for high dynamic range synthesis.
  • ROI region of interest
  • the image sensor can collect the RAW images of the aforementioned three frames of the shooting scene with different exposure parameters, which are the long-exposure RAW image, the medium-exposure RAW image and the short-exposure RAW image.
  • the image processing chip 100 acquires a long-exposure RAW image, a medium-exposure RAW image and a short-exposure RAW image from the image sensor through the first data interface unit 110 .
  • the data packing unit 120 reorganizes the image data of the region of interest in the long-exposure RAW image, the medium-exposure RAW image, and the short-exposure RAW image into a data block (ie, data block 1) according to the above image processing requirement information,
  • the image data of the non-interest regions in the long-exposure RAW image, the medium-exposure RAW image and the short-exposure RAW image are reorganized into another data block (ie, data block 2).
  • the image data in the 3 frames of RAW images are reorganized into 2 data blocks, and each data block includes all the image data required by the application processing chip for high dynamic range synthesis processing.
  • image processing requirement information can describe:
  • the application processing chip needs to use 2 frames of RAW images of the same shooting scene to perform composite noise reduction processing, and different degrees of composite noise reduction processing need to be performed on the in-focus area and non-focus area of the shooting scene.
  • the image sensor can collect two frames of RAW images of the aforementioned shooting scene, which are RAW image 1 and RAW image 2 respectively.
  • the image processing chip 100 acquires the RAW image 1 and the RAW image 2 from the image sensor through the first data interface unit 110 .
  • the data packing unit 120 reorganizes the image data of the in-focus areas in the RAW image 1 and the RAW image 2 into one data block (that is, data block 3) according to the above image processing requirement information, and combines the RAW image 1 and the RAW image 2
  • the image data of the central non-focus area is reorganized into another data block (ie, data block 4).
  • data block 4 the image data in the 2 frames of RAW images are reorganized into 2 data blocks, and each data block includes all the image data required by the application processing chip for synthetic noise reduction processing.
  • the second data interface unit 130 is used to provide a data transmission channel between the application processing chip and the image processing chip 100 to realize data transmission between the application processing chip and the image processing chip 100 .
  • the entity type of the second data interface unit 130 is not specifically limited, including but not limited to Mobile Industry Processor Interface (MIPI), PCI-E interface, and the like.
  • MIPI Mobile Industry Processor Interface
  • PCI-E interface PCI-E interface
  • the entity type of the second data interface unit 130 is a mobile industry processor interface.
  • the image processing chip 100 transmits the L data packets packaged by the data packaging unit 120 to the application processing chip through the second data interface unit 130 for the application processing chip to perform image processing. It can be understood that since N frames of RAW images are packaged into L data packets, it only needs to occupy at most L data transmission channels of the application processing chip for transmission.
  • the data packing unit 120 does not directly pack the N frames of RAW images into data packets, but reorganizes the image data in the N frames of RAW images into M data blocks, and The M data blocks are matched with the image processing required by the application processing chip, and then the M data blocks are packaged into L data packets.
  • the application processing chip receives the data packet transmitted by the image processing chip 100 through the second data interface unit 130, it can split the data packet into M data blocks and perform parallel analysis, and analyze the M data blocks The obtained image data is subjected to image processing.
  • the image processing chip 100 reorganizes 3 frames of RAW images into 2 data blocks through the data packaging unit 120 according to the reorganization method shown in FIG. 2 , and packages the 2 data blocks. is a data packet, and the encapsulated data packet is transmitted to the application processing chip through the second data interface unit 130 .
  • the application processing chip splits the data packet into two data blocks, that is, data block 1 and data block 2, and then performs parallel parsing on data block 1 and data block 2, from Data block 1 is analyzed to obtain the image data of the region of interest in the long exposure RAW image (represented by A in Figure 5), the image data of the region of interest in the medium exposure RAW image (represented by B in Figure 5) and the short exposure RAW image
  • the image data of the region of interest in the medium represented by C in FIG. 5
  • the image data of the non-interest region in the long-exposure RAW image, the medium-exposure RAW image and the short-exposure RAW image are analyzed from the data block 2.
  • the application processing chip performs high dynamic range synthesis processing on the image data obtained by analyzing data block 1 to obtain high dynamic range region-of-interest image data (indicated by D in FIG. 5 ), and performs image data analysis on data block 2. High dynamic range synthesis processing to obtain high dynamic range non-interest region image data. Finally, the application processing chip stitches the high dynamic range ROI image data and the non-ROI image data to obtain a high dynamic range composite image.
  • the image processing chip 100 includes a data packing unit 120, through which N frames of RAW images are obtained, and according to the image processing requirement information of the application processing chip, the obtained N frames of RAW images are processed. Recombine to obtain M data blocks, and encapsulate the M data blocks into L data packets and transmit them to the application processing chip.
  • N and M are positive integers greater than 1
  • L is a positive integer smaller than N. Therefore, by encapsulating N frames of RAW images into L data packets smaller than N, the image processing chip 100 needs to occupy at most L data transmission channels of the application processing chip to realize the transmission of N frames of RAW images.
  • this application can reduce the occupation of image data on the data transmission channels of the application processing chip, thereby reducing the impact of image data on other types of data transmission and processing.
  • the reorganized M data blocks can be analyzed in parallel by the application processing chip, which can also reduce the time required for analysis.
  • the data packing unit 120 is configured to assign priorities to image data at different positions in each RAW image according to image processing requirement information; Reorganize into data blocks to obtain M data blocks.
  • the image processing requirement information may also describe the importance information defined by the application processing chip for different regions in the shooting scene of the image sensor .
  • the data packing unit 120 allocates the priority, it can allocate according to the importance of the image data.
  • the image processing requirement information describes that the application processing chip needs to use image data at the same position in different RAW images for image processing, in order to match the image processing requirements of the application processing chip, the image data at the same position in different RAW images will be The data packing unit 120 assigns the same priority.
  • the application processing chip identifies two regions of interest, which are respectively region of interest 1 (represented by ROI1 in FIG. 6 ) and region of interest 2 (represented by ROI2 in FIG. 6 ). , and it is defined that the importance of ROI 1 is greater than that of ROI 2, and the importance of ROI 2 is greater than that of non-ROIs (that is, in Figure 6 except ROI 1 and ROI 2 area) importance.
  • Image processing requirements information can describe:
  • the application processing chip needs to use 3 frames of RAW images of the same shooting scene for high dynamic range synthesis processing.
  • the importance of the area of interest 1 is greater than that of the area of interest 2
  • the importance of the area of interest 2 is greater than that of the non-interesting area. region, and it is necessary to perform a high degree of high dynamic range synthesis processing on the region of interest 1 in the shooting scene, perform a moderate degree of high dynamic range synthesis processing on the region of interest 2 in the shooting scene, and perform non-interesting Areas are processed with a low degree of HDR compositing.
  • the image sensor can collect the RAW images of the aforementioned three frames of the shooting scene with different exposure parameters, which are the long-exposure RAW image, the medium-exposure RAW image and the short-exposure RAW image.
  • the image processing chip 100 acquires a long-exposure RAW image, a medium-exposure RAW image and a short-exposure RAW image from the image sensor through the first data interface unit 110 .
  • Image preprocessing is performed on the acquired long-exposure RAW image, medium-exposure RAW image and short-exposure RAW image through an image preprocessing unit.
  • the data packaging unit 120 obtains the preprocessed long exposure RAW image, medium exposure RAW image and short exposure RAW image, and according to the above image processing requirement information, obtains the preprocessed long exposure RAW image, medium exposure RAW image and short exposure RAW image
  • the image data corresponding to ROI 1 in the RAW image is assigned a priority of "high”
  • the image data corresponding to ROI 2 in the long-exposure RAW image, medium-exposure RAW image and short-exposure RAW image is assigned a priority of "medium”.
  • the image data corresponding to the non-interest region in the long-exposure RAW image, the medium-exposure RAW image, and the short-exposure RAW image is assigned a priority of “low”.
  • the data packing unit 120 reorganizes the image data whose priority is “high” in the long-exposure RAW image, the medium-exposure RAW image and the short-exposure RAW image into one data block, and combines the long-exposure RAW image, the medium-exposure RAW image and the short-exposure RAW image into one data block.
  • Image data with a priority of "Medium” in the RAW image is reorganized into one data block, and image data with a priority of "Low” in the long-exposure RAW image, medium-exposure RAW image, and short-exposure RAW image are reorganized into one data block, A total of 3 data blocks are obtained.
  • These 3 data blocks include the image data corresponding to the region of interest 1 in the long-exposure RAW image, medium-exposure RAW image and short-exposure RAW image, and the long-exposure RAW image, medium-exposure RAW image and short The image data corresponding to the region of interest 2 in the exposure RAW image, and the image data corresponding to the non-interest region in the long exposure RAW image, the medium exposure RAW image and the short exposure RAW image.
  • the data packing unit 120 when the data packing unit 120 assigns priorities, it can also assign them according to attribute information other than the importance of the image data. For example, the data packing unit 120 can also assign the priorities according to the The exposure of the data is assigned priority, etc.
  • the data block includes a plurality of data rows, the data row includes a header part and a row body part, and the data packing unit 120 is configured to sequentially write image data of the same priority in N frames of RAW images into the same The row body part of different data rows of the data block; and the first description information of the image data written in the row body part of each data row is obtained, and the first description information corresponding to each data row is written into the row header of each data row part.
  • the first description information includes at least description information used to describe how the data packing unit reorganizes the image data
  • the first description information may include the source RAW image of the image data written in the body part of the data row Information (used to describe which RAW image the image data comes from), position information in the source RAW image, data size information, priority information, etc.
  • the data packing unit 120 may alternately write image data of the same priority in N frames of RAW images into the row body parts of different data rows of the same data block in sequence. That is to say, in the same data block, the image data written in the body part of all data lines has the same priority, but the image data written in the body part of two adjacent data lines comes from different RAW images.
  • the data packing unit 120 identifies whether there is image data with “high” priority in the first row of image data in the short-exposure RAW image, and if so, writes the image data with “high” priority into the row body in data row 1 If it does not exist, continue to identify whether there is image data with a priority "high” in the image data of the next row until it is recognized that the image data with a priority "high” is written into the row body part in data row 1; then, the data Packing unit 120 identifies whether there is image data with a priority of "high” in the first line of image data in the mid-exposure RAW image, and if so, writes the image data with "high” priority into the line body part of data line 2 , if it does not exist, continue to identify whether there is image data with a priority "high” in the image data of the next line until it is recognized that the image data with a priority "high” is written into the line
  • the data packing unit 120 alternately packs the short-exposure RAW image, the medium-exposure RAW image, and the long-exposure RAW image in the sequence of the short-exposure RAW image, the medium-exposure RAW image, and the long-exposure RAW image with “high” priority Data is sequentially written to the row body part of different data rows of the same data block.
  • the data packing unit 120 also obtains the first description information of the image data written in the row body part in each data row, and writes the first description information corresponding to each data row into each data row.
  • the line header part of the line is the first description information of the image data written in the row body part in each data row.
  • the first description information acquired at this time may include: source RAW image information (the image data used to describe the writing here is from a short-exposure RAW image, a medium-exposure RAW image, or a long-exposure RAW image), Position information in (used to describe the number of rows where the written image data is located in the entire source RAW image), data size information, priority information (used to describe the priority of the written image data as high, medium or low) , whether it belongs to the mark information of the region of interest, the number of blocks (describe how many blocks of a line of image data in the source RAW image are included in the written image data), the starting abscissa of the region of interest, and the region of interest The end abscissa of , etc.
  • source RAW image information the image data used to describe the writing here is from a short-exposure RAW image, a medium-exposure RAW image, or a long-exposure RAW image
  • Position information in used to describe the number of rows where the written image data is located
  • FIG. 8 Please continue to refer to FIG. 8 to illustrate the number of blocks by taking the reconstruction of a line of image data in a long-exposure RAW image as an example.
  • the row of image data can be divided into 5 blocks, namely Block 1, Block 2, Block 3, Block 4, and Block 5, of which Block 1, Block 3, and Block 5 are not of interest Area, block 2 belongs to ROI 1, and block 4 belongs to ROI 2.
  • block 1, block 3 and block 5 will be reorganized into the same data line of the same data block by the data packing unit 120, and for this data line, the number of blocks in the first description information is 3;
  • Block 2 will be reorganized into a data line of a data block by the data packing unit 120, and for this data line, the number of blocks in its first description information is 1;
  • block 2 will be reorganized by the data packing unit 120 into In a data row of a data block, the number of blocks in the first description information is 1 for the data row.
  • the data packet includes a packet header and a packet body, and when M is greater than or equal to N, L is equal to 1, and the data packing unit 120 is configured to, according to the respective priorities of the M data blocks, M data blocks are sequentially written into the packet body part of the same data packet, and the second description information of the M data blocks is obtained, and the second description information is written into the header part of the same data packet to obtain 1 data packet; or,
  • the data packing unit 120 is configured to respectively write M data blocks into the body parts of M data packets, and obtain the data blocks written in the body parts of each data packet
  • the third descriptive information is to write the third descriptive information corresponding to each data packet into the packet header of each data packet to obtain M data packets.
  • the second description information includes the number information of the data blocks written in the package body (that is, the value of M), the priority information of each data block, and the position information (used to describe the position of the data block in the entire data package) ) and at least one of the data size information
  • the third description information includes the serial number information of the data block written in the package body (for describing which data block the written data block is in the M data blocks), At least one of priority information and data size information.
  • the data packing unit 120 reorganizes the N frames of RAW images obtained by the first data interface unit 110 into M (3) data blocks, which are respectively data block 1, data block 2 and data block 3, and Assign priority "high” to data block 1, assign priority "middle” to data block 2, and assign priority "low” to data block 3.
  • the data packing unit 120 sequentially packs the data Block 1, data block 2, and data block 3 are written into the packet body of the same data packet, and then, the data packing unit 120 obtains the second description information of the three data blocks and writes them into the packet header, including the written data block The number information "3", the location information, priority information, and data size information of data block 1, the location information, priority information, and data size information of data block 2, and the location information, priority information, and data size information of data block 3 size information.
  • the image processing chip 100 is configured to send the packet header part of the data packet to the application processing chip; and send the packet body The M data blocks in the section are sequentially sent to the application processing chip.
  • the second data interface unit 130 first sends the header part of the data packet to the application processing chip, and then according to the priority of the M data blocks written in the packet body part, according to the order of priority from high to low, sequentially Send the M data blocks in the packet body to the application processing chip.
  • the application processing chip can perform parallel parsing and image processing on the M data blocks after receiving a complete data packet, or can perform processing on the received data blocks after receiving a data block each time. parsing and image processing.
  • the image processing chip 100 is configured to send M data packets to the application processing chip in parallel.
  • the image processing chip 100 sends the three data packets obtained by encapsulation to the application processing chip in parallel through the three data transmission channels provided by the second data interface unit 130. , supplying the application processing chip for image processing.
  • the data packing unit 120 is configured to obtain N frames of RAW images when the number of idle data transmission channels of the application processing chip is less than N, and according to the image processing requirement information of the application processing chip, N
  • the image data in the frame RAW image is reorganized into M data blocks and then encapsulated into L data packets.
  • the image processing chip 100 does not always package and transmit N frames of images from the image sensor.
  • the data packaging unit 120 recognizes the number of idle data transmission channels of the application processing chip in real time, and when the number of idle data transmission channels of the application processing chip is less than N, acquires N frames of RAW images, and performs processing according to the image processing requirements of the application processing chip information, reorganize the image data in N frames of RAW images into M data blocks and then encapsulate them into L data packets.
  • the second data interface unit 130 is configured to transmit the data packet to the application processing chip through an idle data transmission channel of the application processing chip.
  • the image processing chip 100 can transmit the data packet to the application processing chip through the unique data transmission channel provided by the second data interface unit 130;
  • the image processing chip 100 can transmit the data packet to the application processing chip through any idle data transmission channel provided by the second data interface unit 130, and can also transmit the data packet to the application processing chip according to the idle data
  • the number of transmission channels splits the data packet into the same number of sub-packets, and equalizes the split sub-packets to each idle data transmission channel for transmission to the application processing chip.
  • the image processing chip 100 is configured to transmit N frames of RAW images to the application processing chip in parallel.
  • the present application also provides an application processing chip 200 .
  • the application processing chip 200 includes a third data interface unit 210 , a data unpacking unit 220 and an image processing unit 230 .
  • the application processing chip 200 provided in this application can be configured in an electronic device equipped with an image sensor and an image processing chip provided in this application to implement image processing.
  • the entity type of the electronic equipment may be a mobile electronic equipment such as a smart phone, a tablet computer, a handheld computer, or a notebook computer, or a fixed electronic equipment such as a desktop computer or a television, and this application does not make specific limitations on this
  • the third data interface unit 210 is used to provide a data transmission channel between the application processing chip 200 and the image processing chip, so as to realize data transmission between the application processing chip 200 and the image processing chip.
  • entity type of the third data interface unit 210 including but not limited to Mobile Industry Processor Interface (MIPI), PCI-E interface, etc.
  • MIPI Mobile Industry Processor Interface
  • PCI-E interface PCI-E interface
  • the entity type of the third data interface unit 210 is a mobile industry processor interface.
  • the image processing unit 220 is configured to generate image processing requirement information, which is used to describe the image processing requirement of the image processing unit 230 , including but not limited to what type of image processing to perform and how to perform image processing.
  • the application processing chip 200 is configured to transmit the image processing requirement information of the image processing unit 230 to the image processing chip through the third data interface unit 210, so that the image processing chip can convert the image in the acquired N frames of RAW images according to the image processing requirement information
  • the data is reorganized into M data blocks and then encapsulated into L data packets, where N and M are positive integers greater than 1, and L is a positive integer smaller than N.
  • the application processing chip 200 is further configured to acquire L data packets corresponding to image processing requirement information from the image processing chip. Wherein, the application processing chip 200 may receive L data packets sent by the image processing chip through the third data interface unit 210 .
  • the data unpacking unit 220 is configured to split the L data packets into M data blocks and perform parallel parsing to obtain image data. Wherein, the data unpacking unit 220 reversely parses the L data packets into M data blocks after the application processing chip 200 obtains the L data packets corresponding to the image processing demand information, and performs parallel parsing on the M data blocks, Get the corresponding image data.
  • the image processing unit 230 is configured to perform image processing on the image data obtained by analyzing the M data blocks.
  • image processing requirement information can describe:
  • the image processing unit 230 needs to use 3 frames of RAW images of the same shooting scene to perform high dynamic range synthesis processing, and firstly perform high dynamic range synthesis processing on the region of interest (Region of Interest, ROI) of the shooting scene, and then perform high dynamic range synthesis processing on the region of interest (ROI) of the shooting scene. Regions of non-interest are processed for high dynamic range compositing.
  • ROI region of interest
  • ROI region of interest
  • ROI region of interest
  • the image sensor can collect the RAW images of the aforementioned three frames of the shooting scene with different exposure parameters, which are the long-exposure RAW image, the medium-exposure RAW image and the short-exposure RAW image.
  • the image processing chip acquires a long-exposure RAW image, a medium-exposure RAW image and a short-exposure RAW image from the image sensor.
  • the image data of the region of interest in the long-exposure RAW image, medium-exposure RAW image and short-exposure RAW image are reorganized into a data block
  • the long-exposure RAW image, medium-exposure RAW image and short-exposure RAW image Image data for areas not of interest in the image are reorganized into another data block.
  • the image data in the 3 frames of RAW images are reorganized into 2 data blocks, and each data block includes all the image data required by the image processing unit 230 for the high dynamic range synthesis process.
  • the image processing chip packs the two data blocks obtained through recombination into two data packets and transmits them to the application processing chip 200 .
  • the application processing chip 200 will receive the two data packets transmitted by the image processing chip through the third data interface unit 210 .
  • the data unpacking unit 220 splits the two data packets into two data blocks, and then analyzes the two data blocks in parallel, and obtains a long-exposure RAW image, a medium-exposure RAW image, and a short-exposure RAW image from one of the data blocks.
  • the image data of the region of interest in the image is quickly analyzed from another data to obtain the image data of the non-interest region in the long-exposure RAW image, the medium-exposure RAW image, and the short-exposure RAW image.
  • the image processing unit 230 performs high dynamic range synthesis processing on the image data of the region of interest in the long-exposure RAW image, the medium-exposure RAW image, and the short-exposure RAW image to obtain high dynamic range image data of the region of interest.
  • the image data of the non-interest region in the image, the medium-exposure RAW image and the short-exposure RAW image are subjected to high dynamic range synthesis processing to obtain high dynamic range non-interest region image data.
  • the image processing unit 230 stitches the high dynamic range ROI image data and the non-ROI image data to obtain a high dynamic range composite image.
  • the data unpacking unit 220 is configured to invoke M idle parsing threads from a preset thread pool to perform parallel parsing on the M data blocks.
  • the thread pool includes multiple different types of threads, which are obtained through pre-construction.
  • the data unpacking unit 220 may call 2 idle parsing threads from the preset thread pool to analyze the 2 data blocks in parallel.
  • the data unpacking unit 220 is also configured to call the idle parsing thread in the thread pool according to the priority corresponding to each data block when the number of idle parsing threads in the thread pool is less than M
  • the M data blocks are parsed in sequence.
  • the data unpacking unit 220 will analyze the data blocks sequentially according to the priorities of the data blocks when there are not enough free parsing threads to perform parallel parsing on the split data blocks.
  • the data unpacking unit 220 may call the only idle parsing thread to parse the M data blocks obtained by splitting the data packet in sequence according to the order of priority from high to low;
  • the data unpacking unit 220 may call the K idle parsing threads first in order of priority from high to low. Parallel parsing is performed on the K data blocks with the highest priority; if the remaining unparsed data blocks are greater than K, K idle parsing threads can be called again to perform parallel parsing on the remaining K data blocks with the highest priority until the remaining The number of unresolved data blocks is less than K; at this time, according to the number of remaining unresolved data blocks, the corresponding number of idle parsing threads can be called to analyze the remaining unresolved data blocks. To parse the data block, call 1 idle parsing thread to parse the remaining 1 unparsed data block; Parallel parsing.
  • the image processing unit 230 is further configured to perform image processing on the analyzed image data when the data unpacking unit 220 finishes analyzing a data block in the M data blocks each time.
  • the image processing unit 230 can complete the analysis of a data block in the M data blocks each time when the data unpacking unit 220, that is Image processing is performed on the analyzed image data.
  • the present application also provides an electronic device 10, including an image processing chip 100 and an application processing chip 200, wherein,
  • the application processing chip 200 is configured to generate image processing requirement information, and transmit the image processing requirement information to the image processing chip 100;
  • the image processing chip 100 is configured to acquire N frames of RAW images, where N is a positive integer greater than 1; and reorganize the image data in the N frames of RAW images into M data blocks according to the image processing requirement information, and M is a positive integer greater than 1 ; and encapsulate the M data blocks into L data packets and transmit them to the application processing chip 200;
  • the application processing chip 200 is further configured to split the L data packets into M data blocks, perform parallel parsing to obtain image data, and perform image processing on the parsed image data.
  • the image processing chip 100 is configured to assign priorities to image data at different positions in each RAW image according to image processing requirement information; and assign image data with the same priority in N frames of RAW images Reorganize into data blocks to obtain M data blocks.
  • the data block includes a plurality of data rows, the data row includes a row header part and a row body part, and the image processing chip 100 is configured to sequentially write image data of the same priority in N frames of RAW images into the same The row body part of different data rows of the data block; and the first description information of the image data written in the row body part of each data row is obtained, and the first description information corresponding to each data row is written into the row header of each data row part.
  • the data packet includes a packet header and a packet body.
  • M is greater than or equal to N
  • L is equal to 1
  • the image processing chip 100 is configured to assign The M data blocks are sequentially written into the packet body; and the second description information of the M data blocks is acquired, and the second description information is written into the packet header.
  • the image processing chip 100 is configured to send the packet header part to the application processing chip; and send the M data blocks in the packet body part to the application processing chip in sequence according to the respective priorities of the M data blocks.
  • Application processing chip 200 is configured to send the packet header part to the application processing chip; and send the M data blocks in the packet body part to the application processing chip in sequence according to the respective priorities of the M data blocks.
  • L is equal to M
  • the image processing chip 100 is configured to respectively write M data blocks into the packet bodies of M data packets, and obtain The third descriptive information of the data block written in the packet body, the third descriptive information corresponding to each data packet is written into the packet header of each data packet.
  • an image processing method which is applied to an image processing chip, including:
  • N frames of RAW images are acquired, where N is a positive integer greater than 1.
  • the M data blocks are encapsulated into L data packets, where L is a positive integer smaller than N.
  • L data packets are transmitted to the application processing chip.
  • the image processing demand information of the application processing chip assign priorities to image data in different positions in each RAW image; and recombine image data with the same priority in N frames of RAW images into data blocks to get M data blocks.
  • the data block includes a plurality of data lines
  • the data line includes a line header part and a line body part
  • the image data of the same priority in N frames of RAW images are sequentially written into different data lines of the same data block
  • the row body part acquiring the first description information of the image data written in the row body part in each data row, and writing the first description information corresponding to each data row into the row header part of each data row.
  • the first description information includes at least one of source RAW image information, position information in the source RAW image, data size information, and priority information of the image data written in the row body part of the data row. kind.
  • the data packet includes a packet header and a packet body.
  • M is greater than or equal to N
  • L is equal to 1.
  • the M data blocks are sequentially written to the packet body; acquire the second description information of the M data blocks, and write the second description information into the packet header.
  • the packet header is sent to the application processing chip; and the M data blocks in the packet body are sequentially sent to the application processing chip according to the respective priorities of the M data blocks.
  • M data blocks are respectively written into the body parts of M data packets, and the data written in the body parts of each data packet is acquired
  • write the third description information corresponding to each data packet into the packet header of each data packet
  • the second description information includes at least one of the number information of the data blocks written in the packet body, the priority information of each data block, the location information and the data size information; and/ Alternatively, the third description information includes at least one of sequence number information, priority information, and data size information of the data blocks written in the packet body.
  • image processing method provided by the embodiment of the present application belongs to the same concept as the above image processing chip, and for detailed description, please refer to the relevant description of the image processing chip in the above embodiment, and details will not be repeated here.
  • the present application also provides an image processing method, which is applied to an application processing chip, including:
  • image processing requirement information is generated, and the image processing requirement information is transmitted to the image processing chip.
  • L data packets corresponding to image processing requirement information are acquired from the image processing chip.
  • the L data packets are split into M data blocks and then analyzed in parallel to obtain image data.
  • the L data packets are obtained by reassembling the image data in N frames of RAW images into M data blocks and then encapsulating them.
  • N M is a positive integer greater than 1
  • L is a positive integer less than N.
  • image processing is performed on the analyzed image data.
  • M idle parsing threads are invoked from a preset thread pool to perform parallel parsing on M data blocks.
  • the idle parsing threads in the thread pool are called to parse the M data blocks in turn.
  • each time the analysis of a data block among the M data blocks is completed image processing is performed on the image data obtained through analysis.

Abstract

An image processing chip, a method, an application processing chip, and an electronic device. The image processing chip comprises a data packing unit. N frames of obtained RAW images are recombined by the data packing unit according to image processing requirement information of the application processing chip to obtain M data blocks, the M data blocks are encapsulated into L data packets, and the encapsulated L data packets are transmitted to the application processing chip. N and M are positive integers greater than 1, and L is a positive integer less than N.

Description

图像处理芯片、方法、应用处理芯片及电子设备Image processing chip, method, application processing chip and electronic device
本申请要求于2021年8月19日提交中国专利局、申请号为202110955052.4、申请名称为“图像处理芯片、方法、应用处理芯片及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110955052.4 and the application title "image processing chip, method, application processing chip and electronic equipment" filed with the China Patent Office on August 19, 2021, the entire contents of which are incorporated by reference incorporated in this application.
技术领域technical field
本申请涉及图像处理技术领域,特别涉及一种图像处理芯片、方法、应用处理芯片及电子设备。The present application relates to the technical field of image processing, in particular to an image processing chip, method, application processing chip and electronic equipment.
背景技术Background technique
目前,用户通常利用具有摄像头的电子设备(如数码相机、智能手机等)拍摄图像,从而随时随地的记录身边发生的事情,看到的景物等。相关技术中,为了提高拍摄图像的质量,电子设备通常会对拍摄的原始图像进行特定的图像处理。比如,可以拍摄得到多帧图像,对多帧图像进行高动态合成处理得到高动态合成图像,或者对多帧图像进行多帧合成降噪处理得到降噪合成图像等。当需要对多帧图像进行处理时,摄像头中的图像传感器需要占用应用处理芯片的多个数据传输通道以将拍摄的多帧图像传输至应用处理芯片进行图像处理。At present, users usually use electronic devices with cameras (such as digital cameras, smart phones, etc.) to take images, so as to record what happens around them, the scenery they see, etc. anytime and anywhere. In related technologies, in order to improve the quality of captured images, electronic devices usually perform specific image processing on the captured original images. For example, it is possible to capture multiple frames of images, perform high dynamic composite processing on the multiple frames of images to obtain a high dynamic composite image, or perform multi-frame composite noise reduction processing on the multiple frames of images to obtain a noise-reduced composite image, and the like. When multiple frames of images need to be processed, the image sensor in the camera needs to occupy multiple data transmission channels of the application processing chip to transmit the captured multiple frames of images to the application processing chip for image processing.
发明内容Contents of the invention
本申请提供一种图像处理芯片、应用处理芯片、电子设备及图像处理方法,能够降低图像数据对应用处理芯片的数据传输通道的占用,从而降低图像数据对其它类型数据传输和处理的影响。The present application provides an image processing chip, an application processing chip, electronic equipment, and an image processing method, which can reduce the occupation of image data on the data transmission channel of the application processing chip, thereby reducing the impact of image data on other types of data transmission and processing.
本申请公开一种图像处理芯片,包括:The application discloses an image processing chip, including:
数据打包单元,用于获取N帧RAW图像,N为大于1的正整数;以及根据应用处理芯片的图像处理需求信息,将获取的N帧RAW图像中的图像数据重组为M个数据块,M为大于1的正整数;以及将M个数据块封装为L个数据包,L为小于N的正整数;The data packaging unit is used to acquire N frames of RAW images, where N is a positive integer greater than 1; and according to the image processing requirement information of the application processing chip, the image data in the acquired N frames of RAW images are reorganized into M data blocks, and M is a positive integer greater than 1; and encapsulates M data blocks into L data packets, where L is a positive integer less than N;
图像处理芯片用于将L个数据包传输至应用处理芯片。The image processing chip is used to transmit the L data packets to the application processing chip.
本申请还公开一种应用处理芯片,用于传输图像处理需求信息至图像处理芯片,以及从图像处理芯片获取对应图像处理需求信息的L个数据包,包括:The present application also discloses an application processing chip for transmitting image processing requirement information to the image processing chip, and obtaining L data packets corresponding to the image processing requirement information from the image processing chip, including:
图像处理单元,用于生成图像处理需求信息;an image processing unit, configured to generate image processing requirement information;
数据解包单元,用于将L个数据包拆分为M个数据块后进行并行解析后得到图像数据,L个数据包由N帧RAW图像中的图像数据重组为M个数据块后封装得到,N、M为大于1的正整数,L为小于N的正整数;The data unpacking unit is used to split L data packets into M data blocks and perform parallel parsing to obtain image data. L data packets are obtained by reassembling the image data in N frames of RAW images into M data blocks and then encapsulating them. , N and M are positive integers greater than 1, and L is a positive integer smaller than N;
图像处理单元还用于对解析得到的图像数据进行图像处理。The image processing unit is also used to perform image processing on the analyzed image data.
本申请公开一种电子设备,包括图像处理芯片和应用处理芯片,其中,The present application discloses an electronic device, including an image processing chip and an application processing chip, wherein,
应用处理芯片用于生成图像处理需求信息,并将图像处理需求信息传输至图像处理芯片;The application processing chip is used to generate image processing requirement information, and transmit the image processing requirement information to the image processing chip;
图像处理芯片用于获取N帧RAW图像,N为大于1的正整数;以及根据图像处理需求信息将N帧RAW图像中的图像数据重组为M个数据块,M为大于1的正整数;以及将M个数据块封装为L个数据包后传输至应用处理芯片,L为小于N的正整数;The image processing chip is used to obtain N frames of RAW images, N being a positive integer greater than 1; and reorganizing the image data in the N frames of RAW images into M data blocks according to the image processing requirement information, and M being a positive integer greater than 1; and Encapsulate M data blocks into L data packets and transmit them to the application processing chip, where L is a positive integer smaller than N;
应用处理芯片还用于将L个数据包拆分为M个数据块后进行并行解析得到图像数据,并对解析到的图像数据进行图像处理。The application processing chip is also used to split the L data packets into M data blocks, perform parallel parsing to obtain image data, and perform image processing on the parsed image data.
本申请公开一种图像处理方法,应用于图像处理芯片,包括:The present application discloses an image processing method applied to an image processing chip, including:
获取N帧RAW图像,N为大于1的正整数;Get N frames of RAW images, N is a positive integer greater than 1;
根据应用处理芯片的图像处理需求信息,将N帧RAW图像中的图像数据重组为M个数据块,M为大于1的正整数;According to the image processing demand information of the application processing chip, the image data in the N frames of RAW images are reorganized into M data blocks, and M is a positive integer greater than 1;
将M个数据块封装为L个数据包,L为小于N的正整数;Encapsulate M data blocks into L data packets, where L is a positive integer smaller than N;
将L个数据包传输至应用处理芯片。Transmitting the L data packets to the application processing chip.
本申请公开一种图像处理方法,应用于应用处理芯片,包括:The present application discloses an image processing method applied to an application processing chip, including:
生成图像处理需求信息,并将图像处理需求信息传输至图像处理芯片;Generate image processing requirement information, and transmit the image processing requirement information to the image processing chip;
从图像处理芯片获取对应图像处理需求信息的L个数据包;Obtaining L data packets corresponding to image processing demand information from the image processing chip;
将L个数据包拆分为M个数据块后进行并行解析得到图像数据,L个数据包由N帧RAW图像中的图像数据重组为M个数据块后封装得到,N、M为大于1的正整数,L为小于N的正整数;Split L data packets into M data blocks and perform parallel analysis to obtain image data. L data packets are obtained by reorganizing image data in N frames of RAW images into M data blocks and encapsulating them. N and M are greater than 1 A positive integer, L is a positive integer less than N;
对解析得到的图像数据进行图像处理。Image processing is performed on the analyzed image data.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings that need to be used in the description of the embodiments.
图1为本申请实施例提供的图像处理芯片的一结构示意图。FIG. 1 is a schematic structural diagram of an image processing chip provided by an embodiment of the present application.
图2为本申请实施例中数据打包单元将3帧RAW图像重组为2个数据块的示例图。FIG. 2 is an example diagram of reorganizing 3 frames of RAW images into 2 data blocks by the data packing unit in the embodiment of the present application.
图3为本申请实施例中数据打包单元将2帧RAW图像重组为2个数据块的示例图。Fig. 3 is an example diagram of reorganizing 2 frames of RAW images into 2 data blocks by the data packing unit in the embodiment of the present application.
图4为本申请实施例提供的打包传输方式和相关技术的对比示意图。FIG. 4 is a schematic diagram of a comparison between the packetized transmission mode provided by the embodiment of the present application and related technologies.
图5为本申请实施例中应用处理芯平对图像处理芯片传输的数据包进行拆包、解析以及图像处理的示例图。FIG. 5 is an example diagram of unpacking, parsing and image processing of data packets transmitted by the image processing chip by using the processing chip in the embodiment of the present application.
图6为本申请实施例中一拍摄场景的感兴趣区域的示例图。FIG. 6 is an exemplary diagram of an ROI of a shooting scene in an embodiment of the present application.
图7为本申请实施例中数据打包单元将图像数据重组至数据块的示例图。FIG. 7 is an example diagram of reorganizing image data into data blocks by the data packing unit in the embodiment of the present application.
图8为本申请实施例中对一RAW图像中一行图像数据的区块划分示意图。FIG. 8 is a schematic diagram of block division of a row of image data in a RAW image in an embodiment of the present application.
图9为本申请实施例中将重组得到的数据块封装为数据包的示例图。FIG. 9 is an example diagram of encapsulating reassembled data blocks into data packets in the embodiment of the present application.
图10为本申请实施例提供的应用处理芯片的结构示意图。FIG. 10 is a schematic structural diagram of an application processing chip provided by an embodiment of the present application.
图11为本申请实施例提供的电子设备的结构示意图。FIG. 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图12为本申请实施例通过的图像处理方法一流程示意图。FIG. 12 is a schematic flow chart of an image processing method adopted in the embodiment of the present application.
图13为本申请实施例提供的图像处理方法的另一流程示意图。FIG. 13 is another schematic flowchart of the image processing method provided by the embodiment of the present application.
具体实施方式Detailed ways
需要说明的是,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其他具体实施例。It should be noted that the principle of the present application is illustrated by being implemented in an appropriate computing environment. The following description is based on illustrated specific embodiments of the present application, which should not be construed as limiting other specific embodiments of the present application that are not described in detail here.
本申请以下实施例中所涉及的诸如第一和第二等关系术语仅用于将一个对象或者操作与另一个对象或者操作区分开来,并不用于限定这些对象或操作之间存在着实际的顺序关系。The relational terms such as first and second involved in the following embodiments of the present application are only used to distinguish one object or operation from another object or operation, and are not used to limit the actual relationship between these objects or operations. sequence relationship.
目前,用户通常利用具有摄像头的电子设备(如数码相机、智能手机等)拍摄图像,从而随时随地的记录身边发生的事情,看到的景物等。相关技术中,为了提高拍摄图像的质量,电子设备通常会对拍摄的原始图像进行特定的图像处理。比如,可以拍摄得到多帧图像,对多帧图像进行高动态合成处理得到高动态合成图像,或者对多帧图像进行多帧合成降噪处理得到降噪合成图像等。当需要对多帧图像进行处理时,摄像头中的图像传感器需要占用应用处理芯片的多个数据传输通道以将拍摄的多帧图像传输至应用处理芯片进行图像处理,但是,应用处理芯片的数据传输通道的数量是有限的,当数据传输通道被图像数据过多的占用时,将影响其它类型数据的传输和处理。At present, users usually use electronic devices with cameras (such as digital cameras, smart phones, etc.) to take images, so as to record what happens around them, the scenery they see, etc. anytime and anywhere. In related technologies, in order to improve the quality of captured images, electronic devices usually perform specific image processing on the captured original images. For example, it is possible to capture multiple frames of images, perform high dynamic composite processing on the multiple frames of images to obtain a high dynamic composite image, or perform multi-frame composite noise reduction processing on the multiple frames of images to obtain a noise-reduced composite image, and the like. When multi-frame images need to be processed, the image sensor in the camera needs to occupy multiple data transmission channels of the application processing chip to transmit the captured multi-frame images to the application processing chip for image processing. However, the data transmission of the application processing chip The number of channels is limited. When the data transmission channel is occupied by too much image data, it will affect the transmission and processing of other types of data.
请参照图1,图1为本申请实施例提供的图像处理芯片100的结构示意图,如图1所示,该图像处理芯片100包括第一数据接口单元110、数据打包单元120和第二数据接口单元130。Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of an image processing chip 100 provided by an embodiment of the present application. As shown in FIG. 1, the image processing chip 100 includes a first data interface unit 110, a data packing unit 120 and a second data interface Unit 130.
应当说明的是,本申请所提供的图像处理芯片100可以配置在具备图像传感器和应用处理芯片(可以集成有中央处理器、调制解调器以及图像信号处理器等)的电子设备中,用于根据应用处理芯片的图像处理需求信息,将来源于图像传感器的N(为大于1的正整数)帧RAW图像中的图像数据重组为M(为大于1的正整数)个数据块,并将这M个数据块封装为L(为小于N的正整数)个数据包后传输至应用处理芯片,供应用处理芯片按需进行图像处理。以此,通过将N帧RAW图像封装为小于N的L个数据包,本申请至多需要占用L个数据传输通道实现N帧RAW图像的传输,相较于相关技术需要占用N个数据传输通道来实现N帧RAW图像的传输方式,本申请能够减少实现N帧RAW图像传输所需的数据传输通道的数量。其中,电子设备的实体类型可以是智能手机、平板电脑、掌上电脑、笔记本电脑等移动式电子设备,也可以是台式电脑、电视等固定式电子设备,本申请对此不作具体限制。It should be noted that the image processing chip 100 provided in this application can be configured in an electronic device equipped with an image sensor and an application processing chip (which may be integrated with a central processing unit, a modem, and an image signal processor, etc.), for processing according to the application The image processing demand information of the chip, the image data in N (a positive integer greater than 1) frames of RAW images from the image sensor is reorganized into M (a positive integer greater than 1) data blocks, and the M data The block is encapsulated into L (a positive integer less than N) data packets and then transmitted to the application processing chip for image processing on demand by the application processing chip. Therefore, by encapsulating N frames of RAW images into L data packets smaller than N, this application needs to occupy at most L data transmission channels to realize the transmission of N frames of RAW images. Compared with related technologies that need to occupy N data transmission channels to To realize the transmission mode of N frames of RAW images, the present application can reduce the number of data transmission channels required for the transmission of N frames of RAW images. Wherein, the physical type of the electronic device may be a mobile electronic device such as a smart phone, a tablet computer, a palmtop computer, or a notebook computer, or may be a fixed electronic device such as a desktop computer or a television, which is not specifically limited in this application.
本实施例中,第一数据接口单元110用于提供图像传感器和图像处理芯片100之间的数据传输通道,以实现图像传感器和图像处理芯片100之间的数据传输。此处对第一数据接口单元110的本申请实施例中对于数据接口单元110的实体类型不做具体限制,包括但不限于移动产业处理器接口(Mobile Industry Processor Interface,MIPI)、PCI-E接口等。比如,本申请中第一数据接口单元110的实体类型为移动产业处理器接口。图像处理芯片100可以通过第一数据接口单元110从图像传感器获取到图像传感器采集的N帧未经处理的原始的RAW图像,N为大于1的正整数。In this embodiment, the first data interface unit 110 is used to provide a data transmission channel between the image sensor and the image processing chip 100 to realize data transmission between the image sensor and the image processing chip 100 . The entity type of the data interface unit 110 is not specifically limited to the embodiment of the present application of the first data interface unit 110 here, including but not limited to Mobile Industry Processor Interface (Mobile Industry Processor Interface, MIPI), PCI-E interface wait. For example, in this application, the entity type of the first data interface unit 110 is a mobile industry processor interface. The image processing chip 100 can acquire N frames of unprocessed original RAW images collected by the image sensor from the image sensor through the first data interface unit 110 , where N is a positive integer greater than 1.
在一可选地实施例中,图像处理芯片100还可以包括图像预处理单元,图像预处理单元被配置为对图像处理芯片100从图像传感器获取的N帧RAW图像进行图像预处理,得到预处理后的N帧RAW图像。In an optional embodiment, the image processing chip 100 may further include an image preprocessing unit configured to perform image preprocessing on the N frames of RAW images acquired by the image processing chip 100 from the image sensor to obtain preprocessed The next N frames of RAW images.
应当说明的是,图像预处理单元所进行的图像预处理可以理解为在应用处理芯片进行图像处理之前所进行的图像处理,以区别于应用处理芯片进行的图像处理为约束,可以是任一类型的图像处理,具体可由本领域技术人员根据实际需要进行配置。It should be noted that the image preprocessing performed by the image preprocessing unit can be understood as the image processing performed before the application processing chip performs image processing, which is constrained to be different from the image processing performed by the application processing chip, and can be of any type The image processing can be specifically configured by those skilled in the art according to actual needs.
比如,图像预处理单元可以包括两个图像处理子单元,分别为进行传统图像处理的第一图像处理子单元,和进行基于人工智能的图像处理的第二图像处理子单元,可以根据实际需要配置第一图像处理子单元所需进行的图像处理(包括但不限于坏点校正处理、时域降噪处理、3D降噪处理、线性化处理以及黑电平校正处理等图像处理方式),以及配置第二图像处理子单元所需进行的图像处理(包括但不限于基于人工智能的超分辨率处理、降噪处理等图像处理方式)。For example, the image preprocessing unit may include two image processing subunits, respectively a first image processing subunit for traditional image processing, and a second image processing subunit for artificial intelligence-based image processing, which can be configured according to actual needs The image processing required by the first image processing subunit (including but not limited to image processing methods such as bad pixel correction processing, temporal noise reduction processing, 3D noise reduction processing, linearization processing, and black level correction processing), and configuration The image processing required by the second image processing sub-unit (including but not limited to image processing methods such as super-resolution processing and noise reduction processing based on artificial intelligence).
应当说明的是,图像处理芯片100可按需通过图像预处理单元对来自于图像传感器的N帧RAW图像进行图像预处理,或者不对来自于图像传感器的N帧RAW图像进行图像预处理。It should be noted that the image processing chip 100 can perform image preprocessing on the N frames of RAW images from the image sensor through the image preprocessing unit as required, or not perform image preprocessing on the N frames of RAW images from the image sensor.
数据打包单元120被配置为获取N帧RAW图像,并根据应用处理芯片的图像处理需求信息,以及将获取到的N帧RAW图像重组为M个数据块,将M个数据块封装为L个数据包。The data packaging unit 120 is configured to acquire N frames of RAW images, and reorganize the acquired N frames of RAW images into M data blocks according to the image processing requirement information of the application processing chip, and package the M data blocks into L data blocks. Bag.
其中,图像处理需求信息用于描述应用处理芯片的图像处理需求,包括但不限于进行何种类型的图像处理,以及如何进行图像处理等。Wherein, the image processing requirement information is used to describe the image processing requirement of the application processing chip, including but not limited to what type of image processing to perform and how to perform image processing.
本实施例中,数据打包单元120获取的N帧RAW图像可以是图像处理芯片100直接从图像传感器获取的未经处理的N帧RAW图像,也可以是图像预处理单元预处理后的N帧RAW图像。针对获取到的N帧RAW图像,数据打包单元120根据应用处理芯片的图像处理需求信息,将N帧RAW图像中的图像数据进行重组,相应得到与应用处理芯片的图像处理需求所匹配的M个数据块,每一数据块中的图像数据可独立用于应用处理芯片的图像处理中。针对重组得到M个数据块,数据打包单元120进一步根据配置的数据封装策略,将M个数据块封装为L个数据包。此处对数据封装策略的配置不作具体限制,可由本领域技术人员根据实际需要进行配置,其中,以L小于N为约束,L可以动态取值为任何正整数,比如可以取值为1。In this embodiment, the N frames of RAW images acquired by the data packing unit 120 may be the unprocessed N frames of RAW images directly acquired by the image processing chip 100 from the image sensor, or the N frames of RAW images preprocessed by the image preprocessing unit. image. For the acquired N frames of RAW images, the data packaging unit 120 reorganizes the image data in the N frames of RAW images according to the image processing requirement information of the application processing chip, and correspondingly obtains M frames matching the image processing requirements of the application processing chip. Data blocks, the image data in each data block can be independently used in the image processing of the application processing chip. For the recombined M data blocks, the data packing unit 120 further packs the M data blocks into L data packets according to the configured data packing strategy. There is no specific limitation on the configuration of the data encapsulation strategy here, and it can be configured by those skilled in the art according to actual needs, where L is constrained to be less than N, and L can be dynamically set to any positive integer, such as 1.
比如,图像处理需求信息可以描述:For example, image processing requirement information can describe:
应用处理芯片需要利用同一拍摄场景的3帧RAW图像进行高动态范围合成处理,且需要先对拍摄场景的感兴趣区域(Region of Interest,ROI)进行高动态范围合成处理,再对拍摄场景的非感兴趣区域进行高动态范围合成处理。The application processing chip needs to use 3 frames of RAW images of the same shooting scene for high dynamic range synthesis processing, and it is necessary to perform high dynamic range synthesis processing on the region of interest (Region of Interest, ROI) of the shooting scene first, and then perform high dynamic range synthesis processing on the non-identical images of the shooting scene. Regions of interest are processed for high dynamic range synthesis.
相应的,图像传感器可以采集前述拍摄场景的3帧曝光参数不同的RAW图像,分别为长曝光RAW图像、中曝光RAW图像和短曝光RAW图像。相应的,图像处理芯片100通过第一数据接口单元110从图像传感器获取到长曝光RAW图像、中曝光RAW图像和短曝光RAW图像。Correspondingly, the image sensor can collect the RAW images of the aforementioned three frames of the shooting scene with different exposure parameters, which are the long-exposure RAW image, the medium-exposure RAW image and the short-exposure RAW image. Correspondingly, the image processing chip 100 acquires a long-exposure RAW image, a medium-exposure RAW image and a short-exposure RAW image from the image sensor through the first data interface unit 110 .
请参照图2,数据打包单元120根据以上图像处理需求信息,将长曝光RAW图像、中曝光RAW图像和短曝光RAW图像中感兴趣区域的图像数据重组为一个数据块(即数据块1),将长曝光RAW图像、中曝光RAW图像和短曝光RAW 图像中非感兴趣区域的图像数据重组为另一数据块(即数据块2)。以此,3帧RAW图像中的图像数据被重组为2个数据块,且每一数据块均包括应用处理芯片进行高动态范围合成处理所需的全部图像数据。Referring to FIG. 2, the data packing unit 120 reorganizes the image data of the region of interest in the long-exposure RAW image, the medium-exposure RAW image, and the short-exposure RAW image into a data block (ie, data block 1) according to the above image processing requirement information, The image data of the non-interest regions in the long-exposure RAW image, the medium-exposure RAW image and the short-exposure RAW image are reorganized into another data block (ie, data block 2). In this way, the image data in the 3 frames of RAW images are reorganized into 2 data blocks, and each data block includes all the image data required by the application processing chip for high dynamic range synthesis processing.
又比如,图像处理需求信息可以描述:For another example, image processing requirement information can describe:
应用处理芯片需要利用同一拍摄场景的2帧RAW图像进行合成降噪处理,且需要对拍摄场景的对焦区域和非对焦区域进行不同程度的合成降噪处理。The application processing chip needs to use 2 frames of RAW images of the same shooting scene to perform composite noise reduction processing, and different degrees of composite noise reduction processing need to be performed on the in-focus area and non-focus area of the shooting scene.
相应的,图像传感器可以采集前述拍摄场景的2帧RAW图像,分别为RAW图像1和RAW图像2。相应的,图像处理芯片100通过第一数据接口单元110从图像传感器获取到RAW图像1和RAW图像2。Correspondingly, the image sensor can collect two frames of RAW images of the aforementioned shooting scene, which are RAW image 1 and RAW image 2 respectively. Correspondingly, the image processing chip 100 acquires the RAW image 1 and the RAW image 2 from the image sensor through the first data interface unit 110 .
请参照图3,数据打包单元120根据以上图像处理需求信息,将RAW图像1和RAW图像2中对焦区域的图像数据重组为一个数据块(即数据块3),将RAW图像1和RAW图像2中非对焦区域的图像数据重组为另一数据块(即数据块4)。以此,2帧RAW图像中的图像数据被重组为2个数据块,且每一数据块均包括应用处理芯片进行合成降噪处理所需的全部图像数据。Please refer to FIG. 3 , the data packing unit 120 reorganizes the image data of the in-focus areas in the RAW image 1 and the RAW image 2 into one data block (that is, data block 3) according to the above image processing requirement information, and combines the RAW image 1 and the RAW image 2 The image data of the central non-focus area is reorganized into another data block (ie, data block 4). In this way, the image data in the 2 frames of RAW images are reorganized into 2 data blocks, and each data block includes all the image data required by the application processing chip for synthetic noise reduction processing.
第二数据接口单元130用于提供应用处理芯片和图像处理芯片100之间的数据传输通道,以实现应用处理芯片和图像处理芯片100之间的数据传输。此处对第二数据接口单元130的实体类型不做具体限制,包括但不限于移动产业处理器接口(Mobile Industry Processor Interface,MIPI)、PCI-E接口等。比如,本申请实施例中第二数据接口单元130的实体类型为移动产业处理器接口。The second data interface unit 130 is used to provide a data transmission channel between the application processing chip and the image processing chip 100 to realize data transmission between the application processing chip and the image processing chip 100 . Here, the entity type of the second data interface unit 130 is not specifically limited, including but not limited to Mobile Industry Processor Interface (MIPI), PCI-E interface, and the like. For example, in the embodiment of the present application, the entity type of the second data interface unit 130 is a mobile industry processor interface.
本实施例中,图像处理芯片100通过第二数据接口单元130将数据打包单元120封装得到的L个数据包传输至应用处理芯片,供应用处理芯片进行图像处理。可以理解的是,由于N帧RAW图像被封装为L个数据包,只需至多占用应用处理芯片的L个数据传输通道进行传输。比如,请参照图4(其中,箭头代表数据传输通道),当图像传感器直接传输N帧RAW图像至应用处理芯片时,需要占用应用处理芯片的N个数据传输通道以实现对N帧RAW图像传输,而当采用本申请提供的图像处理芯片100将图像传感器采集的N帧RAW图像封装为L个数据包传输至应用处理芯片时,若N帧RAW图像被数据打包单元120封装为1个数据包,则只需要占用应用处理芯片的1个数据传输通道。In this embodiment, the image processing chip 100 transmits the L data packets packaged by the data packaging unit 120 to the application processing chip through the second data interface unit 130 for the application processing chip to perform image processing. It can be understood that since N frames of RAW images are packaged into L data packets, it only needs to occupy at most L data transmission channels of the application processing chip for transmission. For example, please refer to Figure 4 (where the arrow represents the data transmission channel), when the image sensor directly transmits N frames of RAW images to the application processing chip, it needs to occupy N data transmission channels of the application processing chip to realize the transmission of N frames of RAW images , and when the image processing chip 100 provided by the present application is used to package the N frames of RAW images collected by the image sensor into L data packets and transmit them to the application processing chip, if the N frames of RAW images are packaged into one data packet by the data packaging unit 120 , then only one data transmission channel of the application processing chip needs to be occupied.
另外,还需要说明的是,在本申请实施例中,数据打包单元120并非直接将N帧RAW图像封装为数据包,而是将N帧RAW图像中的图像数据重组为M个数据块,且这M个数据块是与应用处理芯片所需进行的图像处理所匹配的,再将这M个数据块封装为L个数据包。相应的,应用处理芯片在接收到图像处理芯片100通过第二数据接口单元130所传输的数据包之后,可以将数据包拆分为M个数据块后进行并行解析,并对M个数据块解析得到的图像数据进行图像处理。In addition, it should be noted that in the embodiment of the present application, the data packing unit 120 does not directly pack the N frames of RAW images into data packets, but reorganizes the image data in the N frames of RAW images into M data blocks, and The M data blocks are matched with the image processing required by the application processing chip, and then the M data blocks are packaged into L data packets. Correspondingly, after the application processing chip receives the data packet transmitted by the image processing chip 100 through the second data interface unit 130, it can split the data packet into M data blocks and perform parallel analysis, and analyze the M data blocks The obtained image data is subjected to image processing.
比如,请结合参照图2和图5,一方面,图像处理芯片100按照图2所示重组方式,通过数据打包单元120将3帧RAW图像重组为2个数据块,并将2个数据块封装为1个数据包,以及通过第二数据接口单元130将封装得到的1个数据包传输至应用处理芯片。For example, please refer to FIG. 2 and FIG. 5 together. On the one hand, the image processing chip 100 reorganizes 3 frames of RAW images into 2 data blocks through the data packaging unit 120 according to the reorganization method shown in FIG. 2 , and packages the 2 data blocks. is a data packet, and the encapsulated data packet is transmitted to the application processing chip through the second data interface unit 130 .
另一方面,应用处理芯片在接收到该数据包之后,将该数据包拆分为2个数据块,即数据块1和数据块2,再对数据块1和数据块2进行并行解析,从数据块1中解析得到长曝光RAW图像中感兴趣区域的图像数据(图5中由A表示)、 中曝光RAW图像中感兴趣区域的图像数据(图5中由B表示)和短曝光RAW图像中感兴趣区域的图像数据(图5中由C表示),从数据块2中解析得到长曝光RAW图像、中曝光RAW图像和短曝光RAW图像中非感兴趣区域的图像数据。之后,应用处理芯片对数据块1解析得到的图像数据进行高动态范围合成处理,得到高动态范围的感兴趣区域图像数据(图5中由D表示),以及对数据块2解析得到图像数据进行高动态范围合成处理,得到高动态范围的非感兴趣区域图像数据。最后,应用处理芯片拼接高动态范围的感兴趣区域图像数据和非感兴趣区域图像数据,即得到高动态范围合成图像。On the other hand, after receiving the data packet, the application processing chip splits the data packet into two data blocks, that is, data block 1 and data block 2, and then performs parallel parsing on data block 1 and data block 2, from Data block 1 is analyzed to obtain the image data of the region of interest in the long exposure RAW image (represented by A in Figure 5), the image data of the region of interest in the medium exposure RAW image (represented by B in Figure 5) and the short exposure RAW image The image data of the region of interest in the medium (represented by C in FIG. 5 ), and the image data of the non-interest region in the long-exposure RAW image, the medium-exposure RAW image and the short-exposure RAW image are analyzed from the data block 2. Afterwards, the application processing chip performs high dynamic range synthesis processing on the image data obtained by analyzing data block 1 to obtain high dynamic range region-of-interest image data (indicated by D in FIG. 5 ), and performs image data analysis on data block 2. High dynamic range synthesis processing to obtain high dynamic range non-interest region image data. Finally, the application processing chip stitches the high dynamic range ROI image data and the non-ROI image data to obtain a high dynamic range composite image.
由上可知,本申请提供的图像处理芯片100包括数据打包单元120,通过数据打包单元120获取到N帧RAW图像,并根据应用处理芯片的图像处理需求信息,对获取到的N帧RAW图像进行重组,得到M个数据块,以及将M个数据块封装为L个数据包后传输至应用处理芯片。其中,N、M为大于1的正整数,L为小于N的正整数。以此,通过将N帧RAW图像封装为小于N的L个数据包,图像处理芯片100至多需要占用应用处理芯片的L个数据传输通道来实现N帧RAW图像的传输,相较于相关技术需要占用N个数据传输通道来实现N帧RAW图像的传输方式,本申请能够降低图像数据对应用处理芯片的数据传输通道的占用,从而降低图像数据对其它类型数据传输和处理的影响。另外,重组后的M个数据块可由应用处理芯片进行并行解析,还能够降低解析所需的时间。It can be seen from the above that the image processing chip 100 provided by the present application includes a data packing unit 120, through which N frames of RAW images are obtained, and according to the image processing requirement information of the application processing chip, the obtained N frames of RAW images are processed. Recombine to obtain M data blocks, and encapsulate the M data blocks into L data packets and transmit them to the application processing chip. Wherein, N and M are positive integers greater than 1, and L is a positive integer smaller than N. Therefore, by encapsulating N frames of RAW images into L data packets smaller than N, the image processing chip 100 needs to occupy at most L data transmission channels of the application processing chip to realize the transmission of N frames of RAW images. Occupying N data transmission channels to realize the transmission mode of N frames of RAW images, this application can reduce the occupation of image data on the data transmission channels of the application processing chip, thereby reducing the impact of image data on other types of data transmission and processing. In addition, the reorganized M data blocks can be analyzed in parallel by the application processing chip, which can also reduce the time required for analysis.
在一可选地实施例中,数据打包单元120被配置为根据图像处理需求信息,为每一RAW图像中不同位置的图像数据分配优先级;以及将N帧RAW图像中相同优先级的图像数据重组为数据块,得到M个数据块。In an optional embodiment, the data packing unit 120 is configured to assign priorities to image data at different positions in each RAW image according to image processing requirement information; Reorganize into data blocks to obtain M data blocks.
本实施例中,图像处理需求信息除了描述应用处理芯片进行何种类型的图像处理,以及如何进行图像处理之外,还可以描述应用处理芯片对图像传感器的拍摄场景中不同区域定义的重要程度信息。相应的,数据打包单元120在进行优先级的分配时,可以根据图像数据的重要程度进行分配。其中,当图像处理需求信息描述应用处理芯片需要利用不同RAW图像中同一位置的图像数据进行图像处理时,为与应用处理芯片的图像处理需求所匹配,不同RAW图像中同一位置的图像数据将被数据打包单元120分配相同的优先级。In this embodiment, in addition to describing what type of image processing is performed by the application processing chip and how to perform image processing, the image processing requirement information may also describe the importance information defined by the application processing chip for different regions in the shooting scene of the image sensor . Correspondingly, when the data packing unit 120 allocates the priority, it can allocate according to the importance of the image data. Wherein, when the image processing requirement information describes that the application processing chip needs to use image data at the same position in different RAW images for image processing, in order to match the image processing requirements of the application processing chip, the image data at the same position in different RAW images will be The data packing unit 120 assigns the same priority.
比如,请参照图6,对于一拍摄场景,应用处理芯片识别出两个感兴趣区域,分别为感兴趣区域1(图6中由ROI1表示)和感兴趣区域2(图6中由ROI2表示),且定义感兴趣区域1的重要程度大于感兴趣区域2的重要程度,且感兴趣区域2的重要程度大于非感兴趣区域(即图6中除感兴趣区域1和感兴趣区域2之外的区域)的重要程度。For example, referring to FIG. 6, for a shooting scene, the application processing chip identifies two regions of interest, which are respectively region of interest 1 (represented by ROI1 in FIG. 6 ) and region of interest 2 (represented by ROI2 in FIG. 6 ). , and it is defined that the importance of ROI 1 is greater than that of ROI 2, and the importance of ROI 2 is greater than that of non-ROIs (that is, in Figure 6 except ROI 1 and ROI 2 area) importance.
图像处理需求信息可以描述:Image processing requirements information can describe:
应用处理芯片需要利用同一拍摄场景的3帧RAW图像进行高动态范围合成处理,拍摄场景中感兴趣区域1的重要程度大于感兴趣区域2的重要程度,感兴趣区域2的重要程度大于非感兴趣区域,且需要对拍摄场景中的感兴趣区域1进行高程度的高动态范围合成处理,对拍摄场景中的感兴趣区域2进行中等程度的高动态范围合成处理,对拍摄场景中的非感兴趣区域进行低程度的高动态范围合成处理。The application processing chip needs to use 3 frames of RAW images of the same shooting scene for high dynamic range synthesis processing. In the shooting scene, the importance of the area of interest 1 is greater than that of the area of interest 2, and the importance of the area of interest 2 is greater than that of the non-interesting area. region, and it is necessary to perform a high degree of high dynamic range synthesis processing on the region of interest 1 in the shooting scene, perform a moderate degree of high dynamic range synthesis processing on the region of interest 2 in the shooting scene, and perform non-interesting Areas are processed with a low degree of HDR compositing.
相应的,图像传感器可以采集前述拍摄场景的3帧曝光参数不同的RAW图像,分别为长曝光RAW图像、中曝光RAW图像和短曝光RAW图像。相应的,图像处理芯片100通过第一数据接口单元110从图像传感器获取到长曝光RAW 图像、中曝光RAW图像和短曝光RAW图像。并通过图像预处理单元对获取到的长曝光RAW图像、中曝光RAW图像和短曝光RAW图像进行图像预处理。Correspondingly, the image sensor can collect the RAW images of the aforementioned three frames of the shooting scene with different exposure parameters, which are the long-exposure RAW image, the medium-exposure RAW image and the short-exposure RAW image. Correspondingly, the image processing chip 100 acquires a long-exposure RAW image, a medium-exposure RAW image and a short-exposure RAW image from the image sensor through the first data interface unit 110 . Image preprocessing is performed on the acquired long-exposure RAW image, medium-exposure RAW image and short-exposure RAW image through an image preprocessing unit.
数据打包单元120获取到预处理后的长曝光RAW图像、中曝光RAW图像和短曝光RAW图像,并根据以上图像处理需求信息,为预处理后的长曝光RAW图像、中曝光RAW图像和短曝光RAW图像中对应感兴趣区域1的图像数据分配优先级“高”,为长曝光RAW图像、中曝光RAW图像和短曝光RAW图像中对应感兴趣区域2的图像数据分配优先级“中”,为长曝光RAW图像、中曝光RAW图像和短曝光RAW图像中对应非感兴趣区域的图像数据分配优先级“低”。然后,数据打包单元120将长曝光RAW图像、中曝光RAW图像和短曝光RAW图像中优先级为“高”的图像数据重组为一个数据块,将长曝光RAW图像、中曝光RAW图像和短曝光RAW图像中优先级为“中”的图像数据重组为一个数据块,以及将长曝光RAW图像、中曝光RAW图像和短曝光RAW图像中优先级为“低”的图像数据重组为一个数据块,共得到3个数据块,这3个数据块分别包括了长曝光RAW图像、中曝光RAW图像和短曝光RAW图像中对应感兴趣区域1的图像数据,长曝光RAW图像、中曝光RAW图像和短曝光RAW图像中对应感兴趣区域2的图像数据,以及长曝光RAW图像、中曝光RAW图像和短曝光RAW图像中对应非感兴趣区域的图像数据。The data packaging unit 120 obtains the preprocessed long exposure RAW image, medium exposure RAW image and short exposure RAW image, and according to the above image processing requirement information, obtains the preprocessed long exposure RAW image, medium exposure RAW image and short exposure RAW image The image data corresponding to ROI 1 in the RAW image is assigned a priority of "high", and the image data corresponding to ROI 2 in the long-exposure RAW image, medium-exposure RAW image and short-exposure RAW image is assigned a priority of "medium". The image data corresponding to the non-interest region in the long-exposure RAW image, the medium-exposure RAW image, and the short-exposure RAW image is assigned a priority of “low”. Then, the data packing unit 120 reorganizes the image data whose priority is “high” in the long-exposure RAW image, the medium-exposure RAW image and the short-exposure RAW image into one data block, and combines the long-exposure RAW image, the medium-exposure RAW image and the short-exposure RAW image into one data block. Image data with a priority of "Medium" in the RAW image is reorganized into one data block, and image data with a priority of "Low" in the long-exposure RAW image, medium-exposure RAW image, and short-exposure RAW image are reorganized into one data block, A total of 3 data blocks are obtained. These 3 data blocks include the image data corresponding to the region of interest 1 in the long-exposure RAW image, medium-exposure RAW image and short-exposure RAW image, and the long-exposure RAW image, medium-exposure RAW image and short The image data corresponding to the region of interest 2 in the exposure RAW image, and the image data corresponding to the non-interest region in the long exposure RAW image, the medium exposure RAW image and the short exposure RAW image.
应当说明的是,在其他实施例中,数据打包单元120在进行优先级的分配时,还可以根据图像数据的重要程度之外的其他属性信息进行分配,比如,数据打包单元120还可以根据图像数据的曝光程度进行优先级的分配等。It should be noted that, in other embodiments, when the data packing unit 120 assigns priorities, it can also assign them according to attribute information other than the importance of the image data. For example, the data packing unit 120 can also assign the priorities according to the The exposure of the data is assigned priority, etc.
在一可选地实施例中,数据块包括多个数据行,数据行包括行头部分和行体部分,数据打包单元120被配置为将N帧RAW图像中相同优先级的图像数据依次写入同一数据块的不同数据行的行体部分;以及获取每一数据行中行体部分写入的图像数据的第一描述信息,将对应每一数据行的第一描述信息写入每一数据行的行头部分。In an optional embodiment, the data block includes a plurality of data rows, the data row includes a header part and a row body part, and the data packing unit 120 is configured to sequentially write image data of the same priority in N frames of RAW images into the same The row body part of different data rows of the data block; and the first description information of the image data written in the row body part of each data row is obtained, and the first description information corresponding to each data row is written into the row header of each data row part.
应当说明的是,其中第一描述信息至少包括用于描述数据打包单元如何对图像数据进行重组的描述信息,比如,第一描述信息可以包括数据行中行体部分写入的图像数据的来源RAW图像信息(用于描述该图像数据来源于哪一RAW图像)、在来源RAW图像中的位置信息、数据大小信息以及优先级信息等。It should be noted that the first description information includes at least description information used to describe how the data packing unit reorganizes the image data, for example, the first description information may include the source RAW image of the image data written in the body part of the data row Information (used to describe which RAW image the image data comes from), position information in the source RAW image, data size information, priority information, etc.
其中,在进行图像数据重组时,数据打包单元120可以交替的将N帧RAW图像中相同优先级的图像数据依次写入同一数据块的不同数据行的行体部分。也即是说,同一数据块中,所有数据行中行体部分所写入的图像数据的优先级相同,但是相邻两数据行的行体部分所写入的图像数据来源于不同的RAW图像。Wherein, when performing image data reorganization, the data packing unit 120 may alternately write image data of the same priority in N frames of RAW images into the row body parts of different data rows of the same data block in sequence. That is to say, in the same data block, the image data written in the body part of all data lines has the same priority, but the image data written in the body part of two adjacent data lines comes from different RAW images.
比如,按照图6所示感兴趣区域对应的优先级分配方式(具体请参照以上实施例中的相关描述),以对长曝光RAW图像、中曝光RAW图像以及短曝光RAW图像中优先级“高”的图像数据的重组为例进行说明。For example, according to the priority allocation method corresponding to the region of interest shown in FIG. 6 (for details, please refer to the relevant descriptions in the above embodiments), the long-exposure RAW image, the medium-exposure RAW image, and the short-exposure RAW image with a priority of “high " image data reorganization as an example to illustrate.
请参照图7,其中O的取值取决于待写入的图像数据的数据大小。数据打包单元120识别短曝光RAW图像中第一行图像数据中是否存在优先级“高”的图像数据,若存在,则将其中优先级“高”的图像数据写入数据行1中的行体部分,若不存在,则继续识别下一行图像数据中是否存在优先级“高”的图像数据,直至识别到优先级“高”的图像数据写入数据行1中的行体部分;然后,数据打包单元120识别中曝光RAW图像中第一行图像数据中是否存在优先级“高”的图像数据,若存在,则将其中优先级“高”的图像数据写入数据行2中的行体部分,若不存在,则继续识别下一行图像数据中是否存在 优先级“高”的图像数据,直至识别到优先级“高”的图像数据写入数据行2中的行体部分;再然后,数据打包单元120识别长曝光RAW图像中第一行图像数据中是否存在优先级“高”的图像数据,若存在,则将其中优先级“高”的图像数据写入数据行3中的行体部分,若不存在,则继续识别下一行图像数据中是否存在优先级“高”的图像数据,直至识别到优先级“高”的图像数据写入数据行3中的行体部分。如此,数据打包单元120按照短曝光RAW图像、中曝光RAW图像至长曝光RAW图像的顺序,交替的逐行将短曝光RAW图像、中曝光RAW图像以及长曝光RAW图像中优先级“高”的图像数据依次写入同一数据块的不同数据行的行体部分。此外,针对每一数据行,数据打包单元120还获取每一数据行中行体部分写入的图像数据的第一描述信息,将对应每一数据行的所述第一描述信息写入每一数据行的行头部分。比如,此时获取的第一描述信息可以包括:来源RAW图像信息(此处用于描述写入的图像数据来源于短曝光RAW图像、中曝光RAW图像或者长曝光RAW图像)、在来源RAW图像中的位置信息(用于描述写入的图像数据位于整个来源RAW图像中的行数)、数据大小信息、优先级信息(用于描述写入的图像数据的优先级为高、中或者低)、是否属于感兴趣区域的标记信息、区块个数(描述写入的图像数据包括了来源RAW图像中一行图像数据的多少个区块)、感兴趣区域的起始横坐标、以及感兴趣区域的结束横坐标等。Please refer to FIG. 7 , where the value of O depends on the data size of the image data to be written. The data packing unit 120 identifies whether there is image data with “high” priority in the first row of image data in the short-exposure RAW image, and if so, writes the image data with “high” priority into the row body in data row 1 If it does not exist, continue to identify whether there is image data with a priority "high" in the image data of the next row until it is recognized that the image data with a priority "high" is written into the row body part in data row 1; then, the data Packing unit 120 identifies whether there is image data with a priority of "high" in the first line of image data in the mid-exposure RAW image, and if so, writes the image data with "high" priority into the line body part of data line 2 , if it does not exist, continue to identify whether there is image data with a priority "high" in the image data of the next line until it is recognized that the image data with a priority "high" is written into the line body part in data line 2; then, the data Packing unit 120 identifies whether there is image data with “high” priority in the first row of image data in the long-exposure RAW image, and if so, writes the image data with “high” priority into the row body part in data row 3 , if it does not exist, continue to identify whether there is image data with a priority "high" in the image data of the next row until it is recognized that the image data with a priority "high" is written into the row body part in data row 3. In this way, the data packing unit 120 alternately packs the short-exposure RAW image, the medium-exposure RAW image, and the long-exposure RAW image in the sequence of the short-exposure RAW image, the medium-exposure RAW image, and the long-exposure RAW image with “high” priority Data is sequentially written to the row body part of different data rows of the same data block. In addition, for each data row, the data packing unit 120 also obtains the first description information of the image data written in the row body part in each data row, and writes the first description information corresponding to each data row into each data row. The line header part of the line. For example, the first description information acquired at this time may include: source RAW image information (the image data used to describe the writing here is from a short-exposure RAW image, a medium-exposure RAW image, or a long-exposure RAW image), Position information in (used to describe the number of rows where the written image data is located in the entire source RAW image), data size information, priority information (used to describe the priority of the written image data as high, medium or low) , whether it belongs to the mark information of the region of interest, the number of blocks (describe how many blocks of a line of image data in the source RAW image are included in the written image data), the starting abscissa of the region of interest, and the region of interest The end abscissa of , etc.
请继续参照图8,以长曝光RAW图像中一行图像数据的重组为例对区块的个数进行说明。该行图像数据可以划分为5个区块,分别为区块1、区块2、区块3、区块4以及区块5,其中区块1、区块3以及区块5属于非感兴趣区域,区块2属于感兴趣区域1,区块4属于感兴趣区域2。相应的,区块1、区块3以及区块5将被数据打包单元120重组至同一数据块的同一数据行中,对于该数据行,其第一描述信息中的区块个数为3;区块2将被数据打包单元120重组至一数据块的一数据行中,对于该数据行,其第一描述信息中的区块个数为1;区块2将被数据打包单元120重组至一数据块的一数据行中,对于该数据行,其第一描述信息中的区块个数为1。Please continue to refer to FIG. 8 to illustrate the number of blocks by taking the reconstruction of a line of image data in a long-exposure RAW image as an example. The row of image data can be divided into 5 blocks, namely Block 1, Block 2, Block 3, Block 4, and Block 5, of which Block 1, Block 3, and Block 5 are not of interest Area, block 2 belongs to ROI 1, and block 4 belongs to ROI 2. Correspondingly, block 1, block 3 and block 5 will be reorganized into the same data line of the same data block by the data packing unit 120, and for this data line, the number of blocks in the first description information is 3; Block 2 will be reorganized into a data line of a data block by the data packing unit 120, and for this data line, the number of blocks in its first description information is 1; block 2 will be reorganized by the data packing unit 120 into In a data row of a data block, the number of blocks in the first description information is 1 for the data row.
在一可选地实施例中,数据包包括包头部分和包体部分,在M大于或等于N时,L等于1,数据打包单元120被配置为根据M个数据块各自对应的优先级,将M个数据块依次写入同一数据包的包体部分,以及获取M个数据块的第二描述信息,并将第二描述信息写入同一数据包的包头部分,得到1个数据包;或者,In an optional embodiment, the data packet includes a packet header and a packet body, and when M is greater than or equal to N, L is equal to 1, and the data packing unit 120 is configured to, according to the respective priorities of the M data blocks, M data blocks are sequentially written into the packet body part of the same data packet, and the second description information of the M data blocks is obtained, and the second description information is written into the header part of the same data packet to obtain 1 data packet; or,
在M小于N时,L等于M,数据打包单元120被配置为将M个数据块分别写入M个数据包的包体部分,以及获取每一数据包中包体部分写入的数据块的第三描述信息,将每一数据包对应的第三描述信息写入每一数据包的包头部分,得到M个数据包。When M is less than N, L is equal to M, and the data packing unit 120 is configured to respectively write M data blocks into the body parts of M data packets, and obtain the data blocks written in the body parts of each data packet The third descriptive information is to write the third descriptive information corresponding to each data packet into the packet header of each data packet to obtain M data packets.
其中,第二描述信息包括包体部分写入的数据块的个数信息(即M的取值)、各数据块的优先级信息、位置信息(用于描述数据块在整个数据包中的位置)以及数据大小信息中的至少一种,第三描述信息包括包体部分写入的数据块的序号信息(用于描述写入的数据块为M个数据块中的第几个数据块)、优先级信息、数据大小信息中的至少一种。Wherein, the second description information includes the number information of the data blocks written in the package body (that is, the value of M), the priority information of each data block, and the position information (used to describe the position of the data block in the entire data package) ) and at least one of the data size information, the third description information includes the serial number information of the data block written in the package body (for describing which data block the written data block is in the M data blocks), At least one of priority information and data size information.
比如,请参照图9,数据打包单元120将第一数据接口单元110获取到的N帧RAW图像重组为M(3)个数据块,分别为数据块1、数据块2和数据块3,并为数据块1分配优先级“高”,为数据块2分配优先级“中”,为数据块3分配优先级“低”,相应的,由于此时M等于N,数据打包单元120依次将数据块1、数据块2以及数据块3写入同一数据包的 包体部分,然后,数据打包单元120获取到这三个数据块的第二描述信息写入包头部分,其中包括写入的数据块的个数信息“3”,数据块1的位置信息、优先级信息以及数据大小信息,数据块2的位置信息、优先级信息以及数据大小信息和数据块3的位置信息、优先级信息以及数据大小信息。For example, referring to FIG. 9 , the data packing unit 120 reorganizes the N frames of RAW images obtained by the first data interface unit 110 into M (3) data blocks, which are respectively data block 1, data block 2 and data block 3, and Assign priority "high" to data block 1, assign priority "middle" to data block 2, and assign priority "low" to data block 3. Correspondingly, since M is equal to N at this time, the data packing unit 120 sequentially packs the data Block 1, data block 2, and data block 3 are written into the packet body of the same data packet, and then, the data packing unit 120 obtains the second description information of the three data blocks and writes them into the packet header, including the written data block The number information "3", the location information, priority information, and data size information of data block 1, the location information, priority information, and data size information of data block 2, and the location information, priority information, and data size information of data block 3 size information.
在一可选地实施例中,图像处理芯片100被配置为将数据包的包头部分发送至应用处理芯片;以及按照数据包的包体部分中M个数据块各自对应的优先级,将包体部分中的M个数据块依次发送至应用处理芯片。In an optional embodiment, the image processing chip 100 is configured to send the packet header part of the data packet to the application processing chip; and send the packet body The M data blocks in the section are sequentially sent to the application processing chip.
比如,第二数据接口单元130先将数据包的包头部分发送至应用处理芯片,然后再根据包体部分部分写入的M个数据块的优先级,按照优先级由高至低的顺序,依次将包体部分中的M个数据块发送至应用处理芯片。For example, the second data interface unit 130 first sends the header part of the data packet to the application processing chip, and then according to the priority of the M data blocks written in the packet body part, according to the order of priority from high to low, sequentially Send the M data blocks in the packet body to the application processing chip.
本实施例中,应用处理芯片可以在接收到完整的数据包之后再对M个数据块进行并行解析以及图像处理,也可以在每次接收到一个数据块之后,即对接收到的数据块进行解析和图像处理。In this embodiment, the application processing chip can perform parallel parsing and image processing on the M data blocks after receiving a complete data packet, or can perform processing on the received data blocks after receiving a data block each time. parsing and image processing.
在一可选地实施例中,图像处理芯片100被配置为将M个数据包并行地发送至应用处理芯片。In an optional embodiment, the image processing chip 100 is configured to send M data packets to the application processing chip in parallel.
比如,假设数据打包单元120封装得到3个数据包,则图像处理芯片100相应通过第二数据接口单元130提供的3个数据传输通道,将封装得到的3个数据包并行地发送至应用处理芯片,供应用处理芯片进行图像处理。For example, assuming that the data packaging unit 120 encapsulates and obtains three data packets, the image processing chip 100 sends the three data packets obtained by encapsulation to the application processing chip in parallel through the three data transmission channels provided by the second data interface unit 130. , supplying the application processing chip for image processing.
在一可选地实施例中,数据打包单元120被配置为在应用处理芯片空闲的数据传输通道的数量小于N时,获取N帧RAW图像,并根据应用处理芯片的图像处理需求信息,将N帧RAW图像中的图像数据重组为M个数据块后封装为L个数据包。In an optional embodiment, the data packing unit 120 is configured to obtain N frames of RAW images when the number of idle data transmission channels of the application processing chip is less than N, and according to the image processing requirement information of the application processing chip, N The image data in the frame RAW image is reorganized into M data blocks and then encapsulated into L data packets.
本实施例中,图像处理芯片100并不始终对来源于图像传感器的N帧图像进行打包传输。其中,数据打包单元120实时识别应用处理芯片空闲的数据传输通道的数量,并在应用处理芯片空闲的数据传输通道的数量小于N时,获取N帧RAW图像,并根据应用处理芯片的图像处理需求信息,将N帧RAW图像中的图像数据重组为M个数据块后封装为L个数据包,具体请参照以上实施例中的相关描述,此处不再赘述。In this embodiment, the image processing chip 100 does not always package and transmit N frames of images from the image sensor. Wherein, the data packaging unit 120 recognizes the number of idle data transmission channels of the application processing chip in real time, and when the number of idle data transmission channels of the application processing chip is less than N, acquires N frames of RAW images, and performs processing according to the image processing requirements of the application processing chip information, reorganize the image data in N frames of RAW images into M data blocks and then encapsulate them into L data packets. For details, please refer to the relevant descriptions in the above embodiments, and details will not be repeated here.
本实施例中,第二数据接口单元130被配置为通过应用处理芯片空闲的数据传输通道将数据包传输至应用处理芯片。In this embodiment, the second data interface unit 130 is configured to transmit the data packet to the application processing chip through an idle data transmission channel of the application processing chip.
比如,当应用处理芯片芯片空闲的数据传输通道唯一时,图像处理芯片100可以通过第二数据接口单元130提供的该唯一的数据传输通道将数据包传输至应用处理芯片;For example, when the application processing chip chip has only one idle data transmission channel, the image processing chip 100 can transmit the data packet to the application processing chip through the unique data transmission channel provided by the second data interface unit 130;
又比如,当应用处理芯片空闲的数据传输通道不唯一时,图像处理芯片100可以通过第二数据接口单元130提供的任一空闲数据传输通道将数据包传输至应用处理芯片,还可以根据空闲数据传输通道的数量将数据包拆分为相同数量的子数据包,将拆分得到的子数据包均衡到每一空闲的数据传输通道传输至应用处理芯片。For another example, when the idle data transmission channel of the application processing chip is not unique, the image processing chip 100 can transmit the data packet to the application processing chip through any idle data transmission channel provided by the second data interface unit 130, and can also transmit the data packet to the application processing chip according to the idle data The number of transmission channels splits the data packet into the same number of sub-packets, and equalizes the split sub-packets to each idle data transmission channel for transmission to the application processing chip.
在其他实施例中,在应用处理芯片空闲的数据通道的数量大于或等于N时,图像处理芯片100被配置为将N帧RAW图像并行地传输至应用处理芯片。In other embodiments, when the number of idle data channels of the application processing chip is greater than or equal to N, the image processing chip 100 is configured to transmit N frames of RAW images to the application processing chip in parallel.
请参照图10,本申请还提供一种应用处理芯片200,如图10所示,该应用处理芯片200包括第三数据接口单元210、数据解包单元220和图像处理单元230。Referring to FIG. 10 , the present application also provides an application processing chip 200 . As shown in FIG. 10 , the application processing chip 200 includes a third data interface unit 210 , a data unpacking unit 220 and an image processing unit 230 .
应当说明的是,本申请所提供的应用处理芯片200可以配置在具备图像传感器以及本申请所提供的图像处理芯片的 电子设备中,用于实现图像处理。其中,电子设备的实体类型可以是智能手机、平板电脑、掌上电脑、笔记本电脑等移动式电子设备,也可以是台式电脑、电视等固定式电子设备,本申请对此不作具体限制It should be noted that the application processing chip 200 provided in this application can be configured in an electronic device equipped with an image sensor and an image processing chip provided in this application to implement image processing. Among them, the entity type of the electronic equipment may be a mobile electronic equipment such as a smart phone, a tablet computer, a handheld computer, or a notebook computer, or a fixed electronic equipment such as a desktop computer or a television, and this application does not make specific limitations on this
本实施例中,第三数据接口单元210用于提供应用处理芯片200和图像处理芯片之间的数据传输通道,以实现应用处理芯片200和图像处理芯片之间的数据传输。此处对第三数据接口单元210的实体类型不做具体限制,包括但不限于移动产业处理器接口(Mobile Industry Processor Interface,MIPI)、PCI-E接口等。比如,本申请实施例中第三数据接口单元210的实体类型为移动产业处理器接口。In this embodiment, the third data interface unit 210 is used to provide a data transmission channel between the application processing chip 200 and the image processing chip, so as to realize data transmission between the application processing chip 200 and the image processing chip. Here, there is no specific limitation on the entity type of the third data interface unit 210, including but not limited to Mobile Industry Processor Interface (MIPI), PCI-E interface, etc. For example, in the embodiment of the present application, the entity type of the third data interface unit 210 is a mobile industry processor interface.
图像处理单元220被配置为生成图像处理需求信息,该图像处理需求信息用于描述图像处理单元230的图像处理需求,包括但不限于进行何种类型的图像处理,以及如何进行图像处理等。The image processing unit 220 is configured to generate image processing requirement information, which is used to describe the image processing requirement of the image processing unit 230 , including but not limited to what type of image processing to perform and how to perform image processing.
应用处理芯片200被配置为通过第三数据接口单元210将图像处理单元230的图像处理需求信息传输至图像处理芯片,供图像处理芯片根据图像处理需求信息,将获取的N帧RAW图像中的图像数据重组为M个数据块后封装为L数据包,N、M为大于1的正整数,L为小于N的正整数。具体说明请参照以上图像处理芯片实施例中的相关描述,此处不再赘述。另外,应用处理芯片200还被配置为从图像处理芯片获取对应图像处理需求信息的L个数据包。其中,应用处理芯片200可以通过第三数据接口单元210接收图像处理芯片发送的L个数据包。The application processing chip 200 is configured to transmit the image processing requirement information of the image processing unit 230 to the image processing chip through the third data interface unit 210, so that the image processing chip can convert the image in the acquired N frames of RAW images according to the image processing requirement information The data is reorganized into M data blocks and then encapsulated into L data packets, where N and M are positive integers greater than 1, and L is a positive integer smaller than N. For specific description, please refer to the relevant description in the above embodiment of the image processing chip, which will not be repeated here. In addition, the application processing chip 200 is further configured to acquire L data packets corresponding to image processing requirement information from the image processing chip. Wherein, the application processing chip 200 may receive L data packets sent by the image processing chip through the third data interface unit 210 .
数据解包单元220被配置为将L个数据包拆分为M个数据块后进行并行解析得到图像数据。其中,数据解包单元220在应用处理芯片200获取到对应图像处理需求信息的L个数据包之后,将这L个数据包逆向解析为M个数据块,并对M个数据块进行并行解析,得到对应的图像数据。The data unpacking unit 220 is configured to split the L data packets into M data blocks and perform parallel parsing to obtain image data. Wherein, the data unpacking unit 220 reversely parses the L data packets into M data blocks after the application processing chip 200 obtains the L data packets corresponding to the image processing demand information, and performs parallel parsing on the M data blocks, Get the corresponding image data.
图像处理单元230被配置为对M个数据块解析得到的图像数据进行图像处理。The image processing unit 230 is configured to perform image processing on the image data obtained by analyzing the M data blocks.
比如,图像处理需求信息可以描述:For example, image processing requirement information can describe:
图像处理单元230需要利用同一拍摄场景的3帧RAW图像进行高动态范围合成处理,且需要先对拍摄场景的感兴趣区域(Region of Interest,ROI)进行高动态范围合成处理,再对拍摄场景的非感兴趣区域进行高动态范围合成处理。The image processing unit 230 needs to use 3 frames of RAW images of the same shooting scene to perform high dynamic range synthesis processing, and firstly perform high dynamic range synthesis processing on the region of interest (Region of Interest, ROI) of the shooting scene, and then perform high dynamic range synthesis processing on the region of interest (ROI) of the shooting scene. Regions of non-interest are processed for high dynamic range compositing.
相应的,图像传感器可以采集前述拍摄场景的3帧曝光参数不同的RAW图像,分别为长曝光RAW图像、中曝光RAW图像和短曝光RAW图像。相应的,图像处理芯片从图像传感器获取到长曝光RAW图像、中曝光RAW图像和短曝光RAW图像。并根据以上图像处理需求信息,将长曝光RAW图像、中曝光RAW图像和短曝光RAW图像中感兴趣区域的图像数据重组为一个数据块,将长曝光RAW图像、中曝光RAW图像和短曝光RAW图像中非感兴趣区域的图像数据重组为另一数据块。以此,3帧RAW图像中的图像数据被重组为2个数据块,且每一数据块均包括图像处理单元230进行高动态范围合成处理所需的全部图像数据。之后,图像处理芯片将重组得到2个数据块打包为2个数据包传输至应用处理芯片200。另一方面,应用处理芯片200将通过第三数据接口单元210接收到图像处理芯片传输的2个数据包。Correspondingly, the image sensor can collect the RAW images of the aforementioned three frames of the shooting scene with different exposure parameters, which are the long-exposure RAW image, the medium-exposure RAW image and the short-exposure RAW image. Correspondingly, the image processing chip acquires a long-exposure RAW image, a medium-exposure RAW image and a short-exposure RAW image from the image sensor. And according to the above image processing requirement information, the image data of the region of interest in the long-exposure RAW image, medium-exposure RAW image and short-exposure RAW image are reorganized into a data block, and the long-exposure RAW image, medium-exposure RAW image and short-exposure RAW image Image data for areas not of interest in the image are reorganized into another data block. In this way, the image data in the 3 frames of RAW images are reorganized into 2 data blocks, and each data block includes all the image data required by the image processing unit 230 for the high dynamic range synthesis process. Afterwards, the image processing chip packs the two data blocks obtained through recombination into two data packets and transmits them to the application processing chip 200 . On the other hand, the application processing chip 200 will receive the two data packets transmitted by the image processing chip through the third data interface unit 210 .
之后,数据解包单元220将2个数据包拆分为2个数据块,再对2个数据块进行并行解析,从其中一数据块解析得到长曝光RAW图像、中曝光RAW图像以及短曝光RAW图像中感兴趣区域的图像数据,从另一数据快解析得到长曝光RAW图像、中曝光RAW图像以及短曝光RAW图像中非感兴趣区域的图像数据。Afterwards, the data unpacking unit 220 splits the two data packets into two data blocks, and then analyzes the two data blocks in parallel, and obtains a long-exposure RAW image, a medium-exposure RAW image, and a short-exposure RAW image from one of the data blocks. The image data of the region of interest in the image is quickly analyzed from another data to obtain the image data of the non-interest region in the long-exposure RAW image, the medium-exposure RAW image, and the short-exposure RAW image.
之后,图像处理单元230对长曝光RAW图像、中曝光RAW图像以及短曝光RAW图像中感兴趣区域的图像数据进行高动态范围合成处理,得到高动态范围的感兴趣区域图像数据,对长曝光RAW图像、中曝光RAW图像以及短曝光RAW图像中非感兴趣区域的图像数据进行高动态范围合成处理,得到高动态范围的非感兴趣区域图像数据。最后,图像处理单元230拼接高动态范围的感兴趣区域图像数据和非感兴趣区域图像数据,即得到高动态范围合成图像。Afterwards, the image processing unit 230 performs high dynamic range synthesis processing on the image data of the region of interest in the long-exposure RAW image, the medium-exposure RAW image, and the short-exposure RAW image to obtain high dynamic range image data of the region of interest. The image data of the non-interest region in the image, the medium-exposure RAW image and the short-exposure RAW image are subjected to high dynamic range synthesis processing to obtain high dynamic range non-interest region image data. Finally, the image processing unit 230 stitches the high dynamic range ROI image data and the non-ROI image data to obtain a high dynamic range composite image.
在一可选地实施例中,数据解包单元220被配置为从预设的线程池中调用M个空闲的解析线程对M个数据块进行并行解析。In an optional embodiment, the data unpacking unit 220 is configured to invoke M idle parsing threads from a preset thread pool to perform parallel parsing on the M data blocks.
其中,线程池包括多种不同类型的线程,经由预先构建得到。Among them, the thread pool includes multiple different types of threads, which are obtained through pre-construction.
比如,假设图像处理芯片将获取的3帧RAW图像重组为2个数据块,则数据解包单元220可以从预设的线程池中调用2个空闲的解析线程对2个数据块进行并行解析。For example, assuming that the image processing chip reassembles the acquired 3 frames of RAW images into 2 data blocks, the data unpacking unit 220 may call 2 idle parsing threads from the preset thread pool to analyze the 2 data blocks in parallel.
在一可选地实施例中,数据解包单元220还被配置为在线程池中空闲的解析线程的数量小于M时,按照每一数据块对应的优先级,调用线程池中空闲的解析线程依次对M个数据块进行解析。In an optional embodiment, the data unpacking unit 220 is also configured to call the idle parsing thread in the thread pool according to the priority corresponding to each data block when the number of idle parsing threads in the thread pool is less than M The M data blocks are parsed in sequence.
本实施例中,数据解包单元220在空闲的解析线程不足以对拆分得到的数据块进行并行解析时,将按照数据块的优先级依次进行解析。In this embodiment, the data unpacking unit 220 will analyze the data blocks sequentially according to the priorities of the data blocks when there are not enough free parsing threads to perform parallel parsing on the split data blocks.
比如,当空闲的解析线程唯一时,数据解包单元220可以按照优先级由高至低的顺序,调用该唯一空闲的解析线程依次对数据包拆分得到的M个数据块进行解析;For example, when there is only one idle parsing thread, the data unpacking unit 220 may call the only idle parsing thread to parse the M data blocks obtained by splitting the data packet in sequence according to the order of priority from high to low;
又比如,当空闲的解析线程为K(K为大于1,且小于M的正整数)个时,数据解包单元220可以按照优先级由高至低的顺序,调用K个空闲的解析线程先对优先级最高的K个数据块进行并行解析;若剩余的未解析数据块大于K个,则可再次调用K个空闲的解析线程剩余的优先级最高的K个数据块进行并行解析,直至剩余的未解析数据块小于K个;此时,则可以根据剩余的未解析数据块的个数,调用相应个数空闲的解析线程对剩余的未解析数据块进行解析,其中,若剩余1个未解析数据块,则调用1个空闲的解析线程对剩余的1个未解析数据块进行解析,若剩余多个未解析数据块,则调用相应个数空闲的解析线程对剩余的未解析数据块进行并行解析。For another example, when there are K idle parsing threads (K is a positive integer greater than 1 and less than M), the data unpacking unit 220 may call the K idle parsing threads first in order of priority from high to low. Parallel parsing is performed on the K data blocks with the highest priority; if the remaining unparsed data blocks are greater than K, K idle parsing threads can be called again to perform parallel parsing on the remaining K data blocks with the highest priority until the remaining The number of unresolved data blocks is less than K; at this time, according to the number of remaining unresolved data blocks, the corresponding number of idle parsing threads can be called to analyze the remaining unresolved data blocks. To parse the data block, call 1 idle parsing thread to parse the remaining 1 unparsed data block; Parallel parsing.
在一可选地实施例中,图像处理单元230还被配置为在数据解包单元220每次完成对M个数据块中一数据块的解析时,对解析得到的图像数据进行图像处理。In an optional embodiment, the image processing unit 230 is further configured to perform image processing on the analyzed image data when the data unpacking unit 220 finishes analyzing a data block in the M data blocks each time.
应当说明的是,不同数据块的数据大小不同,数据解包单元220在对数据块进行解析时,有的数据块将被先解析完成,有的数据块将被后解析完成。由于各数据块中的图像数据能够独立地用于图像处理,为提升图像处理效率,图像处理单元230可以在数据解包单元220每次完成对M个数据块中一数据块的解析时,即对解析得到的图像数据进行图像处理。It should be noted that different data blocks have different data sizes. When the data unpacking unit 220 parses the data blocks, some data blocks will be parsed first, and some data blocks will be parsed later. Since the image data in each data block can be independently used for image processing, in order to improve the image processing efficiency, the image processing unit 230 can complete the analysis of a data block in the M data blocks each time when the data unpacking unit 220, that is Image processing is performed on the analyzed image data.
请参照图11,本申请还提供一种电子设备10,包括图像处理芯片100和应用处理芯片200,其中,Please refer to FIG. 11 , the present application also provides an electronic device 10, including an image processing chip 100 and an application processing chip 200, wherein,
应用处理芯片200被配置为生成图像处理需求信息,并将图像处理需求信息传输至图像处理芯片100;The application processing chip 200 is configured to generate image processing requirement information, and transmit the image processing requirement information to the image processing chip 100;
图像处理芯片100被配置为获取N帧RAW图像,N为大于1的正整数;以及根据图像处理需求信息将N帧RAW 图像中的图像数据重组为M个数据块,M为大于1的正整数;以及将M个数据块封装为L个数据包后传输至应用处理芯片200;The image processing chip 100 is configured to acquire N frames of RAW images, where N is a positive integer greater than 1; and reorganize the image data in the N frames of RAW images into M data blocks according to the image processing requirement information, and M is a positive integer greater than 1 ; and encapsulate the M data blocks into L data packets and transmit them to the application processing chip 200;
应用处理芯片200还被配置为将L个数据包拆分为M个数据块后进行并行解析得到图像数据,并对解析到的图像数据进行图像处理。The application processing chip 200 is further configured to split the L data packets into M data blocks, perform parallel parsing to obtain image data, and perform image processing on the parsed image data.
在一可选地实施例中,图像处理芯片100被配置为根据图像处理需求信息,为每一RAW图像中不同位置的图像数据分配优先级;以及将N帧RAW图像中相同优先级的图像数据重组为数据块,得到M个数据块。In an optional embodiment, the image processing chip 100 is configured to assign priorities to image data at different positions in each RAW image according to image processing requirement information; and assign image data with the same priority in N frames of RAW images Reorganize into data blocks to obtain M data blocks.
在一可选地实施例中,数据块包括多个数据行,数据行包括行头部分和行体部分,图像处理芯片100被配置为将N帧RAW图像中相同优先级的图像数据依次写入同一数据块的不同数据行的行体部分;以及获取每一数据行中行体部分写入的图像数据的第一描述信息,将对应每一数据行的第一描述信息写入每一数据行的行头部分。In an optional embodiment, the data block includes a plurality of data rows, the data row includes a row header part and a row body part, and the image processing chip 100 is configured to sequentially write image data of the same priority in N frames of RAW images into the same The row body part of different data rows of the data block; and the first description information of the image data written in the row body part of each data row is obtained, and the first description information corresponding to each data row is written into the row header of each data row part.
在一可选地实施例中,数据包包括包头部分和包体部分,在M大于或等于N时,L等于1,图像处理芯片100被配置为根据M个数据块各自对应的优先级,将M个数据块依次写入包体部分;以及获取M个数据块的第二描述信息,并将第二描述信息写入包头部分。In an optional embodiment, the data packet includes a packet header and a packet body. When M is greater than or equal to N, L is equal to 1, and the image processing chip 100 is configured to assign The M data blocks are sequentially written into the packet body; and the second description information of the M data blocks is acquired, and the second description information is written into the packet header.
在一可选地实施例中,图像处理芯片100被配置为将包头部分发送至应用处理芯片;以及按照M个数据块各自对应的优先级,将包体部分中的M个数据块依次发送至应用处理芯片200。In an optional embodiment, the image processing chip 100 is configured to send the packet header part to the application processing chip; and send the M data blocks in the packet body part to the application processing chip in sequence according to the respective priorities of the M data blocks. Application processing chip 200 .
在一可选地实施例中,在M小于N时,L等于M,图像处理芯片100被配置为将M个数据块分别写入M个数据包的包体部分,以及获取每一数据包中包体部分写入的数据块的第三描述信息,将对应每一数据包的第三描述信息写入每一数据包的包头部分。In an optional embodiment, when M is less than N, L is equal to M, and the image processing chip 100 is configured to respectively write M data blocks into the packet bodies of M data packets, and obtain The third descriptive information of the data block written in the packet body, the third descriptive information corresponding to each data packet is written into the packet header of each data packet.
具体说明请参照以上相关实施例,此处不再赘述。For specific description, please refer to the relevant embodiments above, and details are not repeated here.
请参照图12,本申请还提供一种图像处理方法,该图像处理方法应用于图像处理芯片,包括:Please refer to Figure 12, the present application also provides an image processing method, which is applied to an image processing chip, including:
在410中,获取N帧RAW图像,N为大于1的正整数。In 410, N frames of RAW images are acquired, where N is a positive integer greater than 1.
在420中,根据应用处理芯片的图像处理需求信息,将N帧RAW图像中的图像数据重组为M个数据块,M为大于1的正整数。In 420, according to the image processing requirement information of the application processing chip, reorganize the image data in the N frames of RAW images into M data blocks, where M is a positive integer greater than 1.
在430中,将M个数据块封装为L个数据包,L为小于N的正整数。In 430, the M data blocks are encapsulated into L data packets, where L is a positive integer smaller than N.
在440中,将L个数据包传输至应用处理芯片。At 440, L data packets are transmitted to the application processing chip.
在一可选地实施例中,根据应用处理芯片的图像处理需求信息,为每一RAW图像中不同位置的图像数据分配优先级;以及将N帧RAW图像中相同优先级的图像数据重组为数据块,得到M个数据块。In an optional embodiment, according to the image processing demand information of the application processing chip, assign priorities to image data in different positions in each RAW image; and recombine image data with the same priority in N frames of RAW images into data blocks to get M data blocks.
在一可选地实施例中,数据块包括多个数据行,数据行包括行头部分和行体部分,将N帧RAW图像中相同优先级的图像数据依次写入同一数据块的不同数据行的行体部分;获取每一数据行中行体部分写入的图像数据的第一描述信息,将对应每一数据行的第一描述信息写入每一数据行的行头部分。In an optional embodiment, the data block includes a plurality of data lines, and the data line includes a line header part and a line body part, and the image data of the same priority in N frames of RAW images are sequentially written into different data lines of the same data block The row body part: acquiring the first description information of the image data written in the row body part in each data row, and writing the first description information corresponding to each data row into the row header part of each data row.
在一可选地实施例中,第一描述信息包括数据行中行体部分写入的图像数据的来源RAW图像信息、在来源RAW图像中的位置信息、数据大小信息以及优先级信息中的至少一种。In an optional embodiment, the first description information includes at least one of source RAW image information, position information in the source RAW image, data size information, and priority information of the image data written in the row body part of the data row. kind.
在一可选地实施例中,数据包包括包头部分和包体部分,在M大于或等于N时,L等于1,根据M个数据块各自对应的优先级,将M个数据块依次写入至包体部分;获取M个数据块的第二描述信息,并将第二描述信息写入包头部分。In an optional embodiment, the data packet includes a packet header and a packet body. When M is greater than or equal to N, L is equal to 1. According to the respective priorities of the M data blocks, the M data blocks are sequentially written to the packet body; acquire the second description information of the M data blocks, and write the second description information into the packet header.
在一可选地实施例中,将包头部分发送至应用处理芯片;以及按照M个数据块各自对应的优先级,将包体部分中的M个数据块依次发送至应用处理芯片。In an optional embodiment, the packet header is sent to the application processing chip; and the M data blocks in the packet body are sequentially sent to the application processing chip according to the respective priorities of the M data blocks.
在一可选地实施例中,在M小于N时,L等于M,将M个数据块分别写入M个数据包的包体部分,以及获取每一数据包中包体部分写入的数据块的第三描述信息,将对应每一数据包的第三描述信息写入每一数据包的包头部分。In an optional embodiment, when M is less than N, L is equal to M, M data blocks are respectively written into the body parts of M data packets, and the data written in the body parts of each data packet is acquired For the third description information of the block, write the third description information corresponding to each data packet into the packet header of each data packet.
在一可选地实施例中,第二描述信息包括包体部分写入的数据块的个数信息、每一数据块的优先级信息、位置信息以及数据大小信息中的至少一种;和/或,第三描述信息包括包体部分写入的数据块的序号信息、优先级信息和数据大小信息中的至少一种。In an optional embodiment, the second description information includes at least one of the number information of the data blocks written in the packet body, the priority information of each data block, the location information and the data size information; and/ Alternatively, the third description information includes at least one of sequence number information, priority information, and data size information of the data blocks written in the packet body.
应当说明的是,本申请实施例所提供的图像处理方法与以上的图像处理芯片属于同一构思,详细说明请参照以上实施例中对于图像处理芯片的相关说明,在此不再赘述。It should be noted that the image processing method provided by the embodiment of the present application belongs to the same concept as the above image processing chip, and for detailed description, please refer to the relevant description of the image processing chip in the above embodiment, and details will not be repeated here.
请参照图13,本申请还提供一种图像处理方法,该图像处理方法应用于应用处理芯片,包括:Please refer to Figure 13, the present application also provides an image processing method, which is applied to an application processing chip, including:
在510中,生成图像处理需求信息,并将图像处理需求信息传输至图像处理芯片。In 510, image processing requirement information is generated, and the image processing requirement information is transmitted to the image processing chip.
在520中,从图像处理芯片获取对应图像处理需求信息的L个数据包。In 520, L data packets corresponding to image processing requirement information are acquired from the image processing chip.
在530中,将L个数据包拆分为M个数据块后进行并行解析得到图像数据,L个数据包由N帧RAW图像中的图像数据重组为M个数据块后封装得到,N、M为大于1的正整数,L为小于N的正整数。In 530, the L data packets are split into M data blocks and then analyzed in parallel to obtain image data. The L data packets are obtained by reassembling the image data in N frames of RAW images into M data blocks and then encapsulating them. N, M is a positive integer greater than 1, and L is a positive integer less than N.
在540中,对解析得到的图像数据进行图像处理。In 540, image processing is performed on the analyzed image data.
在一可选地实施例中,从预设的线程池中调用M个空闲的解析线程对M个数据块进行并行解析。In an optional embodiment, M idle parsing threads are invoked from a preset thread pool to perform parallel parsing on M data blocks.
在一可选地实施例中,在线程池中空闲的解析线程的数量小于M时,按照每一数据块对应的优先级,调用线程池中空闲的解析线程依次对M个数据块进行解析。In an optional embodiment, when the number of idle parsing threads in the thread pool is less than M, according to the priority corresponding to each data block, the idle parsing threads in the thread pool are called to parse the M data blocks in turn.
在一可选地实施例中,在每次完成对M个数据块中一数据块的解析时,对解析得到的图像数据进行图像处理。In an optional embodiment, each time the analysis of a data block among the M data blocks is completed, image processing is performed on the image data obtained through analysis.
应当说明的是,本申请实施例所提供的图像处理方法与以上提供的应用处理芯片属于同一构思,详细说明请参照以上实施例中对于应用处理芯片的相关说明,在此不再赘述。It should be noted that the image processing method provided in the embodiment of the present application is based on the same idea as the application processing chip provided above. For detailed description, please refer to the relevant description of the application processing chip in the above embodiment, and details will not be repeated here.
以上对本申请实施例提供的图像处理芯片、应用处理芯片、电子设备及图像处理方法进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请。同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The image processing chip, the application processing chip, the electronic device and the image processing method provided in the embodiments of the present application have been introduced in detail above. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application, and the descriptions of the above embodiments are only used to help understand the present application. At the same time, for those skilled in the art, based on the idea of this application, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be construed as limiting the application.

Claims (20)

  1. 一种图像处理芯片,其中,包括:An image processing chip, including:
    数据打包单元,用于获取N帧RAW图像,N为大于1的正整数;以及根据应用处理芯片的图像处理需求信息,将所述N帧RAW图像中的图像数据重组为M个数据块,M为大于1的正整数;以及将所述M个数据块封装为L个数据包,L为小于N的正整数;The data packaging unit is used to acquire N frames of RAW images, where N is a positive integer greater than 1; and according to the image processing requirement information of the application processing chip, reorganize the image data in the N frames of RAW images into M data blocks, M is a positive integer greater than 1; and encapsulates the M data blocks into L data packets, where L is a positive integer less than N;
    所述图像处理芯片用于将所述L个数据包传输至所述应用处理芯片。The image processing chip is used to transmit the L data packets to the application processing chip.
  2. 根据权利要求1所述的图像处理芯片,其中,所述数据打包单元用于根据所述图像处理需求信息,为每一RAW图像中不同位置的图像数据分配优先级;以及将所述N帧RAW图像中相同优先级的图像数据重组为数据块,得到所述M个数据块。The image processing chip according to claim 1, wherein the data packing unit is used for assigning priorities to image data in different positions in each RAW image according to the image processing requirement information; and the N frames of RAW Image data of the same priority in the image are reorganized into data blocks to obtain the M data blocks.
  3. 根据权利要求2所述的图像处理芯片,其中,所述数据块包括多个数据行,所述数据行包括行头部分和行体部分,所述数据打包单元用于将所述N帧RAW图像中相同优先级的图像数据依次写入同一数据块的不同数据行的行体部分;以及获取每一数据行中行体部分写入的图像数据的第一描述信息,将对应每一数据行的所述第一描述信息写入每一数据行的行头部分。The image processing chip according to claim 2, wherein the data block includes a plurality of data lines, the data lines include a line header part and a line body part, and the data packing unit is used to pack the N frames of RAW images into Image data of the same priority is sequentially written into the row body part of different data rows of the same data block; The first description information is written in the row header of each data row.
  4. 根据权利要求3所述的图像处理芯片,其中,所述第一描述信息包括数据行中行体部分写入的图像数据的来源RAW图像信息、在来源RAW图像中的位置信息、数据大小信息以及优先级信息中的至少一种。The image processing chip according to claim 3, wherein the first description information includes source RAW image information, position information in the source RAW image, data size information, and priority At least one of the level information.
  5. 根据权利要求2所述的图像处理芯片,其中,所述数据包包括包头部分和包体部分,在M大于或等于N时,L等于1,所述数据打包单元用于根据所述M个数据块各自对应的优先级,将所述M个数据块依次写入所述包体部分;以及获取所述M个数据块的第二描述信息,并将所述第二描述信息写入所述包头部分。The image processing chip according to claim 2, wherein the data packet includes a packet header and a packet body, and when M is greater than or equal to N, L is equal to 1, and the data packing unit is used to The corresponding priority of each block, writing the M data blocks into the packet body part in turn; and obtaining the second description information of the M data blocks, and writing the second description information into the packet header part.
  6. 根据权利要求5所述的图像处理芯片,其中,所述图像处理芯片用于将所述包头部分发送至所述应用处理芯片;以及按照所述M个数据块各自对应的优先级,将所述包体部分中的所述M个数据块依次发送至所述应用处理芯片。The image processing chip according to claim 5, wherein the image processing chip is configured to send the packet header part to the application processing chip; and according to the respective priorities of the M data blocks, the The M data blocks in the packet body are sequentially sent to the application processing chip.
  7. 根据权利要求5所述的图像处理芯片,其中,在M小于N时,L等于M,所述数据打包单元用于将所述M个数据块分别写入M个数据包的包体部分,以及获取每一数据包中包体部分写入的数据块的第三描述信息,将对应每一数据包的所述第三描述信息写入每一数据包的包头部分。The image processing chip according to claim 5, wherein, when M is less than N, L is equal to M, and the data packing unit is used to write the M data blocks into the body parts of M data packets respectively, and The third description information of the data block written in the body part of each data packet is obtained, and the third description information corresponding to each data packet is written into the header part of each data packet.
  8. 根据权利要求7所述的图像处理芯片,其中,所述第二描述信息包括包体部分写入的数据块的个数信息、每一数据块的优先级信息、位置信息以及数据大小信息中的至少一种;和/或The image processing chip according to claim 7, wherein the second description information includes information on the number of data blocks written in the package body, priority information of each data block, position information, and data size information. at least one; and/or
    所述第三描述信息包括包体部分写入的数据块的序号信息、优先级信息和数据大小信息中的至少一种。The third description information includes at least one of sequence number information, priority information and data size information of the data blocks written in the packet body.
  9. 一种应用处理芯片,其中,所述应用处理芯片用于传输图像处理需求信息至图像处理芯片,以及从所述图像处理芯片获取对应所述图像处理需求信息的L个数据包,包括:An application processing chip, wherein the application processing chip is used to transmit image processing requirement information to the image processing chip, and obtain L data packets corresponding to the image processing requirement information from the image processing chip, including:
    图像处理单元,用于生成所述图像处理需求信息;an image processing unit, configured to generate the image processing requirement information;
    数据解包单元,用于将所述L个数据包拆分为M个数据块后进行并行解析后得到图像数据,所述L个数据包由N帧RAW图像中的图像数据重组为M个数据块后封装得到,N、M为大于1的正整数,L为小于N的正整数;A data unpacking unit, configured to split the L data packets into M data blocks and perform parallel parsing to obtain image data, and the L data packets are reorganized into M data from image data in N frames of RAW images Obtained by encapsulation after the block, N and M are positive integers greater than 1, and L is a positive integer less than N;
    所述图像处理单元还用于对解析得到的图像数据进行图像处理。The image processing unit is also used to perform image processing on the analyzed image data.
  10. 根据权利要求9所述的应用处理芯片,其中,所述数据解包单元用于从预设的线程池中调用M个空闲的解析线程对所述M个数据块进行并行解析。The application processing chip according to claim 9, wherein the data unpacking unit is configured to invoke M idle parsing threads from a preset thread pool to perform parallel parsing on the M data blocks.
  11. 根据权利要求10所述的应用处理芯片,其中,所述数据解包单元还用于在所述线程池中空闲的解析线程的数量小于M时,按照每一数据块对应的优先级,调用所述线程池中空闲的解析线程依次对所述M个数据块进行解析。The application processing chip according to claim 10, wherein the data unpacking unit is further configured to, when the number of idle parsing threads in the thread pool is less than M, according to the priority corresponding to each data block, call the The idle parsing threads in the thread pool parse the M data blocks in turn.
  12. 根据权利要求11所述的应用处理芯片,其中,所述图像处理单元还用于在所述数据解包单元每次完成对所述M个数据块中一数据块的解析时,对解析得到的图像数据进行图像处理。The application processing chip according to claim 11, wherein the image processing unit is further configured to, when the data unpacking unit finishes analyzing a data block in the M data blocks, analyze the obtained The image data is subjected to image processing.
  13. 一种电子设备,其中,包括图像处理芯片和应用处理芯片,其中,An electronic device, including an image processing chip and an application processing chip, wherein,
    所述应用处理芯片用于生成图像处理需求信息,并将所述图像处理需求信息传输至所述图像处理芯片;The application processing chip is used to generate image processing requirement information, and transmit the image processing requirement information to the image processing chip;
    所述图像处理芯片用于获取N帧RAW图像,N为大于1的正整数;以及根据所述图像处理需求信息将所述N帧RAW图像中的图像数据重组为M个数据块,M为大于1的正整数;以及将所述M个数据块封装为L个数据包后传输至所述应用处理芯片,L为小于N的正整数;The image processing chip is used to acquire N frames of RAW images, where N is a positive integer greater than 1; and reorganizes the image data in the N frames of RAW images into M data blocks according to the image processing requirement information, and M is greater than A positive integer of 1; and the M data blocks are encapsulated into L data packets and then transmitted to the application processing chip, where L is a positive integer smaller than N;
    所述应用处理芯片还用于将所述L个数据包拆分为所述M个数据块后进行并行解析得到图像数据,并对解析到的图像数据进行图像处理。The application processing chip is further configured to split the L data packets into the M data blocks, perform parallel parsing to obtain image data, and perform image processing on the parsed image data.
  14. 根据权利要求13所述的电子设备,其中,所述图像处理芯片用于根据所述图像处理需求信息,为每一RAW图像中不同位置的图像数据分配优先级;以及将所述N帧RAW图像中相同优先级的图像数据重组为数据块,得到所述M个数据块。The electronic device according to claim 13, wherein the image processing chip is configured to assign priorities to image data at different positions in each RAW image according to the image processing requirement information; and divide the N frames of RAW images Image data of the same priority in the image data are reorganized into data blocks to obtain the M data blocks.
  15. 根据权利要求14所述的电子设备,其中,所述数据块包括多个数据行,所述数据行包括行头部分和行体部分,所述图像处理芯片用于将所述N帧RAW图像中相同优先级的图像数据依次写入同一数据块的不同数据行的行体部分;以及获取每一数据行中行体部分写入的图像数据的第一描述信息,将对应每一数据行的所述第一描述信息写入每一数据行的行头部分。The electronic device according to claim 14, wherein the data block includes a plurality of data rows, the data rows include a row header part and a row body part, and the image processing chip is used to convert the same The priority image data is sequentially written into the row body part of different data rows of the same data block; and the first description information of the image data written in the row body part in each data row is obtained, which will correspond to the first description information of each data row A description information is written in the row header portion of each data row.
  16. 根据权利要求14所述的电子设备,其中,所述数据包包括包头部分和包体部分,在M大于或等于N时,L等于1,所述图像处理芯片用于根据所述M个数据块各自对应的优先级,将所述M个数据块依次写入所述包体部分;以及获取所述M个数据块的第二描述信息,并将所述第二描述信息写入所述包头部分。The electronic device according to claim 14, wherein the data packet includes a packet header and a packet body, and when M is greater than or equal to N, L is equal to 1, and the image processing chip is used to Writing the M data blocks into the packet body in turn according to their respective priorities; and obtaining the second description information of the M data blocks, and writing the second description information into the header part .
  17. 根据权利要求16所述的电子设备,其中,所述图像处理芯片用于将所述包头部分发送至所述应用处理芯片;以及按照所述M个数据块各自对应的优先级,将所述包体部分中的所述M个数据块依次发送至所述应用处理芯片。The electronic device according to claim 16, wherein the image processing chip is configured to send the header portion of the packet to the application processing chip; The M data blocks in the body part are sequentially sent to the application processing chip.
  18. 根据权利要求16所述的电子设备,其中,在M小于N时,L等于M,所述图像处理芯片用于将所述M个数 据块分别写入M个数据包的包体部分,以及获取每一数据包中包体部分写入的数据块的第三描述信息,将对应每一数据包的所述第三描述信息写入每一数据包的包头部分。The electronic device according to claim 16, wherein, when M is less than N, L is equal to M, and the image processing chip is used to respectively write the M data blocks into the packet bodies of M data packets, and obtain The third description information of the data block written in the body part of each data packet is written into the header part of each data packet with the third description information corresponding to each data packet.
  19. 一种图像处理方法,应用于图像处理芯片,其中,包括:An image processing method applied to an image processing chip, including:
    获取N帧RAW图像,N为大于1的正整数;Get N frames of RAW images, N is a positive integer greater than 1;
    根据应用处理芯片的图像处理需求信息,将所述N帧RAW图像中的图像数据重组为M个数据块,M为大于1的正整数;According to the image processing demand information of the application processing chip, the image data in the N frames of RAW images are reorganized into M data blocks, and M is a positive integer greater than 1;
    将所述M个数据块封装为L个数据包,L为小于N的正整数;Encapsulating the M data blocks into L data packets, where L is a positive integer less than N;
    将所述L个数据包传输至所述应用处理芯片。and transmitting the L data packets to the application processing chip.
  20. 一种图像处理方法,应用于应用处理芯片,其中,包括:An image processing method applied to an application processing chip, including:
    生成图像处理需求信息,并将所述图像处理需求信息传输至图像处理芯片;generating image processing requirement information, and transmitting the image processing requirement information to an image processing chip;
    从所述图像处理芯片获取对应所述图像处理需求信息的L个数据包;Obtaining L data packets corresponding to the image processing requirement information from the image processing chip;
    将所述L个数据包拆分为M个数据块后进行并行解析得到图像数据,所述L个数据包由N帧RAW图像中的图像数据重组为M个数据块后封装得到,N、M为大于1的正整数,L为小于N的正整数;The L data packets are split into M data blocks and then analyzed in parallel to obtain image data. The L data packets are obtained by reassembling the image data in N frames of RAW images into M data blocks and then encapsulating them. N, M is a positive integer greater than 1, L is a positive integer less than N;
    对解析得到的图像数据进行图像处理。Image processing is performed on the analyzed image data.
PCT/CN2022/112845 2021-08-19 2022-08-16 Image processing chip, method, application processing chip, and electronic device WO2023020503A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110955052.4 2021-08-19
CN202110955052.4A CN115714898A (en) 2021-08-19 2021-08-19 Image processing chip, method, application processing chip and electronic equipment

Publications (1)

Publication Number Publication Date
WO2023020503A1 true WO2023020503A1 (en) 2023-02-23

Family

ID=85230083

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/112845 WO2023020503A1 (en) 2021-08-19 2022-08-16 Image processing chip, method, application processing chip, and electronic device

Country Status (2)

Country Link
CN (1) CN115714898A (en)
WO (1) WO2023020503A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106991665A (en) * 2017-03-24 2017-07-28 中国人民解放军国防科学技术大学 Method based on CUDA image co-registration parallel computations
CN108989314A (en) * 2018-07-20 2018-12-11 北京木瓜移动科技股份有限公司 A kind of Transmitting Data Stream, processing method and processing device
US20190370666A1 (en) * 2018-05-31 2019-12-05 Toyota Research Institute, Inc. System and method for generating improved synthetic images
CN111915505A (en) * 2020-06-18 2020-11-10 北京迈格威科技有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN113012174A (en) * 2021-04-26 2021-06-22 中国科学院苏州生物医学工程技术研究所 Image fusion method, system and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106991665A (en) * 2017-03-24 2017-07-28 中国人民解放军国防科学技术大学 Method based on CUDA image co-registration parallel computations
US20190370666A1 (en) * 2018-05-31 2019-12-05 Toyota Research Institute, Inc. System and method for generating improved synthetic images
CN108989314A (en) * 2018-07-20 2018-12-11 北京木瓜移动科技股份有限公司 A kind of Transmitting Data Stream, processing method and processing device
CN111915505A (en) * 2020-06-18 2020-11-10 北京迈格威科技有限公司 Image processing method, image processing device, electronic equipment and storage medium
CN113012174A (en) * 2021-04-26 2021-06-22 中国科学院苏州生物医学工程技术研究所 Image fusion method, system and equipment

Also Published As

Publication number Publication date
CN115714898A (en) 2023-02-24

Similar Documents

Publication Publication Date Title
TWI595786B (en) Timestamp-based audio and video processing method and system thereof
CN110086967B (en) Image processing method, image processor, photographing device and electronic equipment
CN101827242B (en) Method for realizing video phone system based on IPTV set-top box
US9456232B2 (en) Signal processing apparatus, signal processing method, program, and signal transmission system
CN105993177A (en) Image capture accelerator
US6594399B1 (en) Method and apparatus for integrating multiple 1-D filters into a digital image stream interface
US20080137972A1 (en) Image signal processing apparatus and image signal processing method
CN110022297A (en) A kind of HD video live broadcast system
CN113727114B (en) Transcoded video decoding method
CN112995465B (en) Image transmission system and method based on ZYNQ
WO2022161227A1 (en) Image processing method and apparatus, and image processing chip and electronic device
WO2020142456A1 (en) Methods and apparatus for optimized stitching of overcapture content
CN110225316B (en) Software and hardware cooperative multi-channel video processing device and system
TWI590653B (en) Image frame processing method
CN102215399A (en) Frame buffer compression method, video encoder and system of video encoder
WO2023020503A1 (en) Image processing chip, method, application processing chip, and electronic device
TWI475875B (en) Three-dimensional image genetating device
CN106603936A (en) Low-frame-frequency imaging system and image output method thereof
US11443403B2 (en) Image and video processing using multiple pipelines
WO2020001431A1 (en) Photographing device and playback device
CN109274955B (en) Compression and synchronization method and system for light field video and depth map, and electronic equipment
WO2020215220A1 (en) Interface timing conversion device, image data processing method, transmission method and system, and storage medium
KR20100054586A (en) System and method for multiplexing stereoscopic high-definition video through gpu acceleration and transporting the video with light-weight compression and storage media having program source thereof
CN206364912U (en) A kind of low frame rate imaging system
CN106454280B (en) Method for video transmission based on H.264 network video transmission system

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE