CN105872666B - Mode switching method and device - Google Patents

Mode switching method and device Download PDF

Info

Publication number
CN105872666B
CN105872666B CN201610298372.6A CN201610298372A CN105872666B CN 105872666 B CN105872666 B CN 105872666B CN 201610298372 A CN201610298372 A CN 201610298372A CN 105872666 B CN105872666 B CN 105872666B
Authority
CN
China
Prior art keywords
display
video
parameters
area
difference
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.)
Active
Application number
CN201610298372.6A
Other languages
Chinese (zh)
Other versions
CN105872666A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610298372.6A priority Critical patent/CN105872666B/en
Publication of CN105872666A publication Critical patent/CN105872666A/en
Application granted granted Critical
Publication of CN105872666B publication Critical patent/CN105872666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47205End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Abstract

The invention discloses one mode switching method and devices, belong to video broadcasting field.The described method includes: detecting whether to receive mode switching signal, which, which is used to indicate, is switched to the second display pattern from the first display pattern being presently in for video display area;When receiving mode switching signal, according to the first display pattern and the corresponding display parameters of the second display pattern, calculate at least one set of intermediate display parameters, display parameters are used to indicate the display position of video display area and display size under corresponding display pattern, and display parameters are used to indicate real-time display position and the real-time display size of video display area in mode handover procedure among every group;Video display area is drawn according to display parameters among at least one set and real time video image frame.The embodiment of the present invention solves during application interface repaints, and video playing is discontinuous and generates video splashette phenomenon, influences the problem of user normally watches.

Description

Mode switching method and device
Technical field
The present embodiments relate to video broadcasting fields, in particular to one mode switching method and device.
Background technique
With the continuous development of video display arts, more and more application programs are configured with video playing in intelligent terminal Function.
When user plays video using the application program in intelligent terminal, application program usually with vertical screen mode to video into Row plays, and under vertical screen mode, video display area only takes up the part display area of intelligent terminal screen.It is more preferable in order to reach Video display effect, video being played on can be switched to transverse screen mould by vertical screen mode by rotary intelligent terminal by user Formula, under transverse screen mode, video display area occupies whole display areas of intelligent terminal screen.Video is switched by vertical screen mode During transverse screen mode, interface is arranged in the horizontal/vertical screen that application call intelligent terminal system provides, and passes through to application interface It crosses and repaints, application interface is converted into transverse screen application interface by vertical screen application interface, meanwhile, application program is by transverse screen application The display size of video display area is set as intelligent terminal screen size in interface, to realize the played in full screen of video.
During realizing the embodiment of the present invention, inventor find above-mentioned technology the prior art has at least the following problems:
During application interface repaints, video playing will be interrupted, and video is caused to be switched to transverse screen by vertical screen mode Video playing is discontinuous when mode and generates video splashette phenomenon, influences the normal viewing of user.
Summary of the invention
In order to solve during application interface repaints, video playing will be interrupted, and video is caused to be cut by vertical screen mode Video playing is discontinuous when being changed to transverse screen mode and generates video splashette phenomenon, influences the problem of user normally watches, the present invention Embodiment provides a kind of control display methods and device.The technical solution is as follows:
According to a first aspect of the embodiments of the present invention, one mode switching method is provided, this method comprises:
It detects whether to receive mode switching signal, which is used to indicate video display area from current The first locating display pattern is switched to the second display pattern;
When receiving mode switching signal, joined according to the first display pattern and the corresponding display of the second display pattern Number, calculates at least one set of intermediate display parameters, and display parameters are used to indicate the display of video display area under corresponding display pattern Position and display size, every group of centre display parameters are used to indicate the real-time display position of video display area in mode handover procedure It sets and real-time display size;
Video display area is drawn according to display parameters among at least one set and real time video image frame.
According to a second aspect of the embodiments of the present invention, one mode switching device is provided, which includes:
Detection module, for detecting whether receiving mode switching signal, mode switching signal, which is used to indicate, shows video Show that region is switched to the second display pattern from the first display pattern being presently in;
Computing module, it is each according to the first display pattern and the second display pattern for when receiving mode switching signal Self-corresponding display parameters, calculate at least one set of intermediate display parameters, and display parameters are used to indicate video under corresponding display pattern The display position of display area and display size, every group of centre display parameters are used to indicate video viewing area in mode handover procedure The real-time display position in domain and real-time display size;
Drafting module, for drawing video viewing area according to display parameters among at least one set and real time video image frame Domain.
Technical solution provided in an embodiment of the present invention has the benefit that
By according to the positions and dimensions of current video display area, and switching when receiving mode switching signal The positions and dimensions of mode rear video display area calculate real-time display position and the reality of video display area in handoff procedure When display size, and real time video image frame is combined to draw real-time video display area;It solves application interface to repaint In the process, video playing will interrupt, and video playing is discontinuous when video being caused to be switched to transverse screen mode by vertical screen mode and produces Raw video splashette phenomenon, influences the problem of user normally watches;Reach and has only needed to carry out display pattern to video display area Switching, without being repainted to entire application interface, to ensure that video in display pattern handoff procedure It is continuous to play, improve the viewing experience of user.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Figure 1A is the interface schematic diagram of normal displaying mode in the embodiment of the present invention;
Figure 1B is the interface schematic diagram of full-screen display mode in the embodiment of the present invention;
Fig. 2 is the flow chart of mode switching method provided by one embodiment of the present invention;
Fig. 3 A is the flow chart for the mode switching method that another embodiment of the present invention provides;
Fig. 3 B is the flow chart for the mode switching method that further embodiment of the present invention provides;
Fig. 3 C is the flow chart of display parameters difference calculating process involved in the mode switching method of Fig. 3 A offer;
Fig. 3 D is the interface schematic diagram for the mode switching method that Fig. 3 A is provided;
Fig. 4 is the structural block diagram of mode-changeover device provided by one embodiment of the present invention;
Fig. 5 is the structural block diagram for the mode-changeover device that another embodiment of the present invention provides;
Fig. 6 is the structural schematic diagram of electronic equipment provided by one embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
In order to facilitate understanding, noun involved in the embodiment of the present invention is explained below.
Normal displaying mode (vertical screen mode): refer to that video display area occupies the display pattern of part of screen display area. As shown in Figure 1A, under normal displaying mode, width of the width 111 of video display area 11 usually with on-screen display (osd) area 12 121 is identical, and the height 112 of video display area 11 is less than on-screen display (osd) area 122.
Full-screen display mode: refer to that video display area occupies the display pattern of entire on-screen display (osd) area.It is displayed in full screen mould Formula may include that vertical screen full-screen display mode, the full-screen display mode of falling vertical screen, left transverse screen full-screen display mode and right transverse screen are full frame Display pattern.Figure 1B (a) is the schematic diagram of video display area under vertical screen full-screen display mode;Figure 1B (b) is that vertical screen is full frame Under display pattern, the schematic diagram of video display area;Figure 1B (c) be right transverse screen full-screen display mode under, video display area Schematic diagram;Figure 1B (d) is the schematic diagram of video display area under left transverse screen full-screen display mode.It should be noted that working as video When the height of the video shown in display area is greater than width, the full-screen display mode of the video is usually vertical screen full screen display mould Formula or the full-screen display mode of falling vertical screen;When the height of the video shown in video display area be less than width when, the video it is complete Shielding display pattern is usually left transverse screen full-screen display mode or right transverse screen full-screen display mode.
Display parameters: display position and display size of the video display area in on-screen display (osd) area are used to indicate.For Unique positions of the determining video display area in on-screen display (osd) area generally comprise video display area in the display parameters Angles of display, display size and reference point coordinate.
Angles of display refers to the angle between video display area and video display area.For example, under normal displaying mode, Angle between video display area and on-screen display (osd) area is 0 ° as with reference to angle, then has in Figure 1B (a), video viewing area Angle between domain and on-screen display (osd) area is 0 °, in Figure 1B (b), the angle between video display area and on-screen display (osd) area For 180 ° (normal displaying mode shown in Figure 1A can be obtained by 180 ° of video display area reverse rotation), in Figure 1B (c), video is aobvious Show that the angle between region and on-screen display (osd) area is 90 ° and (90 ° of video display area reverse rotation can be obtained shown in Figure 1A just Normal display pattern), in Figure 1B (d), the angle between video display area and on-screen display (osd) area is -90 ° (by video viewing area Normal displaying mode shown in Figure 1A can be obtained in suitable be rotated by 90 ° in domain).
Display size refers to the size of video display area, which includes width and height.Under normal conditions, the display ruler Pixel shared by pixel shared by the very little width for referring to video display area and height.
Reference point coordinate refers to the coordinate of predetermined reference point in video display area.For example, the reference point can be aobvious for video Show the vertex in region, correspondingly, the reference point coordinate of the video display area is apex coordinate;For another example, which can The central point of video display area is thought, correspondingly, the reference point coordinate of the video display area is center point coordinate.
The mode switching method that each embodiment of the present invention provides, applied to the electronic equipment with video playback capability In, which can be smart phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player and pocket computer on knee (camera, video camera) etc..For the convenience of description, only switching method is applied to intelligence eventually in mode in following each embodiments It is illustrated for end, limiting the invention.
Referring to FIG. 2, it illustrates the flow chart of mode switching method provided by one embodiment of the present invention, the present embodiment Switching method is used to for intelligent terminal be illustrated in this mode, this method comprises:
Step 201, it detects whether to receive mode switching signal, mode switching signal is used to indicate video display area The second display pattern is switched to from the first display pattern being presently in.
Under normal conditions, video has plurality of display modes, for example, normal displaying mode and full-screen display mode are (full frame Display pattern can also be subdivided into vertical screen full-screen display mode and transverse screen full-screen display mode etc.).Wherein, under normal mode, Video display area only takes up part of screen display area, and under screen mode toggle, video display area occupies entire screen display area Domain.When user is using application program viewing video, the display pattern of video can be switched over according to actual needs.Accordingly , for application program during playing video, whether intelligent terminal real-time detection receives mode switching signal.
Step 203, it when receiving mode switching signal, is respectively corresponded to according to the first display pattern and the second display pattern Display parameters, calculate at least one set of intermediate display parameters, display parameters are used to indicate video viewing area under corresponding display pattern The display position in domain and display size, every group of centre display parameters are used to indicate the reality of video display area in mode handover procedure When display position and real-time display size.
Under different display modes, video display area corresponds to different display parameters, and intelligent terminal is cut in the mode of receiving When changing signal, according to the corresponding display parameters of video display area before and after pattern switching, at least one set is calculated and is used to indicate The intermediate display parameters of video display area real-time display position and real-time display size in mode handover procedure.
Wherein, display parameters may include the angles of display, display size and reference point coordinate of video display area;Accordingly , intermediate display parameters may include the real-time display angle of video display area in mode handover procedure, real-time display size With real-time reference point coordinate etc..
Step 205, the video viewing area is drawn according to display parameters among at least one set and real time video image frame Domain.
In order to guarantee the continuous broadcasting of video in display pattern handoff procedure, intelligent terminal is calculated among at least one set After display parameters, according to the video image frame for being playing video and at least one set of intermediate display parameters, carries out video and show The drafting in region, to achieve the effect that video continuously plays in mode handover procedure.
It is different from needing the horizontal/vertical screen for calling terminal system to provide setting interface to repaint application interface in the prior art Be (for example, call Android system in setRequestedOrientation method to horizontal/vertical screen display methods carry out Setting), in mode switching method provided in this embodiment, terminal is when receiving mode switching signal, it is only necessary to applying boundary The display position of video display area and display size are updated variation, during more new change, application interface in face Display pattern do not change, only video display area is changed;While video display area changes, video It is continuous to play, the phenomenon that broadcasting is interrupted will not be generated.
In conclusion mode switching method provided in this embodiment, by when receiving mode switching signal, according to working as The positions and dimensions of preceding video display area and the positions and dimensions of switch mode rear video display area, calculate switching The real-time display position of video display area and real-time display size in the process, and it is real-time to combine real time video image frame to draw Video display area;It solves during application interface repaints, video playing will interrupt, and cause video by vertical screen mode Video playing is discontinuous when being switched to transverse screen mode and generates video splashette phenomenon, influences the problem of user normally watches;Reach The switching for only needing to carry out video display area display pattern, without being repainted to entire application interface, To ensure that the continuous broadcasting of video in display pattern handoff procedure, the viewing experience of user is improved.
In order to determine unique positions of the video display area in on-screen display (osd) area, video display area is in different displays Under mode corresponding display parameters at least need include video display area angles of display, display size and reference point coordinate. Correspondingly, including display in the intermediate display parameters that intelligent terminal is calculated according to the first display pattern and the second display pattern Angle difference, display size difference and display distance difference.It is illustrated below using an illustrative examples.
Fig. 3 A is please referred to, it illustrates the flow chart for the mode switching method that another embodiment of the present invention provides, this realities Applying example, switching method is used to for smart phone be illustrated in this mode, this method comprises:
Step 301, it detects whether to receive mode switching signal, mode switching signal is used to indicate video display area The second display pattern is switched to from the first display pattern being presently in.
When being equipped with gravity sensor in intelligent terminal, and opening gravity sensing function, user can be by changing intelligence Can the rotation angle of terminal the display pattern of video display area is switched over (for example intelligent terminal is rotated to be into cross by vertical screen Screen);It can also include that pattern switching component (for example full frame control and cancels full frame control in video display area in application program Part), when the user clicks when the pattern switching component, the display pattern of video display area can be switched over.As one kind Possible embodiment, as shown in Figure 3B, this step may include the possible embodiment of the following two kinds.
In a kind of possible embodiment, step 301A obtains the rotation angle of screen by gravity sensor;When this When rotating angle greater than predetermined angle threshold value, determination receives mode switching signal.
When playing video in application program, intelligent terminal is the rotation for passing through built-in gravity sensor and obtaining terminal screen Gyration.In order to avoid maloperation, when detecting that the rotation angle is greater than predetermined angle threshold value, intelligent terminal determination is received Mode switching signal, when the rotation angle is less than predetermined angle threshold value, intelligent terminal, which determines, does not receive mode switching signal (screen Curtain rotation is as caused by user's normal operating).
For example, predetermined angle threshold value can be 55 °, i.e., when rotating angle greater than 55 °, just determination receives intelligent terminal Mode switching signal.
In alternatively possible embodiment, step 301B detects whether to receive to mode in video display area The operation signal of changeover module;When receiving the operation signal to pattern switching component, determination receives mode switching signal.
It may include that pattern switching component (for example full frame control and cancels full frame control in video display area in application program Part), intelligent terminal is the operation signal for passing through the pattern switching component and receiving user's triggering.When receiving to the pattern switching group When the operation signal of part, intelligent terminal determination receives mode switching signal.
It should be noted that intelligent terminal can also be by other possible embodiment reception pattern switching signals, this Implementation is defined not to this.
Step 302, it is shown according to corresponding first display parameters of the first display pattern and the second display pattern corresponding second Show that parameter calculates display parameters difference.
Due to display size of the video display area under different display modes and display position difference, difference display Under mode, the corresponding display parameters of video display area are also different.When receiving mode switching signal, smart machine is obtained It is presently in corresponding first display parameters of the first display pattern and (after switch mode) second display pattern corresponding second Display parameters, and display parameters difference is calculated according to the first display parameters and the second display parameters.
In order to determine unique display position of the video display area in on-screen display (osd) area, the first display parameters and second At least need to include angles of display, display size and reference point coordinate in display parameters, correspondingly, according to the first display parameters and The display parameters difference that second display parameters are calculated includes angles of display difference (being calculated according to angles of display), display Dimension difference (being calculated according to display size) and display distance difference (being calculated according to reference point coordinate).
Based on Fig. 3 A, as shown in Figure 3 C, in a kind of possible embodiment, this step be may include steps of.
Step 302A, obtaining includes the first angles of display in the first display parameters, and the first angles of display is used to indicate first Angle under display pattern between video display area and on-screen display (osd) area.
It includes the first angles of display that intelligent terminal, which obtains in the first display parameters, which is current video Angle between display area and on-screen display (osd) area.For example, the first display pattern being presently in is normal displaying mode, depending on Angle between frequency display area and on-screen display (osd) area is 0 °;The first display pattern being presently in is that left transverse screen is full frame aobvious Show mode, the angle between video display area and on-screen display (osd) area is 90 °
It should be noted that the present embodiment, using normal displaying mode as reference model, video display area and screen are shown Angle between region is calculated on the basis of the reference model.In other possible embodiments, video viewing area Angle between domain and on-screen display (osd) area can also be obtained according to other benchmarks, and the present embodiment is limited not to this It is fixed.
Step 302B, obtaining includes the second angles of display in the second display parameters, and the second angles of display is used to indicate second Angle under display pattern between video display area and on-screen display (osd) area.
Similar with above-mentioned steps 302A, intelligent terminal calculates under the second display pattern, and video display area and screen are aobvious Show the angle (i.e. the second angles of display) between region.For example, when the second display pattern is vertical screen screen mode toggle, the second display Angle is 0 °, and when the second display pattern is right full-screen display mode, the second angles of display is -90 °.
Step 302C calculates angles of display difference according to the first angles of display and the second angles of display.
Wherein, angles of display difference=second the-the first angles of display of angles of display.
For example, when pattern switching instruction indicates the normal displaying mode by being presently in (corresponding first angles of display is 0 °) When being switched to left transverse screen display mode (corresponding second angles of display is 90 °), which is 90 ° -0 °=90 °, That is the video display area under the second display pattern can be by revolving the video display area under the first display pattern clockwise It is obtained after turning 90 °.
Angles of display difference is determined as display parameters difference by step 302D.
The angles of display difference being calculated is determined as display parameters difference by intelligent terminal.
Step 302E, obtains the first display size for including in the first display parameters, and the first display size is used to indicate the The width and height of video display area under one display pattern.
(or normal display mould is switched to by full-screen display mode when being switched to full-screen display mode by normal displaying mode Formula) when, the size of video display area can change, and therefore, after receiving pattern switching instruction, intelligent terminal obtains the The first display size for including in corresponding first display parameters of one display pattern.
For example, the first display pattern being presently in is normal displaying mode shown in figure 1A, intelligent terminal gets view The width 111 and height 112 of frequency display area 11, wherein the width of video display area is 720px, video display area Height is 300px.
Step 302F, obtains the second display size for including in the second display parameters, and the second display size is used to indicate the The width and height of video display area under two display patterns.
Similar with above-mentioned steps 302E, intelligent terminal, which obtains in corresponding second display parameters of the second display pattern, includes Second display size.
For example, when the second display pattern be Figure 1B (c) shown in left transverse screen full-screen display mode when, intelligent terminal is got The width of video display area is the height of on-screen display (osd) area, and the height of video display area is on-screen display (osd) area Width, wherein the width of video display area is 1280px, and the height of video display area is 720px.
Step 302G calculates display size difference, display size difference according to the first display size and the second display size Including width differential and height difference.
Wherein, display size difference=second the-the first display size of display size.
For example, in conjunction with above-mentioned steps 302E and step 302F the embodiment described, when video display area is by normally showing When pattern switching is left transverse screen full-screen display mode, the width differential=1280-720=560px for including in display size difference, Height difference=720-300=420px.
Display size difference is determined as display parameters difference by step 302H.
The display size difference being calculated is determined as display parameters difference by intelligent terminal.
Step 302I, obtains the first reference point coordinate for including in the first display parameters, and the first reference point coordinate is first Coordinate of the predetermined reference point in on-screen display (osd) area in video display area under display pattern.
In mode handover procedure, video display area can carry out rotation and scaling with center point, in order to make to revolve Video display area after turning scaling can adapt to on-screen display (osd) area, and (i.e. on-screen display (osd) area can include rotation scaling completely Video display area afterwards), intelligent terminal obtains under the first display pattern and the second display pattern, makes a reservation in video display area Display distance difference between reference point, and the display that rotation scales rear video display area is adjusted according to the display distance difference Position.
After receiving pattern switching instruction, intelligent terminal, which obtains in corresponding first display parameters of the first display pattern, includes The first reference point coordinate.Wherein, the first reference point coordinate can be the coordinate or central point on vertex in video display area Coordinate.
For example, the first display pattern is normal displaying mode, and the first reference point coordinate is video display area central point Coordinate, intelligent terminal get the first reference point coordinate be (600px, 360px).
Step 302J, obtains the second reference point coordinate for including in the second display parameters, and the second reference point coordinate is second Coordinate of the predetermined reference point in on-screen display (osd) area in video display area under display pattern.
Similar with above-mentioned steps 302I, smart machine, which obtains in corresponding second display parameters of the second display pattern, includes Second reference point coordinate.
For example, the second display pattern is left transverse screen full-screen display mode (screen resolution 1280*720), and second joins Examination point coordinate be video display area central point coordinate, intelligent terminal get the second reference point coordinate be (640px, 360px)。
Step 302K calculates display distance difference, display distance according to the first reference point coordinate and the second reference point coordinate Difference is used to indicate distance of the predetermined reference point in on-screen display (osd) area under the first display pattern and the second display pattern.
Intelligent terminal calculates display distance difference, meter according to the first reference point coordinate got and the second reference point coordinate Calculation obtains under first mode and second mode, distance (i.e. display distance difference) between video display area central point.
For example, in conjunction with above-mentioned steps 302E and step 302F the embodiment described, when the first reference point coordinate is (600px, 360px) and the second reference point coordinate is (640px, 360px), and display distance difference is [(640-600)2+(360-360)2]0.5 =40.
Display distance difference is determined as display parameters difference by step 302L.
The display distance difference being calculated is determined as display parameters difference by intelligent terminal.
It should be noted that in order to save the process resource of intelligent terminal, when the angles of display difference being calculated is (instruction switches between vertical screen full-screen display mode and the full-screen display mode of falling vertical screen, or in left transverse screen when 180 ° (or -180 °) Switch between full-screen display mode and right transverse screen full-screen display mode), since video display area is under full-screen display mode On-screen display (osd) area, it is 0 that intelligent terminal, which directly determines display size difference, and display distance difference is 0, to eliminate acquisition The process of first display size, the second display size, the first reference point coordinate and the second reference point coordinate.
Step 303, at least one set of intermediate display parameters are calculated according to the first display parameters and display parameters difference.
By above-mentioned steps 302A to step 302L, intelligent terminal obtains including angles of display difference, display size difference With the display parameters numerical value of display distance difference.
After display parameters difference is calculated, intelligent terminal further according to current display mode and display parameters difference, It is aobvious that calculating at least one set is used to indicate video display area real-time display position and the centre of display size in mode handover procedure Show parameter.
As a kind of possible embodiment, this step may include steps of.
Step 303A, obtains adjustment factor, and adjustment factor is used for the change of video display area during control mode switch Change degree, 0 < adjustment factor < 1.
In order to keep entire mode handover procedure in final display effect continuous, intelligent terminal obtains the floating-point between 0-1 Number is used as adjustment parameter, and according to the variation degree of video display area during adjustment parameter control mode switch.
For example, available 20 adjustment factors of intelligent terminal, and the difference between two neighboring adjustment factor is 0.05; For another example, available 10 adjustment factors of intelligent terminal, and the difference between two neighboring adjustment factor is 0.10.
Step 303B is calculated at least one set of intermediate aobvious according to the first display parameters, display parameters difference and adjustment factor Show parameter, wherein intermediate display parameters=the first display parameters+adjustment factor × display parameters difference.
Intelligent terminal calculates at least one according to the first display parameters, display parameters difference and the adjustment factor got The intermediate display parameters of group, wherein different intermediate display parameters correspond to adjustment factor difference.
For example, in the first display parameters include the first angles of display be 0 °, display parameters difference be 90 °, work as adjustment factor It include 0 ° of+90 ° of * 0.1=9 ° of real-time display angle, certain a period of time in intermediate scheme handoff procedure in intermediate display parameters when being 0.1 It inscribes, the angles of display of video display area is 9 °;It include width 720px in first display parameters, display parameters difference is 560px includes real-time display width 720+560*0.1=776px in intermediate display parameters, indicates when adjustment factor is 0.1 It is inscribed when a certain in mode handover procedure, the width of video display area is 776px;It include height in first display parameters 300px, display parameters difference are 420px, and when adjustment factor is 0.1, intermediate display parameters include real-time display height 300+ 420*0.1=342px is inscribed when a certain in intermediate scheme handoff procedure, and the height of video display area is 342px, that is, is adjusted It is 9 °, real-time display width 776px that display parameters, which include angles of display, among 0.1 corresponding one group of coefficient, real-time display height 342px。
Step 304, according to display parameters among each group, determine that video display area is shown in screen in mode handover procedure Real-time display position and real-time display size in region.
According to display parameters among each group being calculated, intelligent terminal determines video display area in mode handover procedure Real-time display position and real-time display size under at a time, so that it is determined that drawing video viewing area in on-screen display (osd) area The position in domain.
For example, as shown in Figure 3D, intelligent terminal determines the mode handover procedure a certain moment according to display parameters among one group Enforcing location and size of the lower video display area 31 in on-screen display (osd) area.
Step 305, real time video image frame is drawn in video display area.
For the normal play of video in Assured Mode handoff procedure, intelligent terminal is drawn in real time in video display area Video image frame.
For example, as shown in Figure 3D, intelligent terminal draws real time video image frame in video display area 31.
Step 306, cut scene is generated according at least one video display area of drafting, the video in the cut scene Picture frame is continuous.
By above-mentioned steps 301 to step 305, video display area in mode handover procedure is calculated in intelligent terminal Display parameters among multiple groups, and multiple video pictures are drawn out according to display parameters among multiple groups and real time video image frame, from And the cut scene that the first display pattern is switched to the second display pattern process is generated, in the premise that Assured Mode switching carries out Under, keep the continuous broadcasting of video.
In conclusion mode switching method provided in this embodiment, by when receiving mode switching signal, according to working as The positions and dimensions of preceding video display area and the positions and dimensions of switch mode rear video display area, calculate switching The real-time display position of video display area and real-time display size in the process, and it is real-time to combine real time video image frame to draw Video display area;It solves during application interface repaints, video playing will interrupt, and cause video by vertical screen mode Video playing is discontinuous when being switched to transverse screen mode and generates video splashette phenomenon, influences the problem of user normally watches;Reach The switching for only needing to carry out video display area display pattern, without being repainted to entire application interface, To ensure that the continuous broadcasting of video in display pattern handoff procedure, the viewing experience of user is improved.
In the present embodiment, intelligent terminal is during carrying out rotation scaling to video display area, according to being calculated Display distance difference the display position of video display area is adjusted so that the video viewing area after final rotation scaling Domain can be completely contained in on-screen display (osd) area, ensure that the viewing experience of user.
In the present embodiment, it is dynamic to carry out interlude for display parameters and real time video image frame among multiple groups obtained by calculation The drafting of picture improves the video-see body of user so that video display area keeps video continuously to play in mode handover procedure It tests.
It is following that the details of description not detailed in Installation practice can be referred to above-mentioned for apparatus of the present invention embodiment One-to-one embodiment of the method.
Referring to FIG. 4, it illustrates the structural block diagrams of mode-changeover device provided by one embodiment of the present invention.The mould The all or part being implemented in combination with as intelligent terminal that formula switching device passes through hardware or software and hardware.The pattern switching Device includes:
Detection module 410, for detecting whether receive mode switching signal, the mode switching signal be used to indicate by Video display area is switched to the second display pattern from the first display pattern being presently in;
Computing module 420, for when receiving the mode switching signal, according to first display pattern and described The corresponding display parameters of second display pattern, calculate at least one set of intermediate display parameters, and the display parameters are used to indicate The display position of the video display area and display size under corresponding display pattern, intermediate display parameters are for referring to described in every group Show real-time display position and the real-time display size of video display area described in mode handover procedure;
Drafting module 430, for drawing institute according at least one set of intermediate display parameters and real time video image frame State video display area.
In conclusion mode-changeover device provided in this embodiment, by when receiving mode switching signal, according to working as The positions and dimensions of preceding video display area and the positions and dimensions of switch mode rear video display area, calculate switching The real-time display position of video display area and real-time display size in the process, and it is real-time to combine real time video image frame to draw Video display area;It solves during application interface repaints, video playing will interrupt, and cause video by vertical screen mode Video playing is discontinuous when being switched to transverse screen mode and generates video splashette phenomenon, influences the problem of user normally watches;Reach The switching for only needing to carry out video display area display pattern, without being repainted to entire application interface, To ensure that the continuous broadcasting of video in display pattern handoff procedure, the viewing experience of user is improved.
Referring to FIG. 5, the structural block diagram of the mode-changeover device provided it illustrates another embodiment of the present invention.It should The all or part being implemented in combination with as intelligent terminal that mode-changeover device passes through hardware or software and hardware.The mode is cut Changing device includes:
Detection module 510, for detecting whether receive mode switching signal, the mode switching signal be used to indicate by Video display area is switched to the second display pattern from the first display pattern being presently in;
Computing module 520, for when receiving the mode switching signal, according to first display pattern and described The corresponding display parameters of second display pattern, calculate at least one set of intermediate display parameters, and the display parameters are used to indicate The display position of the video display area and display size under corresponding display pattern, intermediate display parameters are for referring to described in every group Show real-time display position and the real-time display size of video display area described in mode handover procedure;
Drafting module 530, for drawing institute according at least one set of intermediate display parameters and real time video image frame State video display area.
Optionally, computing module 520, comprising:
First computing unit 521, for according to corresponding first display parameters of first display pattern and described second Corresponding second display parameters of display pattern calculate display parameters difference;
Second computing unit 522, for calculating at least one according to first display parameters and the display parameters difference The intermediate display parameters of group.
Optionally, the first computing unit 521, comprising:
First angle obtains subelement 521a, includes the first angles of display, institute in first display parameters for obtaining The first angles of display is stated to be used to indicate under first display pattern between the video display area and on-screen display (osd) area Angle;
Second angle obtains subelement 521b, includes the second angles of display, institute in second display parameters for obtaining State the second angles of display be used to indicate under second display pattern video display area and the on-screen display (osd) area it Between angle;
First difference computation subunit 521c, for being calculated according to first angles of display and second angles of display Angles of display difference;
First determines subelement 521d, for the angles of display difference to be determined as the display parameters difference.
Optionally, the first computing unit 521, comprising:
First size obtains subelement 521e, for obtaining the first display size for including in first display parameters, First display size is used to indicate the width and height of the video display area under first display pattern;
Second size obtains subelement 521f, for obtaining the second display size for including in second display parameters, Second display size is used to indicate the width and height of the video display area under second display pattern;
Second difference computation subunit 521g, for being calculated according to first display size and second display size Display size difference, the display size difference includes width differential and height difference;
Second determines subelement 521h, for the display size difference to be determined as the display parameters difference.
Optionally, the first computing unit 521, comprising:
First coordinate obtains subelement 521i, sits for obtaining the first reference point for including in first display parameters Mark, the first reference point coordinate are that predetermined reference point is aobvious in screen in the video display area under first display pattern Show the coordinate in region;
Second coordinate obtains subelement 521j, sits for obtaining the second reference point for including in second display parameters Mark, the second reference point coordinate is predetermined reference point described in the video display area under second display pattern in institute State the coordinate in on-screen display (osd) area;
Third difference computation subunit 521k, for according to the first reference point coordinate and the second reference point coordinate Display distance difference is calculated, the display distance difference is used to indicate in first display pattern and second display pattern Under distance of the predetermined reference point in the on-screen display (osd) area;
Third determines subelement 521l, for the display distance difference to be determined as the display parameters difference;
Wherein, the predetermined reference point is the vertex of the video display area or the center of the video display area Point.
Optionally, the second computing unit 522, comprising:
Subelement 522a is obtained, for obtaining adjustment factor, the adjustment factor is used for institute during control mode switch State the variation degree of video display area, 0 < adjustment factor < 1;
Computation subunit 522b, for according to first display parameters, the display parameters difference and the adjusting Coefficient calculates at least one set of intermediate display parameters;
Wherein, intermediate display parameters=first display parameters+adjustment factor × display parameters difference.
Optionally, detection module 510, comprising:
First detection unit 511, for obtaining the rotation angle of screen by gravity sensor;When the rotation angle is big When predetermined angle threshold value, determination receives the mode switching signal;
Or,
Second detection unit 512, for detecting whether receiving to pattern switching component in the video display area Operation signal;When receiving the operation signal to the pattern switching component, determination receives the mode switching signal.
Optionally, drafting module 530, comprising:
Determination unit 531, for determining video viewing area described in mode handover procedure according to display parameters among each group Real-time display position and real-time display size of the domain in on-screen display (osd) area;
Drawing unit 532, for drawing the real time video image frame in the video display area;
Generation unit 533, for generating cut scene, the mistake according at least one described video display area of drafting Video image frame in the animation of field is continuous.
In conclusion mode-changeover device provided in this embodiment, by when receiving mode switching signal, according to working as The positions and dimensions of preceding video display area and the positions and dimensions of switch mode rear video display area, calculate switching The real-time display position of video display area and real-time display size in the process, and it is real-time to combine real time video image frame to draw Video display area;It solves during application interface repaints, video playing will interrupt, and cause video by vertical screen mode Video playing is discontinuous when being switched to transverse screen mode and generates video splashette phenomenon, influences the problem of user normally watches;Reach The switching for only needing to carry out video display area display pattern, without being repainted to entire application interface, To ensure that the continuous broadcasting of video in display pattern handoff procedure, the viewing experience of user is improved.
In the present embodiment, intelligent terminal is during carrying out rotation scaling to video display area, according to being calculated Display distance difference the display position of video display area is adjusted so that the video viewing area after final rotation scaling Domain can be completely contained in on-screen display (osd) area, ensure that the viewing experience of user.
In the present embodiment, it is dynamic to carry out interlude for display parameters and real time video image frame among multiple groups obtained by calculation The drafting of picture improves the video-see body of user so that video display area keeps video continuously to play in mode handover procedure It tests.
It should be understood that mode-changeover device provided by the above embodiment, only being partitioned into above-mentioned each functional module Row, i.e., will be electric for example, can according to need in practical application and be completed by different functional modules above-mentioned function distribution The internal structure of sub- equipment is divided into different functional modules, to complete all or part of the functions described above.On in addition, The mode-changeover device and mode switching method embodiment for stating embodiment offer belong to same design, and specific implementation process is detailed in Embodiment of the method, which is not described herein again.
Fig. 6 shows the structural schematic diagram of electronic equipment provided by one embodiment of the present invention, which can be with intelligence Energy mobile phone, tablet computer, MP3 player or portable computer etc., specifically:
Equipment 600 may include RF (Radio Frequency, radio frequency) circuit 610, include one or more meter It is the memory 620 of calculation machine readable storage medium storing program for executing, input unit 630, display unit 640, sensor 650, voicefrequency circuit 660, short The portions such as range wireless transmission module 670, the processor 680 for including one or more than one processing core and power supply 690 Part.It will be understood by those skilled in the art that device structure shown in Fig. 6 does not constitute the restriction to electronic equipment, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.Wherein:
RF circuit 610 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 680 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuit 610 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses Family identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuit 610 can also be communicated with network and other equipment by wireless communication.Wireless communication, which can be used, appoints (Global System of Mobile communication, the whole world are moved for one communication standard or agreement, including but not limited to GSM Dynamic communication system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc..
Memory 620 can be used for storing software program and module.Processor 680 is stored in memory 620 by operation Software program and module, thereby executing various function application and data processing.Memory 620 can mainly include storage journey Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created number according to equipment 600 According to (such as audio data, phone directory etc.) etc..In addition, memory 620 may include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 620 can also include Memory Controller, to provide processor 680 and input unit 630 to memory 620 access.Although Fig. 6 shows RF circuit 610, but it is understood that, and it is not belonging to the necessary structure of equipment 600 At can according to need within the scope of not changing the essence of the invention and omit completely.
Input unit 630 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 630 may include touching Sensitive surfaces 631 and other input equipments 632.Touch sensitive surface 631, also referred to as touch display screen or Trackpad are collected and are used Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table Operation on face 631 or near touch sensitive surface 631), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 631 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 680, and can receive processor 680 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 631.In addition to touch sensitive surface 631, input unit 630 can also include other input equipments 632.Specifically, Other input equipments 632 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 640 can be used for showing information input by user or the information and control 600 that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof. Display unit 640 may include display panel 641, optionally, can use LCD (Liquid Crystal Display, liquid crystal Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 641.Further, touch sensitive surface 631 can be covered on display panel 641, when touch sensitive surface 631 detect it is on it or attached After close touch operation, processor 680 is sent to determine the type of touch event, is followed by subsequent processing device 680 according to touch event Type corresponding visual output is provided on display panel 641.Although in Fig. 6, touch sensitive surface 631 and display panel 641 It is that input and input function are realized as two independent components, but in some embodiments it is possible to by touch sensitive surface 631 It is integrated with display panel 641 and realizes and output and input function.
Equipment 600 may also include at least one sensor 650, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 641, and proximity sensor can close display when equipment 600 is moved in one's ear Panel 641 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally Three axis) acceleration size, can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Extremely In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensors that equipment 600 can also configure, herein It repeats no more.
Voicefrequency circuit 660, loudspeaker 621, microphone 622 can provide the audio interface between user and equipment 600.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 621, be converted to sound by loudspeaker 621 by circuit 660 Sound signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 622, after being received by voicefrequency circuit 660 Audio data is converted to, then by after the processing of audio data output processor 680, another control is sent to through RF circuit 610 and is set It is standby, or audio data is exported to memory 620 to be further processed.Voicefrequency circuit 660 is also possible that earphone jack, To provide the communication of peripheral hardware earphone Yu equipment 600.
Short range wireless transmission module 670 can be WIFI (wireless fidelity, Wireless Fidelity) module, bluetooth Module or infrared module etc..Equipment 600 by short range wireless transmission module 670 can with battle equipment on be arranged it is wireless The transmission of transmission module progress information.
Processor 680 is the control centre of equipment 600, entirely controls each of equipment using various interfaces and connection Part by running or execute the software program and/or module that are stored in memory 620, and calls and is stored in memory Data in 620 execute the various functions and processing data of equipment 600, to carry out integral monitoring to control equipment.It is optional , processor 680 may include one or more processing cores;Optionally, processor 680 can integrate application processor and modulatedemodulate Adjust processor, wherein the main processing operation system of application processor, user interface and application program etc., modem processor Main processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 650.
Equipment 600 further includes the power supply 690 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 680 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 690 can also include one or more direct current or AC power source, recharging system, power supply event Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, equipment 600 can also include camera, bluetooth module etc., and details are not described herein.
Equipment 600 further includes having the perhaps more than one program one of them or more than one of memory and one Program is stored in memory, and is configured to be executed by one or more than one processor.
It should be understood that it is used in the present context, unless the context clearly supports exceptions, singular " one It is a " (" a ", " an ", " the ") be intended to also include plural form.It is to be further understood that "and/or" used herein is Refer to any and all possible combinations including one or more than one project listed in association.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (14)

1. one mode switching method, which is characterized in that the described method includes:
Detect whether to receive mode switching signal, the mode switching signal is used to indicate video display area from current institute First display pattern at place is switched to the second display pattern;
When receiving the mode switching signal, according to corresponding first display parameters of first display pattern and described Corresponding second display parameters of two display patterns calculate display parameters difference;
Adjustment factor is obtained, the adjustment factor is used for the variation journey of the video display area during control mode switch Degree, 0 < adjustment factor < 1;
According to first display parameters, the display parameters difference and the adjustment factor, calculate at least one set of intermediate aobvious Show parameter;Wherein, intermediate display parameters=first display parameters+adjustment factor × display parameters difference, it is intermediate aobvious described in every group Show that parameter is used to indicate real-time display position and the real-time display size of video display area described in mode handover procedure;
The video display area is drawn according at least one set of intermediate display parameters and real time video image frame.
2. the method according to claim 1, wherein described show according to first display pattern corresponding first Show that parameter and corresponding second display parameters of second display pattern calculate display parameters difference, comprising:
Obtaining includes the first angles of display in first display parameters, and it is aobvious that first angles of display is used to indicate described first Show the angle under mode between the video display area and on-screen display (osd) area;
Obtaining includes the second angles of display in second display parameters, and it is aobvious that second angles of display is used to indicate described second Show the angle under mode between the video display area and the on-screen display (osd) area;
Angles of display difference is calculated according to first angles of display and second angles of display;
The angles of display difference is determined as the display parameters difference.
3. the method according to claim 1, wherein described show according to first display pattern corresponding first Show that parameter and corresponding second display parameters of second display pattern calculate display parameters difference, comprising:
The first display size for including in first display parameters is obtained, first display size is used to indicate described first The width and height of the video display area under display pattern;
The second display size for including in second display parameters is obtained, second display size is used to indicate described second The width and height of the video display area under display pattern;
Display size difference, the display size difference packet are calculated according to first display size and second display size Include width differential and height difference;
The display size difference is determined as the display parameters difference.
4. the method according to claim 1, wherein described show according to first display pattern corresponding first Show that parameter and corresponding second display parameters of second display pattern calculate display parameters difference, comprising:
The the first reference point coordinate for including in first display parameters is obtained, the first reference point coordinate is described first aobvious Show under mode coordinate of the predetermined reference point in on-screen display (osd) area in the video display area;
The the second reference point coordinate for including in second display parameters is obtained, the second reference point coordinate is described second aobvious Show coordinate of the predetermined reference point described in the video display area in the on-screen display (osd) area under mode;
Display distance difference is calculated according to the first reference point coordinate and the second reference point coordinate, the display distance is poor Value is used to indicate the predetermined reference point under first display pattern and second display pattern and shows in the screen Distance in region;
The display distance difference is determined as the display parameters difference;
Wherein, the predetermined reference point is the vertex of the video display area or the central point of the video display area.
5. method according to any one of claims 1 to 4, which is characterized in that described to detect whether to receive pattern switching letter Number, comprising:
The rotation angle of screen is obtained by gravity sensor;When the rotation angle is greater than predetermined angle threshold value, determination is connect Receive the mode switching signal;
Or,
It detects whether to receive the operation signal to pattern switching component in the video display area;When receiving to the mould When the operation signal of formula changeover module, determination receives the mode switching signal.
6. method according to any one of claims 1 to 4, which is characterized in that described according at least one set of intermediate display Parameter and real time video image frame draw the video display area, comprising:
Intermediate display parameters, determine that video display area is in on-screen display (osd) area described in mode handover procedure according to each group In the real-time display position and the real-time display size;
The real time video image frame is drawn in the video display area;
Cut scene is generated according at least one described video display area of drafting, the video image frame in the cut scene Continuously.
7. one mode switching device, which is characterized in that described device includes:
Detection module, for detecting whether receiving mode switching signal, the mode switching signal, which is used to indicate, shows video Show that region is switched to the second display pattern from the first display pattern being presently in;
First computing unit, for when receiving the mode switching signal, according to first display pattern corresponding One display parameters and corresponding second display parameters of second display pattern calculate display parameters difference;
Subelement is obtained, for obtaining adjustment factor, the video is aobvious during the adjustment factor is used for control mode switch Show the variation degree in region, 0 < adjustment factor < 1;
Computation subunit, for calculating according to first display parameters, the display parameters difference and the adjustment factor At least one set of intermediate display parameters;Wherein, intermediate display parameters=first display parameters+adjustment factor × display parameters difference, Intermediate display parameters described in every group are used to indicate real-time display position and the reality of video display area described in mode handover procedure When display size;
Drafting module, it is aobvious for drawing the video according at least one set of intermediate display parameters and real time video image frame Show region.
8. device according to claim 7, which is characterized in that first computing unit, comprising:
First angle obtains subelement, includes the first angles of display in first display parameters for obtaining, and described first is aobvious Show that angle is used to indicate the angle under first display pattern between the video display area and on-screen display (osd) area;
Second angle obtains subelement, includes the second angles of display in second display parameters for obtaining, and described second is aobvious Show that angle is used to indicate the angle under second display pattern between the video display area and the on-screen display (osd) area;
First difference computation subunit, for calculating angles of display according to first angles of display and second angles of display Difference;
First determines subelement, for the angles of display difference to be determined as the display parameters difference.
9. device according to claim 7, which is characterized in that first computing unit, comprising:
First size obtains subelement, for obtaining the first display size for including in first display parameters, described first Display size is used to indicate the width and height of the video display area under first display pattern;
Second size obtains subelement, for obtaining the second display size for including in second display parameters, described second Display size is used to indicate the width and height of the video display area under second display pattern;
Second difference computation subunit, for calculating display size according to first display size and second display size Difference, the display size difference includes width differential and height difference;
Second determines subelement, for the display size difference to be determined as the display parameters difference.
10. device according to claim 7, which is characterized in that first computing unit, comprising:
First coordinate obtains subelement, for obtaining the first reference point coordinate for including in first display parameters, described the One reference point coordinate is predetermined reference point in the video display area under first display pattern in on-screen display (osd) area Coordinate;
Second coordinate obtains subelement, for obtaining the second reference point coordinate for including in second display parameters, described the Two reference point coordinates are that predetermined reference point described in the video display area is aobvious in the screen under second display pattern Show the coordinate in region;
Third difference computation subunit, for calculating display according to the first reference point coordinate and the second reference point coordinate Distance difference, the display distance difference are used to indicate described pre- under first display pattern and second display pattern Determine distance of the reference point in the on-screen display (osd) area;
Third determines subelement, for the display distance difference to be determined as the display parameters difference;
Wherein, the predetermined reference point is the vertex of the video display area or the central point of the video display area.
11. according to any device of claim 7 to 10, which is characterized in that the detection module, comprising:
First detection unit, for obtaining the rotation angle of screen by gravity sensor;It is preset when the rotation angle is greater than When angle threshold, determination receives the mode switching signal;
Or,
Second detection unit, for detecting whether receiving the operation letter to pattern switching component in the video display area Number;When receiving the operation signal to the pattern switching component, determination receives the mode switching signal.
12. according to any device of claim 7 to 10, which is characterized in that the drafting module, comprising:
Determination unit determines video display area described in mode handover procedure for the intermediate display parameters according to each group The real-time display position and the real-time display size in on-screen display (osd) area;
Drawing unit, for drawing the real time video image frame in the video display area;
Generation unit, for generating cut scene, the cut scene according at least one described video display area of drafting In video image frame it is continuous.
13. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Memory;
The processor being connected with the memory;
Wherein, the processor is configured to loading and executing executable instruction to realize as described in claim 1 to 6 is any Mode switching method.
14. a kind of computer readable storage medium, which is characterized in that it is stored with program in the computer readable storage medium, Described program is called and executed by processor to realize the mode switching method as described in claim 1 to 6 is any.
CN201610298372.6A 2016-05-06 2016-05-06 Mode switching method and device Active CN105872666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610298372.6A CN105872666B (en) 2016-05-06 2016-05-06 Mode switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610298372.6A CN105872666B (en) 2016-05-06 2016-05-06 Mode switching method and device

Publications (2)

Publication Number Publication Date
CN105872666A CN105872666A (en) 2016-08-17
CN105872666B true CN105872666B (en) 2019-11-15

Family

ID=56631468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610298372.6A Active CN105872666B (en) 2016-05-06 2016-05-06 Mode switching method and device

Country Status (1)

Country Link
CN (1) CN105872666B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898514A (en) * 2015-12-15 2016-08-24 乐视网信息技术(北京)股份有限公司 Video play method and system
CN106303571B (en) * 2016-08-29 2019-03-15 武汉斗鱼网络科技有限公司 The method and system of adaptive screen rotation are realized in image acquisition process
CN106528020B (en) * 2016-10-26 2019-05-31 腾讯科技(深圳)有限公司 A kind of field-of-view mode switching method and terminal
CN107818006B (en) * 2017-10-31 2021-03-12 北京酷我科技有限公司 Method for full-screen playing of video
CN107918517B (en) * 2017-11-13 2020-02-18 Oppo广东移动通信有限公司 Screen rotation response method and device, mobile terminal and storage medium
CN110297686B (en) * 2019-07-03 2023-05-12 北京梧桐车联科技有限责任公司 Content display method and device
CN111240541B (en) * 2019-12-31 2023-06-13 歌尔科技有限公司 Interface switching method, electronic device and computer readable storage medium
CN111210472B (en) * 2019-12-31 2021-07-09 山东信通电子股份有限公司 3D positioning method, device, equipment and medium for video picture
CN111710315B (en) * 2020-06-15 2022-06-14 Oppo(重庆)智能科技有限公司 Image display method, image display device, storage medium and electronic equipment
CN112995743B (en) * 2021-02-03 2023-01-24 上海哔哩哔哩科技有限公司 Video playing method and device
CN113747228B (en) * 2021-09-17 2023-09-15 四川启睿克科技有限公司 Method for realizing intelligent rotary television dynamic screen protection

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104820555A (en) * 2015-05-06 2015-08-05 努比亚技术有限公司 Transverse and vertical screen modes switching method and device, and terminal
CN105007446A (en) * 2015-06-18 2015-10-28 美国掌赢信息科技有限公司 Instant video display method and electronic device
CN105100897A (en) * 2015-07-23 2015-11-25 小米科技有限责任公司 Control method of quick playing and apparatus thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104820555A (en) * 2015-05-06 2015-08-05 努比亚技术有限公司 Transverse and vertical screen modes switching method and device, and terminal
CN105007446A (en) * 2015-06-18 2015-10-28 美国掌赢信息科技有限公司 Instant video display method and electronic device
CN105100897A (en) * 2015-07-23 2015-11-25 小米科技有限责任公司 Control method of quick playing and apparatus thereof

Also Published As

Publication number Publication date
CN105872666A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN105872666B (en) Mode switching method and device
CN103455256B (en) The method and terminal of Rotation screen display picture
CN103473051B (en) A kind of method and apparatus for saving power consumption of terminal
CN106357897B (en) The acquisition methods and device of drop information
CN106933525B (en) A kind of method and apparatus showing image
CN108182043A (en) A kind of method for information display and mobile terminal
CN106791894A (en) A kind of method and apparatus for playing live video
CN105224556B (en) Waterfall stream interface display methods and device
CN106488296B (en) A kind of method and apparatus showing video barrage
CN104915091B (en) A kind of method and apparatus for the prompt information that Shows Status Bar
CN103472993A (en) Rotation displaying method, device and terminal equipment
CN106445340B (en) Method and device for displaying stereoscopic image by double-screen terminal
CN104077184B (en) A kind of course control method and computer system of application program
CN107506732A (en) Method, equipment, mobile terminal and the computer-readable storage medium of textures
CN105808060A (en) Method and device for playing animation
CN104991699B (en) A kind of method and apparatus of video display control
CN106371749A (en) Method and device for terminal control
CN104820546B (en) Function information methods of exhibiting and device
CN106951139A (en) Message notifying frame display methods and device
CN108984066A (en) A kind of application icon display methods and mobile terminal
CN106210838B (en) Caption presentation method and device
CN107479799A (en) A kind of method and apparatus of display window
CN108564539A (en) A kind of method and apparatus of display image
CN106254673B (en) Terminal falls detection method and device
US20150070360A1 (en) Method and mobile terminal for drawing sliding trace

Legal Events

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