[go: up one dir, main page]

CN101630501A - Method and system for displaying image - Google Patents

Method and system for displaying image Download PDF

Info

Publication number
CN101630501A
CN101630501A CN200810141605A CN200810141605A CN101630501A CN 101630501 A CN101630501 A CN 101630501A CN 200810141605 A CN200810141605 A CN 200810141605A CN 200810141605 A CN200810141605 A CN 200810141605A CN 101630501 A CN101630501 A CN 101630501A
Authority
CN
China
Prior art keywords
display device
pixel
source image
value
physical display
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
CN200810141605A
Other languages
Chinese (zh)
Other versions
CN101630501B (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.)
Haining Yanguan Industrial Investment Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN2008101416057A priority Critical patent/CN101630501B/en
Publication of CN101630501A publication Critical patent/CN101630501A/en
Application granted granted Critical
Publication of CN101630501B publication Critical patent/CN101630501B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

本发明适用于图像处理领域,提供了一种图像显示方法及系统,所述方法包括下述步骤:根据源图像中的像素点的坐标值计算源图像中的像素点映射至物理显示设备上的坐标值;根据所述源图像中的像素点映射至物理显示设备上的坐标值,以及物理显示设备的颜色深度值和分辨率,计算源图像中的像素点在物理显示设备的显存中的位置,并将所述源图像中的像素点存储至所述像素点在物理显示设备的显存中的位置;将物理显示设备的显存中存储的像素点显示在物理显示设备上。本发明实施例在更换具有不同分辨率或者不同颜色空间的物理显示设备时,只需要修改图像显示方法的相应接口即可,可移植性较好,降低了维护的难度。

Figure 200810141605

The present invention is applicable to the field of image processing, and provides an image display method and system. The method includes the following steps: calculating the pixel points in the source image mapped to the physical display device according to the coordinate values of the pixel points in the source image. Coordinate value; according to the coordinate value of the pixel in the source image mapped to the physical display device, and the color depth value and resolution of the physical display device, calculate the position of the pixel in the source image in the video memory of the physical display device , and store the pixels in the source image to the positions of the pixels in the video memory of the physical display device; display the pixels stored in the video memory of the physical display device on the physical display device. In the embodiment of the present invention, when replacing a physical display device with a different resolution or a different color space, only the corresponding interface of the image display method needs to be modified, which has good portability and reduces the difficulty of maintenance.

Figure 200810141605

Description

一种图像显示方法及系统 Image display method and system

技术领域 technical field

本发明属于图像处理领域,,尤其涉及一种图像显示方法及系统。The invention belongs to the field of image processing, and in particular relates to an image display method and system.

背景技术 Background technique

在图像显示领域,现有的图像显示方法一般采用两层架构,即源图像层和物理显示层。在将源图像显示到物理显示设备上时,现有的图像显示方法是将源图像直接显示在物理显示设备上。在这种图像显示方法中,由于将源图像直接显示在物理显示设备中,导致当更换具有不同分辨率或者不同颜色空间的物理显示设备时,需要重新设计图像显示方法,从而使图像显示方法可移植性差,维护难度大,给开发人员带来不便。In the field of image display, existing image display methods generally adopt a two-layer architecture, that is, a source image layer and a physical display layer. When displaying the source image on the physical display device, the existing image display method is to directly display the source image on the physical display device. In this image display method, since the source image is directly displayed on the physical display device, when a physical display device with a different resolution or a different color space is replaced, the image display method needs to be redesigned, so that the image display method can Poor portability, difficult maintenance, and inconvenience to developers.

发明内容 Contents of the invention

本发明实施例的目的在于提供一种图像显示方法,旨在解决现有的图像显示方法可移植性差,维护难度大的问题。The purpose of the embodiments of the present invention is to provide an image display method, aiming at solving the problems of poor portability and difficult maintenance in the existing image display method.

本发明实施例是这样实现的,一种图像显示方法,所述方法包括下述步骤:The embodiment of the present invention is achieved in this way, an image display method, the method includes the following steps:

根据源图像中的像素点的坐标值计算源图像中的像素点映射至物理显示设备上的坐标值;Calculate the coordinate values of the pixels in the source image mapped to the physical display device according to the coordinate values of the pixels in the source image;

根据所述源图像中的像素点映射至物理显示设备上的坐标值,以及物理显示设备的颜色深度值和分辨率,计算源图像中的像素点在物理显示设备的显存中的位置,并将所述源图像中的像素点存储至所述像素点在物理显示设备的显存中的位置;According to the coordinate values of the pixel points in the source image mapped to the physical display device, and the color depth value and resolution of the physical display device, calculate the position of the pixel point in the source image in the video memory of the physical display device, and set The pixels in the source image are stored to the positions of the pixels in the video memory of the physical display device;

将物理显示设备的显存中存储的像素点显示在物理显示设备上。Display the pixels stored in the video memory of the physical display device on the physical display device.

本发明实施例的另一目的在于提供一种图像显示系统,所述系统包括:Another object of the embodiments of the present invention is to provide an image display system, the system comprising:

像素映射单元,用于根据源图像中各像素点的坐标值计算源图像中各像素点映射至物理显示设备上的坐标值;A pixel mapping unit, configured to calculate the coordinate values of each pixel in the source image mapped to the physical display device according to the coordinate values of each pixel in the source image;

显存位置计算单元,用于根据所述像素映射单元计算出的坐标值,以及物理显示设备的分辨率和颜色深度值,计算源图像中各像素点在物理显示设备的显存中的位置,并将所述源图像中各像素点的颜色值存储至所述计算出的相应的显存中的位置;A video memory position calculation unit, used to calculate the position of each pixel in the source image in the video memory of the physical display device according to the coordinate value calculated by the pixel mapping unit, and the resolution and color depth value of the physical display device, and The color value of each pixel in the source image is stored to the calculated position in the corresponding video memory;

图像显示单元,用于将物理显示设备的显存中存储的像素点显示在物理显示设备上。The image display unit is configured to display the pixels stored in the video memory of the physical display device on the physical display device.

在本发明实施例中,通过计算源图像中的像素点映射到物理显示设备上的坐标值,并根据该坐标值、以及物理显示设备的颜色深度值和分辨率计算源图像的像素点在物理显示设备的显存中的位置,从而当更换具有不同分辨率或者不同颜色空间的物理显示设备时,只需要修改逻辑处理层中相应接口即可,可移植性较好,降低了维护的难度。In the embodiment of the present invention, the coordinate value of the pixel point in the source image mapped to the physical display device is calculated, and the pixel point of the source image is calculated according to the coordinate value, the color depth value and the resolution of the physical display device. The location in the video memory of the display device, so that when replacing a physical display device with a different resolution or a different color space, only the corresponding interface in the logic processing layer needs to be modified, which has good portability and reduces the difficulty of maintenance.

附图说明 Description of drawings

图1是本发明实施例提供的图像显示方法的实现流程图;FIG. 1 is a flowchart of an implementation of an image display method provided by an embodiment of the present invention;

图2是本发明实施例提供的计算源图像中各像素点映射至物理显示设备上的坐标值的实现流程图;Fig. 2 is a flow chart for realizing the mapping of each pixel in the calculation source image to the coordinate value on the physical display device provided by the embodiment of the present invention;

图3是本发明实施例提供的计算源图像的起始显示像素点映射至物理显示设备上的坐标值的实现流程图;Fig. 3 is a flow chart for realizing the mapping of the initial display pixel point of the calculation source image to the coordinate value on the physical display device provided by the embodiment of the present invention;

图4是本发明实施例提供的初始的源图像的直角坐标示意图;Fig. 4 is a schematic diagram of Cartesian coordinates of an initial source image provided by an embodiment of the present invention;

图5是本发明实施例提供的在初始的元图像中设定源图像的显示区域的直角坐标示意图;Fig. 5 is a schematic diagram of Cartesian coordinates for setting the display area of the source image in the initial meta image provided by the embodiment of the present invention;

图6至图9是本发明实施例提供的源图像的起始显示像素点映射至物理显示设备中的示意图;FIG. 6 to FIG. 9 are schematic diagrams of mapping the initial display pixel point of the source image to the physical display device provided by the embodiment of the present invention;

图10是本发明实施例提供的计算源图像中各像素点在物理显示设备的显存中的位置的实现流程图;Fig. 10 is an implementation flowchart of calculating the position of each pixel in the source image in the video memory of the physical display device provided by the embodiment of the present invention;

图11是本发明实施例提供的对源图像中的像素点进行精度转换,得到该像素点的新的颜色值的实现流程图;Fig. 11 is an implementation flow chart of performing precision conversion on a pixel in a source image to obtain a new color value of the pixel provided by an embodiment of the present invention;

图12是本发明实施例提供的对像素点的颜色值的分量值进行精度转换的示意图;Fig. 12 is a schematic diagram of precision conversion of component values of color values of pixels provided by an embodiment of the present invention;

图13是本发明实施例提供的图像显示系统的架构示意图;Fig. 13 is a schematic diagram of the architecture of an image display system provided by an embodiment of the present invention;

图14是本发明实施例提供的图像显示系统的组成结构图。FIG. 14 is a structural diagram of an image display system provided by an embodiment of the present invention.

具体实施方式 Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

在本发明实施例中,在现有的源图像层与物理显示设备层之间设置一独立于源图像层和物理显示设备层的逻辑处理层,通过该逻辑处理层计算源图像中的像素点映射到物理显示设备上的坐标值,并根据该坐标值、以及物理显示设备的颜色深度值和分辨率计算源图像的像素点在物理显示设备的显存中的位置,从而当更换具有不同分辨率或者不同颜色空间的物理显示设备时,只需要修改逻辑处理层中相应接口即可,可移植性较好,降低了维护的难度。In the embodiment of the present invention, a logical processing layer independent of the source image layer and the physical display device layer is set between the existing source image layer and the physical display device layer, through which the pixel points in the source image are calculated Map to the coordinate value on the physical display device, and calculate the pixel position of the source image in the video memory of the physical display device according to the coordinate value, and the color depth value and resolution of the physical display device, so that when replacing with a different resolution Or when using physical display devices with different color spaces, you only need to modify the corresponding interface in the logical processing layer, which has good portability and reduces the difficulty of maintenance.

图1示出了本发明实施例提供的图像显示方法的实现流程,详述如下:Figure 1 shows the implementation process of the image display method provided by the embodiment of the present invention, which is described in detail as follows:

在步骤S101中,计算源图像中的像素点映射至物理显示设备上的坐标值。In step S101, coordinate values mapped from pixels in the source image to physical display devices are calculated.

在步骤S102中,根据该坐标值以及物理显示设备的颜色深度值和分辨率,计算源图像中的像素点在物理显示设备的显存中的位置,并将源图像中的像素点存储至物理显示设备的显存中的位置。In step S102, according to the coordinate value and the color depth value and resolution of the physical display device, calculate the position of the pixel in the source image in the video memory of the physical display device, and store the pixel in the source image to the physical display The location in the device's video memory.

在步骤S103中,在物理显示设备上显示显存中存储的像素点。In step S103, the pixels stored in the display memory are displayed on the physical display device.

图2示出了本发明实施例提供的计算源图像中的像素点映射至物理显示设备上的坐标值,并将源图像中的像素点显示在计算出的物理显示设备上的坐标值对应的位置的实现流程,详述如下:Fig. 2 shows an embodiment of the present invention that calculates the pixel points in the source image and maps them to the coordinate values on the physical display device, and displays the pixels in the source image on the calculated coordinate values corresponding to the physical display device. The implementation process of location is described in detail as follows:

在步骤S201中,获取源图像的起始显示像素点的坐标值,并计算源图像的起始显示像素点映射至物理显示设备上的坐标值;In step S201, the coordinate value of the initial display pixel point of the source image is obtained, and the coordinate value mapped to the physical display device by the initial display pixel point of the source image is calculated;

在步骤S202中,判断源图像中的像素点是否映射完毕,如果是,则像素点映射结束,否则,执行步骤S203;In step S202, it is judged whether the pixel points in the source image have been mapped, if yes, the pixel point mapping ends, otherwise, step S203 is performed;

在步骤S203中,获取源图像中的下一像素点的坐标值,并计算该像素点映射至物理显示设备上的坐标值;In step S203, the coordinate value of the next pixel in the source image is obtained, and the coordinate value of the pixel mapped to the physical display device is calculated;

在步骤S204中,判断像素点映射至物理显示设备上的坐标值是否超出物理显示设备的显示范围,如果是,则执行步骤S202,否则执行步骤S205。In step S204, it is determined whether the coordinate value of the pixel point mapped to the physical display device exceeds the display range of the physical display device, if yes, execute step S202, otherwise execute step S205.

在步骤S205中,将源图像中的像素点显示在映射至物理显示设备的坐标值对应的位置,继续执行步骤S204。In step S205, the pixel points in the source image are displayed at positions corresponding to the coordinate values mapped to the physical display device, and step S204 is continued.

通过上述步骤S201至步骤S205,可以计算出源图像中的所有像素点映射至物理显示设备上的坐标。Through the above steps S201 to S205, the coordinates of all the pixels in the source image mapped to the physical display device can be calculated.

图3示出了本发明实施例提供的获取源图像的起始显示像素点的坐标值,并计算源图像的起始显示像素点映射至物理显示设备上的坐标值的实现流程,详述如下:Fig. 3 shows the implementation process of obtaining the coordinate value of the initial display pixel point of the source image provided by the embodiment of the present invention, and calculating the coordinate value mapped from the initial display pixel point of the source image to the physical display device, which is described in detail as follows :

在步骤S301中,获取源图像中起始显示像素点的坐标值(X0,Y0)。In step S301, the coordinate values (X 0 , Y 0 ) of the initial display pixel point in the source image are acquired.

在获取源图像中的起始显示像素点的坐标值时,可以从源图像层获取源图像中起始显示像素点的坐标值(X0,Y0)。该起始显示像素点的坐标值(X0,Y0)不超出初始的源图像的范围。即假设初始的源图像的直角坐标如图4所示,该初始的源图像的范围为从像素点(X00,Y00)到像素点(Xn,Yn),且X00≤Xn,Y00≤Yn,则获取的起始显示像素点的坐标值(X0,Y0)需要满足如下条件:X00≤X0≤Xn,Y00≤Y0≤YnWhen obtaining the coordinate value of the initial display pixel point in the source image, the coordinate value (X 0 , Y 0 ) of the initial display pixel point in the source image may be obtained from the source image layer. The coordinate values (X 0 , Y 0 ) of the initial display pixel do not exceed the range of the initial source image. That is, assuming that the rectangular coordinates of the initial source image are as shown in Figure 4, the range of the initial source image is from pixel point (X 00 , Y 00 ) to pixel point (X n , Y n ), and X 00X n , Y 00 ≤Y n , then the acquired coordinate values (X 0 , Y 0 ) of the initial display pixel need to satisfy the following conditions: X 00 ≤X 0 ≤X n , Y 00 ≤Y 0 ≤Y n .

在步骤S302中,根据源图像中的起始显示像素点的坐标值设定源图像的显示区域。In step S302, the display area of the source image is set according to the coordinate value of the initial display pixel point in the source image.

在本发明实施例中,在设定源图像的显示区域时,将位于源图像中起始显示像素点右下方(即源图像中像素点的横坐标大于或者等于起始像素点的横坐标,且像素点的纵坐标大于或者等于起始像素点的纵坐标)的所有像素点组成的区域设定为源图像的显示区域,其效果如图5所示。即假设像素点的坐标值为(Xp,Yp),则满足X0≤Xp≤Xn,Y0≤Yp≤Yn的所有像素点(Xp,Yp)组成的区域即为源图像的显示区域。In the embodiment of the present invention, when setting the display area of the source image, it will be located at the bottom right of the initial display pixel in the source image (that is, the abscissa of the pixel in the source image is greater than or equal to the abscissa of the initial pixel, and the ordinate of the pixel is greater than or equal to the ordinate of the initial pixel), the area formed by all the pixels is set as the display area of the source image, and its effect is shown in FIG. 5 . That is, assuming that the coordinate value of the pixel point is (X p , Y p ), then the area composed of all pixel points (X p , Y p ) satisfying X 0 ≤ X p ≤ X n , Y 0 ≤ Y pY n is is the display area of the source image.

在步骤S303中,判断源图像的显示区域的长度(L_p)是否大于物理显示设备的长度(L_s),且源图像的显示区域的宽度(W_p)是否大于物理显示设备的宽度(W_s)。In step S303, determine whether the length (L_p) of the display area of the source image is greater than the length (L_s) of the physical display device, and whether the width (W_p) of the display area of the source image is greater than the width (W_s) of the physical display device.

如果L_p≤L_s,且W_p≤W_s,即源图像的显示区域的长度和宽度均小于或者等于物理显示设备的长度和宽度时,执行步骤S304;如果L_p>L_s,且W_p≤W_s,即源图像的显示区域的长度大于物理显示设备的长度,且源图像的显示区域的宽度小于或者等于物理显示设备的宽度时,执行步骤S305;如果L_p≤L_s,且W_p>W_s,即源图像的显示区域的长度小于或者等于物理显示设备的长度,且源图像的显示区域的宽度大于物理显示设备的宽度时,执行步骤S306;如果L_p>L_s,且W_p>W_s,即源图像的显示区域的长度和宽度均大于物理显示设备的长度和宽度时,执行步骤S307。If L_p≤L_s, and W_p≤W_s, that is, when the length and width of the display area of the source image are both less than or equal to the length and width of the physical display device, execute step S304; if L_p>L_s, and W_p≤W_s, that is, the source image When the length of the display area is greater than the length of the physical display device, and the width of the display area of the source image is less than or equal to the width of the physical display device, execute step S305; if L_p≤L_s, and W_p>W_s, that is, the display area of the source image When the length of is less than or equal to the length of the physical display device, and the width of the display area of the source image is greater than the width of the physical display device, execute step S306; if L_p>L_s, and W_p>W_s, that is, the length of the display area of the source image and When the widths are both greater than the length and width of the physical display device, step S307 is performed.

在步骤S304中,将源图像中起始显示像素点(X0,Y0)映射至物理显示设备的中央居中的位置(Xs,Ys),使源图像可以显示在物理显示设备的居中位置,其中Xs=(L_s-L_p)/2,Ys=(W_s-W_p)/2。将源图像的起始显示像素点(X0,Y0)映射至物理显示设备的中央居中的位置(Xs,Ys)的效果如图6所示。In step S304, the initial display pixel point (X 0 , Y 0 ) in the source image is mapped to the center position (X s , Y s ) of the physical display device, so that the source image can be displayed in the center of the physical display device position, where X s =(L_s-L_p)/2, Y s =(W_s-W_p)/2. The effect of mapping the initial display pixel point (X 0 , Y 0 ) of the source image to the centered position (X s , Y s ) of the physical display device is shown in FIG. 6 .

在步骤S305中,将源图像中起始显示像素点(X0,Y0)映射至物理显示设备的垂直居中位置(Xs,Ys),使源图像可以在物理显示设备的水平方向对齐,同时在物理显示设备垂直方向上居中显示,其中Xs=0,Ys=(W_s-W_p)/2。将源图像中起始显示像素点(X0,Y0)映射至物理显示设备的左边垂直居中位置(Xs,Ys)的效果如图7所示。In step S305, the initial display pixel point (X 0 , Y 0 ) in the source image is mapped to the vertical center position (X s , Y s ) of the physical display device, so that the source image can be aligned in the horizontal direction of the physical display device , and at the same time centered in the vertical direction of the physical display device, where X s =0, Y s =(W_s-W_p)/2. The effect of mapping the initial display pixel point (X 0 , Y 0 ) in the source image to the left vertical center position (X s , Y s ) of the physical display device is shown in FIG. 7 .

在步骤S306中,将源图像中起始显示像素点(X0,Y0)映射至物理显示设备的水平居中位置(Xs,Ys),使源图像可以在物理显示设备的垂直方向对齐,同时在物理显示设备水平方向上居中显示,其中Xs=(L_s-L_p)/2,Ys=0。将源图像中起始显示像素点(X0,Y0)映射至物理显示设备的水平居中位置(Xs,Ys)的效果如图8所示。In step S306, the initial display pixel point (X 0 , Y 0 ) in the source image is mapped to the horizontal center position (X s , Y s ) of the physical display device, so that the source image can be aligned in the vertical direction of the physical display device , and displayed at the center in the horizontal direction of the physical display device at the same time, where X s =(L_s-L_p)/2, Y s =0. The effect of mapping the initial display pixel point (X 0 , Y 0 ) in the source image to the horizontal center position (X s , Y s ) of the physical display device is shown in FIG. 8 .

在步骤S307中,将源图像中起始显示像素点(X0,Y0)映射至物理显示设备的原点位置(Xs,Ys),使源图像中起始显示像素点与物理显示设备的原点对齐,其中Xs=0,Ys=0。将源图像中起始显示像素点(X0,Y0)映射至物理显示设备的原点位置(Xs,Ys)的效果如图9所示。In step S307, the initial display pixel point (X 0 , Y 0 ) in the source image is mapped to the origin position (X s , Y s ) of the physical display device, so that the initial display pixel point in the source image is consistent with the physical display device The origin of is aligned, where X s =0, Y s =0. The effect of mapping the initial display pixel point (X 0 , Y 0 ) in the source image to the origin position (X s , Y s ) of the physical display device is shown in FIG. 9 .

经过上述步骤S301至步骤S307即可计算出源图像的起始显示像素点(X0,Y0)映射至物理显示设备的坐标值(Xs,Ys)。可以理解,在计算出源图像的起始显示像素点(X0,Y0)映射至物理显示设备的坐标值(Xs,Ys)后,再获取源图像的起始显示像素点(X0,Y0)的下一像素点(X0,Y1),并将该像素点(X0,Y1)映射至物理显示设备的坐标值(Xs,Ys)的下一坐标值(Xs,Ys+1),依据上述方法,即可计算出源图像的显示区域中的任一像素点(Xp,Yp)映射至物理显示设备的坐标值(Xd,Yd)。After the above steps S301 to S307, the coordinate values (X s , Y s ) mapped from the initial display pixel point (X 0 , Y 0 ) of the source image to the physical display device can be calculated. It can be understood that after the initial display pixel point (X 0 , Y 0 ) of the source image is calculated and mapped to the coordinate value (X s , Y s ) of the physical display device, the initial display pixel point (X s , Y s ) of the source image is obtained. 0 , Y 0 ), and map the pixel point (X 0 , Y 1 ) to the next coordinate value of the coordinate value (X s , Y s ) of the physical display device (X s , Y s+1 ), according to the above method, the coordinate value (X d , Y d ).

图10示出了本发明实施例提供的根据源图像中的像素点映射至物理显示设备上的坐标值,以及物理显示设备的颜色深度值和分辨率,计算源图像中的像素点在物理显示设备的显存中的位置的具体步骤如下:Fig. 10 shows the coordinate values of the pixels in the source image mapped to the physical display device provided by the embodiment of the present invention, as well as the color depth value and resolution of the physical display device, and the calculation of the pixel points in the source image on the physical display The specific steps for the location in the video memory of the device are as follows:

在步骤S1001中,对物理显示设备进行初始化。In step S1001, a physical display device is initialized.

在本发明实施例中,在对物理显示设备进行初始化时,需要对物理显示设备的硬件逻辑和显存中像素点的存放次序模式进行初始化。在对物理显示设备进行初始化后,得到物理显示设备所支持的颜色深度值(P2_bpp)、显存的基址地址(pBase)以及显存中像素点的存放次序模式。In the embodiment of the present invention, when initializing the physical display device, it is necessary to initialize the hardware logic of the physical display device and the storage sequence mode of the pixels in the display memory. After the physical display device is initialized, the color depth value (P2_bpp) supported by the physical display device, the base address of the video memory (pBase) and the storage order mode of the pixels in the video memory are obtained.

其中显存中像素点的存放次序模式可以为LBLP(Little Endian Byte,LittleEndian Pixel order)模式,BBBP(Big Endian Byte,Big Endian Pixel order)模式,或者LBBP(Little Endian Byte,Big Endian Pixel order)模式。The storage order mode of the pixels in the video memory can be LBLP (Little Endian Byte, Little Endian Pixel order) mode, BBBP (Big Endian Byte, Big Endian Pixel order) mode, or LBBP (Little Endian Byte, Big Endian Pixel order) mode.

在步骤S1002中,判断源图像的颜色深度值(P1_bpp)与物理显示设备所支持的颜色深度值(P2_bpp)是否一致,如果不一致,则执行步骤S1003,否则执行步骤S1004。In step S1002, determine whether the color depth value (P1_bpp) of the source image is consistent with the color depth value (P2_bpp) supported by the physical display device, if not, execute step S1003, otherwise execute step S1004.

在步骤S1003中,对源图像中的像素点的颜色值进行精度转换,得到该像素点的新的颜色值。In step S1003, the precision conversion is performed on the color value of the pixel in the source image to obtain a new color value of the pixel.

在步骤S1004中,根据源图像中的像素点映射至物理显示设备的坐标值(Xd,Yd),以及物理显示设备的颜色深度值和分辨率,计算源图像中的像素点在物理显示设备的显存中的位置。In step S1004, according to the coordinate values (Xd, Yd) that the pixels in the source image are mapped to the physical display device, and the color depth value and resolution of the physical display device, calculate the distance between the pixels in the source image and the physical display device. location in video memory.

在本发明实施例中,如果物理显示设备支持的颜色深度值小于8BPP,如为1BPP、2BPP或者4BPP时,则计算源图像中的像素点在物理显示设备的显存中的位置的步骤具体为:In the embodiment of the present invention, if the color depth value supported by the physical display device is less than 8BPP, such as 1BPP, 2BPP or 4BPP, the step of calculating the position of the pixel in the source image in the video memory of the physical display device is specifically:

A、计算源图像中的像素点在物理显示设备的显存中的字节位置,以字节为单位,其中计算公式如下:A. Calculate the byte position of the pixel in the source image in the video memory of the physical display device, in bytes, and the calculation formula is as follows:

pByte=pBase+(Yd*screen_width+Xd)*P2_bpp/8,其中pBase为显存的基址地址,(Xd,Yd)为源图像中的像素点映射至物理显示设备的坐标值,screen_width*screen_height是物理显示设备的分辨率,其中screen_width是物理显示设备上一行所占的像素个数,screen_height是物理显示设备上一列所占的像素个数。P2_bpp是物理显示设备所支持的颜色深度值。pByte=pBase+(Y d *screen_width+X d )*P2_bpp/8, where pBase is the base address of the video memory, (X d , Y d ) is the coordinate value of the pixel in the source image mapped to the physical display device, screen_width *screen_height is the resolution of the physical display device, where screen_width is the number of pixels occupied by a row on the physical display device, and screen_height is the number of pixels occupied by a column on the physical display device. P2_bpp is the color depth value supported by the physical display device.

B、计算一个像素点在一个字节中的偏移量poffset;B. Calculate the offset poffset of a pixel in a byte;

在本发明实施例中,可以采用如下两种方式计算偏移量poffset,一种方式是通过直接查询物理显示设备中每种模式下对应到一个字节内的像素点与偏移量之间的对应表;另一种是通过如下计算公式,计算出一个像素点在一个字节中的偏移量poffset:In the embodiment of the present invention, the offset poffset can be calculated in the following two ways. One way is to directly query the relationship between the pixel point corresponding to one byte and the offset in each mode in the physical display device. Correspondence table; the other is to calculate the offset poffset of a pixel in a byte through the following calculation formula:

poffset=((Yd*screen_width+Xd)&((1<<(3-index))-1))<<index;poffset=((Yd*screen_width+Xd)&((1<<(3-index))-1))<<index;

其中当物理显示设备的颜色深度值为1BPP时,则index=0;当物理显示设备的颜色深度值为2BPP时,则index=1;当物理显示设备的颜色深度值为4BPP时,则index=2;Wherein, when the color depth value of the physical display device is 1BPP, then index=0; when the color depth value of the physical display device is 2BPP, then index=1; when the color depth value of the physical display device is 4BPP, then index= 2;

C、根据物理显示设备的显存中像素点的存放次序模式,调节偏移量poffset。C. Adjust the offset poffset according to the storage sequence mode of the pixels in the video memory of the physical display device.

当采用LBLP模式时,由于LBLP是物理显示设备默认的像素点存放模式,因此,不需要对偏移量poffset进行调节;When the LBLP mode is used, since LBLP is the default pixel storage mode of the physical display device, there is no need to adjust the offset poffset;

当采用BBBP模式时,采用如下调节公式,对偏移量poffset进行调节:When using BBBP mode, use the following adjustment formula to adjust the offset poffset:

poffset=(((Yd*screen_width+Xd)&((unsigned int)((unsigned int)1<<(3-index))-1))<<index)^((unsigned int)((unsigned int)7<<index)&7);poffset=(((Y d *screen_width+X d )&((unsigned int)((unsigned int)1<<(3-index))-1))<<index)^((unsigned int)((unsigned int) int)7<<index)&7);

其中当物理显示设备的颜色深度值为1BPP时,则index=0;当物理显示设备的颜色深度值为2BPP时,则index=1;当物理显示设备的颜色深度值为4BPP时,则index=2。Wherein, when the color depth value of the physical display device is 1BPP, then index=0; when the color depth value of the physical display device is 2BPP, then index=1; when the color depth value of the physical display device is 4BPP, then index= 2.

当采用LBBP模式时,采用如下调节公式,对偏移量poffset进行调节:When using LBBP mode, use the following adjustment formula to adjust the offset poffset:

poffset=(((Yd*screen_width+Xd)&((unsigned int)((unsigned int)1<<(3-index))-1))<<index)^((unsigned int)((unsigned int)7<<index)&7);poffset=(((Yd*screen_width+Xd)&((unsigned int)((unsigned int)1<<(3-index))-1))<<index)^((unsigned int)((unsigned int) 7<<index)&7);

其中当物理显示设备的颜色深度值为1BPP时,则index=0;当物理显示设备的颜色深度值为2BPP时,则index=1;当物理显示设备的颜色深度值为4BPP时,则index=2。Wherein, when the color depth value of the physical display device is 1BPP, then index=0; when the color depth value of the physical display device is 2BPP, then index=1; when the color depth value of the physical display device is 4BPP, then index= 2.

D、根据计算出的源图像中的像素点在物理显示设备的显存中的位置pByte以及计算的偏移量poffset确定源图像中的像素点在物理显示设备的显存中的位置pAdd=pByte+poffset。D. Determine the position of the pixel in the source image in the video memory of the physical display device pAdd=pByte+poffset according to the calculated position pByte of the pixel in the source image in the video memory of the physical display device and the calculated offset poffset .

在本发明实施例中,在计算源图像中的像素点在物理显示设备的显存中的位置pAdd时,采用的计算公式为pAdd=pBase+(Yd*screen_width+Xd)*P2_bpp,其中计算出的pAdd以位为单位。In the embodiment of the present invention, when calculating the position pAdd of the pixel in the source image in the display memory of the physical display device, the calculation formula used is pAdd=pBase+(Y d *screen_width+X d )*P2_bpp, where the calculated pAdd is in bits.

在本发明实施例中,由于物理显示设备的显存在存储像素点时,是按照字节存储的,因此,需要将计算出的以位为单位的pAdd转换为以字节为单位的pAdd(称为pByte),其中pByte=pBase+(Yd*screen_width+Xd)*P2_bpp/8。In the embodiment of the present invention, since the display of the physical display device stores pixels in bytes, it is necessary to convert the calculated pAdd in units of bits into pAdd in units of bytes (called pAdd in units of bytes). is pByte), where pByte=pBase+(Yd*screen_width+Xd)*P2_bpp/8.

如果物理显示设备支持的颜色深度值等于或者大于8BPP,如为8BPP、16BPP或者24BPP时,无论物理显示设备中的显存采用何种像素点存储模式,均采用如下计算公式:pAdd=pBase+(Yd*screen_width+Xd)*P2_bpp/8,计算源图像中的像素点在物理显示设备的显存中的位置。图11示出了本发明实施例提供的对源图像中的像素点的颜色值进行精度转换,得到该像素点的新的颜色值的实现流程,详述如下:If the color depth value supported by the physical display device is equal to or greater than 8BPP, such as 8BPP, 16BPP or 24BPP, no matter what pixel storage mode the video memory in the physical display device uses, the following calculation formula is used: pAdd=pBase+(Yd* screen_width+Xd)*P2_bpp/8, calculate the position of the pixel in the source image in the video memory of the physical display device. Fig. 11 shows the implementation process of performing precision conversion on the color value of a pixel in the source image to obtain a new color value of the pixel provided by an embodiment of the present invention, and the details are as follows:

在步骤S1101中,获取源图像中的像素点的颜色值的各分量值。In step S1101, each component value of the color value of the pixel in the source image is acquired.

在本发明实施例中,假设源图像的像素点的颜色值为RGB_value,并假设RGB_value对应的分量的最大分量值分别为R_Max_value、G_Max_value和B_Max_value,则根据源图像中的像素点的颜色值和颜色值对应的分量的最大值获取的该像素点颜色值的各分量值R_Src_value、G_Src_value和B_Src_value分别为:In the embodiment of the present invention, assuming that the color value of the pixel point of the source image is RGB_value, and assuming that the maximum component values of the components corresponding to RGB_value are R_Max_value, G_Max_value and B_Max_value respectively, then according to the color value and color of the pixel point in the source image The component values R_Src_value, G_Src_value and B_Src_value of the pixel color value obtained by the maximum value of the component corresponding to the value are:

R_Src_value=(RGB_value>>(G1_bits+B1_bits))& R_Max_value;R_Src_value=(RGB_value>>(G1_bits+B1_bits))&R_Max_value;

G_Src_value=(RGB_value>>B1_bits)& G_Max_value;G_Src_value=(RGB_value>>B1_bits)&G_Max_value;

B_Src_value=RGB_value & B_Max_value。B_Src_value=RGB_value & B_Max_value.

其中G1_bits、B1_bits分别为源图像的像素点的颜色值(RGB_value)的分量R、G的位数。Where G1_bits and B1_bits are respectively the number of bits of the components R and G of the color value (RGB_value) of the pixel of the source image.

在步骤S1102中,采用精度转换公式对源图像的每一个像素点的颜色值的分量值R_Src_value、G_Src_value和B_Src_value分别进行精度转换。In step S1102, precision conversion is performed on the component values R_Src_value, G_Src_value and B_Src_value of the color value of each pixel in the source image using the precision conversion formula.

请参阅图12,为本发明实施例提供的对源图像中的像素点的颜色值的分量值进行精度转换的示意图。本发明实施例采用的精度转换公式为P_Src_value/P_Src_max=P_Obj_value/P_Obj_max,其中P_Src_value和P_Src_max分别为源图像的像素点的颜色值的分量值和最大分量值,P_Obj_value和P_Obj_max分别为物理显示设备支持的图像像素点的颜色值的分量值和最大分量值。Please refer to FIG. 12 , which is a schematic diagram of precision conversion for component values of color values of pixels in a source image provided by an embodiment of the present invention. The precision conversion formula adopted in the embodiment of the present invention is P_Src_value/P_Src_max=P_Obj_value/P_Obj_max, wherein P_Src_value and P_Src_max are respectively the component value and the maximum component value of the color value of the pixel point of the source image, and P_Obj_value and P_Obj_max are respectively supported by the physical display device The component value and maximum component value of the color value of the image pixel.

对源图像的每一个像素点的颜色值的分量R_Src_value、G_Src_value和B_Src_value分别进行精度转换的具体过程如下:假设通过精度转换后的图像像素点的颜色值的分量值分别为R_Obj_value、G_Obj_value和B_Obj_value,并假设物理显示设备支持的像素点的颜色值的最大分量值为R_Max_Obj_value、G_Max_Obj_value和B_Max_Obj_value,则The specific process of precision conversion of the color value components R_Src_value, G_Src_value and B_Src_value of each pixel of the source image is as follows: Assume that the component values of the color value of the image pixel after precision conversion are R_Obj_value, G_Obj_value and B_Obj_value, And assuming that the maximum component value of the color value of the pixel supported by the physical display device is R_Max_Obj_value, G_Max_Obj_value and B_Max_Obj_value, then

R_Obj_value=(R_Src_value/R_Max_value)*R_Max_Obj_value;R_Obj_value=(R_Src_value/R_Max_value)*R_Max_Obj_value;

G_Obj_value=(G_Src_value/G_Max_value)*G_Max_Obj_value;G_Obj_value=(G_Src_value/G_Max_value)*G_Max_Obj_value;

B_Obj_value=(B_Src_value/B_Max_value)*B_Max_Obj_value。B_Obj_value=(B_Src_value/B_Max_value)*B_Max_Obj_value.

在步骤S1103中,采用位移操作将转换得到的像素点的颜色值的分量值重新拼接为该像素点的新的颜色值。其具体过程如下:In step S1103, the component values of the converted color value of the pixel point are reassembled into a new color value of the pixel point by using a displacement operation. The specific process is as follows:

假设像素点的颜色值的分量值重新拼接后的颜色值为RGB_New_value,则RGB_New_value=(unsigned short)(((unsigned short)R_Obj_value<<(G_bits+B_bits))Assuming that the component values of the color values of the pixels are reassembled and the color value is RGB_New_value, then RGB_New_value=(unsigned short)(((unsigned short)R_Obj_value<<(G_bits+B_bits))

|((unsigned short)G_Obj_value<<B_bits)|((unsigned short)G_Obj_value<<B_bits)

|(unsigned short)B_Obj_value)。(其中G_bits为物理显示设备的颜色值的分量G所占位数,B_bits为物理显示设备的像素点的颜色值的分量B所占位数)|(unsigned short)B_Obj_value). (Where G_bits is the number of digits occupied by component G of the color value of the physical display device, B_bits is the number of digits occupied by component B of the color value of the pixel point of the physical display device)

通过上述步骤S1101至步骤S1103,即可对源图像中的像素点进行精度转换,得到该像素点的新的颜色值RGB_New_value。Through the above steps S1101 to S1103, the pixel point in the source image can be converted in precision to obtain the new color value RGB_New_value of the pixel point.

此时,在将源图像中的像素点存储至计算出的显存中的位置的过程中,当源图像的颜色深度值与物理显示设备支持的颜色深度值一致时,将源图像的像素点的颜色值存储至计算出该像素点在物理显示设备的显存中的位置;当源图像的颜色深度值与物理显示设备支持的颜色深度值不一致时,则将源图像中的像素点的颜色值进行精度转换得到的像素点的新的颜色值,存储至计算出该像素点在物理显示设备的显存中的位置。At this time, during the process of storing the pixels in the source image to the calculated position in the display memory, when the color depth value of the source image is consistent with the color depth value supported by the physical display device, the pixel points of the source image The color value is stored in the calculated position of the pixel in the video memory of the physical display device; when the color depth value of the source image is inconsistent with the color depth value supported by the physical display device, the color value of the pixel in the source image is The new color value of the pixel obtained by precision conversion is stored to the calculated position of the pixel in the video memory of the physical display device.

在本发明实施例中,当源图像中的像素点的颜色深度值与物理显示设备所支持的颜色深度值不一致时,通过对源图像中的像素点进行精度转换,使源图像中的像素点在物理显示设备上显示不会出现失真的现象,从而当更换具有不同颜色深度值或者分辨率的物理显示设备时,通过对像素点进行精度转换,并修改实现上述方法的程序的相应接口,即可实现将源图像显示在更换后的物理显示设备上,可移植性好,便于后期维护。In the embodiment of the present invention, when the color depth value of the pixel in the source image is inconsistent with the color depth value supported by the physical display device, precision conversion is performed on the pixel in the source image so that the pixel in the source image There will be no distortion in the display on the physical display device. Therefore, when replacing the physical display device with different color depth values or resolutions, the pixels are converted to precision and the corresponding interface of the program that implements the above method is modified, namely The source image can be displayed on the replaced physical display device, which has good portability and is convenient for later maintenance.

图13示出了本发明实施例提供的图像显示系统的架构,根据图像显示系统的功能,将该图像显示系统分为三层,分别为源图像层,逻辑抽象层和物理显示层。逻辑抽象层将源图像层中的源图像的像素点逐步映射到物理显示设备上的坐标值,并根据物理显示设备的该坐标值,以及物理显示设备的颜色深度值和分辨率计算源图像中各像素点在物理显示设备的显存中的位置,并将源图像的各像素点存储在该像素点在物理显示设备的显存中的位置,物理显示层将其显存中存放的像素点显示在物理显示设备上。Fig. 13 shows the architecture of the image display system provided by the embodiment of the present invention. According to the functions of the image display system, the image display system is divided into three layers, namely source image layer, logical abstraction layer and physical display layer. The logic abstraction layer gradually maps the pixels of the source image in the source image layer to the coordinate values on the physical display device, and calculates the source image according to the coordinate values of the physical display device, as well as the color depth value and resolution of the physical display device. The position of each pixel in the video memory of the physical display device, and store each pixel of the source image in the position of the pixel in the video memory of the physical display device, and the physical display layer displays the pixels stored in its video memory on the physical displayed on the device.

图14示出了根据图13所示的图像显示系统的架构得到的图像显示系统的结构,为了便于说明,仅示出了与本发明实施例相关的部分。FIG. 14 shows the structure of the image display system obtained according to the architecture of the image display system shown in FIG. 13 . For convenience of description, only the parts related to the embodiment of the present invention are shown.

像素映射单元1根据源图像中的像素点的坐标值(Xp,Yp)计算源图像中的像素点映射至物理显示设备上的坐标值(Xd,Yd)。其中图像显示区域设定模块11根据用户设定的起始显示像素点确定源图像的显示区域。像素坐标获取模块12获取源图像的显示区域中各像素点的坐标值(Xp,Yp)。像素坐标映射模块13根据源图像的显示区域中各像素点的坐标值(Xp,Yp),计算源图像的显示区域中各像素点映射至物理显示设备上的坐标值(Xd,Yd)。The pixel mapping unit 1 calculates the coordinate values (X d , Y d ) where the pixel points in the source image are mapped to the physical display device according to the coordinate values (X p , Y p ) of the pixel points in the source image. The image display area setting module 11 determines the display area of the source image according to the initial display pixel set by the user. The pixel coordinate acquisition module 12 acquires the coordinate values (X p , Y p ) of each pixel in the display area of the source image. The pixel coordinate mapping module 13 calculates the coordinate values (X d , Y p ) of each pixel in the display area of the source image mapped to the physical display device according to the coordinate values (X p , Y p ) of each pixel point in the display area of the source image. d ).

像素坐标获取模块12首先获取源图像的显示区域中起始像素点的坐标值(X0,Y0),像素坐标映射模块13判断源图像的显示区域的长度(L_p)是否大于物理显示设备的长度(L_s),且源图像的显示区域的宽度(W_p)是否大于物理显示设备的宽度(W_s)。The pixel coordinate acquisition module 12 first obtains the coordinate value (X 0 , Y 0 ) of the initial pixel point in the display area of the source image, and the pixel coordinate mapping module 13 judges whether the length (L_p) of the display area of the source image is greater than that of the physical display device length (L_s), and whether the width (W_p) of the display area of the source image is greater than the width (W_s) of the physical display device.

当L_p≤L_s,且W_p≤W_s时,像素坐标映射模块13将源图像中起始像素点映射至物理显示设备的中央居中的位置(Xs,Ys),使源图像可以显示在物理显示设备的居中位置,其中Xs=(L_s-L_p)/2,Ys=(W_s-W_p)/2;When L_p≤L_s, and W_p≤W_s, the pixel coordinate mapping module 13 maps the starting pixel point in the source image to the center position (X s , Y s ) of the physical display device, so that the source image can be displayed on the physical display The central position of the device, where X s =(L_s-L_p)/2, Y s =(W_s-W_p)/2;

当L_p>L_s,且W_p≤W_s时,像素坐标映射模块13将源图像中起始像素点映射至物理显示设备的垂直居中开始点(Xs,Ys),使源图像可以在物理显示设备的水平方向对齐,其中Xs=0,Ys=(W_s-W_p)/2;When L_p>L_s, and W_p≤W_s, the pixel coordinate mapping module 13 maps the starting pixel point in the source image to the vertically centered starting point (X s , Y s ) of the physical display device, so that the source image can be displayed on the physical display device Aligned horizontally, where X s =0, Y s =(W_s-W_p)/2;

当L_p≤L_s,且W_p>W_s时,像素坐标映射模块13将源图像中起始像素点映射至物理显示设备的水平居中开始点(Xs,Ys),使源图像可以在物理显示设备的垂直方向对齐,其中Xs=(L_s-L_p)/2,Ys=0;When L_p≤L_s, and W_p>W_s, the pixel coordinate mapping module 13 maps the starting pixel point in the source image to the horizontally centered starting point (X s , Y s ) of the physical display device, so that the source image can be displayed on the physical display device Align in the vertical direction, where X s =(L_s-L_p)/2, Y s =0;

当L_p>L_s,且W_p>W_s时,像素坐标映射模块13将源图像中起始像素点映射至物理显示设备的原点(Xs,Ys),使源图像的起始显示像素点与物理显示设备的原点对齐,其中Xs=0,Ys=0。When L_p>L_s, and W_p>W_s, the pixel coordinate mapping module 13 maps the initial pixel point in the source image to the origin (X s , Y s ) of the physical display device, so that the initial display pixel point of the source image is consistent with the physical The origin of the display device is aligned, where X s =0, Y s =0.

当计算出源图像的显示区域的起始显示像素点映射至物理显示设备的坐标值后,像素坐标获取模块12获取源图像的显示区域中起始像素点的下一像素点的坐标值(X0,Y1),像素坐标映射模块13将该像素点(X0,Y1)映射至物理显示设备的(Xs,Ys)的下一像素点的坐标值(Xs,Ys+1),依此类推,即可将源图像的显示区域中的任一像素点(Xp,Yp)映射至物理显示设备的坐标值(Xd,Yd)。After calculating the coordinate value of the initial display pixel point of the display area of the source image mapped to the physical display device, the pixel coordinate acquisition module 12 acquires the coordinate value of the next pixel point of the initial pixel point in the display area of the source image (X 0 , Y 1 ), the pixel coordinate mapping module 13 maps the pixel point (X 0 , Y 1 ) to the coordinate value ( X s , Y s+ 1 ), and so on, any pixel point (X p , Y p ) in the display area of the source image can be mapped to the coordinate value (X d , Y d ) of the physical display device.

显存位置计算单元2根据像素映射单元1得到的源图像中各像素点映射至物理显示设备的坐标值,以及物理显示设备的分辨率和颜色深度值,计算源图像中各像素点在物理显示设备的显存中的位置。其中初始化模块21对物理显示设备的硬件逻辑和显存中像素点的存放次序模式进行初始化,得到单个像素点的位宽pixel_width_bytes、显存的基址地址pBase、BPP模式以及显存中像素点的存放次序模式。其中显存中像素点的存放次序模式可以为LBLP模式(LittleEndian Byte,Little Endian Pixel order),BBBP模式(Big Endian Byte,Big EndianPixel order),或者LBBP模式(Little Endian Byte,Big Endian Pixel order)。The memory position calculation unit 2 calculates the coordinate value of each pixel in the source image obtained by the pixel mapping unit 1 and maps to the physical display device, as well as the resolution and color depth value of the physical display device, and calculates the position of each pixel in the source image on the physical display device. location in video memory. Wherein the initialization module 21 initializes the hardware logic of the physical display device and the storage order mode of the pixels in the video memory to obtain the bit width pixel_width_bytes of a single pixel, the base address pBase of the video memory, the BPP mode and the storage order mode of the pixels in the video memory . The storage order mode of the pixels in the video memory can be LBLP mode (Little Endian Byte, Little Endian Pixel order), BBBP mode (Big Endian Byte, Big EndianPixel order), or LBBP mode (Little Endian Byte, Big Endian Pixel order).

颜色深度值判断模块22判断源图像的颜色深度值与物理显示设备所支持的颜色深度值是否一致,如果不是,则精度转换模块23对源图像中的像素点进行精度转换,得到该像素点的新的颜色值。其中颜色值获取模块231获取源图像中各像素点的颜色值的各分量值R_Src_value、G_Src_value和B_Src_value,其具体过程如上所述,在此不再赘述。分量值精度转换模块232采用精度转换公式对源图像的每一个像素点的颜色值的分量值R_Src_value、G_Src_value和B_Src_value分别进行精度转换。在本发明实施例中,采用的精度转换公式为P_Src_value/P_Src_max=P_Obj_value/P_Obj_max,其中P_Src_value和P_Src_max分别为源图像像素点的颜色值的分量值和最大分量值,P_Obj_value和P_Obj_max分别为物理显示设备支持的像素点的颜色值的分量值和最大分量值。其中分量值精度转换的具体过程如上所述,在此不再赘述。分量值拼接模块233采用位移操作将转换得到的像素点的颜色值的分量值重新拼接为该像素点的新的颜色值,其具体过程如上所述,在此不再赘述。The color depth value judging module 22 judges whether the color depth value of the source image is consistent with the color depth value supported by the physical display device, if not, the precision conversion module 23 performs precision conversion to the pixel in the source image to obtain the pixel's The new color value. The color value acquisition module 231 acquires the component values R_Src_value, G_Src_value and B_Src_value of the color value of each pixel in the source image. The specific process is as described above and will not be repeated here. The component value precision conversion module 232 uses a precision conversion formula to perform precision conversion on the component values R_Src_value, G_Src_value and B_Src_value of the color value of each pixel in the source image. In the embodiment of the present invention, the precision conversion formula adopted is P_Src_value/P_Src_max=P_Obj_value/P_Obj_max, wherein P_Src_value and P_Src_max are respectively the component value and the maximum component value of the color value of the source image pixel, and P_Obj_value and P_Obj_max are respectively the physical display device The component values and maximum component values of the color values of the supported pixels. The specific process of component value precision conversion is as described above, and will not be repeated here. The component value splicing module 233 resplices the converted component values of the pixel's color value into a new color value of the pixel by using a displacement operation. The specific process is as described above and will not be repeated here.

显存位置计算模块24根据像素映射单元1得到的源图像显示区域中的各像素点映射在物理显示设备的坐标值(Xd,Yd),以及物理显示设备的分辨率和颜色深度值计算该像素点在物理显示设备的显存中的存放位置,其具体过程如上所述,在此不再赘述。The display memory position calculation module 24 calculates the pixel points according to the coordinate values (Xd, Yd) mapped to the physical display device by each pixel in the source image display area obtained by the pixel mapping unit 1, and the resolution and color depth value of the physical display device The specific process of the storage location in the video memory of the physical display device is as described above, and will not be repeated here.

像素点存储模块25将精度转换模块23得到的源图像的颜色值或者源图像的原有的颜色值存放至显存位置计算模块24计算出的物理显示设备的显存中的相应位置。The pixel point storage module 25 stores the color value of the source image obtained by the precision conversion module 23 or the original color value of the source image into the corresponding position in the video memory of the physical display device calculated by the video memory position calculation module 24 .

图像显示单元3将物理显示设备的显存中存储的像素点显示在物理显示设备上。The image display unit 3 displays the pixels stored in the video memory of the physical display device on the physical display device.

在本发明实施例中,通过在现有的源图像层与物理显示设备层之间设置一独立于源图像层和物理显示设备层的逻辑处理层,通过该逻辑处理层将源图像中的像素点逐步映射到物理显示设备上的坐标,并根据物理显示设备的坐标、该像素点的颜色深度值以及物理显示设备的分辨率计算源图像在物理显示设备的显存中的位置,从而当改变源图像的分辨率和色度空间或者更换物理显示设备时,只需要修改逻辑处理层中相应程序的相应接口,即可将源图像显示在物理显示设备上,可移植性较好,增加了程序开发的灵活性,同时也减少了软件二次开发的周期,简化了软件的维护工作。In the embodiment of the present invention, a logical processing layer independent of the source image layer and the physical display device layer is set between the existing source image layer and the physical display device layer, and the pixels in the source image are processed by the logical processing layer The points are gradually mapped to the coordinates on the physical display device, and the position of the source image in the video memory of the physical display device is calculated according to the coordinates of the physical display device, the color depth value of the pixel point, and the resolution of the physical display device, so that when changing the source When changing the resolution and chromaticity space of the image or changing the physical display device, you only need to modify the corresponding interface of the corresponding program in the logic processing layer to display the source image on the physical display device, which has good portability and increases program development. The flexibility of the software also reduces the cycle of secondary development of the software and simplifies the maintenance of the software.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.

Claims (16)

1、一种图像显示方法,其特征在于,所述方法包括下述步骤:1. An image display method, characterized in that the method comprises the following steps: 根据源图像中的像素点的坐标值获取源图像中的像素点映射至物理显示设备上的坐标值;According to the coordinate value of the pixel point in the source image, obtain the coordinate value of the pixel point in the source image mapped to the physical display device; 根据所述源图像中的像素点映射至物理显示设备上的坐标值,以及物理显示设备的颜色深度值和分辨率,获取源图像中的像素点在物理显示设备的显存中的位置,并将所述源图像中的像素点存储至所述像素点在物理显示设备的显存中的位置;According to the coordinate value of the pixel in the source image mapped to the physical display device, and the color depth value and resolution of the physical display device, obtain the position of the pixel in the source image in the video memory of the physical display device, and The pixels in the source image are stored to the positions of the pixels in the video memory of the physical display device; 将物理显示设备的显存中存储的像素点显示在物理显示设备上。Display the pixels stored in the video memory of the physical display device on the physical display device. 2、如权利要求1所述的方法,其特征在于,所述步骤根据源图像中的像素点的坐标值获取源图像中的像素点映射至物理显示设备上的坐标值具体为:2. The method according to claim 1, wherein the step obtains the coordinate values of the pixels in the source image mapped to the physical display device according to the coordinate values of the pixels in the source image as follows: 获取源图像的起始显示像素点的坐标值,计算所述起始显示像素点映射至物理显示设备上的坐标值;Obtain the coordinate value of the initial display pixel point of the source image, and calculate the coordinate value of the initial display pixel point mapped to the physical display device; 获取源图像中下一像素点的坐标值,计算所述像素点映射至物理显示设备上的坐标值,循环执行,直至源图像中所有像素点映射完毕。Obtain the coordinate value of the next pixel in the source image, calculate the coordinate value of the pixel mapped to the physical display device, and execute in a loop until all the pixels in the source image are mapped. 3、如权利要求2所述的方法,其特征在于,所述获取源图像的起始显示像素点的坐标值,计算所述起始显示像素点映射至物理显示设备上的坐标值的步骤具体为:3. The method according to claim 2, wherein the step of obtaining the coordinate value of the initial display pixel point of the source image and calculating the coordinate value of the initial display pixel point mapped to the physical display device is specific for: 获取源图像中起始显示像素点的坐标值(X0,Y0);Obtain the coordinate value (X 0 , Y 0 ) of the initial display pixel point in the source image; 根据所述起始显示像素点的坐标值(X0,Y0)设定源图像的显示区域;Set the display area of the source image according to the coordinate value (X 0 , Y 0 ) of the initial display pixel point; 根据所述源图像的显示区域计算所述源图像中起始显示像素点的坐标值(X0,Y0)映射至物理显示设备上的坐标值。According to the display area of the source image, the coordinate values (X 0 , Y 0 ) of the initial display pixel in the source image are mapped to the coordinate values on the physical display device. 4、如权利要求3所述的方法,其特征在于,所述步骤根据所述源图像的显示区域计算所述源图像中起始显示像素点的坐标值(X0,Y0)映射至物理显示设备上的坐标值具体为:4. The method according to claim 3, wherein the step calculates the coordinate value (X 0 , Y 0 ) of the initial display pixel point in the source image according to the display area of the source image and maps it to the physical The coordinate values on the display device are specifically: 判断源图像的显示区域的长度L_s是否大于物理显示设备的长度L_p,且源图像的显示区域的宽度W_s是否大于物理显示设备的宽度(W_p);Determine whether the length L_s of the display area of the source image is greater than the length L_p of the physical display device, and whether the width W_s of the display area of the source image is greater than the width (W_p) of the physical display device; 当L_p≤L_s,且W_p≤W_s时,将所述源图像的起始显示像素点(X0,Y0)映射至物理显示设备的中央居中的位置(Xs,Ys),其中Xs=(L_s-L_p)/2,Ys=(W_s-W_p)/2;When L_p≤L_s, and W_p≤W_s, map the initial display pixel point (X 0 , Y 0 ) of the source image to the centered position (X s , Y s ) of the physical display device, where X s =(L_s-L_p)/2, Y s =(W_s-W_p)/2; 当L_p>L_s,且W_p≤W_s时,将所述源图像的起始显示像素点(X0,Y0)映射至物理显示设备的垂直居中位置(Xs,Ys),其中Xs=0,Ys=(W_s-W_p)/2;When L_p>L_s, and W_p≤W_s, map the initial display pixel point (X 0 , Y 0 ) of the source image to the vertical center position (X s , Y s ) of the physical display device, where X s = 0, Y s = (W_s-W_p)/2; 当L_p≤L_s,且W_p>W_s时,将所述源图像的起始显示像素点(X0,Y0)映射至物理显示设备的水平居中位置(Xs,Ys),其中Xs=(L_s-L_p)/2,Ys=0;When L_p≤L_s, and W_p>W_s, map the initial display pixel point (X 0 , Y 0 ) of the source image to the horizontal center position (X s , Y s ) of the physical display device, where X s = (L_s-L_p)/2, Y s =0; 当L_p>L_s,且W_p>W_s时,将所述源图像的起始显示像素点(X0,Y0)映射至物理显示设备的原点(Xs,Ys),其中Xs=0,Ys=0。When L_p>L_s, and W_p>W_s, map the starting display pixel point (X 0 , Y 0 ) of the source image to the origin (X s , Y s ) of the physical display device, where X s =0, Y s =0. 5、如权利要求1所述的方法,其特征在于,所述步骤根据所述源图像中的像素点映射至物理显示设备上的坐标值,以及物理显示设备的颜色深度值和分辨率,获取源图像中的像素点在物理显示设备的显存中的位置,并将所述源图像中的像素点存储至所述像素点在物理显示设备的显存中的位置具体为:5. The method according to claim 1, characterized in that, in the step, according to the coordinate values mapped from the pixels in the source image to the physical display device, and the color depth value and resolution of the physical display device, obtain The position of the pixel in the source image in the video memory of the physical display device, and storing the pixel in the source image to the position of the pixel in the video memory of the physical display device is specifically: 对物理显示设备进行初始化;Initialize the physical display device; 判断源图像的颜色深度值与物理显示设备所支持的颜色深度值是否一致,如果不一致,对源图像中的像素点的颜色值进行精度转换,得到所述像素点的新的颜色值;Judging whether the color depth value of the source image is consistent with the color depth value supported by the physical display device, if inconsistent, performing precision conversion on the color value of the pixel in the source image to obtain a new color value of the pixel; 根据源图像中的像素点映射在物理显示设备的坐标值,以及物理显示设备的分辨率和颜色深度值计算所述像素点在物理显示设备的显存中的位置;Calculate the position of the pixel in the video memory of the physical display device according to the coordinate value of the pixel in the source image mapped to the physical display device, and the resolution and color depth value of the physical display device; 将源图像的像素点的颜色值存放至所述像素点在物理显示设备的显存中的位置。The color value of the pixel point of the source image is stored in the position of the pixel point in the video memory of the physical display device. 6、如权利要求5所述的方法,其特征在于,所述对源图像中的像素点的颜色值进行精度转换,得到所述像素点的新的颜色值的步骤具体为:6. The method according to claim 5, wherein the step of performing precision conversion on the color values of pixels in the source image to obtain new color values of the pixels is specifically as follows: 获取源图像中的像素点的颜色值的各分量值;Get each component value of the color value of the pixel in the source image; 对所述分量值分别进行精度转换;performing precision conversion on the component values respectively; 将所述经精度转换后的各分量值重新拼接为所述像素点的新的颜色值。The component values after the precision conversion are reassembled into a new color value of the pixel. 7、如权利要求6所述的方法,其特征在于,所述对所述分量值分别进行精度转换时,采用的精度转换公式为:7. The method according to claim 6, characterized in that, when performing precision conversion on said component values respectively, the precision conversion formula adopted is: P_Src_value/P_Src_max=P_Obj_value/P_Obj_max,P_Src_value/P_Src_max=P_Obj_value/P_Obj_max, 其中,P_Src_value和P_Src_max分别为源图像中像素点的颜色值的分量值和最大分量值,P_Obj_value和P_Obj_max分别为物理显示设备支持的像素点的颜色值的分量值和最大分量值。Among them, P_Src_value and P_Src_max are the component value and maximum component value of the color value of the pixel in the source image, respectively, and P_Obj_value and P_Obj_max are the component value and maximum component value of the color value of the pixel supported by the physical display device, respectively. 8、如权利要求5所述的方法,其特征在于,当物理显示设备的颜色深度值等于或者大于8BPP时,采用的的显存位置计算方式为:8. The method according to claim 5, wherein when the color depth value of the physical display device is equal to or greater than 8BPP, the calculation method of the video memory location is: pAdd=pBase+(Yd*screen_width+Xd)*P2_bpp/8,pAdd=pBase+(Y d *screen_width+X d )*P2_bpp/8, 其中,pBase为显存的基址地址,(Xd,Yd)为源图像中的像素点映射至物理显示设备的坐标值,screen_width是物理显示设备上一行所占的像素个数,P2_bpp是物理显示设备所支持的颜色深度值。Among them, pBase is the base address address of the video memory, (X d , Y d ) is the coordinate value of the pixel in the source image mapped to the physical display device, screen_width is the number of pixels occupied by a line on the physical display device, and P2_bpp is the physical Displays the color depth values supported by the device. 9、如权利要求5所述的方法,其特征在于,所述显存中像素点的存放次序模式为LBLP模式,BBBP模式,或者LBBP模式。9. The method according to claim 5, wherein the storage order mode of the pixels in the video memory is LBLP mode, BBBP mode, or LBBP mode. 10、如权利要求8所述的方法,其特征在于,当物理显示设备的颜色深度值小于8BPP时,所述根据源图像中的像素点映射在物理显示设备的坐标值,以及物理显示设备的分辨率和颜色深度值计算所述像素点在物理显示设备的显存中的位置的步骤具体为:10. The method according to claim 8, wherein when the color depth value of the physical display device is less than 8BPP, the pixel points in the source image are mapped to the coordinate values of the physical display device and the physical display device The steps for calculating the position of the pixel in the video memory of the physical display device based on the resolution and color depth value are as follows: 计算源图像中的像素点在物理显示设备的显存中的字节位置pByte;Calculate the byte position pByte of the pixel in the source image in the video memory of the physical display device; 计算一个像素点在一个字节中的偏移量poffset;Calculate the offset poffset of a pixel in a byte; 根据显存中像素点的存放次序模式调节所述偏移量poffset;Adjusting the offset poffset according to the storage order mode of the pixels in the video memory; 根据所述字节位置pByte以及调节后的偏移量poffset确定源图像中的像素点在物理显示设备的显存中的位置pAdd=pByte+poffset。The position pAdd=pByte+poffset of the pixel in the source image in the display memory of the physical display device is determined according to the byte position pByte and the adjusted offset poffset. 11、如权利要求9所述的方法,其特征在于,计算一个像素点在一个字节中的偏移量poffset的方式为通过直接查询物理显示设备中每种模式下对应到一个字节内的像素点与偏移量poffset之间的对应表,或者为采用计算一个像素点在一个字节中的偏移量poffset。11. The method according to claim 9, wherein the method of calculating the offset poffset of a pixel in a byte is by directly querying the physical display device corresponding to a byte in each mode The correspondence table between the pixel and the offset poffset, or calculate the offset poffset of a pixel in a byte for use. 12、如权利要求9所述的方法,其特征在于,所述根据显存中像素点的存放次序模式调节所述偏移量poffset的步骤具体为:12. The method according to claim 9, wherein the step of adjusting the offset poffset according to the storage sequence mode of the pixels in the video memory is specifically as follows: 当显存中像素点的存放次序模式为LBLP模式时,不调节所述偏移量poffset;When the storage order mode of the pixels in the video memory is LBLP mode, the offset poffset is not adjusted; 当显存中像素点的存放次序模式为BBBP模式或者LBBP模式时,采用公式poffset=(((Yd*screen_width+Xd)&((unsigned int)((unsigned int)1<<(3-index))-1))<<index)^((unsigned int)((unsigned int)7<<index)&7)对所述偏移量poffset进行调节;When the storage order mode of pixels in video memory is BBBP mode or LBBP mode, use the formula poffset=(((Y d *screen_width+X d )&((unsigned int)((unsigned int)1<<(3-index ))-1))<<index)^((unsigned int)((unsigned int)7<<index)&7) adjusts the offset poffset; 其中,当物理显示设备的颜色深度值为1BPP时,index=0;当物理显示设备的颜色深度值为2BPP时,index=1;当物理显示设备的颜色深度值为4BPP时,index=2。Wherein, when the color depth value of the physical display device is 1BPP, index=0; when the color depth value of the physical display device is 2BPP, index=1; when the color depth value of the physical display device is 4BPP, index=2. 13、一种图像显示系统,其特征在于,所述系统包括:13. An image display system, characterized in that the system comprises: 像素映射单元,用于根据源图像中各像素点的坐标值计算源图像中各像素点映射至物理显示设备上的坐标值;A pixel mapping unit, configured to calculate the coordinate values of each pixel in the source image mapped to the physical display device according to the coordinate values of each pixel in the source image; 显存位置计算单元,用于根据所述像素映射单元计算出的坐标值,以及物理显示设备的分辨率和颜色深度值,计算源图像中各像素点在物理显示设备的显存中的位置,并将所述源图像中各像素点的颜色值存储至所述计算出的相应的显存中的位置;A video memory position calculation unit, used to calculate the position of each pixel in the source image in the video memory of the physical display device according to the coordinate value calculated by the pixel mapping unit, and the resolution and color depth value of the physical display device, and The color value of each pixel in the source image is stored to the calculated position in the corresponding video memory; 图像显示单元,用于将物理显示设备的显存中存储的像素点显示在物理显示设备上。The image display unit is configured to display the pixels stored in the video memory of the physical display device on the physical display device. 14、如权利要求13所述的系统,其特征在于,所述像素映射单元包括:14. The system of claim 13, wherein the pixel mapping unit comprises: 图像显示区域设定模块,用于根据用户设定的起始显示像素点确定源图像的显示区域;The image display area setting module is used to determine the display area of the source image according to the initial display pixel set by the user; 像素坐标获取模块,用于获取所述源图像的显示区域中各像素点的坐标值;A pixel coordinate acquisition module, configured to acquire the coordinate values of each pixel in the display area of the source image; 像素坐标映射模块,用于根据源图像的显示区域中各像素点的坐标值,计算源图像的显示区域中各像素点映射至物理显示设备上的坐标值。The pixel coordinate mapping module is used to calculate the coordinate value of each pixel in the display area of the source image mapped to the physical display device according to the coordinate value of each pixel in the display area of the source image. 15、如权利要求13所述的系统,其特征在于,所述显存位置计算单元包括:15. The system according to claim 13, wherein the memory location calculation unit comprises: 初始化模块,用于对物理显示设备进行初始化;The initialization module is used to initialize the physical display device; 颜色深度值判断模块,用于判断源图像的颜色深度值与物理显示设备所支持的颜色深度值是否一致;The color depth value judging module is used to judge whether the color depth value of the source image is consistent with the color depth value supported by the physical display device; 精度转换模块,用于当所述颜色深度值判断模块的判断结果为否时,对源图像中的像素点的颜色值进行精度转换,得到所述像素点的新的颜色值;A precision conversion module, configured to perform precision conversion on the color value of a pixel in the source image to obtain a new color value of the pixel when the judgment result of the color depth value judging module is negative; 显存位置计算模块,用于根据源图像中的像素点映射在物理显示设备的坐标值,以及物理显示设备的分辨率和颜色深度值计算所述像素点在物理显示设备的显存中的位置;A video memory position calculation module, configured to calculate the position of the pixel in the video memory of the physical display device according to the coordinate value of the pixel in the source image mapped to the physical display device, and the resolution and color depth value of the physical display device; 像素点存储模块,用于将源图像的像素点存放至所述像素点在物理显示设备的显存中的位置。The pixel point storage module is used to store the pixel point of the source image to the position of the pixel point in the video memory of the physical display device. 16、如权利要求15所述的系统,其特征在于,所述精度转换模块包括:16. The system according to claim 15, wherein the precision conversion module comprises: 颜色值获取模块,用于获取源图像中的像素点的颜色值的各分量值;A color value acquisition module, configured to acquire each component value of the color value of a pixel in the source image; 分量值精度转换模块,用于对所述分量值分别进行精度转换;A component value precision conversion module, configured to perform precision conversion on the component values respectively; 分量值拼接模块,用于将所述经精度转换后的各分量值重新拼接为所述像素点的新的颜色值。The component value splicing module is configured to resplice the component values after precision conversion into a new color value of the pixel.
CN2008101416057A 2008-07-14 2008-07-14 Method and system for displaying image Expired - Fee Related CN101630501B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101416057A CN101630501B (en) 2008-07-14 2008-07-14 Method and system for displaying image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101416057A CN101630501B (en) 2008-07-14 2008-07-14 Method and system for displaying image

Publications (2)

Publication Number Publication Date
CN101630501A true CN101630501A (en) 2010-01-20
CN101630501B CN101630501B (en) 2011-11-16

Family

ID=41575585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101416057A Expired - Fee Related CN101630501B (en) 2008-07-14 2008-07-14 Method and system for displaying image

Country Status (1)

Country Link
CN (1) CN101630501B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279723A (en) * 2011-08-24 2011-12-14 百度在线网络技术(北京)有限公司 System and method for realizing split-screen display
CN102314466A (en) * 2010-09-27 2012-01-11 苏州阔地网络科技有限公司 Whiteboard synchronizing method
CN104200459A (en) * 2014-08-04 2014-12-10 联想(北京)有限公司 Information processing method and electronic device
CN111833788A (en) * 2019-04-19 2020-10-27 北京小米移动软件有限公司 A screen dimming method, device, terminal and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5245701A (en) * 1990-10-10 1993-09-14 Fuji Xerox Co., Ltd. Method and system for processing image data based on pixel characteristics
US5349372A (en) * 1993-07-16 1994-09-20 Pellucid Inc. Video subsystems utilizing asymmetrical column interleaving
JP4246818B2 (en) * 1998-08-03 2009-04-02 パナソニック株式会社 Image input apparatus and image input method
JP2002268867A (en) * 2001-03-13 2002-09-20 Sony Corp Display device and method, program recording medium and program
JP4136432B2 (en) * 2002-04-15 2008-08-20 松下電器産業株式会社 Graphic drawing device
CN100423081C (en) * 2004-12-03 2008-10-01 深圳迈瑞生物医疗电子股份有限公司 Hardware acceleration display horizontal line section device and method
CN100524452C (en) * 2007-04-10 2009-08-05 北京中星微电子有限公司 Digital image storage, displaying method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314466A (en) * 2010-09-27 2012-01-11 苏州阔地网络科技有限公司 Whiteboard synchronizing method
CN102279723A (en) * 2011-08-24 2011-12-14 百度在线网络技术(北京)有限公司 System and method for realizing split-screen display
CN104200459A (en) * 2014-08-04 2014-12-10 联想(北京)有限公司 Information processing method and electronic device
CN111833788A (en) * 2019-04-19 2020-10-27 北京小米移动软件有限公司 A screen dimming method, device, terminal and storage medium
CN111833788B (en) * 2019-04-19 2023-08-04 北京小米移动软件有限公司 Screen dimming method and device, terminal and storage medium

Also Published As

Publication number Publication date
CN101630501B (en) 2011-11-16

Similar Documents

Publication Publication Date Title
CN108761777B (en) A method and device for determining the distortion amount and distortion correction of an optical device
KR102555953B1 (en) Electronic apparatus, display apparatus and control method thereof
EP3134804B1 (en) Multiple display pipelines driving a divided display
US8345041B2 (en) Method for displaying a three-dimensional image and three-dimensional image display device for performing the method
TWI811386B (en) Application processor
CN106409266B (en) One sub-pixel rendering method and rendering device
WO2020014901A1 (en) Target tracking method and apparatus, and electronic device and readable storage medium
JP2007034304A (en) Method, graphics controller and image display system for efficiently rotating an image defined by an image matrix wherein each piece of image data corresponds to a particular image row and a particular image column of the image matrix
CN104461436B (en) A kind of display methods of multiple terminals based on different resolution
JP7184788B2 (en) Integrated circuit display driving method, integrated circuit, display screen and display device
CN107315275B (en) Display method and device and computer equipment
CN101630501B (en) Method and system for displaying image
CN111752504A (en) Multi-screen display method and system for electronic equipment, electronic equipment and computer readable medium
CN104464594B (en) Method and device for transmitting display data and method and device for driving display panel
US9613558B2 (en) Pixel driving method and associated display device
TWI529659B (en) Method, apparatus and system to request stored data from memory
CN101257591A (en) Digital multimedia receiving apparatus and extending display identification data reading method thereof
WO2023016263A1 (en) Compensation method and apparatus for under-display camera display area, device, and storage medium
WO2025031503A1 (en) Data storage method and apparatus thereof, and gray scale compensation method and apparatus thereof
US8073291B2 (en) Center based image resizer
JP2009516251A (en) Buffer management in vector graphics hardware
CN105407338A (en) Image color filling method and device
CN112037291B (en) Data processing method and device and electronic equipment
EP2530640A1 (en) Image copying method and device
CN101378557B (en) Mobile phone with electronic photo album and method for using external electronic photo album

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200106

Address after: 314411 Jianshe East Road, Guodian, Yanguan Town, Haining City, Jiaxing City, Zhejiang Province

Patentee after: Haining Yanguan Industrial Investment Co., Ltd

Address before: 518118 Pingshan Road, Pingshan Town, Shenzhen, Guangdong, No. 3001, No.

Patentee before: Biyadi Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20111116

Termination date: 20200714