Electronic equipment and picture coding method

By performing image compression on the host computer and performing data format conversion on the target chip and adapter board, the problem of high cost and inability to meet large-size requirements of image compression methods in the existing technology is solved, and efficient display of large-size images is achieved. .

CN118632078APending Publication Date: 2024-09-10WUHU TIANMA AUTOMOTIVE ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410873093.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing image compression methods rely on the performance requirements of the chip, are costly and cannot meet the large size requirements of display screens.

Method used

By performing image compression on the host computer and sending the compressed data to the target chip, the target chip then converts the data format into a format that can be recognized by the display through the adapter board, thereby realizing the decompression and display of large-size images.

Benefits of technology

It solves the problem of picture size being limited by chip performance, meets the display's demand for large-size pictures, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118632078A
    Figure CN118632078A
Patent Text Reader

Abstract

The invention provides electronic equipment and a picture coding method. The electronic equipment comprises a target chip. The target chip is electrically connected with the target chip, the target adapter plate is electrically connected with the target chip, the display screen is electrically connected with the target adapter plate, the target chip is configured to acquire at least one piece of target picture data and store the target picture data in a target storage area of the target chip, and the target picture data is compressed data of a target picture; and at least sending the target picture data to a target adapter plate, so that the target adapter plate converts the format of the target picture data from the first format into a second format, and sends the target picture data to a display screen, thereby enabling the display screen to decompress the target picture data and display a target picture corresponding to the target picture data. The picture is directly compressed through the upper computer, the size of the picture is not limited by the performance of the target chip any more, compression of the large-size picture can be achieved, and the requirement for the large-size picture of the display screen is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image compression, and more specifically, to an electronic device and an image encoding method. Background Art

[0002] During the decoding process of the product display, the compression method of the front-end signal source must be consistent with the decoding method of the product. Some existing image compression methods use chips that support image compression algorithms to compress images. This type of image compression method relies on the performance requirements of the chip. It is not only costly, but also has large restrictions on the size of the image and cannot meet the large-size requirements of the display. Summary of the invention

[0003] The main purpose of the present application is to provide an electronic device and a picture encoding method, so as to at least solve the problem that the existing picture compression method depends on the performance requirements of the chip, is costly and cannot meet the requirements of large-size display screens.

[0004] In order to achieve the above-mentioned purpose, according to one aspect of the present application, an electronic device is provided, including a target chip; a target adapter board electrically connected to the target chip, and a display screen electrically connected to the target adapter board; wherein the target chip is configured to obtain at least one target image data and store the target image data in a target storage area of ​​the target chip, and the target image data is compressed target image data; the target chip is configured to at least send the target image data to the target adapter board, so that the target adapter board converts the format of the target image data from a first format to a second format, and sends the target image data to the display screen, so that the display screen decompresses the target image data and displays the target image corresponding to the target image data, and the second format is a data format recognizable by the display screen.

[0005] According to another aspect of the present application, a picture encoding method is provided, which is applied to a target adapter board in a picture encoding system, the picture encoding system also includes a target chip, the target adapter board is electrically connected to the target chip, and the method includes: obtaining at least one target picture data from the target chip, the target picture data is compressed target picture data, the target picture data is stored in a target storage area of ​​the target chip, the target picture data is data sent from the target chip to the target adapter board; the target adapter board converts the format of the target picture data from a first format to a second format; the target picture data is sent to a display screen, so that the display screen decompresses the target picture data and displays a target picture corresponding to the target picture data, the second format is a data format recognizable by the display screen.

[0006] The technical solution of the present application is applied, and the electronic device includes: a target chip; a target adapter board electrically connected to the target chip, and a display screen electrically connected to the target adapter board. The target chip obtains at least one target image data, and stores the target image data in the target storage area of ​​the target chip, and the target image data is the data of the compressed target image; the target chip sends the target image data to the target adapter board, so that the target adapter board converts the format of the target image data from the first format to the second format, and sends the target image data to the display screen, so that the display screen decompresses the target image data and displays the target image corresponding to the target image data. The image is directly compressed by the host computer, and the host computer can first directly compress the larger size image, and then send the compressed image to the target chip, so that the target chip can receive the compressed data of the large size image, and transmit it to the display screen through the adapter board, and the display screen can display a large size image matching its own size, so that the size of the image is no longer limited by the performance of the target chip, and can realize the compression of large size images, meet the large size image requirements of the display screen, and solve the problem that the existing image compression method depends on the performance requirements of the chip, is costly and cannot meet the large size requirements of the display screen. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] The drawings constituting part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0008] Figure 1 A structural block diagram of an electronic device provided in an embodiment of the present application is shown;

[0009] Figure 2 A structural block diagram of another electronic device provided in an embodiment of the present application is shown;

[0010] Figure 3 A structural block diagram of a target chip provided in an embodiment of the present application is shown;

[0011] Figure 4 A structural block diagram of a target adapter board provided in an embodiment of the present application is shown;

[0012] Figure 5 A schematic diagram showing the number of data bytes provided in an embodiment of the present application is shown;

[0013] Figure 6 A schematic flow chart showing the steps performed by the target chip provided in the embodiments of the present application is shown;

[0014] Figure 7A schematic diagram of a process of a picture encoding method provided in an embodiment of the present application is shown;

[0015] Figure 8 A schematic structural diagram of a display screen provided by an embodiment of the present invention.

[0016] The above drawings include the following reference numerals:

[0017] 10. Target chip; 11. First target interface; 12. Frame buffer; 13. SD card; 20. Target adapter board; 21. Second target interface; 22. Third target interface; 30. Display screen; 40. Host computer; 100. Display panel. DETAILED DESCRIPTION

[0018] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0019] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0020] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0021] As introduced in the background technology, some existing image compression methods compress images through chips that support image compression algorithms. Such image compression methods rely on the performance requirements of the chip, which are not only costly, but also have large restrictions on the size of the image and cannot meet the large-size requirements of the display screen. In order to solve the problem that the existing image compression methods rely on the performance requirements of the chip, are costly and cannot meet the large-size requirements of the display screen, the embodiments of the present application provide an electronic device and an image encoding method.

[0022] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0023] In this embodiment, an electronic device is provided. Figure 1 is a structural block diagram of an electronic device according to an embodiment of the present application. Figure 1 As shown, the electronic device includes a target chip 10; a target adapter board 20 electrically connected to the target chip 10, and a display screen 30 electrically connected to the target adapter board 20;

[0024] The target chip 10 is configured to obtain at least one target image data and store the target image data in a target storage area of ​​the target chip 10, wherein the target image data is compressed target image data;

[0025] The target chip 10 is also configured to at least send the target image data to the target adapter board 20, so that the target adapter board 20 converts the format of the target image data from a first format to a second format, and sends the target image data to the display screen 30, so that the display screen 30 decompresses the target image data and displays the target image corresponding to the target image data, and the second format is a data format recognizable by the display screen 30.

[0026] Specifically, the first format may be an HDMI signal, and the second format may be a DP signal. Figure 2 As shown, the host computer 40 is connected to the target chip 10 for communication. The host computer 40 compresses the target image and sends the compressed target image data to the target chip 10. Then, the target chip 10 converts the format of the target image data through the target adapter board 20. The target adapter board 20 then sends the converted image data to the display screen 30 for display. The target chip can be an IMX8 chip.

[0027] Among them, the current IMX8 chip itself does not have a DSC hardware compression module. The above embodiment can first use the DSC compression algorithm on the Windows system to compress the image in advance, and then transmit it to the IMX8 chip. IMX8 only needs to send the compressed .dsc data, without considering whether it can support the DSC compression algorithm.

[0028] The electronic device of the present application comprises: a target chip; a target adapter board electrically connected to the target chip, a display screen electrically connected to the target adapter board, the target chip acquires at least one target image data, and stores the target image data in the target storage area of ​​the target chip, the target image data being the data of the compressed target image; the target chip sends the target image data to the target adapter board, so that the target adapter board converts the format of the target image data from the first format to the second format, and sends the target image data to the display screen, so that the display screen decompresses the target image data and displays the target image corresponding to the target image data. The image is directly compressed by the host computer, the host computer can first directly compress the image of a larger size, and then send the compressed image to the target chip, so that the target chip can receive the compressed data of the large-size image, and transmit it to the display screen through the adapter board, and the display screen can display a large-size image matching its own size, so that the size of the image is no longer limited by the performance of the target chip, and the large-size image can be compressed to meet the large-size image requirements of the display screen, and solve the problem that the existing image compression method depends on the performance requirements of the chip, is costly and cannot meet the large-size requirements of the display screen.

[0029] In the prior art, images are compressed by using a chip that supports an image compression algorithm (such as IMX8), so the image size requirement is relatively high. When the performance of IMX8 is low (such as low memory), large-size images cannot be compressed, and only some small-size images can be compressed. Therefore, the image size will be limited by the chip performance. However, existing display screens are generally large-size display screens, so continuing to use IMAX8 chips to compress images will not meet the large-size requirements of display screens.

[0030] On this basis, the above embodiment no longer uses the IMAX8 chip (i.e., the target chip) for image compression, but first implements image compression on the PC side, so that the image size will no longer be limited by the performance of the IMAX8 chip, and large-size image compression can be implemented directly on the PC side. After that, the IMAX8 chip (i.e., the target chip) reads the compressed image data through the SD card, and then sends the compressed image data to the display screen through the target adapter board, so that the display screen displays the target image corresponding to the compressed image data.

[0031] Therefore, the above embodiment can realize the compression of large-size pictures on the PC side, and then send the compressed picture data to the display screen through the IMAX8 chip and the target adapter board, so that the display screen displays the large-size picture corresponding to the compressed picture data, which can meet the large-size requirements of the display screen.

[0032] Some optional examples, such as Figure 3 and Figure 4 As shown, the target chip 10 has a first target interface 11, and the target adapter board has a second target interface 21 and a third target interface 22. The target chip 10 is connected to the target adapter board 20 via the first target interface 11 and the second target interface 21. The target chip 10 is configured to send the target image data to the target adapter board 20 via the first target interface 11, so that the target adapter board 20 converts the format of the target image data from the first format to the second format, and sends the target image data to the display screen via the third target interface 22, wherein the first format is a data format recognizable by the first target interface 11 and the second target interface 21, and the second format is a data format recognizable by the third target interface 22.

[0033] Specifically, in this way, the format of the target image data can be converted into a data format recognizable by the display screen, so that the display screen can display the target image visually without loss.

[0034] In some optional examples, the first target interface and the second target interface are both first-type interfaces, the third target interface is a second-type interface, and the first-type interface and the second-type interface are different.

[0035] Specifically, this can ensure that the target adapter board can receive the target image data sent by the target chip.

[0036] Among them, in this embodiment, the first type of interface is an HDMI2.0 interface, and the second type of interface is a DP interface. The target adapter board is an adapter board with HDMI to DP function. The target adapter board can package the data obtained by the HDMI interface and the corresponding video encoding (Picture Parameter Set, PPS for short) parameters into the corresponding DP data packet format, and send it as a whole to the decompression end (display screen) of the display screen through the DP interface of the target adapter board, so as to realize the complete display link visually lossless display on the screen end.

[0037] In practical applications, the first type interface and the second type interface are not limited to the above interface types. The above first type interface can also be one of the following: HDMI interface, mipi interface, VGA interface, USB interface, DVI interface, etc. The second type interface can also be one of the following: DP interface or type-C interface. It is only necessary to ensure that the first type interface and the second type interface are of different types, and the specific interface type is not specifically limited.

[0038] In some optional instances, the target chip is configured to execute: an acquisition step of acquiring a file name set, wherein the file name set includes at least one file name, and the file name corresponds one-to-one to the picture; a determination and sending step of determining whether the initial file in the target storage area is the target compressed file, and if the initial file is the target compressed file, determining the initial file as the target picture file, and storing the target picture file in the frame buffer of the target chip, and sending the target picture file to the target adapter board; and if the initial file is not the target compressed file, determining whether the next initial file is the target compressed file, wherein the initial file is a file corresponding to one of the file names in the file name set, and the target picture file is a file storing the target picture data; repeating the determination and sending step until all the target picture files are sent to the target adapter board.

[0039] Specifically, the file name can be used to accurately determine whether the file is a compressed file of the target image, so that the compressed file of the target image is stored in the corresponding frame buffer for subsequent transmission to the display screen, so that the display screen displays the target file.

[0040] Among them, Figure 3 As shown, the target chip 10 also includes a frame buffer 12 and an SD card 13. First, the file name set is stored in the corresponding SD card 13. The target chip 10 reads the corresponding file name in the SD card 13 by opening the path corresponding to the SD card 13, and stores the compressed data of the target image in the frame buffer 12. A target compressed file stores compressed data of a target image. The compressed data of the target image is read in sequence according to the order of the file names in the file name set, and the order of the file names in the file name set is the display order of the target image.

[0041] In some embodiments, there are multiple target images, and the target chip is configured to repeat the determining and sending steps in a preset order, where the preset order is the time order in which the multiple target images are sequentially displayed on the display screen.

[0042] Specifically, the preset order is generally the same as the order of the target image files stored in the SD. The target chip reads all the target image files according to the preset order, which can ensure that the display order of the target images on the display screen is the correct display order.

[0043] In some optional instances, the target chip is configured to determine the storage position of the pixel data in the target image data in the frame buffer according to the target image data in the target image file, and store the pixel data in the target image data in the corresponding storage position in the frame buffer, the pixel data is data representing the pixel unit of the target image and corresponds one-to-one with the pixel unit of the target image, and the storage position of the pixel data in the frame buffer corresponds one-to-one with the display position of the pixel unit of the target image on the display screen.

[0044] Specifically, when the target chip reads the target image file, it directly stores the data in the target image file in the storage location corresponding to the display area, and directly realizes the correspondence between the data and the display location. That is, the target chip IMX8 reads the SD card and flushes the compressed .dsc image data into the corresponding storage location in the frame buffer.

[0045] In some optional instances, the target chip is configured to obtain display screen size information, which includes at least the width of the display screen; the target chip is configured to determine the display position of the pixel unit of the target image on the display screen according to the storage position of the pixel data in the frame buffer; the target chip is configured to send the target image data, the display screen size information and the storage position of the pixel data in the frame buffer in the target image file to the target adapter board, so that the target adapter board converts the format of the target image data from the first format to the second format, and sends the target image data, the display screen size information and the storage position of the pixel data in the frame buffer to the display screen, so that the display screen decompresses the target image file, and displays the target image according to the display screen size information and the display position of the pixel unit of the target image on the display screen, until the number of target images displayed on the display screen reaches a preset maximum number.

[0046] Specifically, this can ensure that the data of the target image compressed by the DSC is correct, and the storage position of the pixel data in the frame buffer corresponds to its display position on the display screen, which can ensure that the data of each pixel is correct, so that visual lossless display can be achieved on the screen.

[0047] In some optional instances, the target chip is configured to obtain target timing information, which is the timing information required for sending the target image data, and is obtained according to the target image data configuration; the target chip is configured to determine the target number of bytes according to the target timing information, and the target number of bytes is the number of bytes of the target image data; the target chip is configured to obtain a pixel arrangement order, and the pixel arrangement order is pre-set according to a display screen, and the pixel arrangement order represents an arrangement order of three pixels of R, G, and B; the target chip is configured to send the target image data to a target adapter board at least according to the target timing information, the target number of bytes, and the pixel arrangement order.

[0048] Specifically, IMX8 (target chip) reads the compressed .dsc picture data inside the SD card and flushes it into the framebuffer (frame buffer), and IMX8 cooperates to send the compressed timming (target timing information) of the corresponding screen size, and sends the compressed .dsc data to the HDMI interface of the target adapter board in the BGR manner (generally B is in the lowest bit). Among them, the high and low bit order of BGR is determined according to the interface type of the first target interface and the second target interface. When the interface type of the first target interface and the second target interface is an HDMI interface, the high and low bit order of BGR is B in the lowest bit and R in the highest bit transmission.

[0049] That is, in the above embodiment, IMX8 only needs to send compressed .dsc data without considering whether it can support the dsc compression algorithm. It only needs to confirm the high and low bit correspondence of RGB according to the interface type of the first target interface and the second target interface, and the .dsc picture can be displayed in the same way as the picture. The adapter board can convert the HDMI signal into a standard DP signal.

[0050] In some optional instances, the target timing information is one of the following: horizontal valid area, horizontal synchronization bit width, horizontal back shoulder, horizontal front shoulder, total valid clock of a row, vertical valid area, vertical synchronization bit width, vertical back shoulder, vertical front shoulder and total valid clock of a column, and the target timing information and target byte number correspond one to one.

[0051] Specifically, this allows the display screen to achieve lossless display. Take the target chip IMX8, adapter board and 17.9-inch display screen as an example. First, the timing information (i.e., target timing information) of the 17.9-inch display screen is required, including THD (horizontal effective area), THPW (horizontal synchronization bit width), THBP (horizontal back shoulder), THFP (horizontal front shoulder), htotal (a row of total effective clocks) and TVD (vertical effective area), TVPW (vertical synchronization bit width), TVBP (vertical back shoulder), TVFP (vertical front shoulder), vtotal (a column of total effective clocks) and other timing information, as well as the refresh rate of the corresponding screen. In this example, the refresh rate of the 17.9-inch display screen is 24bit@60Hz. According to the compression ratio of 3:1, the target timing information that the IMX8 signal source actually needs to send is calculated as shown in Table 1:

[0052] Table 1. Target timing information that the IMX8 signal source actually needs to send

[0053] Original Timming Number of bytes Timing after compression Number of bytes thd 3340 thd 1114 thpw 66 thpw 22 thb 66 thb 22 tfp 92 tfp 31 htotal 3564 htotal / tvd 1440 tvd 1440 tvpw 2 tvpw 2 tvbp 8 tvbp 8 tvfp 32 tvfp 32 vtotal 1482 vtotal 1482

[0054] In some optional instances, the target chip is configured to obtain a compression ratio of the target image, and the compression ratio is determined according to the operating parameters of the display screen; the target chip is configured to calculate the quotient of the target number of bytes and the compression ratio to obtain the target quotient; the target chip is configured to send the target image data with the target number of bytes to the target adapter board in accordance with the timing sequence represented by the target timing information and the pixel arrangement order when the target quotient is an integer.

[0055] Specifically, when the horizontal clock cannot be divided evenly, the number of clocks actually sent should be greater than the number of clocks required for one row; after sending valid data, fill it with a value that matches the actual value. Figure 5 As shown in the figure, the effective data of a row of the 17.9-inch display screen should be 3340×3 / 3=3340 bytes after compression; in fact, IMX8 can send 1114×3=3342 bytes in a row, so the last two bytes need to be filled with data.

[0056] In addition, the above embodiment can also realize half-screen visual lossless display of display screens with sizes of 14.6 inches, 17.9 inches, and 31.3 inches.

[0057] In some optional instances, the target chip is configured to, when the target quotient is not an integer, fill in the last digit of the target image data to obtain the target image data after the fill, so as to increase the target number of bytes until the target quotient is an integer, and determine the increased target number of bytes as the actual number of bytes to be transmitted; the target chip is configured to send the target image data after the fill, whose byte number is the actual number of bytes to be transmitted, to the target adapter board in accordance with the timing sequence represented by the target timing information and the pixel arrangement order.

[0058] Specifically, this allows the display screen to display the target image losslessly without missing bytes. In addition, before transmitting data, the PPS parameters of the target chip and the adapter board, as well as the PPS parameters of the target chip and the product screen, need to be agreed upon in advance, and the PPS parameters need to be ensured to be consistent. Among them, the PPS parameters are image parameters, including at least: height, width, resolution, and number of bytes.

[0059] In some optional instances, the electronic device includes: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors.

[0060] The processor includes a kernel, which retrieves the corresponding program unit from the memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0061] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0062] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the steps executed by the target chip of the present application will be described in detail below in combination with specific embodiments.

[0063] like Figure 6 As shown, the target chip is configured to perform the following steps:

[0064] Step S1: Open the corresponding path of the SD card, read the corresponding file name in the SD card, and determine whether it is a compressed file. If it is not a compressed file, read the next file. If it is a compressed file, sort the file names of the read files according to the "character string";

[0065] Step S2: Open the frame buffer, obtain parameter information of the target image and the display screen, map the data in the display frame buffer to the process address space mmap, read the compressed data in sequence, and display the corresponding target image on the display screen;

[0066] Step S3: When i=1, display the i-th picture, then i=i+1, determine whether i≤total number of pictures, if i≤total number of pictures, continue to execute i=i+1, if i>total number of pictures, cancel mapping, close the file and exit the process, and the process ends.

[0067] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0068] In this embodiment, a picture encoding method is also provided. Figure 7 As shown, the method is applied to a target adapter board in a picture coding system, the picture coding system further includes a target chip, the target adapter board is electrically connected to the target chip, and the method includes the following steps:

[0069] Step S101, obtaining at least one target image data from the target chip, wherein the target image data is compressed target image data, the target image data is stored in a target storage area of ​​the target chip, and the target image data is data sent from the target chip to the target adapter board;

[0070] Step S102, the target adapter board converts the format of the target image data from the first format to the second format;

[0071] Step S103, sending the target image data to a display screen, so that the display screen decompresses the target image data and displays the target image corresponding to the target image data, and the second format is a data format recognizable by the display screen.

[0072] The above-mentioned picture encoding method of the present application is applied to a target adapter board in a picture encoding system. The picture encoding system also includes a target chip. The target adapter board is electrically connected to the target chip. The method first obtains at least one target picture data from the target chip. The target picture data is the data of the compressed target picture. The target picture data is stored in a target storage area of ​​the target chip. The target picture data is the data sent by the target chip to the target adapter board; then the target adapter board converts the format of the target picture data from a first format to a second format; finally, the target picture data is sent to a display screen, so that the display screen decompresses the target picture data and displays the target picture corresponding to the target picture data. The second format is a data format recognizable by the display screen. The image is directly compressed by the host computer. The host computer can first directly compress the larger-sized image, and then send the compressed image to the target chip, so that the target chip can receive the compressed data of the large-sized image and transmit it to the display screen through the adapter board. The display screen can display the large-sized image matching its own size, so that the size of the image is no longer limited by the performance of the target chip. The large-sized image can be compressed to meet the large-sized image requirements of the display screen, and solve the problem that the existing image compression method depends on the performance requirements of the chip, is costly and cannot meet the large-size requirements of the display screen.

[0073] In some embodiments, sending the target image data to a display screen so that the display screen decompresses the target image data and displays the target image corresponding to the target image data comprises the following steps:

[0074] Step S1031, obtaining target picture parameters, the target picture parameters being the target picture, and the target picture parameters including at least one of the following: the height of the target picture, the width of the target picture, the resolution of the target picture, and the number of bytes of the target picture;

[0075] Step S1032: sending the target picture parameters and the target picture data to a display screen, so that the display screen decompresses the target picture data and displays the target picture corresponding to the target picture data.

[0076] The above embodiment is currently applicable to the display of one frame of a static picture. The HDMI2.0 interface based on IMX8 flushes the compressed one-frame picture data into the frame buffer, and the corresponding display driver sends the compressed data to the adapter board with HDMI to DP function, which packages the data obtained by the HDMI interface and the corresponding PPS into the corresponding DP data packet format, and sends it to the decompression end as a whole through the DP interface of the adapter board, so as to realize the visual lossless display of the complete display link on the screen end.

[0077] like Figure 8 As shown, the display screen further includes a display panel 100 for displaying a target image.

[0078] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0079] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0080] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0081] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0082] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0083] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0084] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0085] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0086] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0087] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

[0088] 1) The electronic device of the present application comprises: a target chip; a target adapter board electrically connected to the target chip, a display screen electrically connected to the target adapter board, the target chip acquires at least one target image data, and stores the target image data in the target storage area of ​​the target chip, the target image data is the compressed target image data; the target chip sends the target image data to the target adapter board, so that the target adapter board converts the format of the target image data from the first format to the second format, and sends the target image data to the display screen, so that the display screen decompresses the target image data and displays the target image corresponding to the target image data. The image is directly compressed by the host computer, the host computer can first directly compress the larger size image, and then send the compressed image to the target chip, so that the target chip can receive the compressed data of the large size image, and transmit it to the display screen through the adapter board, and the display screen can display a large size image matching its own size, so that the size of the image is no longer limited by the performance of the target chip, and can realize the compression of large size images, meet the large size image requirements of the display screen, and solve the problem that the existing image compression method depends on the performance requirements of the chip, is costly and cannot meet the large size requirements of the display screen.

[0089] 2) The above-mentioned image encoding method of the present application is applied to a target adapter board in an image encoding system. The image encoding system also includes a target chip. The target adapter board is electrically connected to the target chip. The method first obtains at least one target image data from the target chip. The target image data is the compressed target image data. The target image data is stored in a target storage area of ​​the target chip. The target image data is the data sent by the target chip to the target adapter board; then the target adapter board converts the format of the target image data from a first format to a second format; finally, the target image data is sent to a display screen, so that the display screen decompresses the target image data and displays the target image corresponding to the target image data. The second format is a data format recognizable by the display screen. The image is directly compressed by the host computer. The host computer can first directly compress the larger-sized image, and then send the compressed image to the target chip, so that the target chip can receive the compressed data of the large-sized image and transmit it to the display screen through the adapter board. The display screen can display the large-sized image matching its own size, so that the size of the image is no longer limited by the performance of the target chip. The large-sized image can be compressed to meet the large-sized image requirements of the display screen, and solve the problem that the existing image compression method depends on the performance requirements of the chip, is costly and cannot meet the large-size requirements of the display screen.

[0090] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. An electronic device, characterized in that: It includes a target chip; a target adapter board electrically connected to the target chip, and a display screen electrically connected to the target adapter board; wherein, The target chip is configured to obtain at least one target picture data and store the target picture data in a target storage area of ​​the target chip, wherein the target picture data is compressed target picture data; The target chip is configured to at least send the target image data to a target adapter board so that the target adapter board converts the format of the target image data from a first format to a second format, and sends the target image data to a display screen, so that the display screen decompresses the target image data and displays the target image corresponding to the target image data, and the second format is a data format recognizable by the display screen.

2. The electronic device according to claim 1, characterized in that: The target chip has a first target interface, the target adapter board has a second target interface and a third target interface, and the target chip is connected to the target adapter board via the first target interface and the second target interface. The target chip is configured to send the target image data to the target adapter board through the first target interface, so that the target adapter board converts the format of the target image data from the first format to the second format, and sends the target image data to the display screen through the third target interface, wherein the first format is a data format recognizable by the first target interface and the second target interface, and the second format is a data format recognizable by the third target interface.

3. The electronic device according to claim 2, characterized in that: The first target interface and the second target interface are both first type interfaces, the third target interface is a second type interface, and the first type interface and the second type interface are different.

4. The electronic device according to claim 1, characterized in that: The target chip is configured to execute: An acquisition step of acquiring a file name set, wherein the file name set includes at least one file name, and the file name corresponds to the picture one by one; Determine the sending step, determine whether the initial file in the target storage area is the target compressed file, if the initial file is the target compressed file, determine the initial file as the target picture file, store the target picture file in the frame buffer of the target chip, and send the target picture file to the target adapter board, if the initial file is not the target compressed file, determine whether the next initial file is the target compressed file, wherein the initial file is a file corresponding to one of the file names in the file name set, and the target picture file is a file storing the target picture data; Repeat the step of determining and sending until all the target image files are sent to the target adapter board.

5. The electronic device according to claim 4, characterized in that: There are multiple target images. The target chip is configured to repeat the determining and sending step in a preset order, where the preset order is a time order in which the plurality of target images are sequentially displayed on the display screen.

6. The electronic device according to claim 4, characterized in that: The target chip is configured to determine the storage position of pixel data in the target image data in the frame buffer according to the target image data in the target image file, and store the pixel data in the target image data in the corresponding storage position in the frame buffer, the pixel data is data representing the pixel unit of the target image and corresponds one-to-one to the pixel unit of the target image, and the storage position of the pixel data in the frame buffer corresponds one-to-one to the display position of the pixel unit of the target image on the display screen.

7. The electronic device according to claim 6, characterized in that: The target chip is configured to obtain display screen size information, where the display screen size information at least includes a width of the display screen; The target chip is configured to determine a display position of a pixel unit of the target image on the display screen according to a storage position of the pixel data in the frame buffer; The target chip is configured to send the target image data in the target image file, the display screen size information and the storage location of the pixel data in the frame buffer to the target adapter board, so that the target adapter board converts the format of the target image data from a first format to a second format, and sends the target image data, the display screen size information and the storage location of the pixel data in the frame buffer to the display screen, so that the display screen decompresses the target image file and displays the target image according to the display screen size information and the display position of the pixel unit of the target image on the display screen until the number of target images displayed on the display screen reaches a preset maximum number.

8. The electronic device according to claim 1, characterized in that: The target chip is configured to obtain target timing information, where the target timing information is timing information required to send the target picture data, and the target timing information is obtained according to the configuration of the target picture data; The target chip is configured to determine a target number of bytes according to the target timing information, where the target number of bytes is the number of bytes of the target picture data; The target chip is configured to obtain a pixel arrangement order, the pixel arrangement order is preset according to the display screen, and the pixel arrangement order represents an arrangement order of three pixels of R, G, and B; The target chip is configured to send the target image data to the target adapter board at least according to the target timing information, the target number of bytes and the pixel arrangement order.

9. The electronic device according to claim 8, characterized in that: The target timing information is one of the following: horizontal valid area, horizontal synchronization bit width, horizontal back porch, horizontal front porch, total valid clock of a row, vertical valid area, vertical synchronization bit width, vertical back porch, vertical front porch and total valid clock of a column, and the target timing information corresponds to the target number of bytes one by one.

10. The electronic device according to claim 8, characterized in that: The target chip is configured to obtain a compression ratio of the target image, where the compression ratio is determined according to an operating parameter of the display screen; The target chip is configured to calculate the quotient of the target number of bytes and the compression ratio to obtain a target quotient; The target chip is configured to send the target picture data having a byte number equal to the target byte number to the target adapter board according to the timing sequence represented by the target timing information and the pixel arrangement sequence when the target quotient is an integer.

11. The electronic device according to claim 10, characterized in that: The target chip is configured to, when the target quotient is not an integer, perform padding after the last bit of the target picture data to obtain the target picture data after padding, so as to increase the target number of bytes until the target quotient is an integer, and determine the increased target number of bytes as the actual number of bytes to be transmitted; The target chip is configured to send the target image data with the number of bytes padded to the actual transmission byte number to the target adapter board according to the timing sequence represented by the target timing information and the pixel arrangement order.

12. The electronic device according to claim 10, characterized in that: The electronic device includes: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors.

13. A picture encoding method, characterized in that: A target adapter board applied to a picture coding system, wherein the picture coding system further comprises a target chip, the target adapter board is electrically connected to the target chip, and the method comprises: Acquire at least one target picture data from the target chip, the target picture data being compressed target picture data, the target picture data being stored in a target storage area of ​​the target chip, and the target picture data being data sent from the target chip to the target adapter board; The target adapter board converts the format of the target image data from a first format to a second format; The target image data is sent to a display screen, so that the display screen decompresses the target image data and displays the target image corresponding to the target image data, and the second format is a data format recognizable by the display screen.

14. The picture encoding method according to claim 13, characterized in that: Sending the target image data to a display screen so that the display screen decompresses the target image data and displays the target image corresponding to the target image data, comprising: Acquire a target picture parameter, where the target picture parameter is the target picture, and the target picture parameter includes at least one of the following: the height of the target picture, the width of the target picture, the resolution of the target picture, and the number of bytes of the target picture; The target picture parameters and the target picture data are sent to a display screen, so that the display screen decompresses the target picture data and displays the target picture corresponding to the target picture data.