WO2018149222A1 - Single-screen and double-screen application switching method and interface - Google Patents

Single-screen and double-screen application switching method and interface Download PDF

Info

Publication number
WO2018149222A1
WO2018149222A1 PCT/CN2017/117095 CN2017117095W WO2018149222A1 WO 2018149222 A1 WO2018149222 A1 WO 2018149222A1 CN 2017117095 W CN2017117095 W CN 2017117095W WO 2018149222 A1 WO2018149222 A1 WO 2018149222A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
display
dual
interface
view
Prior art date
Application number
PCT/CN2017/117095
Other languages
French (fr)
Chinese (zh)
Inventor
王媚
李炜
Original Assignee
深圳市掌网科技股份有限公司
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 深圳市掌网科技股份有限公司 filed Critical 深圳市掌网科技股份有限公司
Publication of WO2018149222A1 publication Critical patent/WO2018149222A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels

Definitions

  • the technical problem to be solved by the present invention is to provide a single dual-screen application switching method and interface for the above-mentioned drawbacks of the prior art.
  • the UI interface for dynamically drawing the left screen and the right screen according to the symmetric rule includes:
  • the invention also discloses a single and dual screen application switching interface, which is used for a box device, and includes:
  • the dual-screen display module divides the screen into a left screen and a right screen by using a screen center line as a symmetry axis, and dynamically draws a left screen and a right screen according to a symmetrical rule.
  • UI interface In the single-dual-screen application switching interface of the present invention, the dual-screen display module divides the screen into a left screen and a right screen by using a screen center line as a symmetry axis, and dynamically draws a left screen and a right screen according to a symmetrical rule.
  • a size scaling unit for obtaining a display resolution of the entire screen, and calculating a resolution zoom factor, and scaling the size of each view on a single screen according to the resolution zoom factor;
  • a position calculation unit configured to recalculate the position of each view on the left screen based on the position of the single screen view, and calculate the position of each view on the right screen by using the center line of the screen as the axis of symmetry;
  • the dual-screen display unit is configured to simultaneously fill each of the scaled new views in the left screen and the right screen according to the calculated position to realize dual-screen display.
  • FIG. 2 is a flow chart of step S3 in the preferred embodiment
  • the single and dual screen application switching method of the present invention is used for a box device, and mainly includes:
  • step S1 The device parameter of the display device connected to the box device is read, and the device type of the display device is determined according to the read device parameter. If the device type is a dual-screen device, the process proceeds to step S2, if the device type is a single screen. Equipment, proceeds to step S4;
  • the device parameter can be the model model of the device.
  • step S2 The display driving parameter of the display device is read, and the current display mode of the display device is determined according to the read display driving parameter. If the display mode is vertical screen display, the process proceeds to step S3, and if the display mode is horizontal. Display, proceed to step S4;
  • two UI files for drawing a UI interface for single-screen display and dual-screen display are stored in the system, and steps S3 and S4 are implemented based on the stored corresponding programs.
  • the program calls one of the UI files to draw the corresponding UI interface according to the dual screen mode.
  • the program calls another UI file to draw the corresponding UI interface according to the single screen mode, and step S3
  • the same functional modules are packaged and multiplexed with S4.
  • the position of the view is displayed on a single screen (x, y), specifically, the ordinate of the view on the left screen is unchanged and the abscissa is reduced by half, which is recorded as (x1, y1); the center line of the screen is With the axis of symmetry, you can calculate the position of the view on the right screen (x2, y2).
  • S33 A new view with a size of (w1, h1) after each scaling is simultaneously filled in the left screen and the right screen according to the calculated position (x1, y1), (x2, y2) to realize dual screen display.
  • a first determining module configured to read a device parameter of the display device connected to the box device, determine a device type of the display device according to the read device parameter, and send a second determination signal if the device type is a dual-screen device If the device type is a single-screen device, a single-screen display trigger signal is sent; for example, the device parameter may be the model model of the device.
  • a second determining module configured to: after receiving the second determining signal, read a display driving parameter of the display device, and determine a current display mode of the display device according to the read display driving parameter, if the display mode is vertical If the screen is displayed, the dual-screen display trigger signal is sent. If the display mode is horizontal screen display, the single-screen display trigger signal is sent; for example, the rotation parameter of the device can be read to obtain the display driving parameter of the display device.
  • the dual-screen display module is configured to, when receiving the dual-screen display trigger signal, invoke a program embedded in the box device to display a dual-screen UI interface;
  • the single-screen display module is configured to invoke a program embedded in the box device to display a single-screen UI interface when receiving a single-screen display trigger signal.
  • the UI file stored in the program in the dual-screen display module draws a corresponding UI interface according to the dual-screen mode
  • another UI file stored in the single-screen display module is stored in accordance with the single UI file.
  • the screen mode draws the corresponding UI interface
  • the dual-screen display module and the single-screen display module package and multiplex the same functional modules.
  • the dual-screen display module divides the screen into a left screen and a right screen with the center line of the screen as an axis of symmetry, and simultaneously dynamically draws the UI interfaces of the left screen and the right screen according to the symmetrical rule.
  • the dual screen display module includes:
  • a size scaling unit for obtaining a display resolution of the entire screen, and calculating a resolution zoom factor, and scaling the size of each view on a single screen according to the resolution zoom factor;
  • the resolution of the left and right screens after the dual screen display is equivalent to 960*1080, and the resolution zoom factor is (1920*1080)/(960*). 1080). If the size of the view when it is displayed on a single screen is (w, h), the scale after scaling according to (1920*1080)/(960*1080) is (w1, h1).
  • a position calculation unit configured to recalculate the position of each view on the left screen based on the position of the single screen view, and calculate the position of each view on the right screen by using the center line of the screen as the axis of symmetry;
  • the position of the view is displayed on a single screen (x, y), specifically, the ordinate of the view on the left screen is unchanged and the abscissa is reduced by half, which is recorded as (x1, y1); the center line of the screen is With the axis of symmetry, you can calculate the position of the view on the right screen (x2, y2).
  • a dual-screen display unit for simultaneously filling each new size of size (w1, h1) with the calculated position (x1, y1), (x2, y2) in the left and right screens. Achieve dual screen display.
  • the single-dual-screen application switching method and interface for implementing the present invention have the following beneficial effects: the present invention provides a unified interface for different display devices, and the interface can automatically recognize the display device type and display mode, thereby correspondingly
  • the single-screen or dual-screen UI interface is displayed, which solves the problem of two application developments on the same system in the prior art, reduces the development workload, and is convenient for later maintenance.

Abstract

A single-screen and double-screen application switching method and system, the method comprising: S1, reading a device parameter of a display device connected to a set-top box device, determining a device type of the display device according to the device parameter, if the display device is a double-screen device, proceeding to S2, and if the display device is a single-screen device, proceeding to S4; S2, reading a display driver parameter of the display device, determining a current display mode of the display device according to the display driver parameter, if the display mode is vertical, proceeding to S3, and if the display mode is horizontal, proceeding to S4; S3, the set-top box device invoking a built-in program to display a double-screen UI interface and proceeding to end the method; S4, the set-top box device invoking a built-in program to display a single-screen UI interface and proceeding to end the method. The present invention provides a uniform interface with respect to different display devices, and the interface can automatically recognize the display device type and the display mode, thus correspondingly displaying a single-screen or a double-screen UI interface, thereby solving the issue in the prior art in which application development is required to be performed twice on the same system, and reducing the workload of development and facilitating follow-up maintenance.

Description

一种单双屏应用切换方法以及接口Single and dual screen application switching method and interface 技术领域Technical field
本发明涉及显示控制领域,尤其涉及一种单双屏应用切换方法以及接口。The present invention relates to the field of display control, and in particular, to a single and dual screen application switching method and an interface.
背景技术Background technique
目前,在设计显示在VR双屏设备和普通的单屏设备的应用时通常是按双屏模式和单屏模式分开设计和实现的,这样就需要对同一个应用在同一种系统上做两次开发。比如需要分别对android系统的VR双屏显示设备、手机平板和电视机等单屏显示设备分别进行应用开发。这种方式不仅工作量冗余,同时还为后期的维护带来了很多不便。At present, when designing and displaying in VR dual-screen devices and ordinary single-screen devices, it is usually designed and implemented separately in dual-screen mode and single-screen mode, so that it is necessary to perform the same application twice on the same system. Development. For example, it is necessary to separately develop applications for the VR dual-screen display device, the mobile phone tablet and the television such as the single-screen display device of the android system. This method not only has redundant workload, but also brings a lot of inconvenience to the later maintenance.
技术问题technical problem
本发明要解决的技术问题在于,针对现有技术的上述缺陷,提供一种单双屏应用切换方法以及接口。The technical problem to be solved by the present invention is to provide a single dual-screen application switching method and interface for the above-mentioned drawbacks of the prior art.
技术解决方案Technical solution
本发明解决其技术问题所采用的技术方案是:构造一种单双屏应用切换方法,用于盒子设备,包括:The technical solution adopted by the present invention to solve the technical problem is: constructing a single and dual screen application switching method for a box device, including:
S1、读取与盒子设备连接的显示设备的设备参数,根据所读取的设备参数确定所述显示设备的设备类型,如果设备类型为双屏设备,则进入步骤S2,如果设备类型为单屏设备,则进入步骤S4; S1. The device parameter of the display device connected to the box device is read, and the device type of the display device is determined according to the read device parameter. If the device type is a dual-screen device, the process proceeds to step S2, if the device type is a single screen. Equipment, proceeds to step S4;
S2、读取所述显示设备的显示驱动参数,根据所读取的显示驱动参数确定所述显示设备当前的显示方式,如果显示方式为竖屏显示,则进入步骤S3,如果显示方式为横屏显示,则进入步骤S4;S2. The display driving parameter of the display device is read, and the current display mode of the display device is determined according to the read display driving parameter. If the display mode is vertical screen display, the process proceeds to step S3, and if the display mode is horizontal. Display, proceed to step S4;
S3、盒子设备调用内嵌的程序显示双屏的UI界面,结束;S3, the box device calls the embedded program to display the dual screen UI interface, and ends;
S4、盒子设备调用内嵌的程序显示单屏的UI界面,结束。S4, the box device calls the embedded program to display the single-screen UI interface, and ends.
在本发明所述的单双屏应用切换方法中,所述步骤S3中程序调用存储的一个UI文件按照双屏模式画出对应的UI界面,所述步骤S4中程序调用存储的另一个UI文件按照单屏模式画出对应的UI界面,且步骤S3和S4中对同样的功能模块进行封装复用。In the single-dual-screen application switching method of the present invention, in the step S3, the program calls a stored UI file to draw a corresponding UI interface according to the dual-screen mode, and the program calls another stored UI file in the step S4. The corresponding UI interface is drawn according to the single screen mode, and the same functional modules are package-multiplexed in steps S3 and S4.
在本发明所述的单双屏应用切换方法中,所述步骤S3包括:以屏幕中心线为对称轴将屏幕划分为左边屏幕和右边屏幕,按照对称规则同时动态画出左边屏幕和右边屏幕的UI界面。In the single-dual screen application switching method of the present invention, the step S3 includes: dividing the screen into a left screen and a right screen by using a center line of the screen as a symmetry axis, and dynamically drawing the left screen and the right screen simultaneously according to the symmetrical rule. UI interface.
在本发明所述的单双屏应用切换方法中,所述的按照对称规则同时动态画出左边屏幕和右边屏幕的UI界面包括: In the single-dual-screen application switching method of the present invention, the UI interface for dynamically drawing the left screen and the right screen according to the symmetric rule includes:
获取整个屏幕的显示分辨率,并计算分辨率缩放倍数,按照分辨率缩放倍数对每个视图在单屏显示时的大小的基础上进行缩放得到新的视图; Obtain the display resolution of the entire screen, calculate the resolution zoom factor, and scale the size of each view based on the resolution zoom size to obtain a new view;
基于单屏时视图的位置,重新计算出每个视图在左边屏幕的位置,以屏幕的中心线为对称轴计算出每个视图在右边屏幕的位置;Based on the position of the single-screen view, recalculate the position of each view on the left screen, and calculate the position of each view on the right screen with the center line of the screen as the axis of symmetry;
将每个缩放后的新的视图按照计算的位置在左边屏幕和右边屏幕中同时进行填充,实现双屏显示。Each zoomed new view is simultaneously filled in the left and right screens according to the calculated position to achieve dual display.
本发明还公开了一种单双屏应用切换接口,用于盒子设备,包括:The invention also discloses a single and dual screen application switching interface, which is used for a box device, and includes:
第一判断模块,用于读取与盒子设备连接的显示设备的设备参数,根据所读取的设备参数确定所述显示设备的设备类型,如果设备类型为双屏设备,则发送二次判断信号,如果设备类型为单屏设备,则发送单屏显示触发信号; a first determining module, configured to read a device parameter of the display device connected to the box device, determine a device type of the display device according to the read device parameter, and send a second determination signal if the device type is a dual-screen device If the device type is a single-screen device, send a single-screen display trigger signal;
第二判断模块,用于在接收到二次判断信号后,读取所述显示设备的显示驱动参数,根据所读取的显示驱动参数确定所述显示设备当前的显示方式,如果显示方式为竖屏显示,则发送双屏显示触发信号,如果显示方式为横屏显示,则发送单屏显示触发信号; a second determining module, configured to: after receiving the second determining signal, read a display driving parameter of the display device, and determine a current display mode of the display device according to the read display driving parameter, if the display mode is vertical When the screen is displayed, the dual-screen display trigger signal is sent, and if the display mode is the horizontal screen display, the single-screen display trigger signal is sent;
双屏显示模块,用于在接收到双屏显示触发信号时,调用盒子设备内嵌的程序显示双屏的UI界面;The dual-screen display module is configured to, when receiving the dual-screen display trigger signal, invoke a program embedded in the box device to display a dual-screen UI interface;
单屏显示模块,用于在接收到单屏显示触发信号时,调用盒子设备内嵌的程序显示单屏的UI界面。The single-screen display module is configured to invoke a program embedded in the box device to display a single-screen UI interface when receiving a single-screen display trigger signal.
在本发明所述的单双屏应用切换接口中,所述双屏显示模块中程序调用存储的一个UI文件按照双屏模式画出对应的UI界面,所述单屏显示模块中程序调用存储的另一个UI文件按照单屏模式画出对应的UI界面,且双屏显示模块和单屏显示模块对同样的功能模块进行封装复用。In the single-dual-screen application switching interface of the present invention, a UI file stored by the program in the dual-screen display module draws a corresponding UI interface according to the dual-screen mode, and the program in the single-screen display module calls the stored Another UI file draws a corresponding UI interface according to the single screen mode, and the dual screen display module and the single screen display module package and multiplex the same functional modules.
在本发明所述的单双屏应用切换接口中,所述双屏显示模块以屏幕中心线为对称轴将屏幕划分为左边屏幕和右边屏幕,按照对称规则同时动态画出左边屏幕和右边屏幕的UI界面。In the single-dual-screen application switching interface of the present invention, the dual-screen display module divides the screen into a left screen and a right screen by using a screen center line as a symmetry axis, and dynamically draws a left screen and a right screen according to a symmetrical rule. UI interface.
在本发明所述的单双屏应用切换接口中,所述双屏显示模块包括:In the single dual screen application switching interface of the present invention, the dual screen display module includes:
大小缩放单元,用于获取整个屏幕的显示分辨率,并计算分辨率缩放倍数,按照分辨率缩放倍数对每个视图在单屏显示时的大小的基础上进行缩放;a size scaling unit for obtaining a display resolution of the entire screen, and calculating a resolution zoom factor, and scaling the size of each view on a single screen according to the resolution zoom factor;
位置计算单元,用于基于单屏时视图的位置,重新计算出每个视图在左边屏幕的位置,以屏幕的中心线为对称轴计算出每个视图在右边屏幕的位置;a position calculation unit, configured to recalculate the position of each view on the left screen based on the position of the single screen view, and calculate the position of each view on the right screen by using the center line of the screen as the axis of symmetry;
双屏显示单元,用于将每个缩放后的新的视图按照计算的位置在左边屏幕和右边屏幕中同时进行填充,实现双屏显示。The dual-screen display unit is configured to simultaneously fill each of the scaled new views in the left screen and the right screen according to the calculated position to realize dual-screen display.
有益效果Beneficial effect
实施本发明的单双屏应用切换方法以及接口,具有以下有益效果:本发明针对不同的显示设备提供统一的接口,接口可以自动识别出显示设备类型以及显示方式,从而相应的显示单屏或者双屏UI界面,解决了现有技术中在同一种系统上做两次应用开发的问题,减小了开发工作量,且后期维护方便。The single dual-screen application switching method and interface for implementing the present invention have the following beneficial effects: the present invention provides a unified interface for different display devices, and the interface can automatically identify the display device type and display mode, thereby correspondingly displaying a single screen or double The screen UI interface solves the problem of two application developments on the same system in the prior art, reduces the development workload, and is convenient for later maintenance.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图:In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is an embodiment of the present invention, and other drawings can be obtained according to the provided drawings for those skilled in the art without any creative work:
图1是本发明的单双屏应用切换方法的流程图;1 is a flow chart of a single and dual screen application switching method of the present invention;
图2是较佳实施例中步骤S3的流程图;Figure 2 is a flow chart of step S3 in the preferred embodiment;
图3是本发明的单双屏应用切换接口的结构示意图;3 is a schematic structural diagram of a single dual-screen application switching interface of the present invention;
图4是较佳实施例中的单双屏应用切换接口的结构示意图。4 is a schematic structural diagram of a single and dual screen application switching interface in a preferred embodiment.
本发明的实施方式Embodiments of the invention
在本发明实施例中,针对不同的显示设备提供统一的接口,接口可以自动识别出显示设备类型以及显示方式,从而相应的显示单屏或者双屏UI界面,解决了现有技术中在同一种系统上做两次应用开发的问题,减小了开发工作量,且后期维护方便。In the embodiment of the present invention, a unified interface is provided for different display devices, and the interface can automatically identify the display device type and the display mode, thereby correspondingly displaying a single-screen or dual-screen UI interface, and solving the same technology in the prior art. The problem of two application developments on the system reduces the amount of development work and is convenient for later maintenance.
为了更好的理解上述技术方案,下面将结合说明书附图以及具体的实施方式对上述技术方案进行详细的说明,应当理解本发明实施例以及实施例中的具体特征是对本申请技术方案的详细的说明,而不是对本申请技术方案的限定,在不冲突的情况下,本发明实施例以及实施例中的技术特征可以相互组合。For a better understanding of the above technical solutions, the above technical solutions will be described in detail in conjunction with the drawings and specific embodiments. It should be understood that the specific features of the embodiments and embodiments of the present invention are detailed to the technical solutions of the present application. The description, rather than the limitation of the technical solution of the present application, can be combined with each other in the embodiments of the present invention and the technical features in the embodiments without conflict.
参考图1,是本发明的单双屏应用切换方法的流程图。本发明的单双屏应用切换方法,用于盒子设备,主要包括:Referring to FIG. 1, it is a flowchart of a single and dual screen application switching method of the present invention. The single and dual screen application switching method of the present invention is used for a box device, and mainly includes:
S1、读取与盒子设备连接的显示设备的设备参数,根据所读取的设备参数确定所述显示设备的设备类型,如果设备类型为双屏设备,则进入步骤S2,如果设备类型为单屏设备,则进入步骤S4; S1. The device parameter of the display device connected to the box device is read, and the device type of the display device is determined according to the read device parameter. If the device type is a dual-screen device, the process proceeds to step S2, if the device type is a single screen. Equipment, proceeds to step S4;
例如,设备参数可以为设备的型号model。For example, the device parameter can be the model model of the device.
S2、读取所述显示设备的显示驱动参数,根据所读取的显示驱动参数确定所述显示设备当前的显示方式,如果显示方式为竖屏显示,则进入步骤S3,如果显示方式为横屏显示,则进入步骤S4;S2. The display driving parameter of the display device is read, and the current display mode of the display device is determined according to the read display driving parameter. If the display mode is vertical screen display, the process proceeds to step S3, and if the display mode is horizontal. Display, proceed to step S4;
例如,可以读取设备的rotation参数获知显示设备的显示驱动参数。For example, the rotation parameter of the device can be read to know the display drive parameters of the display device.
S3、盒子设备调用内嵌的程序显示双屏的UI界面,结束;S3, the box device calls the embedded program to display the dual screen UI interface, and ends;
S4、盒子设备调用内嵌的程序显示单屏的UI界面,结束。S4, the box device calls the embedded program to display the single-screen UI interface, and ends.
在一个较佳实施例中,系统内存储了用于画出单屏显示和双屏显示的UI界面的两种UI文件,步骤S3和S4基于存储的相应的程序实现。所述步骤S3中程序调用其中的一个UI文件按照双屏模式画出对应的UI界面,所述步骤S4中程序调用其中的另一个UI文件按照单屏模式画出对应的UI界面,且步骤S3和S4中对同样的功能模块进行封装复用。In a preferred embodiment, two UI files for drawing a UI interface for single-screen display and dual-screen display are stored in the system, and steps S3 and S4 are implemented based on the stored corresponding programs. In the step S3, the program calls one of the UI files to draw the corresponding UI interface according to the dual screen mode. In the step S4, the program calls another UI file to draw the corresponding UI interface according to the single screen mode, and step S3 The same functional modules are packaged and multiplexed with S4.
在另一个较佳实施例中,在双屏显示时,系统可以动态的画出相应的UI界面,参考图2是较佳实施例中步骤S3的流程图。具体的,所述步骤S3包括:以屏幕中心线为对称轴将屏幕划分为左边屏幕和右边屏幕,按照对称规则同时动态画出左边屏幕和右边屏幕的UI界面。In another preferred embodiment, the system can dynamically draw a corresponding UI interface during dual-display, and FIG. 2 is a flowchart of step S3 in the preferred embodiment. Specifically, the step S3 includes: dividing the screen into a left screen and a right screen by using a center line of the screen as a symmetry axis, and dynamically drawing a UI interface of the left screen and the right screen according to the symmetrical rule.
其中,所述的按照对称规则同时动态画出左边屏幕和右边屏幕的UI界面包括: The UI interface for dynamically drawing the left screen and the right screen according to the symmetric rule includes:
S31、获取整个屏幕的显示分辨率,并计算分辨率缩放倍数,按照分辨率缩放倍数对每个视图在单屏显示时的大小的基础上进行缩放得到新的视图;S31. Obtain a display resolution of the entire screen, calculate a resolution zoom factor, and scale the size of each view on a single screen according to the resolution zoom factor to obtain a new view;
例如,假如当前的分辨率为1920*1080,那么用双屏显示以后左边屏幕和右边屏幕的分辨率则相当于都变为960*1080,分辨率缩放倍数为(1920*1080)/(960*1080)。假如视图在单屏显示时的大小为(w,h),则按照(1920*1080)/(960*1080)进行缩放后的大小记为(w1,h1)。For example, if the current resolution is 1920*1080, then the resolution of the left and right screens after the dual screen display is equivalent to 960*1080, and the resolution zoom factor is (1920*1080)/(960*). 1080). If the size of the view when it is displayed on a single screen is (w, h), the scale after scaling according to (1920*1080)/(960*1080) is (w1, h1).
S32、基于单屏时视图的位置,重新计算出每个视图在左边屏幕的位置,以屏幕的中心线为对称轴计算出每个视图在右边屏幕的位置;S32. Based on the position of the single-screen view, recalculate the position of each view on the left screen, and calculate the position of each view on the right screen by using the center line of the screen as the axis of symmetry;
假如视图在单屏显示时的位置为(x,y),具体的,视图在左边屏幕的位置的纵坐标不变且横坐标缩小一半,记为(x1,y1);以屏幕的中心线为对称轴,即可计算视图在右边屏幕的位置(x2,y2)。If the position of the view is displayed on a single screen (x, y), specifically, the ordinate of the view on the left screen is unchanged and the abscissa is reduced by half, which is recorded as (x1, y1); the center line of the screen is With the axis of symmetry, you can calculate the position of the view on the right screen (x2, y2).
S33、将每个缩放后大小为(w1,h1)的新的视图,按照计算的位置(x1,y1)、(x2,y2)在左边屏幕和右边屏幕中同时进行填充,实现双屏显示。S33: A new view with a size of (w1, h1) after each scaling is simultaneously filled in the left screen and the right screen according to the calculated position (x1, y1), (x2, y2) to realize dual screen display.
相应的,本发明还公开了一种单双屏应用切换接口,用于盒子设备,参考图3,是本发明的单双屏应用切换接口的结构示意图,接口具体包括:Correspondingly, the present invention also discloses a single-dual-screen application switching interface, which is used for a box device. Referring to FIG. 3, it is a schematic structural diagram of a single-dual-screen application switching interface according to the present invention. The interface specifically includes:
第一判断模块,用于读取与盒子设备连接的显示设备的设备参数,根据所读取的设备参数确定所述显示设备的设备类型,如果设备类型为双屏设备,则发送二次判断信号,如果设备类型为单屏设备,则发送单屏显示触发信号;例如,设备参数可以为设备的型号model。a first determining module, configured to read a device parameter of the display device connected to the box device, determine a device type of the display device according to the read device parameter, and send a second determination signal if the device type is a dual-screen device If the device type is a single-screen device, a single-screen display trigger signal is sent; for example, the device parameter may be the model model of the device.
第二判断模块,用于在接收到二次判断信号后,读取所述显示设备的显示驱动参数,根据所读取的显示驱动参数确定所述显示设备当前的显示方式,如果显示方式为竖屏显示,则发送双屏显示触发信号,如果显示方式为横屏显示,则发送单屏显示触发信号;例如,可以读取设备的rotation参数获知显示设备的显示驱动参数。a second determining module, configured to: after receiving the second determining signal, read a display driving parameter of the display device, and determine a current display mode of the display device according to the read display driving parameter, if the display mode is vertical If the screen is displayed, the dual-screen display trigger signal is sent. If the display mode is horizontal screen display, the single-screen display trigger signal is sent; for example, the rotation parameter of the device can be read to obtain the display driving parameter of the display device.
双屏显示模块,用于在接收到双屏显示触发信号时,调用盒子设备内嵌的程序显示双屏的UI界面;The dual-screen display module is configured to, when receiving the dual-screen display trigger signal, invoke a program embedded in the box device to display a dual-screen UI interface;
单屏显示模块,用于在接收到单屏显示触发信号时,调用盒子设备内嵌的程序显示单屏的UI界面。The single-screen display module is configured to invoke a program embedded in the box device to display a single-screen UI interface when receiving a single-screen display trigger signal.
在一个较佳实施例中,所述双屏显示模块中程序调用存储的一个UI文件按照双屏模式画出对应的UI界面,所述单屏显示模块中程序调用存储的另一个UI文件按照单屏模式画出对应的UI界面,且双屏显示模块和单屏显示模块对同样的功能模块进行封装复用。In a preferred embodiment, the UI file stored in the program in the dual-screen display module draws a corresponding UI interface according to the dual-screen mode, and another UI file stored in the single-screen display module is stored in accordance with the single UI file. The screen mode draws the corresponding UI interface, and the dual-screen display module and the single-screen display module package and multiplex the same functional modules.
参考图4是较佳实施例中的单双屏应用切换接口的结构示意图。在另一个较佳实施例中,所述双屏显示模块以屏幕中心线为对称轴将屏幕划分为左边屏幕和右边屏幕,按照对称规则同时动态画出左边屏幕和右边屏幕的UI界面。具体的,在该实施例中,所述双屏显示模块包括:4 is a schematic structural diagram of a single and dual screen application switching interface in a preferred embodiment. In another preferred embodiment, the dual-screen display module divides the screen into a left screen and a right screen with the center line of the screen as an axis of symmetry, and simultaneously dynamically draws the UI interfaces of the left screen and the right screen according to the symmetrical rule. Specifically, in this embodiment, the dual screen display module includes:
大小缩放单元,用于获取整个屏幕的显示分辨率,并计算分辨率缩放倍数,按照分辨率缩放倍数对每个视图在单屏显示时的大小的基础上进行缩放;a size scaling unit for obtaining a display resolution of the entire screen, and calculating a resolution zoom factor, and scaling the size of each view on a single screen according to the resolution zoom factor;
例如,假如当前的分辨率为1920*1080,那么用双屏显示以后左边屏幕和右边屏幕的分辨率则相当于都变为960*1080,分辨率缩放倍数为(1920*1080)/(960*1080)。假如视图在单屏显示时的大小为(w,h),则按照(1920*1080)/(960*1080)进行缩放后的大小记为(w1,h1)。For example, if the current resolution is 1920*1080, then the resolution of the left and right screens after the dual screen display is equivalent to 960*1080, and the resolution zoom factor is (1920*1080)/(960*). 1080). If the size of the view when it is displayed on a single screen is (w, h), the scale after scaling according to (1920*1080)/(960*1080) is (w1, h1).
位置计算单元,用于基于单屏时视图的位置,重新计算出每个视图在左边屏幕的位置,以屏幕的中心线为对称轴计算出每个视图在右边屏幕的位置;a position calculation unit, configured to recalculate the position of each view on the left screen based on the position of the single screen view, and calculate the position of each view on the right screen by using the center line of the screen as the axis of symmetry;
假如视图在单屏显示时的位置为(x,y),具体的,视图在左边屏幕的位置的纵坐标不变且横坐标缩小一半,记为(x1,y1);以屏幕的中心线为对称轴,即可计算视图在右边屏幕的位置(x2,y2)。If the position of the view is displayed on a single screen (x, y), specifically, the ordinate of the view on the left screen is unchanged and the abscissa is reduced by half, which is recorded as (x1, y1); the center line of the screen is With the axis of symmetry, you can calculate the position of the view on the right screen (x2, y2).
双屏显示单元,用于将每个缩放后大小为(w1,h1)的新的视图,按照计算的位置(x1,y1)、(x2,y2)在左边屏幕和右边屏幕中同时进行填充,实现双屏显示。A dual-screen display unit for simultaneously filling each new size of size (w1, h1) with the calculated position (x1, y1), (x2, y2) in the left and right screens. Achieve dual screen display.
综上所述,实施本发明的单双屏应用切换方法以及接口,具有以下有益效果:本发明针对不同的显示设备提供统一的接口,接口可以自动识别出显示设备类型以及显示方式,从而相应的显示单屏或者双屏UI界面,解决了现有技术中在同一种系统上做两次应用开发的问题,减小了开发工作量,且后期维护方便。In summary, the single-dual-screen application switching method and interface for implementing the present invention have the following beneficial effects: the present invention provides a unified interface for different display devices, and the interface can automatically recognize the display device type and display mode, thereby correspondingly The single-screen or dual-screen UI interface is displayed, which solves the problem of two application developments on the same system in the prior art, reduces the development workload, and is convenient for later maintenance.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,这些均属于本发明的保护之内。The embodiments of the present invention have been described above with reference to the drawings, but the present invention is not limited to the specific embodiments described above, and the specific embodiments described above are merely illustrative and not restrictive, and those skilled in the art In the light of the present invention, many forms may be made without departing from the spirit and scope of the invention as claimed.

Claims (8)

  1. 一种单双屏应用切换方法,用于盒子设备,其特征在于,包括:A single and dual screen application switching method for a box device, comprising:
    S1、读取与盒子设备连接的显示设备的设备参数,根据所读取的设备参数确定所述显示设备的设备类型,如果设备类型为双屏设备,则进入步骤S2,如果设备类型为单屏设备,则进入步骤S4; S1. The device parameter of the display device connected to the box device is read, and the device type of the display device is determined according to the read device parameter. If the device type is a dual-screen device, the process proceeds to step S2, if the device type is a single screen. Equipment, proceeds to step S4;
    S2、读取所述显示设备的显示驱动参数,根据所读取的显示驱动参数确定所述显示设备当前的显示方式,如果显示方式为竖屏显示,则进入步骤S3,如果显示方式为横屏显示,则进入步骤S4;S2. The display driving parameter of the display device is read, and the current display mode of the display device is determined according to the read display driving parameter. If the display mode is vertical screen display, the process proceeds to step S3, and if the display mode is horizontal. Display, proceed to step S4;
    S3、盒子设备调用内嵌的程序显示双屏的UI界面,结束;S3, the box device calls the embedded program to display the dual screen UI interface, and ends;
    S4、盒子设备调用内嵌的程序显示单屏的UI界面,结束。S4, the box device calls the embedded program to display the single-screen UI interface, and ends.
  2. 根据权利要求1所述的单双屏应用切换方法,其特征在于,所述步骤S3中程序调用存储的一个UI文件按照双屏模式画出对应的UI界面,所述步骤S4中程序调用存储的另一个UI文件按照单屏模式画出对应的UI界面,且步骤S3和S4中对同样的功能模块进行封装复用。The method for switching a single dual-screen application according to claim 1, wherein in the step S3, the program calls a stored UI file to draw a corresponding UI interface according to the dual screen mode, and the program calls the stored program in the step S4. The other UI file draws the corresponding UI interface according to the single screen mode, and the same functional modules are package-multiplexed in steps S3 and S4.
  3. 根据权利要求1所述的单双屏应用切换方法,其特征在于,所述步骤S3包括:以屏幕中心线为对称轴将屏幕划分为左边屏幕和右边屏幕,按照对称规则同时动态画出左边屏幕和右边屏幕的UI界面。The single and dual screen application switching method according to claim 1, wherein the step S3 comprises: dividing the screen into a left screen and a right screen by using a center line of the screen as a symmetry axis, and dynamically drawing the left screen according to a symmetrical rule. And the UI interface on the right screen.
  4. 根据权利要求3所述的单双屏应用切换方法,其特征在于,所述的按照对称规则同时动态画出左边屏幕和右边屏幕的UI界面包括: The single-dual-screen application switching method according to claim 3, wherein the UI interface for dynamically drawing the left screen and the right screen simultaneously according to the symmetric rule comprises:
    获取整个屏幕的显示分辨率,并计算分辨率缩放倍数,按照分辨率缩放倍数对每个视图在单屏显示时的大小的基础上进行缩放得到新的视图; Obtain the display resolution of the entire screen, calculate the resolution zoom factor, and scale the size of each view based on the resolution zoom size to obtain a new view;
    基于单屏时视图的位置,重新计算出每个视图在左边屏幕的位置,以屏幕的中心线为对称轴计算出每个视图在右边屏幕的位置;Based on the position of the single-screen view, recalculate the position of each view on the left screen, and calculate the position of each view on the right screen with the center line of the screen as the axis of symmetry;
    将每个缩放后的新的视图按照计算的位置在左边屏幕和右边屏幕中同时进行填充,实现双屏显示。Each zoomed new view is simultaneously filled in the left and right screens according to the calculated position to achieve dual display.
  5. 一种单双屏应用切换接口,用于盒子设备,其特征在于,包括:A single and dual screen application switching interface for a box device, comprising:
    第一判断模块,用于读取与盒子设备连接的显示设备的设备参数,根据所读取的设备参数确定所述显示设备的设备类型,如果设备类型为双屏设备,则发送二次判断信号,如果设备类型为单屏设备,则发送单屏显示触发信号; a first determining module, configured to read a device parameter of the display device connected to the box device, determine a device type of the display device according to the read device parameter, and send a second determination signal if the device type is a dual-screen device If the device type is a single-screen device, send a single-screen display trigger signal;
    第二判断模块,用于在接收到二次判断信号后,读取所述显示设备的显示驱动参数,根据所读取的显示驱动参数确定所述显示设备当前的显示方式,如果显示方式为竖屏显示,则发送双屏显示触发信号,如果显示方式为横屏显示,则发送单屏显示触发信号; a second determining module, configured to: after receiving the second determining signal, read a display driving parameter of the display device, and determine a current display mode of the display device according to the read display driving parameter, if the display mode is vertical When the screen is displayed, the dual-screen display trigger signal is sent, and if the display mode is the horizontal screen display, the single-screen display trigger signal is sent;
    双屏显示模块,用于在接收到双屏显示触发信号时,调用盒子设备内嵌的程序显示双屏的UI界面;The dual-screen display module is configured to, when receiving the dual-screen display trigger signal, invoke a program embedded in the box device to display a dual-screen UI interface;
    单屏显示模块,用于在接收到单屏显示触发信号时,调用盒子设备内嵌的程序显示单屏的UI界面。The single-screen display module is configured to invoke a program embedded in the box device to display a single-screen UI interface when receiving a single-screen display trigger signal.
  6. 根据权利要求5所述的单双屏应用切换接口,其特征在于,所述双屏显示模块中程序调用存储的一个UI文件按照双屏模式画出对应的UI界面,所述单屏显示模块中程序调用存储的另一个UI文件按照单屏模式画出对应的UI界面,且双屏显示模块和单屏显示模块对同样的功能模块进行封装复用。The single-dual-screen application switching interface according to claim 5, wherein a UI file stored by the program in the dual-screen display module draws a corresponding UI interface according to the dual-screen mode, and the single-screen display module The other UI file stored in the program call draws the corresponding UI interface according to the single screen mode, and the dual screen display module and the single screen display module package and multiplex the same functional modules.
  7. 根据权利要求5所述的单双屏应用切换接口,其特征在于,所述双屏显示模块以屏幕中心线为对称轴将屏幕划分为左边屏幕和右边屏幕,按照对称规则同时动态画出左边屏幕和右边屏幕的UI界面。The single and dual screen application switching interface according to claim 5, wherein the dual screen display module divides the screen into a left screen and a right screen by using a center line of the screen as a symmetry axis, and dynamically draws the left screen according to a symmetrical rule. And the UI interface on the right screen.
  8. 根据权利要求7所述的单双屏应用切换接口,其特征在于,所述双屏显示模块包括:The single-dual-screen application switching interface according to claim 7, wherein the dual-screen display module comprises:
    大小缩放单元,用于获取整个屏幕的显示分辨率,并计算分辨率缩放倍数,按照分辨率缩放倍数对每个视图在单屏显示时的大小的基础上进行缩放;a size scaling unit for obtaining a display resolution of the entire screen, and calculating a resolution zoom factor, and scaling the size of each view on a single screen according to the resolution zoom factor;
    位置计算单元,用于基于单屏时视图的位置,重新计算出每个视图在左边屏幕的位置,以屏幕的中心线为对称轴计算出每个视图在右边屏幕的位置;a position calculation unit, configured to recalculate the position of each view on the left screen based on the position of the single screen view, and calculate the position of each view on the right screen by using the center line of the screen as the axis of symmetry;
    双屏显示单元,用于将每个缩放后的新的视图按照计算的位置在左边屏幕和右边屏幕中同时进行填充,实现双屏显示。The dual-screen display unit is configured to simultaneously fill each of the scaled new views in the left screen and the right screen according to the calculated position to realize dual-screen display.
PCT/CN2017/117095 2017-02-15 2017-12-19 Single-screen and double-screen application switching method and interface WO2018149222A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710080820.XA CN108427544B (en) 2017-02-15 2017-02-15 single-screen and double-screen application switching method and interface
CN201710080820.X 2017-02-15

Publications (1)

Publication Number Publication Date
WO2018149222A1 true WO2018149222A1 (en) 2018-08-23

Family

ID=63155281

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/117095 WO2018149222A1 (en) 2017-02-15 2017-12-19 Single-screen and double-screen application switching method and interface

Country Status (2)

Country Link
CN (1) CN108427544B (en)
WO (1) WO2018149222A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115461714A (en) * 2020-06-24 2022-12-09 深圳传音控股股份有限公司 Application window display method, terminal device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316350A (en) * 2007-05-28 2008-12-03 财团法人工业技术研究院 Double-screen interactive digital television system and method
CN103645831A (en) * 2013-12-23 2014-03-19 厦门美图之家科技有限公司 Display method of single-screen double-operation-interface moving device
US8810533B2 (en) * 2011-07-20 2014-08-19 Z124 Systems and methods for receiving gesture inputs spanning multiple input devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316350A (en) * 2007-05-28 2008-12-03 财团法人工业技术研究院 Double-screen interactive digital television system and method
US8810533B2 (en) * 2011-07-20 2014-08-19 Z124 Systems and methods for receiving gesture inputs spanning multiple input devices
CN103645831A (en) * 2013-12-23 2014-03-19 厦门美图之家科技有限公司 Display method of single-screen double-operation-interface moving device

Also Published As

Publication number Publication date
CN108427544A (en) 2018-08-21
CN108427544B (en) 2019-12-13

Similar Documents

Publication Publication Date Title
CN103853512B (en) A kind of method and electronic equipment for realizing split screen
CN102495712B (en) Map splicing display method based on plurality of display terminals
TWI442376B (en) Semiconductor integrated circuit and data processing system
CN103237179B (en) A kind of combination video window caption presentation method and device
WO2015165013A1 (en) Method for displaying data on screen and display control apparatus
CN104035664A (en) Display method and device for user interface of application program
CN102611869A (en) Output-oriented network transmission technique of multi-screen splicing system
WO2019233314A1 (en) Method for echo imaging on television wall, service device and television wall system
US20230419454A1 (en) Control blurring method and apparatus, terminal device, and readable storage medium
CN103581505A (en) Digital video signal processing device and method
WO2013023514A1 (en) Image processing method, device and system
KR20170046989A (en) Display apparatus consisting a multi display system and control method thereof
JP2010286811A (en) Assembling display equipment, and methdo and system for control of screen thereof
EP2892047A2 (en) Image data output control method and electronic device supporting the same
EP3364289A1 (en) Display switching method for terminal, and terminal
CN103853510A (en) Multi-screen projection display control system and method of handheld electronic device
CN110099224B (en) Pre-monitoring display method, device and system, computer equipment and storage medium
CN103677701A (en) Large screen synchronous display method and system
CN204681493U (en) A kind of 4K multi-screen splicing processor
CN103513947A (en) Information processing method and information processing system
WO2018149222A1 (en) Single-screen and double-screen application switching method and interface
CN110928513A (en) Super-resolution synthesis command application system
TWI457877B (en) Display wall system and high-resolution graphics and images generation and display method
CN109922326A (en) The resolution ratio of naked eye 3D video image determines method, apparatus, medium and equipment
CN104519392A (en) Method and system for switching terminal display images of spliced wall

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17896875

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17896875

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16/12/2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17896875

Country of ref document: EP

Kind code of ref document: A1