CN103986961A - Method and device for achieving picture in picture based on QNX vehicle-mounted system - Google Patents

Method and device for achieving picture in picture based on QNX vehicle-mounted system Download PDF

Info

Publication number
CN103986961A
CN103986961A CN201410226114.8A CN201410226114A CN103986961A CN 103986961 A CN103986961 A CN 103986961A CN 201410226114 A CN201410226114 A CN 201410226114A CN 103986961 A CN103986961 A CN 103986961A
Authority
CN
China
Prior art keywords
subwindow
picture
window
windows
programs
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
CN201410226114.8A
Other languages
Chinese (zh)
Other versions
CN103986961B (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.)
Huizhou Foryou General Electronics Co Ltd
Original Assignee
Huizhou Foryou General Electronics 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 Huizhou Foryou General Electronics Co Ltd filed Critical Huizhou Foryou General Electronics Co Ltd
Priority to CN201410226114.8A priority Critical patent/CN103986961B/en
Publication of CN103986961A publication Critical patent/CN103986961A/en
Application granted granted Critical
Publication of CN103986961B publication Critical patent/CN103986961B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention relates to the technical field of vehicle-mounted multimedia display, in particular to a method and device for achieving picture in picture based on a QNX vehicle-mounted system. The device comprises a main window establishing module, a starting adding module, a child window establishing module and a child window display determining module. The main window establishing module is used for starting a picture in picture program and establishing a main window and a window set. The starting adding module is used for enabling other programs to send messages of adding requests to the window set when the other programs are started. The child window establishing module is used for the main window for establishing child windows corresponding to the other programs according to message notifications and then adding the child windows to the window set. The child window display determining module is used for determining display states of the established child windows. The child windows correspond to the other programs one to one, the display states of the other programs corresponding to the child windows one to one are determined by determining the display states of the child windows, the main window determines the display states of the child windows according to preset child window name information, that is, a user can simultaneously display the child windows on a screen through presetting, and the picture in picture function of the QNX vehicle-mounted system is achieved.

Description

A kind of method and apparatus of realizing picture-in-picture based on QNX onboard system
Technical field
The present invention relates to vehicle mounted multimedia Display Technique field, relate in particular to a kind of method and apparatus of realizing picture-in-picture based on QNX onboard system.
Background technology
Existing onboard system is subject to the restriction of systematic function and software architecture, does not generally support PIP (Picture In Picture, picture-in-picture) function.The onboard system of the indivedual PIP of support functions is also to adopt external special IC (Integrated Circuit, integrated circuit), by the OSD of display (On Screen Display) layer is operated to realize, hardware cost is high, integrates difficulty large.
Summary of the invention
The object of the invention is to propose a kind of method and apparatus of realizing picture-in-picture based on QNX onboard system, can in QNX onboard system, show a plurality of Application Program Interfaces simultaneously, realized the picture-in-picture function of QNX onboard system, enrich greatly the user interface form of expression of onboard system, met the growing user's demand for experience of client.
For reaching this object, the present invention by the following technical solutions:
First aspect, provides a kind of method that realizes picture-in-picture based on QNX onboard system, comprising:
Receive the instruction that starts picture-in-picture program, start picture-in-picture program, create main window and the group of windows corresponding with it;
When starting other programs, other programs send request the message adding to described group of windows;
In other programs, to described group of windows, send request in the process of the message adding, described main window receives the message informing that the graphical interfaces framework based on QNX onboard system sends, according to described message informing, create the subwindow of corresponding described other programs, more described subwindow is added in described group of windows;
According to default subwindow name information, determine the show state of the subwindow creating.
Wherein, described when starting other programs, other programs send request the message adding to described group of windows; Comprise:
In main window, start other programs, the window title of the subwindow of corresponding other programs of main window appointment and group of windows title to be added;
Other programs send request to the group of windows of the group of windows title of corresponding main window appointment the message adding,
The parent window title that described subwindow is corresponding is set to the window title of main window appointment, and joins the group of windows of the group of windows title of corresponding main window appointment.
Wherein, the described subwindow that creates corresponding described other programs according to described message informing, more described subwindow is added in described group of windows; The show state of determining the subwindow creating according to default subwindow name information, comprising:
According to described message informing, create the subwindow of corresponding described other programs, and obtain the window handle of this subwindow, more described subwindow is added in described group of windows;
According to the window handle of default subwindow name information and acquisition, determine the show state of the subwindow creating.
Wherein, the default subwindow name information of described basis is determined the show state of the subwindow creating, and comprising:
According to the window name acquiring default subwindow name information corresponding with it of the subwindow creating,
According to default subwindow name information, obtain the default subwindow show state corresponding with it,
According to default subwindow show state, determine the show state of the subwindow creating; Wherein, described show state comprise manifest, hide, display position, demonstration size and show levels.
Wherein, the default subwindow name information of described basis also comprises after determining the show state of the subwindow creating:
Described main window, by transferring the window handle that subwindow is corresponding, is adjusted the show state that refreshes this subwindow.
Wherein, described adjustment refreshes the show state of this subwindow, comprising: this subwindow is revealed in to screen or is hidden in screen.
Wherein, described main window, by transferring the window handle that subwindow is corresponding, is adjusted the show state that refreshes this subwindow, comprising:
Described main window arranges the display position information of subwindow, described display position information is converted to the coordinate display position information of subwindow initial point, according to described coordinate display position information and by transferring the window handle that this subwindow is corresponding, adjust the display position that refreshes this subwindow; Or,
Described main window arranges the demonstration size information of subwindow, the conversion that described demonstration size information is converted to subwindow according to preset algorithm shows size information, according to described conversion, show size information and by transferring the window handle that this subwindow is corresponding, adjust the demonstration size that refreshes this subwindow; Or,
Described main window receives the instruction of promoter windows exchange function, promoter windows exchange function;
Described main window receives by the full screen display of the subwindow transmission of current non-full frame state and asks, and by the graphical interfaces framework of QNX onboard system, is obtained and preserved the show state of the subwindow that sends this request;
According to the window title of the window title of full screen display subwindow and request full screen display subwindow, transfer each self-corresponding window handle, will after the show state exchange of two subwindows, refresh demonstration.
Second aspect, provides a kind of device of realizing picture-in-picture based on QNX onboard system, comprising:
Create main window module, for receiving the instruction that starts picture-in-picture program, start picture-in-picture program, create main window and the group of windows corresponding with it;
Start and add module, for when starting other programs, other programs send request the message adding to described group of windows;
Create subwindow module, for send request the process of the message adding to described group of windows in other programs, described main window receives the message informing that the graphical interfaces framework based on QNX onboard system sends, according to described message informing, create the subwindow of corresponding described other programs, more described subwindow is added in described group of windows;
Determine subwindow display module, for determine the show state of the subwindow creating according to default subwindow name information.
Wherein, described startup adds module, also for start other programs at main window, and the window title of the subwindow of corresponding other programs of main window appointment and group of windows title to be added; Other programs send request to the group of windows of the group of windows title of corresponding main window appointment the message adding, the parent window title that described subwindow is corresponding is set to the window title of main window appointment, and joins the group of windows of the group of windows title of corresponding main window appointment;
Wherein, the described subwindow that creates corresponding described other programs according to described message informing, more described subwindow is added in described group of windows; The show state of determining the subwindow creating according to default subwindow name information, comprising:
According to described message informing, create the subwindow of corresponding described other programs, and obtain the window handle of this subwindow, more described subwindow is added in described group of windows;
According to the window handle of default subwindow name information and acquisition, determine the show state of the subwindow creating;
Described definite subwindow display module, also for according to the window name acquiring default subwindow name information corresponding with it of the subwindow creating, according to default subwindow name information, obtain the default subwindow show state corresponding with it, according to default subwindow show state, determine the show state of the subwindow creating; Wherein, described show state comprise manifest, hide, display position, demonstration size and show levels.
Wherein, the described device of realizing picture-in-picture based on QNX onboard system also comprises adjusts subwindow display module, and described adjustment subwindow display module, by transferring the window handle that subwindow is corresponding, adjusts the show state that refreshes this subwindow for described main window;
Wherein, described adjustment refreshes the show state of this subwindow, comprising: this subwindow is revealed in to screen or is hidden in screen;
Described adjustment subwindow display module, the display position information of subwindow is also set for described main window, described display position information is converted to the coordinate display position information of subwindow initial point, according to described coordinate display position information and by transferring the window handle that this subwindow is corresponding, adjust the display position that refreshes this subwindow; Or,
Described main window arranges the demonstration size information of subwindow, the conversion that described demonstration size information is converted to subwindow according to preset algorithm shows size information, according to described conversion, show size information and by transferring the window handle that this subwindow is corresponding, adjust the demonstration size that refreshes this subwindow; Or,
Described main window receives the instruction of promoter windows exchange function, promoter windows exchange function;
Described main window receives by the full screen display of the subwindow transmission of current non-full frame state and asks, and by the graphical interfaces framework of QNX onboard system, is obtained and preserved the show state of the subwindow that sends this request;
According to the window title of the window title of full screen display subwindow and request full screen display subwindow, transfer each self-corresponding window handle, will after the show state exchange of two subwindows, refresh demonstration.
Beneficial effect of the present invention is: a kind of method and apparatus of realizing picture-in-picture based on QNX onboard system, comprises that establishment main window module, startup add module, create subwindow module and definite subwindow display module; Described establishment main window module, for receiving the instruction that starts picture-in-picture program, starts picture-in-picture program, creates main window and the group of windows corresponding with it; Described startup adds module, and for when starting other programs, other programs send request the message adding to described group of windows; Described establishment subwindow module, for send request the process of the message adding to described group of windows in other programs, described main window receives the message informing that the graphical interfaces framework based on QNX onboard system sends, according to described message informing, create the subwindow of corresponding described other programs, more described subwindow is added in described group of windows; Described definite subwindow display module, for determining the show state of the subwindow creating according to default subwindow name information.Other programs of subwindow and follow-up startup are corresponding one by one, determine the show state of subwindow, determine the show state with other programs of subwindow follow-up startup one to one, main window is determined the show state of this subwindow according to default subwindow name information, user can allow a plurality of subwindows be revealed in screen by setting in advance simultaneously.Visible, should realize based on QNX onboard system the method and apparatus of picture-in-picture, can in QNX onboard system, show a plurality of Application Program Interfaces simultaneously, realized the picture-in-picture function of QNX onboard system, enrich greatly the user interface form of expression of onboard system, met the growing user's demand for experience of client.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during the embodiment of the present invention is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to the content of the embodiment of the present invention and these accompanying drawings other accompanying drawing.
Fig. 1 is the method flow diagram of realizing first embodiment of method of picture-in-picture based on QNX onboard system provided by the invention.
Fig. 2 is the method flow diagram of realizing second embodiment of method of picture-in-picture based on QNX onboard system provided by the invention.
Fig. 3 is that adjustment provided by the invention refreshes the display position of subwindow and shows big or small flow chart.
Fig. 4 is the flow chart that the show state of full screen display subwindow provided by the invention and non-full screen display subwindow switches.
Fig. 5 is the block diagram that realizes first embodiment of device of picture-in-picture based on QNX onboard system provided by the invention.
Fig. 6 is the block diagram that realizes second embodiment of device of picture-in-picture based on QNX onboard system provided by the invention.
Embodiment
For the technical scheme of technical problem that the present invention is solved, employing and the technique effect that reaches clearer, below in conjunction with accompanying drawing, the technical scheme of the embodiment of the present invention is described in further detail, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those skilled in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Please refer to Fig. 1, it is the method flow diagram of realizing first embodiment of method of picture-in-picture based on QNX onboard system provided by the invention.What the embodiment of the present invention provided realizes the method for picture-in-picture based on QNX onboard system, can be applicable to various vehicle-mounted monitoring systems, vehicle GPS, 3G onboard system or inter-vehicle information system etc.
Should based on QNX onboard system, realize the method for picture-in-picture, comprise:
Step S101, receive the instruction that starts picture-in-picture program, start picture-in-picture program, create main window and the group of windows corresponding with it.
QNX operating system is distributed, embedded, a real time operating system that can Expansion.It follows POSIX.1 (routine interface) and POSIX.2 (Shell and instrument), part are followed POSIX.1b (real-time extension).QNX onboard system is about to QNX operating system and is applied to onboard system, and its core only provides 4 kinds of services: process scheduling, interprocess communication, bottom-layer network communication and interruption are processed, and its process is in independently address space operation.All other OS serve, and are all embodied as the consumer process of cooperation, so QNX operating system kernel very small and exquisite (QNX4.X is approximately 12Kb), and the speed of service is exceedingly fast.
For easy to use, the automatic picture-in-picture program that starts while starting QNX onboard system can be set.Certainly, also the icon that starts picture-in-picture program can be revealed in to screen, when this icon receives triggering command, think and receive the instruction that starts picture-in-picture program, start picture-in-picture program.
Step S102, when starting other programs, other programs send request the message adding to described group of windows.
For convenience of explanation, in the present invention, other programs can be exemplified as navigate application and entertainment information play-back application.More than for example only for convenience of explanation, do not represent that other programs are above-mentioned two application programs.Other programs are not appointed as certain application-specific, so long as the application program of the graphical interfaces Development of Framework based on QNX onboard system all can.
Step S103, in other programs, to described group of windows, send request in the process of the message adding, described main window receives the message informing that the graphical interfaces framework based on QNX onboard system sends, according to described message informing, create the subwindow of corresponding described other programs, more described subwindow is added in described group of windows.
It should be noted that, step S102 and step S103 do not have sequencing relation, step S102 and step S103 parallel practice.
Step S104, the default subwindow name information of basis are determined the show state of the subwindow creating.
In theory, this method that realizes picture-in-picture based on QNX onboard system can support numerous application program to manifest simultaneously.But be subject to master control borad resource limitation, be defined as at present maximum and can support 256 application program Display on the same screens.
Preferably, described subwindow comprises 1~8 subwindow.Group of windows is follow-up creates a plurality of subwindows, and current maximum subwindow number is defined as 8, according to ZORDER from 0 to 7, describes, more late the refreshing of subwindow that ZORDER is higher.If subwindow is revealed in screen, show that size is greater than other subwindows for non-full frame, ZORDER, this subwindow will unscreenedly be presented on the assigned address of main window.Main window is not may be blocked by other subwindows under the full frame show state manifesting.After starting picture-in-picture program, restart other two application programs while realizing PIP function, if the demonstration of subwindow size is full frame, the demonstration size of another subwindow need be less than full frame wide height.
This method realizes based on QNX onboard system, and current QNX onboard system has powerful efficient disposal ability.The powerful group of windows function of the graphical interfaces framework of QNX onboard system is that PIP realization provides a great convenience, and drops into without extra hardware, provides cost savings.The source of QNX onboard system support or application program number are not limit in theory, and support dynamically to adjust the show state that refreshes window, as changed the display position of window, the stacked relation of demonstration of change window etc.
To sum up, a kind of method that realizes picture-in-picture based on QNX onboard system, other programs of subwindow and follow-up startup are corresponding one by one, determine the show state of subwindow, determine the show state with other programs of subwindow follow-up startup one to one, main window is determined the show state of this subwindow according to default subwindow name information, user can allow a plurality of subwindows be revealed in screen by setting in advance simultaneously.Visible, should realize based on QNX onboard system the method for picture-in-picture, can in QNX onboard system, show a plurality of Application Program Interfaces simultaneously, realized the picture-in-picture function of QNX onboard system, enrich greatly the user interface form of expression of onboard system, met the growing user's demand for experience of client.
Please refer to Fig. 2, it is the method flow diagram of realizing second embodiment of method of picture-in-picture based on QNX onboard system provided by the invention.The present embodiment and the main distinction that realizes first embodiment of method of picture-in-picture based on QNX onboard system have been to increase the concrete steps of show state of the subwindow of definite establishment.
Should based on QNX onboard system, realize the method for picture-in-picture, comprise:
Step S201, receive the instruction that starts picture-in-picture program, start picture-in-picture program, create main window and the group of windows corresponding with it.
Step S202, when starting other programs, other programs send request the message adding to described group of windows.
Wherein, described when starting other programs, other programs send request the message adding to described group of windows; Comprise:
In main window, start other programs, the window title of the subwindow of corresponding other programs of main window appointment and group of windows title to be added;
Other programs send request to the group of windows of the group of windows title of corresponding main window appointment the message adding,
The parent window title that described subwindow is corresponding is set to the window title of main window appointment, and joins the group of windows of the group of windows title of corresponding main window appointment.
Step S203, in other programs, to described group of windows, send request in the process of the message adding, described main window receives the message informing that the graphical interfaces framework based on QNX onboard system sends,
According to described message informing, create the subwindow of corresponding described other programs, and obtain the window handle of this subwindow, more described subwindow is added in described group of windows;
According to the window handle of default subwindow name information and acquisition, determine the show state of the subwindow creating.
By obtaining above, described other programs, message informing and subwindow three are corresponding one by one.
Wherein, the default subwindow name information of described basis is determined the show state of the subwindow creating, and comprising:
According to the window name acquiring default subwindow name information corresponding with it of the subwindow creating,
According to default subwindow name information, obtain the default subwindow show state corresponding with it,
According to default subwindow show state, determine the show state of the subwindow creating; Wherein, described show state comprise manifest, hide, display position, demonstration size and show levels.
Preferably, when subwindow creates, default subwindow show state is for hiding, and ZORDER is 0 (bottom).Main window receives message informing, obtains window handle and window title that this subwindow is corresponding.By window name acquiring, to current application program, according to logic of propositions before, the manifesting of subwindow is set, hides, display position, demonstration size and show levels.If now default subwindow show state is for manifesting, origin position coordinate is (0,0), and size is the wide height of screen, and now subwindow will cover main window completely and manifest.
Step S204, described main window, by transferring the window handle that subwindow is corresponding, are adjusted the show state that refreshes this subwindow.
Wherein, described adjustment refreshes the show state of this subwindow, comprising: this subwindow is revealed in to screen or is hidden in screen.
Wherein, described main window, by transferring the window handle that subwindow is corresponding, is adjusted the show state that refreshes this subwindow, comprising:
Described main window arranges the display position information of subwindow, described display position information is converted to the coordinate display position information of subwindow initial point, according to described coordinate display position information and by transferring the window handle that this subwindow is corresponding, adjust the display position that refreshes this subwindow; Or,
Described main window arranges the demonstration size information of subwindow, the conversion that described demonstration size information is converted to subwindow according to preset algorithm shows size information, according to described conversion, show size information and by transferring the window handle that this subwindow is corresponding, adjust the demonstration size that refreshes this subwindow; Or,
Described main window receives the instruction of promoter windows exchange function, promoter windows exchange function;
Described main window receives by the full screen display of the subwindow transmission of current non-full frame state and asks, and by the graphical interfaces framework of QNX onboard system, is obtained and preserved the show state of the subwindow that sends this request;
According to the window title of the window title of full screen display subwindow and request full screen display subwindow, transfer each self-corresponding window handle, will after the show state exchange of two subwindows, refresh demonstration.
When a plurality of application programs realize PIP function, default a plurality of application programs respectively corresponding subwindow show state, for being revealed in screen, can realize the function that simultaneously shows a plurality of Application Program Interfaces in QNX onboard system.
Please refer to Fig. 3, it is that adjustment provided by the invention refreshes the display position of subwindow and shows big or small flow chart.
As the display position of need customization subwindow, the display position information of subwindow is set by main window, this display position information is for user is by the input position information of touch-screen or mouse input, described display position information is converted to the coordinate display position information of subwindow initial point, reinforms main window and rear adjustment is set refreshes demonstration.The navigation subwindow of corresponding navigate application of take in Fig. 3 is example, has shown the flow process of adjusting the display position that refreshes navigation subwindow.
As the demonstration size of need customization subwindow, the demonstration size information of subwindow is set by main window, this shows that size information is for user is by the input size information of touch-screen or mouse input, the conversion that described demonstration size information is converted to subwindow according to preset algorithm shows size information, reinforms main window and rear adjustment is set refreshes demonstration.It is example that the entertainment information of corresponding entertainment information play-back application of take in Fig. 3 is play subwindow, has shown to adjust and has refreshed the flow process that entertainment information is play the demonstration size of subwindow.
Please refer to Fig. 4, it is the flow chart of the show state switching of full screen display subwindow provided by the invention and non-full screen display subwindow.
If need to realize the function that the show state of full screen display subwindow and non-full screen display subwindow switches, only need promoter windows exchange function, reinform the window title of the non-full screen display subwindow that main window need to switch.The show state of playing subwindow with navigation subwindow and the entertainment information of navigate application and entertainment information play-back application in Fig. 4 switches to example, has shown the flow process of the show state that switches the navigation subwindow of full screen display and the entertainment information subwindow of non-full screen display.
Should based on QNX onboard system, realize the method for picture-in-picture, first need to start a hypervisor, i.e. picture-in-picture program.After starting, create a main window, and create a group of windows based on this main window, hypervisor just becomes the main window of this group of windows.Other application programs of follow-up startup all initiatively join in the group of windows of this main window establishment with the form of subwindow.When each subwindow creates, main window all can be received the message informing that the graphical interfaces framework based on QNX onboard system sends, and getting the window handle corresponding to other application programs of follow-up startup, main window is stored this window handle so that call as operand follow-up dynamically adjustment in real time in the show state that refreshes subwindow.In addition, in order to distinguish other application programs of startup, so that some operations for particular application of follow-up execution, main window, in window handle corresponding to other application programs of obtaining follow-up startup, also can get the window title corresponding to other application programs of follow-up startup.
Preferably, this method realizes based on the integrated graphical window framework of onboard system QNX CAR V2.X platform, by wallpaper application program, navigate application and entertainment information play-back application, illustrate, wherein the corresponding main window of wallpaper application program, is the background applications of acquiescence demonstration.Here illustrate that user is provided with the automatic picture-in-picture program that starts while starting QNX onboard system.Navigate application and entertainment information play-back application correspond respectively to navigation subwindow and the entertainment information broadcasting subwindow that main window creates.After QNX onboard system starts, wallpaper application program starts at first, then navigate application and entertainment information play-back application follow-up startup respectively.The corresponding navigate application of main window and entertainment information play-back application have created navigation subwindow and entertainment information broadcasting subwindow, and navigation subwindow and entertainment information are play subwindow and according to default subwindow name information, determined respectively the show state of himself.When navigate application and the startup of entertainment information play-back application, main window can obtain respectively two message informings that the graphical interfaces framework based on QNX onboard system sends, and also can get respectively the window handle that navigation subwindow and entertainment information are play subwindow simultaneously.The window handle of playing subwindow by calling navigation subwindow and entertainment information can arrange that navigation subwindow and entertainment information are play the manifesting of subwindow, hidden, display position, demonstration size and show levels, but also can adjust in real time the show state that refreshes subwindow, such as the entertainment information of the navigation subwindow of full screen display and non-full screen display being play to the show state of subwindow, switch, thereby reach the effect that PIP (picture-in-picture) shows.
To sum up, for onboard system, the significance level of navigation information will be higher than entertainment information (as video, audio frequency).The current onboard system of not supporting that PIP shows cannot also be presented in the lump user by navigation information when playing entertainment information, or client must be interrupted the output of entertainment information when need to obtaining navigation information.If what adopt that the technical program provides realizes the method for picture-in-picture based on QNX onboard system, can meet user and on the screen of same onboard system, show the demand of entertainment information and navigation information simultaneously, do not need the output of any one application program wherein to interrupt processing, and can adjust in real time the show state that refreshes the corresponding subwindow of each application program interface, enrich greatly the user interface form of expression of onboard system, met the growing user's demand for experience of client.
For what the embodiment of the present invention provided, based on QNX onboard system, realize device 1 embodiment of picture-in-picture below.Device 1 embodiment and the above-mentioned embodiment of the method that realizes picture-in-picture based on QNX onboard system that based on QNX onboard system, realize picture-in-picture belong to same design, based on QNX onboard system, realize in device 1 embodiment of picture-in-picture the not detail content of detailed description, can be with reference to the above-mentioned embodiment of the method that realizes picture-in-picture based on QNX onboard system.
Please refer to Fig. 5, it is the block diagram that realizes device 1 first embodiment of picture-in-picture based on QNX onboard system provided by the invention.The device 1 of realizing picture-in-picture based on QNX onboard system provided by the invention can be applicable to various vehicle monitor terminals, GPS terminal, 3G car-mounted terminal or board information terminal etc.
Should based on QNX onboard system, realize the device 1 of picture-in-picture, comprise:
Create main window module 10, for receiving the instruction that starts picture-in-picture program, start picture-in-picture program, create main window and the group of windows corresponding with it;
Start and add module 20, for when starting other programs, other programs send request the message adding to described group of windows;
Create subwindow module 30, for send request the process of the message adding to described group of windows in other programs, described main window receives the message informing that the graphical interfaces framework based on QNX onboard system sends, according to described message informing, create the subwindow of corresponding described other programs, more described subwindow is added in described group of windows;
Determine subwindow display module 40, for determine the show state of the subwindow creating according to default subwindow name information.
To sum up, a kind of device 1 of realizing picture-in-picture based on QNX onboard system, other programs of subwindow and follow-up startup are corresponding one by one, determine the show state of subwindow, determine the show state with other programs of subwindow follow-up startup one to one, main window is determined the show state of this subwindow according to default subwindow name information, user can allow a plurality of subwindows be revealed in screen by setting in advance simultaneously.Visible, should realize based on QNX onboard system the device 1 of picture-in-picture, can in QNX onboard system, show a plurality of Application Program Interfaces simultaneously, realized the picture-in-picture function of QNX onboard system, enrich greatly the user interface form of expression of onboard system, met the growing user's demand for experience of client.
Please refer to Fig. 6, it is the block diagram that realizes 1 second embodiment of device of picture-in-picture based on QNX onboard system provided by the invention.The present embodiment is to have increased adjustment subwindow display module 50 with the main distinction that realizes device 1 first embodiment of picture-in-picture based on QNX onboard system.
Should based on QNX onboard system, realize the device 1 of picture-in-picture, comprise:
Create main window module 10, for receiving the instruction that starts picture-in-picture program, start picture-in-picture program, create main window and the group of windows corresponding with it;
Start and add module 20, for when starting other programs, other programs send request the message adding to described group of windows;
Create subwindow module 30, for send request the process of the message adding to described group of windows in other programs, described main window receives the message informing that the graphical interfaces framework based on QNX onboard system sends, according to described message informing, create the subwindow of corresponding described other programs, more described subwindow is added in described group of windows;
Determine subwindow display module 40, for determine the show state of the subwindow creating according to default subwindow name information.
Wherein, described startup adds module 20, also for start other programs at main window, and the window title of the subwindow of corresponding other programs of main window appointment and group of windows title to be added; Other programs send request to the group of windows of the group of windows title of corresponding main window appointment the message adding, the parent window title that described subwindow is corresponding is set to the window title of main window appointment, and joins the group of windows of the group of windows title of corresponding main window appointment;
Wherein, the described subwindow that creates corresponding described other programs according to described message informing, more described subwindow is added in described group of windows; The show state of determining the subwindow creating according to default subwindow name information, comprising:
According to described message informing, create the subwindow of corresponding described other programs, and obtain the window handle of this subwindow, more described subwindow is added in described group of windows;
According to the window handle of default subwindow name information and acquisition, determine the show state of the subwindow creating;
Described definite subwindow display module 40, also for according to the window name acquiring default subwindow name information corresponding with it of the subwindow creating, according to default subwindow name information, obtain the default subwindow show state corresponding with it, according to default subwindow show state, determine the show state of the subwindow creating; Wherein, described show state comprise manifest, hide, display position, demonstration size and show levels.
Wherein, the described device 1 of realizing picture-in-picture based on QNX onboard system also comprises adjusts subwindow display module 50, described adjustment subwindow display module 50, by transferring the window handle that subwindow is corresponding, adjusts the show state that refreshes this subwindow for described main window;
Wherein, described adjustment refreshes the show state of this subwindow, comprising: this subwindow is revealed in to screen or is hidden in screen;
Described adjustment subwindow display module 50, the display position information of subwindow is also set for described main window, described display position information is converted to the coordinate display position information of subwindow initial point, according to described coordinate display position information and by transferring the window handle that this subwindow is corresponding, adjust the display position that refreshes this subwindow; Or,
Described main window arranges the demonstration size information of subwindow, the conversion that described demonstration size information is converted to subwindow according to preset algorithm shows size information, according to described conversion, show size information and by transferring the window handle that this subwindow is corresponding, adjust the demonstration size that refreshes this subwindow; Or,
Described main window receives the instruction of promoter windows exchange function, promoter windows exchange function;
Described main window receives by the full screen display of the subwindow transmission of current non-full frame state and asks, and by the graphical interfaces framework of QNX onboard system, is obtained and preserved the show state of the subwindow that sends this request;
According to the window title of the window title of full screen display subwindow and request full screen display subwindow, transfer each self-corresponding window handle, will after the show state exchange of two subwindows, refresh demonstration.
To sum up, what adopt that the technical program provides realizes the device 1 of picture-in-picture based on QNX onboard system, can meet user and on the screen of same onboard system, show the demand of entertainment information and navigation information simultaneously, do not need the output of any one application program wherein to interrupt processing, and can adjust in real time the show state that refreshes the corresponding subwindow of each application program interface, enrich greatly the user interface form of expression of onboard system, met the growing user's demand for experience of client.
A kind of method and apparatus of realizing picture-in-picture based on QNX onboard system, can in QNX onboard system, show a plurality of Application Program Interfaces simultaneously, realized the picture-in-picture function of QNX onboard system, enrich greatly the user interface form of expression of onboard system, met the growing user's demand for experience of client.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, this program can be stored in a computer-readable recording medium, and storage medium can comprise memory, disk or CD etc.
Above content is only preferred embodiment of the present invention, for those of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, and this description should not be construed as limitation of the present invention.

Claims (10)

1. based on QNX onboard system, realize a method for picture-in-picture, it is characterized in that, comprising:
Receive the instruction that starts picture-in-picture program, start picture-in-picture program, create main window and the group of windows corresponding with it;
When starting other programs, other programs send request the message adding to described group of windows;
In other programs, to described group of windows, send request in the process of the message adding, described main window receives the message informing that the graphical interfaces framework based on QNX onboard system sends, according to described message informing, create the subwindow of corresponding described other programs, more described subwindow is added in described group of windows;
According to default subwindow name information, determine the show state of the subwindow creating.
2. the method that realizes picture-in-picture based on QNX onboard system according to claim 1, is characterized in that, described when starting other programs, other programs send request the message adding to described group of windows; Comprise:
In main window, start other programs, the window title of the subwindow of corresponding other programs of main window appointment and group of windows title to be added;
Other programs send request to the group of windows of the group of windows title of corresponding main window appointment the message adding,
The parent window title that described subwindow is corresponding is set to the window title of main window appointment, and joins the group of windows of the group of windows title of corresponding main window appointment.
3. the method that realizes picture-in-picture based on QNX onboard system according to claim 1, is characterized in that, the described subwindow that creates corresponding described other programs according to described message informing, more described subwindow is added in described group of windows; The show state of determining the subwindow creating according to default subwindow name information, comprising:
According to described message informing, create the subwindow of corresponding described other programs, and obtain the window handle of this subwindow, more described subwindow is added in described group of windows;
According to the window handle of default subwindow name information and acquisition, determine the show state of the subwindow creating.
4. the method that realizes picture-in-picture based on QNX onboard system according to claim 1, is characterized in that, the default subwindow name information of described basis is determined the show state of the subwindow creating, and comprising:
According to the window name acquiring default subwindow name information corresponding with it of the subwindow creating,
According to default subwindow name information, obtain the default subwindow show state corresponding with it,
According to default subwindow show state, determine the show state of the subwindow creating; Wherein, described show state comprise manifest, hide, display position, demonstration size and show levels.
5. the method that realizes picture-in-picture based on QNX onboard system according to claim 3, is characterized in that, the default subwindow name information of described basis also comprises after determining the show state of the subwindow creating:
Described main window, by transferring the window handle that subwindow is corresponding, is adjusted the show state that refreshes this subwindow.
6. the method that realizes picture-in-picture based on QNX onboard system according to claim 5, is characterized in that, described adjustment refreshes the show state of this subwindow, comprising: this subwindow is revealed in to screen or is hidden in screen.
7. the method that realizes picture-in-picture based on QNX onboard system according to claim 5, is characterized in that, described main window, by transferring the window handle that subwindow is corresponding, is adjusted the show state that refreshes this subwindow, comprising:
Described main window arranges the display position information of subwindow, described display position information is converted to the coordinate display position information of subwindow initial point, according to described coordinate display position information and by transferring the window handle that this subwindow is corresponding, adjust the display position that refreshes this subwindow; Or,
Described main window arranges the demonstration size information of subwindow, the conversion that described demonstration size information is converted to subwindow according to preset algorithm shows size information, according to described conversion, show size information and by transferring the window handle that this subwindow is corresponding, adjust the demonstration size that refreshes this subwindow; Or,
Described main window receives the instruction of promoter windows exchange function, promoter windows exchange function;
Described main window receives by the full screen display of the subwindow transmission of current non-full frame state and asks, and by the graphical interfaces framework of QNX onboard system, is obtained and preserved the show state of the subwindow that sends this request;
According to the window title of the window title of full screen display subwindow and request full screen display subwindow, transfer each self-corresponding window handle, will after the show state exchange of two subwindows, refresh demonstration.
8. based on QNX onboard system, realize a device for picture-in-picture, it is characterized in that, comprising:
Create main window module, for receiving the instruction that starts picture-in-picture program, start picture-in-picture program, create main window and the group of windows corresponding with it;
Start and add module, for when starting other programs, other programs send request the message adding to described group of windows;
Create subwindow module, for send request the process of the message adding to described group of windows in other programs, described main window receives the message informing that the graphical interfaces framework based on QNX onboard system sends, according to described message informing, create the subwindow of corresponding described other programs, more described subwindow is added in described group of windows;
Determine subwindow display module, for determine the show state of the subwindow creating according to default subwindow name information.
9. the device of realizing picture-in-picture based on QNX onboard system according to claim 8, is characterized in that:
Described startup adds module, also for start other programs at main window, and the window title of the subwindow of corresponding other programs of main window appointment and group of windows title to be added; Other programs send request to the group of windows of the group of windows title of corresponding main window appointment the message adding, the parent window title that described subwindow is corresponding is set to the window title of main window appointment, and joins the group of windows of the group of windows title of corresponding main window appointment;
Wherein, the described subwindow that creates corresponding described other programs according to described message informing, more described subwindow is added in described group of windows; The show state of determining the subwindow creating according to default subwindow name information, comprising:
According to described message informing, create the subwindow of corresponding described other programs, and obtain the window handle of this subwindow, more described subwindow is added in described group of windows;
According to the window handle of default subwindow name information and acquisition, determine the show state of the subwindow creating;
Described definite subwindow display module, also for according to the window name acquiring default subwindow name information corresponding with it of the subwindow creating, according to default subwindow name information, obtain the default subwindow show state corresponding with it, according to default subwindow show state, determine the show state of the subwindow creating; Wherein, described show state comprise manifest, hide, display position, demonstration size and show levels.
10. the device of realizing picture-in-picture based on QNX onboard system according to claim 9, is characterized in that:
The described device of realizing picture-in-picture based on QNX onboard system also comprises adjusts subwindow display module, and described adjustment subwindow display module, by transferring the window handle that subwindow is corresponding, adjusts the show state that refreshes this subwindow for described main window;
Wherein, described adjustment refreshes the show state of this subwindow, comprising: this subwindow is revealed in to screen or is hidden in screen;
Described adjustment subwindow display module, the display position information of subwindow is also set for described main window, described display position information is converted to the coordinate display position information of subwindow initial point, according to described coordinate display position information and by transferring the window handle that this subwindow is corresponding, adjust the display position that refreshes this subwindow; Or,
Described main window arranges the demonstration size information of subwindow, the conversion that described demonstration size information is converted to subwindow according to preset algorithm shows size information, according to described conversion, show size information and by transferring the window handle that this subwindow is corresponding, adjust the demonstration size that refreshes this subwindow; Or,
Described main window receives the instruction of promoter windows exchange function, promoter windows exchange function;
Described main window receives by the full screen display of the subwindow transmission of current non-full frame state and asks, and by the graphical interfaces framework of QNX onboard system, is obtained and preserved the show state of the subwindow that sends this request;
According to the window title of the window title of full screen display subwindow and request full screen display subwindow, transfer each self-corresponding window handle, will after the show state exchange of two subwindows, refresh demonstration.
CN201410226114.8A 2014-05-26 2014-05-26 A kind of method and apparatus that picture-in-picture is realized based on QNX onboard systems Active CN103986961B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410226114.8A CN103986961B (en) 2014-05-26 2014-05-26 A kind of method and apparatus that picture-in-picture is realized based on QNX onboard systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410226114.8A CN103986961B (en) 2014-05-26 2014-05-26 A kind of method and apparatus that picture-in-picture is realized based on QNX onboard systems

Publications (2)

Publication Number Publication Date
CN103986961A true CN103986961A (en) 2014-08-13
CN103986961B CN103986961B (en) 2017-11-21

Family

ID=51278770

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410226114.8A Active CN103986961B (en) 2014-05-26 2014-05-26 A kind of method and apparatus that picture-in-picture is realized based on QNX onboard systems

Country Status (1)

Country Link
CN (1) CN103986961B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109798913A (en) * 2019-03-12 2019-05-24 深圳市天之眼高新科技有限公司 Display methods, device and the storage medium of navigation interface
CN109932968A (en) * 2019-03-20 2019-06-25 常州新途软件有限公司 A method of the onboard system interprocess communication based on PPS service
CN110659010A (en) * 2019-09-20 2020-01-07 青岛海信移动通信技术股份有限公司 Picture-in-picture display method and display equipment
CN111625154A (en) * 2019-12-23 2020-09-04 蘑菇车联信息科技有限公司 Application display method and device
CN113542848A (en) * 2021-06-22 2021-10-22 惠州市德赛西威汽车电子股份有限公司 Vehicle-mounted image window self-defining adjusting method and vehicle-mounted system
US20230152945A1 (en) * 2021-03-01 2023-05-18 Boe Technology Group Co., Ltd. Interface display method and apparatus, computer readable storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756324A (en) * 2004-09-28 2006-04-05 歌拉利旺株式会社 Vehicle-mounted displaying device employing TV program displaying method
US20090193355A1 (en) * 2008-01-25 2009-07-30 Kabushiki Kaisha Toshiba Information processing apparatus and display control method
CN102291972A (en) * 2011-04-18 2011-12-21 查闻 Multifunctional navigating vehicle-mounted computer monitor
CN102662658A (en) * 2012-03-20 2012-09-12 深圳市路畅科技股份有限公司 Method for embedding audio application in navigation software interface

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756324A (en) * 2004-09-28 2006-04-05 歌拉利旺株式会社 Vehicle-mounted displaying device employing TV program displaying method
US20090193355A1 (en) * 2008-01-25 2009-07-30 Kabushiki Kaisha Toshiba Information processing apparatus and display control method
CN102291972A (en) * 2011-04-18 2011-12-21 查闻 Multifunctional navigating vehicle-mounted computer monitor
CN102662658A (en) * 2012-03-20 2012-09-12 深圳市路畅科技股份有限公司 Method for embedding audio application in navigation software interface

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
冯永: "《Visual C++.NET学习教程》", 30 November 2001 *
同志工作室: "《VisualBasic6.0API函数开发实例》", 31 December 2000 *
李善平等: "《Linux与嵌入式系统》", 31 January 2003 *
董士海: "《窗口系统引论》", 31 January 1996 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109798913A (en) * 2019-03-12 2019-05-24 深圳市天之眼高新科技有限公司 Display methods, device and the storage medium of navigation interface
CN109932968A (en) * 2019-03-20 2019-06-25 常州新途软件有限公司 A method of the onboard system interprocess communication based on PPS service
CN110659010A (en) * 2019-09-20 2020-01-07 青岛海信移动通信技术股份有限公司 Picture-in-picture display method and display equipment
CN111625154A (en) * 2019-12-23 2020-09-04 蘑菇车联信息科技有限公司 Application display method and device
CN111625154B (en) * 2019-12-23 2021-10-08 蘑菇车联信息科技有限公司 Application display method and device
US20230152945A1 (en) * 2021-03-01 2023-05-18 Boe Technology Group Co., Ltd. Interface display method and apparatus, computer readable storage medium and electronic device
US11907503B2 (en) * 2021-03-01 2024-02-20 Boe Technology Group Co., Ltd. Switching display of page between a window of a graphical user interface and an independent child window
CN113542848A (en) * 2021-06-22 2021-10-22 惠州市德赛西威汽车电子股份有限公司 Vehicle-mounted image window self-defining adjusting method and vehicle-mounted system
CN113542848B (en) * 2021-06-22 2024-04-02 惠州市德赛西威汽车电子股份有限公司 Vehicle-mounted image window custom adjustment method and vehicle-mounted system

Also Published As

Publication number Publication date
CN103986961B (en) 2017-11-21

Similar Documents

Publication Publication Date Title
CN103986961A (en) Method and device for achieving picture in picture based on QNX vehicle-mounted system
US20190272142A1 (en) Method for sharing screen between devices and device using the same
US20160048412A1 (en) Method and apparatus for switching applications
CN106162279B (en) Television remote control key response method based on android operating system and television
US20140188335A1 (en) Adaptive experience framework for an ambient intelligent environment
CN107113468B (en) Mobile computing equipment, implementation method and computer storage medium
WO2016023265A1 (en) Window display processing method in split-screen mode, electronic device and storage medium
CN102215432A (en) Television system, television system starting method and device
EP2690550A1 (en) Method and apparatus for displaying a multi-task interface
CN111790148B (en) Information interaction method and device in game scene and computer readable medium
CN103634682A (en) Global setting implementation method and device for intelligent televisions
CN104572322A (en) Method for operating terminal screen
CN112272417A (en) double-Bluetooth sound box reconnection method and display device
CN113342230A (en) Control display method, device, equipment and medium
JP2023547821A (en) Control method and device, and electronic device
CN109145273B (en) Comment following display method, device, equipment and storage medium
KR20130108952A (en) Implementation method of pip by using separate application package on android platform
CN108141697B (en) Electronic device, corollary device and method for operating electronic device
CN115269048A (en) Concurrency control method of application program, electronic device and readable storage medium
KR20130057588A (en) Control appratus and method for window making another process in a portable terminal
CN107015874B (en) Data transmission control method, device and terminal
CN112363683A (en) Method for supporting multi-layer display of webpage application and display equipment
US10391394B2 (en) System and method for providing a software application controller
CN110704141A (en) Page switching method and device and electronic equipment
JP2019021277A (en) On-vehicle system

Legal Events

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