CN111078601A - Bus bandwidth use peak value adjusting method and device - Google Patents

Bus bandwidth use peak value adjusting method and device Download PDF

Info

Publication number
CN111078601A
CN111078601A CN201911310833.7A CN201911310833A CN111078601A CN 111078601 A CN111078601 A CN 111078601A CN 201911310833 A CN201911310833 A CN 201911310833A CN 111078601 A CN111078601 A CN 111078601A
Authority
CN
China
Prior art keywords
color
image processing
image
adjusting
bus bandwidth
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201911310833.7A
Other languages
Chinese (zh)
Other versions
CN111078601B (en
Inventor
孙世玮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Goke Microelectronics Co ltd
Original Assignee
Chengdu Goke Microelectronics Co ltd
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 Chengdu Goke Microelectronics Co ltd filed Critical Chengdu Goke Microelectronics Co ltd
Priority to CN201911310833.7A priority Critical patent/CN111078601B/en
Publication of CN111078601A publication Critical patent/CN111078601A/en
Application granted granted Critical
Publication of CN111078601B publication Critical patent/CN111078601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • G06F13/1678Details of memory controller using bus width
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • G06F13/1673Details of memory controller using buffers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The application discloses a method, a device and equipment for adjusting a bus bandwidth use peak value and a readable storage medium. The method disclosed by the application comprises the following steps: receiving an instruction for adjusting the bus bandwidth occupied by the image processing process; adjusting the color parameters of the frame buffer memory according to the instruction; adjusting configuration parameters of the image processing module according to the color parameters; and processing the image transmitted to the frame buffer memory by using the adjusted color parameters and the adjusted configuration parameters so as to adjust the bus bandwidth occupied by the image processing process. The image processing process occupies a larger bandwidth, and in order to avoid the contention of other functions and the image processing function for bandwidth resources in the equipment, the method and the device adjust the bandwidth occupied by the image processing process in real time according to the needs, balance the bus bandwidth resources in the hardware equipment, and ensure the stable operation of the hardware equipment. The bus bandwidth use peak value adjusting device, the equipment and the readable storage medium have the technical effects.

Description

Bus bandwidth use peak value adjusting method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for adjusting a bus bandwidth usage peak.
Background
In one apparatus, each device is used to perform a different function, and each device is connected through a bus and transmits data. Because the bandwidth of the bus is fixed, when a certain function occupies more bandwidth, other functions cannot be completed normally. The device may be any embedded device.
In order to utilize limited bus bandwidth resources, the prior art generally guarantees normal use of important functions by disabling non-important functions; or replacing a CPU and a DDR in the equipment so as to improve the main frequency and the DDR frequency. Disabling certain functions and replacing components in the device can affect the stable operation of the device. The replacement of the device also increases the cost, the replacement operation is generally complicated, and the implementation process has certain difficulty.
Therefore, how to balance bus bandwidth resources in hardware devices is a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method, an apparatus, a device and a readable storage medium for adjusting a peak value of bus bandwidth usage, so as to balance bus bandwidth resources in a hardware device. The specific scheme is as follows:
in a first aspect, the present application provides a method for adjusting a peak value of bus bandwidth usage, including:
receiving an instruction for adjusting the bus bandwidth occupied by the image processing process;
adjusting color parameters of the frame buffer memory according to the instruction, wherein the color parameters comprise: the data volume occupied by each pixel point, the position and the size of each color in the data volume, and the length of each line of image data;
adjusting configuration parameters of the image processing module according to the color parameters, wherein the configuration parameters comprise: the storage position of the data in the color format in the processing process;
processing the image transmitted to the frame buffer memory by using the adjusted color parameters and the adjusted configuration parameters so as to adjust the bus bandwidth occupied by the image processing process;
the frame buffer memory, the image processing module and the bus are devices in the same equipment.
Preferably, before processing the image transmitted to the frame buffer memory by using the adjusted color parameters and the adjusted configuration parameters, the method further includes:
acquiring an image to be processed;
the image is converted into a target format, and the image in the target format is transferred to a frame buffer memory.
Preferably, the processing the image transferred to the frame buffer memory by using the adjusted color parameters and the adjusted configuration parameters comprises:
and the frame buffer memory reads the image according to the color parameters and transmits the read image to the image processing module so that the image processing module processes the image according to the configuration parameters.
Preferably, adjusting the color parameters of the frame buffer memory according to the instructions comprises:
adjusting the data volume occupied by each pixel point to a target value according to the instruction;
the position and size of each color in the target value, and the length of each line of image data are adjusted.
Preferably, before receiving the instruction for adjusting the bus bandwidth occupied by the image processing process, the method further includes:
the device is started and color parameters and configuration parameters are initialized.
Preferably, initializing color parameters includes:
color parameters are initialized according to the maximum value supported by the image processing module.
Preferably, the color formats include CLUT _8BPP, CLUT _4BPP, CLUT _2BPP, CLUT _1BPP, and RGB 565.
In a second aspect, the present application provides a device for adjusting a peak value of a bus bandwidth usage, including:
the receiving module is used for receiving an instruction for adjusting the bus bandwidth occupied by the image processing process;
a first adjusting module, configured to adjust a color parameter of the frame buffer according to the instruction, where the color parameter includes: the data volume occupied by each pixel point, the position and the size of each color in the data volume, and the length of each line of image data;
the second adjusting module is used for adjusting the configuration parameters of the image processing module according to the color parameters, and the configuration parameters comprise: the storage position of the data in the color format in the processing process;
the processing module is used for processing the image transmitted to the frame buffer memory by utilizing the adjusted color parameters and the adjusted configuration parameters so as to adjust the bus bandwidth occupied by the image processing process; the frame buffer memory, the image processing module and the bus are devices in the same equipment.
In a third aspect, the present application provides a device for adjusting peak value of bus bandwidth usage, including:
a memory for storing a computer program;
a processor for executing a computer program to implement the bus bandwidth usage peak adjustment method disclosed above.
In a fourth aspect, the present application provides a readable storage medium for storing a computer program, wherein the computer program when executed by a processor implements the bus bandwidth usage peak adjustment method disclosed in the foregoing.
According to the above scheme, the present application provides a method for adjusting a peak value of a bus bandwidth, including: receiving an instruction for adjusting the bus bandwidth occupied by the image processing process; adjusting color parameters of the frame buffer memory according to the instruction, wherein the color parameters comprise: the data volume occupied by each pixel point, the position and the size of each color in the data volume, and the length of each line of image data; adjusting configuration parameters of the image processing module according to the color parameters, wherein the configuration parameters comprise: the storage position of the data in the color format in the processing process; processing the image transmitted to the frame buffer memory by using the adjusted color parameters and the adjusted configuration parameters so as to adjust the bus bandwidth occupied by the image processing process; the frame buffer memory, the image processing module and the bus are devices in the same equipment.
Therefore, after receiving the instruction for adjusting the bus bandwidth occupied by the image processing process, the method adjusts the color parameters of the frame buffer memory according to the instruction, adjusts the configuration parameters of the image processing module according to the color parameters, and further processes the image transmitted to the frame buffer memory by using the adjusted color parameters and the adjusted configuration parameters, so that the bus bandwidth occupied by the image processing process is adjusted, and the adjustment of the bandwidth occupied by the image processing process is realized. According to the method provided by the application, the bandwidth occupation amount of the equipment in the image processing process can be adjusted. When the bus bandwidth occupation in the hardware equipment is low, the bandwidth occupation in the image processing process can be increased; when the bus bandwidth occupation in the hardware equipment is high, the bandwidth occupation in the image processing process can be reduced.
It should be noted that, the bus bandwidth occupied by the image processing process is generally large, so that in order to avoid contention of other functions and the image processing function for bandwidth resources in the device, the bus bandwidth occupied by the image processing process is adjusted in real time according to needs, thereby balancing the bus bandwidth resources in the hardware device and ensuring stable operation of the hardware device. The method does not need to replace devices in the equipment, and reduces the operation complexity and cost.
Accordingly, the bus bandwidth utilization peak value adjusting device and the readable storage medium have the technical effects.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a first method for adjusting a peak value of a bus bandwidth usage disclosed in the present application;
FIG. 2 is a flow chart of a second bus bandwidth usage peak adjustment method disclosed herein;
FIG. 3 is a schematic illustration of a doorbell display interface disclosed herein;
FIG. 4 is a schematic diagram of an image processing process disclosed herein;
FIG. 5 is a schematic diagram of another image processing process disclosed herein;
FIG. 6 is a schematic diagram of a bus bandwidth utilization peak adjustment apparatus according to the present disclosure;
fig. 7 is a schematic diagram of a bus bandwidth usage peak adjustment apparatus disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Currently, disabling certain functions and replacing components in the equipment can affect the stable operation of the equipment. The replacement of the device also increases the cost, the replacement operation is generally complicated, and the implementation process has certain difficulty. Therefore, the bus bandwidth use peak value adjusting scheme is provided, bus bandwidth resources in hardware equipment can be balanced, stable operation of the hardware equipment is guaranteed, and operation complexity and cost are reduced.
Referring to fig. 1, an embodiment of the present application discloses a first method for adjusting a peak value of bandwidth usage of a bus, including:
s101, receiving an instruction for adjusting bus bandwidth occupied by an image processing process;
s102, adjusting color parameters of a frame buffer memory according to the instruction;
wherein the color parameters include: the data volume occupied by each pixel point, the position and size of each color in the data volume, and the length of each line of image data. And after the color parameters are adjusted in the application layer, the color parameters are transmitted to the kernel of the equipment, and the kernel can control the driving of the equipment to complete the configuration of the color parameters. After the driver obtains the color parameters, firstly, judging whether the actually configured color parameters in the current equipment are consistent with the color parameters which are newly obtained currently; if the two are consistent, no operation is performed; and if the color parameters are not consistent, configuring the color parameters.
In one embodiment, adjusting the color parameters of the frame buffer memory according to the instruction comprises: adjusting the data volume occupied by each pixel point to a target value according to the instruction; the position and size of each color in the target value, and the length of each line of image data are adjusted.
The length of each line of image data can be obtained by calculation based on the resolution of the equipment and the data volume occupied by one pixel point, and the calculation formula is as follows:
fb_fix_screeninfo->line_length=(fb_var_screeninfo->xres_virtual*(fb_var_screeninfo->bits_per_pixel/8)+31)&0xFFFFFFE0。
the number of bytes of each line of image data W is equal to the number of pixels occupied by each line of data x the number of bytes occupied by each pixel. Wherein, the number of bytes occupied by each pixel point is equal to the number of bits occupied by each pixel point divided by 8. After that, W is aligned with 32 bytes, so that line _ length can be obtained.
Wherein line _ length is the length of each line of image data. The device resolution is the resolution of the display screen of the device.
For example: the data volume occupied by each pixel point is adjusted from 16 bits (bit) to 8 bits, and then the position and size of each corresponding color in the 8 bits are adjusted as follows: the offset amount of red, green, blue, transparency in the 8-bit data is 0, and the length occupied by red, green, blue, transparency in the 8-bit data is 0, which are all provided in the structural body fb _ var _ screen.
The color parameter adjustment code may be:
bit _ per _ pixel is 8; // 8 bits per pixel
red, offset is 0; // red offset 0 in 8bit data
Length is 0; // red length of 8bit data
red.msb_right=0;
Offset is 0 in green; offset 0 of/green in 8bit data
green.length=0;
green.msb_right=0;
Offset is 0; // blue offset 0 in 8bit data
blue.length=0;
blue.msb_right=0;
Offset is 0; // transparency offset 0 in 8bit data
transp.length=0;
transp.msb_right=0。
If the color format of the image is converted from CLUT _8BPP to RGB565, the corresponding adjustment code may be:
bit _ per _ pixel 16; // 16 bits per pixel
red. offset is 11; // red offset in 16bit data 11
Length 5; // red occupies 16bit data of length 5
red.msb_right=0;
Offset 5, green; offset 5/green in 16bit data
Length 6; the length occupied by/green in 16bit data is 6
green.msb_right=0;
Offset is 0; // blue offset 0 in 16bit data
Length 5; // blue occupies 16bit data with a length of 5
blue.msb_right=0;
transp.offset=0;
transp.length=0;
transp.msb_right=0。
The interconversion between other formats can be found in the above mentioned adaptation code implementation.
It should be noted that, the data amount occupied by each pixel is adjusted from 16 bits to 8 bits, which is to substantially convert the color format of the image from RGB565 to CLUT _8 BPP. The color format related to the present embodiment includes CLUT _8BPP, CLUT _4BPP, CLUT _2BPP, CLUT _1BPP, RGB565, and the like. Of course, the data size occupied by each pixel point can be adjusted to be larger, such as: 24bit, 32bit, etc. The larger the data volume occupied by one pixel point is, the clearer the image display is, but the larger the data volume in the image processing process is.
In the color format of RGB565, each pixel occupies 16 bits, wherein Red occupies 5 bits, Green occupies 6 bits, and Blue occupies 5 bits. 255 colors correspond to CLUT _8BPP, and CLUT _4BPP, CLUT _2BPP, CLUT _1BPP, and the like are also formats that occupy less data than CLUT _8 BPP.
In the color format of CLUT _8BPP, each pixel occupies 4 bits and can represent 256 colors; in the color format of CLUT _4BPP, each pixel occupies 4 bits and can represent 16 colors; in the color format of CLUT _2BPP, each pixel occupies 4 bits and can represent 4 colors; in the color format of CLUT _1BPP, each pixel occupies 4 bits, and can represent 2 colors.
S103, adjusting configuration parameters of the image processing module according to the color parameters;
wherein, the configuration parameters comprise: the color format corresponding to the color parameter and the storage position of the data in the color format in the processing process.
As described above, different color parameters correspond to different color formats, and during the data processing process, the storage location of the data in the memory needs to be determined, so as to facilitate the display of the data. Therefore, the storage position of the data in the color format in the processing process is as follows: on which memory area the data is stored. One frame buffer memory can correspond to two memory areas, and the two memory areas alternately receive the image data transmitted by the frame buffer memory. The frame buffer memory and the memory area are both memories in the device.
And S104, processing the image transmitted to the frame buffer memory by using the adjusted color parameters and the adjusted configuration parameters so as to adjust the bus bandwidth occupied by the image processing process.
The frame buffer memory, the image processing module and the bus are devices in the same equipment. The image processing module is provided with a DSP chip, and the maximum data volume occupied by one pixel point which can be supported by the device can be determined through the DSP chip.
In this embodiment, before receiving the instruction for adjusting the bus bandwidth occupied by the image processing process, the method further includes: the device is started and color parameters and configuration parameters are initialized. Wherein initializing color parameters comprises: color parameters are initialized according to the maximum value supported by the image processing module. The maximum value supported by the image processing module is the maximum data volume occupied by one pixel point supported by the current equipment. If the maximum value supported by the current equipment is 32 bits, color parameters are initialized to be 32 bits occupied by each pixel point, and other related parameters are set accordingly. Of course, if the requirement for the definition of image display is not high in the using process of the device, the color parameters can be initialized to be that each pixel point occupies 16 bits, 8 bits and the like, and other related parameters are set accordingly. Before receiving an instruction for adjusting the bus bandwidth occupied by the image processing process, the method further includes: the spatial size of the frame buffer memory is initialized to be maximized.
It should be noted that, when the device processes an image, the bus bandwidth occupied by the image processing process is generally large, so that the bus bandwidth occupied by the image processing process is reduced, and sufficient bus bandwidth resources can be provided for other functions; the bus bandwidth occupied by the image processing process is increased, the definition of image display can be improved, and further the user experience is improved. The "adjustment" described in this embodiment means "decrease" or "increase".
Therefore, after receiving the instruction for adjusting the bus bandwidth occupied by the image processing process, the embodiment of the application adjusts the color parameters of the frame buffer memory according to the instruction, adjusts the configuration parameters of the image processing module according to the color parameters, and further processes the image transmitted to the frame buffer memory by using the adjusted color parameters and the adjusted configuration parameters, so that the bus bandwidth occupied by the image processing process is adjusted, and the adjustment of the bandwidth occupied by the image processing process is realized. According to the method provided by the application, the bandwidth occupation amount of the equipment in the image processing process can be adjusted. When the bus bandwidth occupation in the hardware equipment is low, the bandwidth occupation in the image processing process can be increased; when the bus bandwidth occupation in the hardware equipment is high, the bandwidth occupation in the image processing process can be reduced. The method and the device adjust the bus bandwidth occupied in the image processing process in real time according to the needs, thereby balancing the bus bandwidth resources in the hardware equipment and ensuring the stable operation of the hardware equipment. The method does not need to replace devices in the equipment, and reduces the operation complexity and cost.
Referring to fig. 2, an embodiment of the present application discloses a second method for adjusting a peak value of bandwidth usage of a bus, including:
s201, receiving an instruction for adjusting bus bandwidth occupied by an image processing process;
s202, adjusting color parameters of a frame buffer memory according to the instruction;
wherein the color parameters include: the data volume occupied by each pixel point, the position and size of each color in the data volume, and the length of each line of image data.
S203, adjusting configuration parameters of the image processing module according to the color parameters;
wherein, the configuration parameters comprise: the storage position of the data in the color format in the processing process;
s204, acquiring an image to be processed;
s205, converting the image into a target format, and transmitting the image in the target format to a frame buffer memory;
the target format may be RGB565, CLUT _8BPP, etc. Generally, a device needs to convert a compressed JPEG, TIFF, RAW, or the like format into a recognizable and processable color format before processing an image.
S206, the frame buffer memory reads the image according to the color parameters and transmits the read image to the image processing module, so that the image processing module processes the image according to the configuration parameters to adjust the bus bandwidth occupied by the image processing process.
The frame buffer memory, the image processing module and the bus are devices in the same equipment.
In a specific embodiment, the trigger condition of the instruction for adjusting the bus bandwidth occupied by the image processing process may be an operation of a user on the device interactive interface. If the device is a smart phone, the operation of opening the camera of the smart phone by the user may be a trigger condition of the instruction. Specifically, when the smart phone obtains an operation of opening a camera by a user, the page is switched to a shooting state, at the moment, an interactive interface of the smart phone displays a picture to be shot or a video to be recorded, at the moment, the definition requirement of the user on the picture and the video is very high, and other control buttons displayed in the page can display a fuzzy point. Wherein the photo and other control buttons in the current page belong to different picture layers, so that the display effect can be processed separately.
Of course, the trigger condition of the instruction to adjust the bus bandwidth occupied by the image processing process may also be a peak occupancy value and a valley occupancy value of the bus bandwidth in the device. The method comprises the steps of presetting an occupied amount peak value and an occupied amount valley value of the bus bandwidth, wherein the occupied amount peak value is larger than the occupied amount valley value. When the actual occupied amount of the bus bandwidth is larger than the occupied amount peak value, the fact that the current equipment bus is busy is indicated, and an instruction for adjusting the bus bandwidth occupied in the image processing process can be triggered, so that the actual occupied amount of the bus bandwidth is reduced. When the actual occupied amount of the bus bandwidth is smaller than the occupied amount valley value, the current equipment bus is indicated to be idle, and an instruction for adjusting the bus bandwidth occupied in the image processing process can be triggered to increase the actual occupied amount of the bus bandwidth.
It should be noted that other implementation steps in this embodiment are the same as or similar to those in the above embodiment, and therefore, the description of this embodiment is omitted here.
As can be seen from the above, in this embodiment, after receiving the instruction for adjusting the bus bandwidth occupied by the image processing process, the color parameter of the frame buffer memory is adjusted according to the instruction, the configuration parameter of the image processing module is adjusted according to the color parameter, and the image transmitted to the frame buffer memory is processed by using the adjusted color parameter and the adjusted configuration parameter, so that the bus bandwidth occupied by the image processing process is adjusted, and the adjustment of the bandwidth occupied by the image processing process is achieved. According to the method provided by the application, the bandwidth occupation amount of the equipment in the image processing process can be adjusted. When the bus bandwidth occupation in the hardware equipment is low, the bandwidth occupation in the image processing process can be increased; when the bus bandwidth occupation in the hardware equipment is high, the bandwidth occupation in the image processing process can be reduced. The method and the device adjust the bus bandwidth occupied in the image processing process in real time according to the needs, thereby balancing the bus bandwidth resources in the hardware equipment and ensuring the stable operation of the hardware equipment. The method does not need to replace devices in the equipment, and reduces the operation complexity and cost.
For further description of the present application, the present embodiment applies the method disclosed in the present application to an embedded device, which may be a doorbell as shown in fig. 3. The doorbell is provided with a frame buffer memory, a bus, a memory, a CPU, an image processing module and other devices.
The Frame buffer memory (Frame buffer) is called Frame buffer or video memory for short. The Linux abstracts the Framebuffer device for the user mode process to realize direct screen writing. The Frame buffer mechanism imitates the function of the display card, abstracts the hardware structure of the display card, and can directly operate the display memory through reading and writing of the Frame buffer.
In fig. 3, when a user uses a doorbell to make a call, the display interface displays a portrait, which needs to be clearly displayed, and the contents such as "return", "time", etc. do not need to pay much attention. Therefore, the picture layer (the first picture layer) to which the portrait belongs can be clearly processed, and the data volume occupied by one pixel point is increased a little; the picture layer (second picture layer) to which the contents such as "return", "time" and the like belong can be normally processed, and the data volume occupied by one pixel point is adjusted to be smaller or not adjusted.
Of course, in practical application, the data volume occupied by one pixel point can be set as a universal value, and when the data volume is required, the universal value is increased or decreased. The general value turning up or turning down process can be referred to the bus bandwidth usage peak value adjusting method disclosed in any of the above embodiments.
Specifically, after the adjustment is completed, the image processing process of the first picture layer can be referred to in fig. 4, and the image processing process of the second picture layer can be referred to in fig. 5.
In fig. 4, "format conversion" before Frame buffer is: and converting common image formats such as JPEG, BMP and the like into RGB565, ARGB1555, BGRA5551 and the like. The "format conversion" after the Frame buffer may be: RGB565, ARGB1555 or BGRA5551 and the like are converted into YUV422, YUV420 or RGB565 and the like, and if the current equipment can be compatible with RGB565, ARGB1555 or BGRA5551 and the like, the conversion is not needed.
In fig. 5, "format conversion" before Frame buffer is: and converting common image formats such as JPEG and BMP or customized image formats into CLUT _8BPP, CLUT _4BPP, CLUT _2BPP or CLUT _1 BPP. There is generally no more format conversion after the Frame buffer. The 8-bit (CLUT _8BPP) mode is a table lookup method, and the image processing module can find the color value corresponding to each pixel ID.
It should be noted that other implementation steps in this embodiment are the same as or similar to those in the above embodiment, and therefore, the description of this embodiment is omitted here.
Therefore, the bus bandwidth is adjusted according to the method provided by the application, and the display frame can be displayed on the equipment display interface based on the user requirement, so that the equipment performance and the user experience are improved.
In the following, a bus bandwidth usage peak value adjusting apparatus provided by an embodiment of the present application is introduced, and a bus bandwidth usage peak value adjusting apparatus described below and a bus bandwidth usage peak value adjusting method described above may be referred to each other.
Referring to fig. 6, an embodiment of the present application discloses a device for adjusting a peak value of a bus bandwidth usage, including:
a receiving module 601, configured to receive an instruction for adjusting a bus bandwidth occupied by an image processing process;
a first adjusting module 602, configured to adjust color parameters of the frame buffer memory according to the instruction, where the color parameters include: the data volume occupied by each pixel point, the position and the size of each color in the data volume, and the length of each line of image data;
a second adjusting module 603, configured to adjust configuration parameters of the image processing module according to the color parameters, where the configuration parameters include: the storage position of the data in the color format in the processing process;
a processing module 604, configured to process the image transmitted to the frame buffer memory by using the adjusted color parameter and the adjusted configuration parameter, so as to adjust a bus bandwidth occupied by an image processing process; the frame buffer memory, the image processing module and the bus are devices in the same equipment.
In a specific embodiment, the method further comprises the following steps:
the acquisition module is used for acquiring an image to be processed;
and the conversion module is used for converting the image into the target format and transmitting the image in the target format to the frame buffer memory.
In a specific embodiment, the processing module is specifically configured to:
and controlling the frame buffer memory to read the image according to the color parameters and transmitting the read image to the image processing module so that the image processing module processes the image according to the configuration parameters.
In one embodiment, the first adjusting module comprises:
the first adjusting unit is used for adjusting the data volume occupied by each pixel point to a target value according to the instruction;
and a second adjusting unit for adjusting the position and size of each color in the target value and the length of each line of image data.
In a specific embodiment, the method further comprises the following steps:
and the initialization module is used for starting the equipment and initializing the color parameters and the configuration parameters.
In a specific embodiment, the initialization module is specifically configured to:
color parameters are initialized according to the maximum value supported by the image processing module.
In one embodiment, the color format is at least one or a combination of CLUT _8BPP, CLUT _4BPP, CLUT _2BPP, CLUT _1BPP, and RGB 565.
For more specific working processes of each module and unit in this embodiment, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not described here again.
Therefore, the present embodiment provides a device for adjusting a bus bandwidth usage peak, which can adjust the size of a bus bandwidth occupied in an image processing process in real time as needed, so as to balance bus bandwidth resources in hardware devices and ensure stable operation of the hardware devices. The method does not need to replace devices in the equipment, and reduces the operation complexity and cost.
In the following, a bus bandwidth usage peak adjustment device provided by an embodiment of the present application is introduced, and a bus bandwidth usage peak adjustment device described below and a bus bandwidth usage peak adjustment method and apparatus described above may be referred to each other.
Referring to fig. 7, an embodiment of the present application discloses a bus bandwidth usage peak adjustment device, including:
a memory 701 for storing a computer program;
a processor 702 for executing the computer program to implement the method disclosed in any of the embodiments above.
The following describes a readable storage medium provided by an embodiment of the present application, and a readable storage medium described below and a method, an apparatus, and a device for adjusting peak value of bus bandwidth usage described above may be referred to each other.
A readable storage medium for storing a computer program, wherein the computer program when executed by a processor implements the bus bandwidth usage peak adjustment method disclosed in the foregoing embodiments. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, which are not described herein again.
References in this application to "first," "second," "third," "fourth," etc., if any, are intended to distinguish between similar elements and not necessarily to describe a particular order or sequence. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, or apparatus.
It should be noted that the descriptions in this application referring to "first", "second", etc. are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of readable storage medium known in the art.
The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for adjusting peak bandwidth usage, comprising:
receiving an instruction for adjusting the bus bandwidth occupied by the image processing process;
adjusting color parameters of a frame buffer memory according to the instructions, the color parameters including: the data volume occupied by each pixel point, the position and the size of each color in the data volume, and the length of each line of image data;
adjusting configuration parameters of an image processing module according to the color parameters, wherein the configuration parameters comprise: the color format corresponding to the color parameter, and the storage position of the data in the color format in the processing process;
processing the image transmitted to the frame buffer memory by using the adjusted color parameters and the adjusted configuration parameters so as to adjust the bus bandwidth occupied by the image processing process;
the frame buffer memory, the image processing module and the bus are devices in the same equipment.
2. The method of claim 1, wherein before processing the image transmitted to the frame buffer memory using the adjusted color parameters and the adjusted configuration parameters, the method further comprises:
acquiring an image to be processed;
converting the image into a target format, and transmitting the image of the target format to the frame buffer memory.
3. The method of claim 2, wherein processing the image transmitted to the frame buffer memory by using the adjusted color parameters and the adjusted configuration parameters comprises:
and the frame buffer memory reads the image according to the color parameters and transmits the read image to the image processing module, so that the image processing module processes the image according to the configuration parameters.
4. The method of claim 1, wherein said adjusting color parameters of a frame buffer memory according to said instructions comprises:
adjusting the data volume occupied by each pixel point to a target value according to the instruction;
the position and size of each color in the target value, and the length of each line of image data are adjusted.
5. The method according to any one of claims 1 to 4, wherein before receiving the instruction for adjusting the bus bandwidth occupied by the image processing process, the method further comprises:
starting the device and initializing the color parameters and the configuration parameters.
6. The method of claim 5, wherein initializing the color parameters comprises:
initializing the color parameters according to the maximum value supported by the image processing module.
7. The method of claim 1, wherein the color format comprises: CLUT _8BPP, CLUT _4BPP, CLUT _2BPP, CLUT _1BPP, and RGB 565.
8. A bus bandwidth usage peak adjustment apparatus, comprising:
the receiving module is used for receiving an instruction for adjusting the bus bandwidth occupied by the image processing process;
a first adjusting module, configured to adjust color parameters of a frame buffer according to the instruction, where the color parameters include: the data volume occupied by each pixel point, the position and the size of each color in the data volume, and the length of each line of image data;
a second adjusting module, configured to adjust configuration parameters of the image processing module according to the color parameters, where the configuration parameters include: the color format corresponding to the color parameter, and the storage position of the data in the color format in the processing process;
the processing module is used for processing the image transmitted to the frame buffer memory by utilizing the adjusted color parameters and the adjusted configuration parameters so as to adjust the bus bandwidth occupied by the image processing process; the frame buffer memory, the image processing module and the bus are devices in the same equipment.
9. A bus bandwidth usage peak adjustment device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the bus bandwidth usage peak adjustment method of any one of claims 1 to 7.
10. A readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the method of peak adjustment of bus bandwidth usage according to any one of claims 1 to 7.
CN201911310833.7A 2019-12-18 2019-12-18 Method and device for adjusting bus bandwidth use peak value Active CN111078601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911310833.7A CN111078601B (en) 2019-12-18 2019-12-18 Method and device for adjusting bus bandwidth use peak value

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911310833.7A CN111078601B (en) 2019-12-18 2019-12-18 Method and device for adjusting bus bandwidth use peak value

Publications (2)

Publication Number Publication Date
CN111078601A true CN111078601A (en) 2020-04-28
CN111078601B CN111078601B (en) 2022-11-15

Family

ID=70315683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911310833.7A Active CN111078601B (en) 2019-12-18 2019-12-18 Method and device for adjusting bus bandwidth use peak value

Country Status (1)

Country Link
CN (1) CN111078601B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006821A (en) * 2021-11-02 2022-02-01 北京金山云网络技术有限公司 Service range adjusting method and device, electronic equipment and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118644A (en) * 2006-08-01 2008-02-06 深圳安凯微电子技术有限公司 Graphic accelerators and graphic processing method
CN101540145A (en) * 2008-03-18 2009-09-23 深圳安凯微电子技术有限公司 Method for saving transmission bandwidth of LCD controller
CN101667407A (en) * 2009-05-25 2010-03-10 北京中星微电子有限公司 Bandwidth self-adapting image data accessing method, system and display control device
US20100153544A1 (en) * 2008-12-16 2010-06-17 Brad Krassner Content rendering control system and method
CN103124350A (en) * 2012-12-24 2013-05-29 东软集团股份有限公司 Image compression method and device based on run-length encoding (RLE)
US20130254444A1 (en) * 2012-03-23 2013-09-26 Ricoh Company, Ltd. Image processing apparatus
CN104268113A (en) * 2014-09-23 2015-01-07 天津国芯科技有限公司 LCD (Liquid Crystal Display) controller of DPI interface and bandwidth automatic adaption method thereof
JP2015050572A (en) * 2013-08-30 2015-03-16 ブラザー工業株式会社 Information processing device, program, and information processing method
US20150172669A1 (en) * 2013-03-15 2015-06-18 KASAH Technology, Inc. System and method for processing compressed images and video for improved data communication
US20160163019A1 (en) * 2014-12-05 2016-06-09 Stmicroelectronics (Grenoble 2) Sas Method and device for composing a multilayer video image
WO2016101305A1 (en) * 2014-12-26 2016-06-30 深圳Tcl数字技术有限公司 Video file processing method and display device
CN107492139A (en) * 2017-08-25 2017-12-19 网易(杭州)网络有限公司 Processing method, device, storage medium, processor and the terminal of floodlight information
CN109144200A (en) * 2018-08-02 2019-01-04 深圳市华星光电技术有限公司 Picture display process, computer storage medium and display device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101118644A (en) * 2006-08-01 2008-02-06 深圳安凯微电子技术有限公司 Graphic accelerators and graphic processing method
CN101540145A (en) * 2008-03-18 2009-09-23 深圳安凯微电子技术有限公司 Method for saving transmission bandwidth of LCD controller
US20100153544A1 (en) * 2008-12-16 2010-06-17 Brad Krassner Content rendering control system and method
CN101667407A (en) * 2009-05-25 2010-03-10 北京中星微电子有限公司 Bandwidth self-adapting image data accessing method, system and display control device
US20130254444A1 (en) * 2012-03-23 2013-09-26 Ricoh Company, Ltd. Image processing apparatus
CN103124350A (en) * 2012-12-24 2013-05-29 东软集团股份有限公司 Image compression method and device based on run-length encoding (RLE)
US20150172669A1 (en) * 2013-03-15 2015-06-18 KASAH Technology, Inc. System and method for processing compressed images and video for improved data communication
JP2015050572A (en) * 2013-08-30 2015-03-16 ブラザー工業株式会社 Information processing device, program, and information processing method
CN104268113A (en) * 2014-09-23 2015-01-07 天津国芯科技有限公司 LCD (Liquid Crystal Display) controller of DPI interface and bandwidth automatic adaption method thereof
US20160163019A1 (en) * 2014-12-05 2016-06-09 Stmicroelectronics (Grenoble 2) Sas Method and device for composing a multilayer video image
WO2016101305A1 (en) * 2014-12-26 2016-06-30 深圳Tcl数字技术有限公司 Video file processing method and display device
CN107492139A (en) * 2017-08-25 2017-12-19 网易(杭州)网络有限公司 Processing method, device, storage medium, processor and the terminal of floodlight information
CN109144200A (en) * 2018-08-02 2019-01-04 深圳市华星光电技术有限公司 Picture display process, computer storage medium and display device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006821A (en) * 2021-11-02 2022-02-01 北京金山云网络技术有限公司 Service range adjusting method and device, electronic equipment and storage medium
CN114006821B (en) * 2021-11-02 2024-04-02 北京金山云网络技术有限公司 Service range adjusting method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111078601B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
CN104704810B (en) Image capture accelerator and the method accelerated for image capture
US6208429B1 (en) Method and system for band printing of rotated digital image data
US10110806B2 (en) Electronic device and method for operating the same
US8253808B2 (en) Image processing system and electronic camera
KR20040000151A (en) Apparatus and Method For Converting Of Pixels From YUV TO RGB Format Using Color Look-Up Tables
CN111078601B (en) Method and device for adjusting bus bandwidth use peak value
US8792131B2 (en) Image processing system, information processing system, control method, and program
KR100663380B1 (en) Imaging device and method for transferring image signal
US11263730B2 (en) Image processing method and apparatus and terminal device
EP1339037A1 (en) Image display circuitry and mobile electronic device
CN116364023A (en) Method, device, medium and equipment for driving electronic ink screen based on GPU
US20200294211A1 (en) Image display apparatus, image supply apparatus, and control method thereof
US8913164B2 (en) Image processor, electronic device including image processor, and image processing method for performing stepped tone correction on images
KR20210068593A (en) Method and apparatus for HDR hardware processor inline to hardware encoder and decoder
US7154559B2 (en) Video apparatus, notably video decoder, and process for memory control in such an apparatus
WO2013154019A1 (en) Image capture device
US8068179B2 (en) On-screen display device with compressed data and display method thereof
KR100686358B1 (en) Image improving system and method thereof
CN114640834B (en) Image processing method and related device
KR100933171B1 (en) Non-memory semiconductor embodied graphic display function
CN110087052B (en) Color gamut mapping method, device and storage medium
US11831846B2 (en) Image processing apparatus with pre-stored color conversion processing, and control method and storage medium thereof
WO2024045871A1 (en) Display method and apparatus
CN101166244A (en) Screen display device and its display method
JP2004236159A (en) Image recording method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant