CN113238725A - Display point-to-point display control method, device, equipment and storage medium - Google Patents
Display point-to-point display control method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN113238725A CN113238725A CN202110482267.9A CN202110482267A CN113238725A CN 113238725 A CN113238725 A CN 113238725A CN 202110482267 A CN202110482267 A CN 202110482267A CN 113238725 A CN113238725 A CN 113238725A
- Authority
- CN
- China
- Prior art keywords
- display
- resolution
- point
- data output
- equipment
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 239000000872 buffer Substances 0.000 claims abstract description 28
- 238000004590 computer program Methods 0.000 claims description 8
- 238000012790 confirmation Methods 0.000 claims description 2
- 238000012545 processing Methods 0.000 abstract description 6
- 230000000694 effects Effects 0.000 abstract description 4
- 238000004891 communication Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1407—General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/544—Buffers; Shared memory; Pipes
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- Human Computer Interaction (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention discloses a point-to-point display control method, device, equipment and storage medium for a display. The method comprises the steps of obtaining the current physical resolution of the display equipment; in the surface F l i nger, the display equipment is controlled to be limited within a first resolution of the display equipment when applying for a buffer memory; limiting the Wi windows manager not to do scaling setting when the size of the window is set to the surface F i nger; when the HWC layer is mixed with the hardware layer, the user is limited to carry out scaling setting; acquiring the data output resolution of the current display data; and in the kernel l layer, outputting the data output resolution ratio of the current display data to the display equipment for display. The point-to-point display control method of the display can realize the point-to-point processing of the pixels of the data output resolution and the physical resolution of the display equipment, and effectively improves the display effect of the display equipment.
Description
Technical Field
The present invention relates to the field of display control technologies, and in particular, to a method, an apparatus, a device, and a storage medium for controlling point-to-point display of a display.
Background
Cloud terminals (VDI) have high requirements for display, and are particularly suitable for engineering drawing applications, such as CAD, where the display accuracy needs to be accurate to one pixel; therefore, the pixels with output resolution and display physical resolution must be processed point-to-point; however, prior art VDIs do not implement a point-to-point display. Therefore, the invention of a point-to-point display control method for a display has become an urgent problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above drawbacks, embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for controlling point-to-point display of a display, so as to solve the problems in the prior art.
In a first aspect, an embodiment of the present invention provides a method for controlling point-to-point display of a display, where the method includes:
acquiring the current physical resolution of the display equipment;
in the SurfaceFlinger, controlling the display device to be limited within a first resolution of the display device when applying for the buffer memory;
limiting the Windows manager not to do scaling setting when the window size is set to the SurfaceFlinger;
when the HWC layer is mixed with the hardware layer, the user is limited to carry out scaling setting;
acquiring the data output resolution of the current display data;
and in the kernel layer, outputting the data output resolution ratio according to the current display data to the display equipment for display.
Preferably, the first resolution of the display device is a maximum physical resolution of the display device.
Preferably, in the surfefinger, the limitation included in the first resolution of the display device when the control display device applies for the buffer memory;
acquiring the maximum physical resolution of the display equipment;
controlling the display equipment to apply for buffer memory;
and controlling the buffer memory to be less than or equal to the maximum physical resolution of the display equipment.
Preferably, in the kernel layer, outputting to the display device for display according to the data output resolution of the current display data includes:
comparing the data output resolution to a current physical resolution of the display device;
if the data output resolution is smaller than the current physical resolution of the display equipment, the data output resolution is normal;
confirming the output physical resolution of the display equipment according to the data output resolution;
and performing partial display control on the display equipment according to the data output resolution by setting the register parameter of the VOP.
In a second aspect, an embodiment of the present invention provides a display peer-to-peer display control apparatus, where the apparatus includes:
the first confirming module is used for acquiring the current physical resolution of the display equipment;
a buffer limiting module, configured to limit, in the surfaceflag, the buffer memory to be applied by the display device within a first resolution of the display device;
the first zooming limiting module is used for limiting the Windows manager not to do zooming setting when the window size is set to the surfaceFlinger;
the second scaling limiting module is used for limiting a user to perform scaling setting when the HWC layer is mixed with a hardware layer;
the second confirmation module is used for acquiring the data output resolution of the current display data;
and the display control module is used for outputting the resolution to the display equipment for displaying according to the data output resolution of the current display data in the kernel layer.
In a third aspect, an embodiment of the present invention provides a display point-to-point display control apparatus, including: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of the first aspect of the embodiments described above.
In a fourth aspect, embodiments of the present invention provide a storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of the first aspect in the above embodiments.
In summary, embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for controlling peer-to-peer display of a display. The method comprises the steps of obtaining the current physical resolution of the display equipment; in the SurfaceFlinger, controlling the display device to be limited within a first resolution of the display device when applying for the buffer memory; limiting the Windows manager not to do scaling setting when the window size is set to the SurfaceFlinger; when the HWC layer is mixed with the hardware layer, the user is limited to carry out scaling setting; acquiring the data output resolution of the current display data; and in the kernel layer, outputting the data output resolution ratio according to the current display data to the display equipment for display. Therefore, the point-to-point display control method of the display can realize the point-to-point processing of the pixels of the data output resolution and the physical resolution of the display equipment, and effectively improves the display effect of the display equipment.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for controlling peer-to-peer display of a display according to an embodiment of the present invention.
Fig. 2 is a flowchart of limiting the display device to the first resolution when the display device is controlled to apply for the buffer memory in the surface flunger according to the method for controlling point-to-point display of the display device in the embodiment of the present invention.
Fig. 3 is a flowchart of outputting, in the kernel layer, the current display data to the display device for displaying according to the data output resolution of the current display data in the point-to-point display control method of the display according to the embodiment of the present invention.
Fig. 4 is a schematic diagram illustrating an example of the working principle of the point-to-point display control method of the display according to the embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a point-to-point display control device of a display according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a display peer-to-peer display control device according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Referring to fig. 1, a point-to-point display control method for a display according to an embodiment of the present invention can achieve point-to-point processing of pixels with data output resolution and physical resolution of a display device, thereby effectively improving a display effect of the display device.
The method comprises the following steps:
s1, acquiring the current physical resolution of the display equipment;
s2, in the SurfaceFlinger, controlling the display device to be limited within the first resolution of the display device when applying for the buffer memory;
specifically, in this embodiment, the surface flunger is a part of Android multimedia, and provides a system-wide surface component function as a service in Android implementation, and is capable of combining 2D and 3D surfaces of various applications, receiving data buffers from multiple sources, synthesizing the data buffers, and then sending the data buffers to the display device.
S3, limiting the Windows manager not to do scaling setting when setting the window size to the SurfaceFlinger;
s4, limiting the user to carry out scaling setting when the HWC layer is mixed with a hardware layer;
s5, acquiring the data output resolution of the current display data;
and S6, outputting the data output resolution of the current display data to the display device for display in the kernel layer.
Preferably, the first resolution of the display device is a maximum physical resolution of the display device.
Preferably, referring to fig. 2, in the surface flunger, the limitation included in the first resolution of the display device when the control display device applies for the buffer memory;
s21, acquiring the maximum physical resolution of the display equipment;
s22, controlling the display device to apply for buffer memory;
and S23, controlling the buffer memory to be less than or equal to the maximum physical resolution of the display equipment.
Preferably, referring to fig. 3, in the kernel layer, outputting to the display device according to the data output resolution of the current display data for display includes:
s61, comparing the data output resolution with the current physical resolution of the display device;
s62, if the data output resolution is smaller than the current physical resolution of the display device, the data output resolution is normal;
s63, confirming the output physical resolution of the display device according to the data output resolution;
and S64, performing partial display control on the display equipment according to the data output resolution by setting the register parameter of the VOP.
Specifically, in a preferred embodiment, referring to fig. 4, when an application applies for a buffer from a window manager windowmanager, the display device is controlled to be limited within a first resolution of the display device when applying for a buffer memory; limiting the maximum physical resolution to 2560x1600 when the display device in the surface Flinger applies for buffer; controlling the WindowManger not to make any scaling setting when the Window size is set to the SurfaceFlinger; the HWC layer does not do any scaling when doing hardware layer mixing; and then, partial display output control is performed through the offset parameters in kernel layer VOP driving.
Referring to fig. 5, an embodiment of the invention provides a display peer-to-peer display control apparatus, which includes:
the first confirming module 1 is used for acquiring the current physical resolution of the display equipment;
a buffer limiting module 2, configured to limit the display device to a first resolution of the display device when applying for a buffer memory in the surfaceflag;
a first scaling limiting module 3, configured to limit the Windows manager not to perform scaling setting when setting the window size to the surfaceflag;
the second scaling limiting module 4 is configured to limit a user to perform scaling setting when the HWC layer is mixed with the hardware layer;
the second confirming module 5 is used for acquiring the data output resolution of the current display data;
and the display control module 6 is used for outputting the data output resolution of the current display data to the display equipment for display in the kernel layer.
In addition, the point-to-point display control method for the display according to the embodiment of the present invention described in conjunction with fig. 1 may be implemented by a point-to-point display control device for the display. Fig. 6 is a schematic diagram illustrating a hardware structure of a display peer-to-peer display control device according to an embodiment of the present invention.
The display peer-to-peer display control device may include a processor 401 and a memory 402 storing computer program instructions.
Specifically, the processor 401 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing embodiments of the present invention.
The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement any one of the above-described embodiments of the point-to-point display control method for the display.
In one example, the display peer-to-peer display control device may also include a communication interface 403 and a bus 410. As shown in fig. 6, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 to complete communication therebetween.
The communication interface 403 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
In addition, in combination with the point-to-point display control method for a display in the foregoing embodiments, embodiments of the present invention may provide a computer-readable storage medium to implement the method. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the above-described embodiments of the method for point-to-point display control of a display.
In summary, embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for controlling peer-to-peer display of a display. The method comprises the steps of obtaining the current physical resolution of the display equipment; in the SurfaceFlinger, controlling the display device to be limited within a first resolution of the display device when applying for the buffer memory; limiting the Windows manager not to do scaling setting when the window size is set to the SurfaceFlinger; when the HWC layer is mixed with the hardware layer, the user is limited to carry out scaling setting; acquiring the data output resolution of the current display data; and in the kernel layer, outputting the data output resolution ratio according to the current display data to the display equipment for display. Therefore, the point-to-point display control method of the display can realize the point-to-point processing of the pixels of the data output resolution and the physical resolution of the display equipment, and effectively improves the display effect of the display equipment.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.
Claims (7)
1. A method for controlling peer-to-peer display of a display, the method comprising:
acquiring the current physical resolution of the display equipment;
in the SurfaceFlinger, controlling the display device to be limited within a first resolution of the display device when applying for the buffer memory;
limiting the Windows manager not to do scaling setting when the window size is set to the SurfaceFlinger;
when the HWC layer is mixed with the hardware layer, the user is limited to carry out scaling setting;
acquiring the data output resolution of the current display data;
and in the kernel layer, outputting the data output resolution ratio according to the current display data to the display equipment for display.
2. The method according to claim 1, wherein the first resolution of the display device is a maximum physical resolution of the display device.
3. The method according to claim 2, wherein the limiting of the display device to the first resolution when applying for the buffer memory in the surface flunger comprises;
acquiring the maximum physical resolution of the display equipment;
controlling the display equipment to apply for buffer memory;
and controlling the buffer memory to be less than or equal to the maximum physical resolution of the display equipment.
4. The method as claimed in claim 1, wherein said outputting to said display device in a kernel layer according to a data output resolution of said current display data comprises:
comparing the data output resolution to a current physical resolution of the display device;
if the data output resolution is smaller than the current physical resolution of the display equipment, the data output resolution is normal;
confirming the output physical resolution of the display equipment according to the data output resolution;
and performing partial display control on the display equipment according to the data output resolution by setting the register parameter of the VOP.
5. A display peer-to-peer display control apparatus, the apparatus comprising:
the first confirming module is used for acquiring the current physical resolution of the display equipment;
a buffer limiting module, configured to limit, in the surfaceflag, the buffer memory to be applied by the display device within a first resolution of the display device;
the first zooming limiting module is used for limiting the Windows manager not to do zooming setting when the window size is set to the surfaceFlinger;
the second scaling limiting module is used for limiting a user to perform scaling setting when the HWC layer is mixed with a hardware layer;
the second confirmation module is used for acquiring the data output resolution of the current display data;
and the display control module is used for outputting the resolution to the display equipment for displaying according to the data output resolution of the current display data in the kernel layer.
6. A display point-to-point display control apparatus, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of claims 1-4.
7. A storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110482267.9A CN113238725A (en) | 2021-04-30 | 2021-04-30 | Display point-to-point display control method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110482267.9A CN113238725A (en) | 2021-04-30 | 2021-04-30 | Display point-to-point display control method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113238725A true CN113238725A (en) | 2021-08-10 |
Family
ID=77131777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110482267.9A Pending CN113238725A (en) | 2021-04-30 | 2021-04-30 | Display point-to-point display control method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113238725A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113238726A (en) * | 2021-04-30 | 2021-08-10 | 深圳市智微智能软件开发有限公司 | Method, device and equipment for controlling synchronous display of double displays and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104981766A (en) * | 2014-04-28 | 2015-10-14 | 华为终端有限公司 | Method for displaying data on screen and display control device |
US20160155411A1 (en) * | 2014-11-28 | 2016-06-02 | Mstar Semiconductor, Inc. | Display control method and device for application program interface |
CN106970768A (en) * | 2016-01-13 | 2017-07-21 | 福州瑞芯微电子股份有限公司 | Method and system of the support multiresolution without Zoom display based on android system |
CN110166792A (en) * | 2018-02-14 | 2019-08-23 | 阿里巴巴集团控股有限公司 | Image display method, device, system and storage medium |
CN112333538A (en) * | 2019-07-17 | 2021-02-05 | 杭州海康威视数字技术股份有限公司 | Resolution adjustment method and device, display screen controller and information source equipment |
-
2021
- 2021-04-30 CN CN202110482267.9A patent/CN113238725A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104981766A (en) * | 2014-04-28 | 2015-10-14 | 华为终端有限公司 | Method for displaying data on screen and display control device |
US20160155411A1 (en) * | 2014-11-28 | 2016-06-02 | Mstar Semiconductor, Inc. | Display control method and device for application program interface |
CN106970768A (en) * | 2016-01-13 | 2017-07-21 | 福州瑞芯微电子股份有限公司 | Method and system of the support multiresolution without Zoom display based on android system |
CN110166792A (en) * | 2018-02-14 | 2019-08-23 | 阿里巴巴集团控股有限公司 | Image display method, device, system and storage medium |
CN112333538A (en) * | 2019-07-17 | 2021-02-05 | 杭州海康威视数字技术股份有限公司 | Resolution adjustment method and device, display screen controller and information source equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113238726A (en) * | 2021-04-30 | 2021-08-10 | 深圳市智微智能软件开发有限公司 | Method, device and equipment for controlling synchronous display of double displays and storage medium |
CN113238726B (en) * | 2021-04-30 | 2024-06-04 | 深圳市智微智能软件开发有限公司 | Dual-display synchronous display control method, apparatus, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109166156B (en) | Camera calibration image generation method, mobile terminal and storage medium | |
CN110660066A (en) | Network training method, image processing method, network, terminal device, and medium | |
US9721391B2 (en) | Positioning of projected augmented reality content | |
CN109377508B (en) | Image processing method and device | |
CN112055244B (en) | Image acquisition method and device, server and electronic equipment | |
CN109710264B (en) | Gerber file conversion method, system, device and storage medium | |
CN113238725A (en) | Display point-to-point display control method, device, equipment and storage medium | |
CN104301628A (en) | Method and device for carrying out dynamic blurring on image and electronic equipment | |
CN112199404A (en) | Report creating method and device, electronic equipment and computer readable storage medium | |
CN111277780B (en) | Method and device for improving frame interpolation effect | |
CN110634173A (en) | Picture mark information adding method and device, electronic equipment and readable medium | |
CN117971083A (en) | Control method, device, equipment, medium and vehicle for equipment | |
CN111258582A (en) | Window rendering method and device, computer equipment and storage medium | |
CN113238726B (en) | Dual-display synchronous display control method, apparatus, device and storage medium | |
CN112785649A (en) | Laser radar and camera calibration method and device, electronic equipment and medium | |
CN110070482A (en) | Image processing method, device and computer readable storage medium | |
CN115857655A (en) | Method, apparatus, device, medium, and program product for controlling power consumption of GPU | |
CN115831077A (en) | Vehicle-mounted screen brightness control method and device and related equipment | |
CN114419298A (en) | Virtual object generation method, device, equipment and storage medium | |
CN110189279B (en) | Model training method and device, electronic equipment and storage medium | |
CN111223105B (en) | Image processing method and device | |
CN108475430A (en) | picture quality evaluation method and device | |
CN113359669A (en) | Method, device, electronic equipment and medium for generating test data | |
CN114650422A (en) | Video frame encoding method, video frame encoding device, electronic equipment and computer readable medium | |
US20130329077A1 (en) | Methods of image acquiring and electronic devices |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210810 |
|
RJ01 | Rejection of invention patent application after publication |