CN107613342A - Video self-adapting regulation method and device - Google Patents

Video self-adapting regulation method and device Download PDF

Info

Publication number
CN107613342A
CN107613342A CN201710931097.1A CN201710931097A CN107613342A CN 107613342 A CN107613342 A CN 107613342A CN 201710931097 A CN201710931097 A CN 201710931097A CN 107613342 A CN107613342 A CN 107613342A
Authority
CN
China
Prior art keywords
video
height
size
terminal device
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710931097.1A
Other languages
Chinese (zh)
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.)
Shenzhen Water World Co Ltd
Original Assignee
Shenzhen Water World 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 Shenzhen Water World Co Ltd filed Critical Shenzhen Water World Co Ltd
Priority to CN201710931097.1A priority Critical patent/CN107613342A/en
Priority to PCT/CN2017/111957 priority patent/WO2019071720A1/en
Publication of CN107613342A publication Critical patent/CN107613342A/en
Pending legal-status Critical Current

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
    • 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/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

Present invention is disclosed a kind of video self-adapting regulation method and device, the described method comprises the following steps:The size for the video for intending playing is obtained, the size includes the width and height of the video;Judge whether the size of video is adapted with the placement posture of terminal device;When the size of video and the incompatible placement posture of terminal device, size to the size with the screen of terminal device for adjusting video matches, realize by adjusting the size of video come the current placement posture of adaptive terminal device, rather than by adjusting the placement posture of terminal device come the size of adaptive video as prior art.So as to, on the one hand user is allowd independently to select the placement posture of terminal device when playing video, on the other hand cause can not change place posture terminal device also can normal play place the incompatible video of posture with it, the intelligent level of terminal device is improved, improves Consumer's Experience.

Description

Video self-adapting regulation method and device
Technical field
The present invention relates to technical field of video processing, especially relates to a kind of video self-adapting regulation method and device.
Background technology
Terminal device can adaptively be adjusted when playing video according to the size of video to video.In the prior art, The adaptive adjustment mode of video is:The long side of video is corresponding with the long side of the screen of terminal device, by the short side of video with The short side of the screen of terminal device is corresponding, when the size of video is incompatible with the current placement posture of terminal device, then Automatically by video rotated ninety degrees.
Such as:When the height of video is more than width, and terminal device is currently placed with transverse screen state, terminal device will Automatically by video rotated ninety degrees, now terminal device also rotated ninety degrees must be changed into placing ability with portrait layout state by user Normal viewing video;When the height of video is less than width, and terminal device is currently placed with portrait layout state, terminal device then can Automatically by video rotated ninety degrees, now terminal device also rotated ninety degrees must be changed into placing ability with transverse screen state by user Normal viewing video.
As can be seen here, the adaptive Adjusted Option of existing video, adapted to by adjusting the placement posture of terminal device The size of video.However, this Adjusted Option has following defect:
(1) when user watches video, it is impossible to the placement posture of autonomous selection terminal device.When the height of video is more than width When, user can only watch video with the portrait layout state of terminal device;When the height of video is less than width, user can only be with terminal The transverse screen state viewing video of equipment.
(2) for can not change place posture terminal device (such as mobile unit, intelligent television), when with terminal device The incompatible video of placement posture by rotated ninety degrees when, user can be caused can not normally to watch video.
In summary, the adaptive Adjusted Option of existing video, intelligent level be not high so that user is when playing video The placement posture of terminal device can not independently be selected, at the same can not change place posture terminal device can not normal play and its The incompatible video of posture is placed, Consumer's Experience is bad.
The content of the invention
The main object of the present invention is a kind of video self-adapting regulation method of offer and device, it is intended to improves terminal device Intelligent level, solve above-mentioned technical problem, lift Consumer's Experience.
To achieve these objectives, the embodiment of the present invention proposes a kind of video self-adapting regulation method, and methods described includes following Step:
The size for the video for intending playing is obtained, the size includes the width and height of the video;
Judge whether the size of the video is adapted with the placement posture of terminal device;
When the size of the video and the incompatible placement posture of the terminal device, the size of the video is adjusted Match to the size with the screen of the terminal device.
Alternatively, the placement posture of the terminal device is transverse screen state, the size for judging the video whether with The adaptable step of the placement posture of the terminal device includes:
Judge whether the height of the video is more than the width of the video;
When the height of the video is more than the width of the video, the size of the video and the terminal device are judged Placement posture it is incompatible.
Alternatively, the step of size of the adjustment video matches to the size with the screen includes:
Compare the size of the height of the video and the height of the screen;
When the height of the video is more than the height of the screen, reduce the height of the video to the screen It is highly equal, and the width of video described in Scaling.
Alternatively, also include after the step of size of the height and the height of the screen of the video: When the height of the video is less than the height of the screen, increase height phase of the height of the video extremely with the screen Deng, and wait the width than increasing the video.
Alternatively, the placement posture of the terminal device is portrait layout state, the size for judging the video whether with The adaptable step of the placement posture of the terminal device includes:
Judge whether the height of the video is less than the width of the video;
When the height of the video is less than the width of the video, the size of the video and the terminal device are judged Placement posture it is incompatible.
Alternatively, the step of size of the adjustment video matches to the size with the screen includes:
Compare the size of the width of the video and the width of the screen;
When the width of the video is more than the width of the screen, reduce the width of the video to the screen Width is equal, and the height of video described in Scaling.
Alternatively, also include after the step of size of the width and the width of the screen of the video: When the width of the video is less than the width of the screen, increase width phase of the width of the video extremely with the screen Deng, and wait the height than increasing the video.
Alternatively, methods described is applied to mobile unit.
The embodiment of the present invention proposes a kind of video self-adapting adjusting apparatus simultaneously, and described device includes:
Acquisition module, for obtaining the size for the video for intending playing, the size includes the width and height of the video;
Judge module, for judging whether the size of the video is adapted with the placement posture of the terminal device;
Adjusting module, for when the size of the video and the incompatible placement posture of the terminal device, adjusting The size of the video to the size with the screen matches.
Alternatively, the placement posture of the terminal device is transverse screen state, and the judge module includes:
First judging unit, for judging whether the height of the video is more than the width of the video;
First decision unit, for when the height of the video is more than the width of the video, judging the video Size and the placement posture of the terminal device are incompatible.
Alternatively, the adjusting module includes:
Height comparing unit, the size for the height and the height of the screen of the video;
First reducing unit, for when the height of the video is more than the height of the screen, reducing the video Height is extremely equal with the height of the screen, and the width of video described in Scaling.
Alternatively, the adjusting module also includes the first increasing unit, and first increasing unit is used for:When the video Height when being less than the height of the screen, increase the height of the video to equal with the height of the screen, and wait than increasing The width of the big video.
Alternatively, the placement posture of the terminal device is portrait layout state, and the judge module includes:
Second judging unit, for judging whether the height of the video is less than the width of the video;
Second decision unit, for when the height of the video is less than the width of the video, judging the video Size and the placement posture of the terminal device are incompatible.
Alternatively, the adjusting module includes:
Width comparing unit, the size for the width and the width of the screen of the video;
Second reducing unit, for when the width of the video is more than the width of the screen, reducing the video Width is extremely equal with the width of the screen, and the height of video described in Scaling.
Alternatively, the adjusting module also includes the second increasing unit, and second increasing unit is used for:When the video Width when being less than the width of the screen, increase the width of the video to equal with the width of the screen, and wait than increasing The height of the big video.
Alternatively, described device is applied to mobile unit.
The embodiment of the present invention proposes a kind of terminal device simultaneously, and the terminal device includes memory, processor and at least One is stored in the memory and is configured as by the application program of the computing device, the application program by with It is set to and is used for aforementioned video self-adapting regulation method.
A kind of video self-adapting regulation method that the embodiment of the present invention is provided, by judging video before video is played Whether size is adapted with the placement posture of terminal device, when the size of video and the placement posture of terminal device are incompatible When, then the size for adjusting video matches to the size of the screen of terminal device, realize by adjust the size of video come The current placement posture of adaptive terminal equipment, rather than fitted as prior art by adjusting the placement posture of terminal device Answer the size of video.So as on the one hand allow user independently to select the placement posture of terminal device when playing video, separately On the one hand cause can not change place posture terminal device also can normal play place the incompatible video of posture with it, The intelligent level of terminal device is improved, improves Consumer's Experience.
Brief description of the drawings
Fig. 1 is an embodiment of the video adaptive identifying method of the present invention;
Fig. 2 is the module diagram of the embodiment of video adaptive identifying device one of the present invention;
Fig. 3 is the module diagram of the judge module in Fig. 2;
Fig. 4 is the another module diagram of the judge module in Fig. 2;
Fig. 5 is the module diagram of the adjusting module in Fig. 2;
Fig. 6 is the another module diagram of the adjusting module in Fig. 2;
Fig. 7 is the another module diagram of the adjusting module in Fig. 2;
Fig. 8 is the another module diagram of the adjusting module in Fig. 2.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one It is individual ", " described " and "the" may also comprise plural form.It is to be further understood that what is used in the specification of the present invention arranges Diction " comprising " refer to the feature, integer, step, operation, element and/or component be present, but it is not excluded that in the presence of or addition One or more other features, integer, step, operation, element, component and/or their groups.It should be understood that when we claim member Part is " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or there may also be Intermediary element.In addition, " connection " used herein or " coupling " can include wireless connection or wireless coupling.It is used herein to arrange Taking leave "and/or" includes whole or any cell and all combinations of one or more associated list items.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific terminology), there is the general understanding identical meaning with the those of ordinary skill in art of the present invention.Should also Understand, those terms defined in such as general dictionary, it should be understood that have with the context of prior art The consistent meaning of meaning, and unless by specific definitions as here, idealization or the implication of overly formal otherwise will not be used To explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication The equipment of number receiver, it only possesses the equipment of the wireless signal receiver of non-emissive ability, includes receiving again and transmitting hardware Equipment, its have on bidirectional communication link, can perform two-way communication reception and launch hardware equipment.This equipment It can include:Honeycomb or other communication equipments, it has single line display or multi-line display or shown without multi-line The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), it can With combine voice, data processing, fax and/or its communication ability;PDA (Personal DigitalAssistant, it is personal Digital assistants), it can include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day Go through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm Type computer or other equipment, its have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its His equipment." terminal " used herein above, " terminal device " they can be portable, can transport, installed in the vehicles (aviation, Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet Equipment) and/or mobile phone or the equipment such as intelligent television, set top box with music/video playing function.
The video self-adapting regulation method and device of the embodiment of the present invention, can apply to various terminal equipment, particularly The fixed terminals such as the mobile mobile unit of inconvenience, intelligent television, PC, display, naturally it is also possible to be mobile phone, flat board etc. Mobile terminal.
Reference picture 1, the embodiment of video self-adapting regulation method one of the present invention is proposed, the described method comprises the following steps:
S11, the size for obtaining the video for intending playing.
In this step S11, before video is played, terminal device reads the data for the video for intending playing, and obtains the video Width and height two sizes.
S12, judge whether the size of video is adapted with the placement posture of terminal device.
In the embodiment of the present invention, the placement posture of terminal device includes transverse screen state and portrait layout state, and transverse screen state is eventually The height of the screen of end equipment is less than the state of the width of screen, and portrait layout state is that the height of the screen of terminal device is more than screen Width state.
Alternatively, when the placement posture of terminal device is transverse screen state, illustrate that the height of the screen of terminal device is less than The width of screen, now then judges whether the height of video is more than the width of video.When the height of video is more than the width of video When, judge video size and terminal device placement posture it is incompatible;When the height of video is less than or equal to the width of video When spending, judge that the size of video and the laying state of terminal device are adapted.
Alternatively, when the placement posture of terminal device is portrait layout state, illustrate that the height of the screen of terminal device is more than The width of screen, now then judges whether the height of video is less than the width of video.When the height of video is less than the width of video When, judge video size and terminal device placement posture it is incompatible.When the height of video is more than or equal to the width of video When spending, judge that the size of video and the laying state of terminal device are adapted.
S13, when the size of video and the incompatible placement posture of terminal device, adjust the size of video to and screen Size match.
In this step S13, when the size of video and the incompatible placement posture of terminal device, terminal device not to regarding Frequency is rotated, but adjusts the size of video, until the size of video and the size of screen match.
Alternatively, when the placement posture of terminal device is transverse screen state, terminal device compares the height and screen of video Height size, when the height of video is more than the height of screen, then reduce the height of video to equal with the height of screen, And the width of Scaling video.
For example, it is assumed that the height and width of video are respectively h and w, the height and width of screen are respectively H and W, and h>H, The reduced height of video is then H by terminal device, and the width of Scaling video is w*H/h, that is, the height of the video after reducing Degree and width are respectively H and w*H/h so that video is able to maximumlly all be shown in screen.
Further, when the height of video is less than the height of screen, terminal device then increase the height of video to screen The height of curtain is equal, and waits the width than increasing video.
For example, it is assumed that the height and width of video are respectively h and w, the height and width of screen are respectively H and W, and h<H, The height of video is then increased to H by terminal device, and wait than increase video width be w*H/h, i.e., increase after video height Degree and width are respectively H and w*H/h so that video is able to maximumlly be shown in screen.
In other embodiments, when the height of video is less than the height of screen, video can not also be adjusted.When So, when the height of video is equal to the height of screen, then without being adjusted to video.
When by video after being resized to match with the size of screen, then playing the video after adjustment.Regarded in broadcasting During frequency, preferably video is placed in the middle part of screen and played, naturally it is also possible to video is placed in screen left part as needed or right part is broadcast Put.
Alternatively, when the placement posture of terminal device is portrait layout state, terminal device compares the width and screen of video Width size, when the width of video is more than the width of screen, reduce the width of video to equal with the width of screen, and The height of Scaling video.
For example, it is assumed that the height and width of video are respectively h and w, the height and width of screen are respectively H and W, and w>W, It is then W by the reduced width of video, and the height of Scaling video is h*W/w, that is, the height and width of the video after reducing Respectively W and h*W/w so that video is able to maximumlly all be shown in screen.
Further, when video width be less than screen width when, terminal device increase video width to and screen Width it is equal, and wait than increase video height.
For example, it is assumed that the height and width of video are respectively h and w, the height and width of screen are respectively H and W, and w<W, The width of video is then increased to W, and wait than increase video height be h*W/w, i.e., increase after video height and width Respectively W and h*W/w so that video is able to maximumlly be shown in screen.
In other embodiments, when the width of video is less than the width of screen, video can not also be adjusted.When So, when the width of video is equal to the width of screen, then without being adjusted to video.
When by video after being resized to match with the size of screen, then playing the video after adjustment.Regarded in broadcasting During frequency, preferably video is placed in the middle part of screen and played, naturally it is also possible to video is placed in screen top as needed or bottom is broadcast Put.
In addition, when the size of video and the placement posture of terminal device are adapted, then using the processing side of prior art Formula, the present invention will not be described here.
The video self-adapting regulation method of the embodiment of the present invention, by judge before video is played video size whether with The placement posture of terminal device is adapted, and when the size of video and the incompatible placement posture of terminal device, then adjustment regards The size of frequency to the size with the screen of terminal device matches, and realizes and is set by adjusting the size of video come adaptive terminal Standby current placement posture, rather than by adjusting the placement posture of terminal device come the chi of adaptive video as prior art It is very little.So as on the one hand allow user independently to select the placement posture of terminal device when playing video, on the other hand cause Can not change place posture terminal device also can normal play place the incompatible video of posture with it, improve terminal The intelligent level of equipment, improves Consumer's Experience.
Reference picture 2, proposes the embodiment of video self-adapting adjusting apparatus one of the present invention, and described device includes acquisition module 10th, judge module 20 and adjusting module 30, wherein:Acquisition module 10, for obtaining the size for the video for intending playing, the size bag Include the height and width of video;Judge module 20, for judging whether the size of video mutually fits with the placement posture of terminal device Should;Adjusting module 30, for when the size of video and the incompatible placement posture of terminal device, adjusting the size of video extremely Match with the size of screen.
Before video is played, acquisition module 10 reads the data for the video for intending playing, and obtains the width and height of the video Two sizes are spent, and size is sent to judge module 20.After judge module 20 receives the size of video, then video is judged Whether size is adapted with the placement posture of terminal device.
In the embodiment of the present invention, the placement posture of terminal device includes transverse screen state and portrait layout state, and transverse screen state is eventually The height of the screen of end equipment is less than the state of the width of screen, and portrait layout state is that the height of the screen of terminal device is more than screen Width state.
Alternatively, when the placement posture of terminal device is transverse screen state, illustrate that the height of the screen of terminal device is less than The width of screen, now judge module 20 is as shown in figure 3, including the first judging unit 21 and the first decision unit 22, wherein:The One judging unit 21, for judging whether the height of video is more than the width of video;First decision unit 22, for when video Highly be more than video width when, judge video size and terminal device placement posture it is incompatible, when the height of video Less than or equal to video width when, judge that the size of video and the laying state of terminal device match.
Alternatively, when the placement posture of terminal device is portrait layout state, illustrate that the height of the screen of terminal device is more than screen The width of curtain, now judge module 20 is as shown in figure 4, including the second judging unit 23 and the second decision unit 24, wherein:Second Judging unit 23, for judging whether the height of video is less than the width of video;Second decision unit 24, for when the height of video Degree less than video width when, judge video size and terminal device placement posture it is incompatible, when the height of video is big In or equal to video width when, judge that the size of video and the laying state of terminal device are adapted.
Judge module 20 will determine that result is sent to adjusting module 30, and adjusting module 30 receives judged result, when judgement is tied Fruit for video size and terminal device placement posture it is incompatible when, adjusting module 30 does not rotate to video, but The size of video is adjusted, until the size of video and the size of screen match.
Alternatively, when the placement posture of terminal device is transverse screen state, adjusting module 30 is as shown in figure 5, including height The reducing unit 32 of comparing unit 31 and first, wherein:Height comparing unit 31, for comparing the height of video and the height of screen Size;First reducing unit 32, for when the height of video is more than the height of screen, reduce the height of video to and screen Height it is equal, and the width of Scaling video.
For example, it is assumed that the height and width of video are respectively h and w, the height and width of screen are respectively H and W, and h>H, The reduced height of video is then H by the first reducing unit 32, and the width of Scaling video is w*H/h, that is, regarding after reducing The height and width of frequency are respectively H and w*H/h so that video is able to maximumlly all be shown in screen.
Further, as shown in fig. 6, adjusting module 30 also includes the first increasing unit 33, the first increasing unit 33 is used for: When the height of video is less than the height of screen, increase the height of video to equal with the height of screen, and wait than increasing video Width.
For example, it is assumed that the height and width of video are respectively h and w, the height and width of screen are respectively H and W, and h<H, The height of video is then increased to H by the first increasing unit 33, and wait than increase video width be w*H/h, i.e., increase after regarding The height and width of frequency are respectively H and w*H/h so that video is able to maximumlly be shown in screen.
In other embodiments, when the height of video is less than the height of screen, adjusting module 30 can not also be to video It is adjusted.Certainly, when the height of video is equal to the height of screen, then without being adjusted to video.
When by video after being resized to match with the size of screen, then playing the video after adjustment.Regarded in broadcasting During frequency, preferably video is placed in the middle part of screen and played, naturally it is also possible to video is placed in screen left part as needed or right part is broadcast Put.
Alternatively, when the placement posture of terminal device is portrait layout state, adjusting module 30 as shown in fig. 7, comprises:Width Comparing unit 34, for comparing the size of the width of video and the width of screen;Second reducing unit 35, for when the width of video Degree more than screen width when, reduce the width of video to equal with the width of screen, and the height of Scaling video.
For example, it is assumed that the height and width of video are respectively h and w, the height and width of screen are respectively H and W, and w>W, The reduced width of video is then W by the second reducing unit 35, and the height of Scaling video is h*W/w, that is, regarding after reducing The height and width of frequency are respectively W and h*W/w so that video is able to maximumlly all be shown in screen.
Further, as shown in figure 8, adjusting module 30 also includes the second increasing unit 36, the second increasing unit 36 is used for: When the width of video is less than the width of screen, increase the width of video to equal with the width of screen, and wait than increasing video Height.
For example, it is assumed that the height and width of video are respectively h and w, the height and width of screen are respectively H and W, and w<W, The width of video is then increased to W by the second increasing unit 36, and wait than increase video height be h*W/w, i.e., increase after regarding The height and width of frequency are respectively W and h*W/w so that video is able to maximumlly be shown in screen.
In other embodiments, when the width of video is less than the width of screen, adjusting module 30 can not also be to video It is adjusted.Certainly, when the width of video is equal to the width of screen, then without being adjusted to video.
When by video after being resized to match with the size of screen, then playing the video after adjustment.Regarded in broadcasting During frequency, preferably video is placed in the middle part of screen and played, naturally it is also possible to video is placed in screen top as needed or bottom is broadcast Put.
It will be understood by those skilled in the art that can be by the adjustment with Fig. 7 and Fig. 8 respectively of Fig. 5 and Fig. 6 adjusting module 30 Module 30 combines two-by-two, forms new embodiment.
In addition, when the size of video and the placement posture of terminal device are adapted, then using the processing side of prior art Formula, the present invention will not be described here.
The video self-adapting adjusting apparatus of the embodiment of the present invention, by judge before video is played video size whether with The placement posture of terminal device is adapted, and when the size of video and the incompatible placement posture of terminal device, then adjustment regards The size of frequency to the size with the screen of terminal device matches, and realizes and is set by adjusting the size of video come adaptive terminal Standby current placement posture, rather than by adjusting the placement posture of terminal device come the chi of adaptive video as prior art It is very little.So as on the one hand allow user independently to select the placement posture of terminal device when playing video, on the other hand cause Can not change place posture terminal device also can normal play place the incompatible video of posture with it, improve terminal The intelligent level of equipment, improves Consumer's Experience.
The present invention proposes a kind of terminal device simultaneously, and the terminal device includes memory, processor and at least one quilt Store in memory and be configured as the application program by computing device, the application program is configurable for execution and regarded Frequency self-adapting regulation method.The video self-adapting regulation method comprises the following steps:Obtain the size for the video for intending playing, institute Stating size includes the width and height of video;Judge whether the size of video is adapted with the placement posture of terminal device;When regarding When the size of frequency and the incompatible placement posture of terminal device, size of the size of video extremely with the screen of terminal device is adjusted Match.Video self-adapting regulation method described in embodiment is adaptive for the video involved by above-described embodiment in the present invention Method of adjustment is answered, will not be repeated here.
The terminal device of the embodiment of the present invention, by judge before video is played video size whether with terminal device Place posture to be adapted, when the size of video and the incompatible placement posture of terminal device, then adjust the size of video extremely Match with the size of the screen of terminal device, realize and put by adjusting the size of video come adaptive terminal device is current Posture is put, rather than by adjusting the placement posture of terminal device come the size of adaptive video as prior art.So as to a side Face allows user independently to select the placement posture of terminal device when playing video, even if on the other hand terminal device can not Change place posture also can normal play place the incompatible video of posture with it, improve the intelligent water of terminal device It is flat, improve Consumer's Experience.
It will be understood by those skilled in the art that the present invention includes being related to for performing one in operation described herein Or multinomial equipment.These equipment can specially be designed and manufactured for required purpose, or can also include general-purpose computations Known device in machine.These equipment have the computer program being stored in it, and these computer programs optionally activate Or reconstruct.Such computer program, which can be stored in equipment (for example, computer) computer-readable recording medium or be stored in, to be suitable to Storage e-command is simultaneously coupled in any kind of medium of bus respectively, and the computer-readable medium includes but is not limited to Any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, it is read-only to deposit Reservoir), RAM (RandomAccess Memory, random access memory), EPROM (Erasable Programmable Read- Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash memory, magnetic card or light card.It is it is, readable Medium includes any medium for storing or transmitting information in the form of it can read by equipment (for example, computer).
Those skilled in the art of the present technique be appreciated that can with computer program instructions come realize these structure charts and/or The combination of each frame and these structure charts and/or the frame in block diagram and/or flow graph in block diagram and/or flow graph.This technology is led Field technique personnel be appreciated that these computer program instructions can be supplied to all-purpose computer, special purpose computer or other The processor of programmable data processing method is realized, so as to pass through the processing of computer or other programmable data processing methods Device performs the scheme specified in the frame of structure chart and/or block diagram and/or flow graph disclosed by the invention or multiple frames.
Those skilled in the art of the present technique are appreciated that in the various operations discussed in the present invention, method, flow Step, measure, scheme can be replaced, changed, combined or deleted.Further, it is each with having been discussed in the present invention Kind operation, method, other steps in flow, measure, scheme can also be replaced, changed, reset, decomposed, combined or deleted. Further, it is of the prior art to have and the step in the various operations disclosed in the present invention, method, flow, measure, scheme It can also be replaced, changed, reset, decomposed, combined or deleted.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, every utilization The equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations Technical field, be included within the scope of the present invention.

Claims (10)

1. a kind of video self-adapting regulation method, it is characterised in that comprise the following steps:
The size for the video for intending playing is obtained, the size includes the width and height of the video;
Judge whether the size of the video is adapted with the placement posture of terminal device;
When the size of the video and the incompatible placement posture of the terminal device, adjust the size of the video to The size of the screen of the terminal device matches.
2. video self-adapting regulation method according to claim 1, it is characterised in that the placement posture of the terminal device For transverse screen state, the size for judging the video whether the step bag adaptable with the placement posture of the terminal device Include:
Judge whether the height of the video is more than the width of the video;
When the height of the video is more than the width of the video, the size of the video and putting for the terminal device are judged It is incompatible to put posture.
3. video self-adapting regulation method according to claim 2, it is characterised in that the size of the adjustment video The step of matching to the size with the screen includes:
Compare the size of the height of the video and the height of the screen;
When the height of the video is more than the height of the screen, height of the height of the video extremely with the screen is reduced It is equal, and the width of video described in Scaling.
4. video self-adapting regulation method according to claim 3, it is characterised in that the height of the video With also including after the step of size of the height of the screen:
When the height of the video is less than the height of the screen, increase height of the height of the video extremely with the screen It is equal, and wait the width than increasing the video.
5. video self-adapting regulation method according to claim 1, it is characterised in that the placement posture of the terminal device For portrait layout state, the size for judging the video whether the step bag adaptable with the placement posture of the terminal device Include:
Judge whether the height of the video is less than the width of the video;
When the height of the video is less than the width of the video, the size of the video and putting for the terminal device are judged It is incompatible to put posture.
A kind of 6. video self-adapting adjusting apparatus, it is characterised in that including:
Acquisition module, for obtaining the size for the video for intending playing, the size includes the width and height of the video;
Judge module, for judging whether the size of the video is adapted with the placement posture of the terminal device;
Adjusting module, for when the size of the video and the incompatible placement posture of the terminal device, described in adjustment The size of video to the size with the screen matches.
7. video self-adapting adjusting apparatus according to claim 6, it is characterised in that the placement posture of the terminal device For transverse screen state, the judge module includes:
First judging unit, for judging whether the height of the video is more than the width of the video;
First decision unit, for when the height of the video is more than the width of the video, judging the size of the video It is incompatible with the placement posture of the terminal device.
8. video self-adapting adjusting apparatus according to claim 7, it is characterised in that the adjusting module includes:
Height comparing unit, the size for the height and the height of the screen of the video;
First reducing unit, for when the height of the video is more than the height of the screen, reducing the height of the video It is extremely equal with the height of the screen, and the width of video described in Scaling.
9. video self-adapting adjusting apparatus according to claim 8, it is characterised in that the adjusting module also includes first Increasing unit, first increasing unit are used for:When the height of the video is less than the height of the screen, regarded described in increase The height of frequency is extremely equal with the height of the screen, and waits the width than increasing the video.
10. video self-adapting adjusting apparatus according to claim 6, it is characterised in that the placement appearance of the terminal device State is portrait layout state, and the judge module includes:
Second judging unit, for judging whether the height of the video is less than the width of the video;
Second decision unit, for when the height of the video is less than the width of the video, judging the size of the video It is incompatible with the placement posture of the terminal device.
CN201710931097.1A 2017-10-09 2017-10-09 Video self-adapting regulation method and device Pending CN107613342A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710931097.1A CN107613342A (en) 2017-10-09 2017-10-09 Video self-adapting regulation method and device
PCT/CN2017/111957 WO2019071720A1 (en) 2017-10-09 2017-11-20 Adaptive video adjustment method and apparatus, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710931097.1A CN107613342A (en) 2017-10-09 2017-10-09 Video self-adapting regulation method and device

Publications (1)

Publication Number Publication Date
CN107613342A true CN107613342A (en) 2018-01-19

Family

ID=61068682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710931097.1A Pending CN107613342A (en) 2017-10-09 2017-10-09 Video self-adapting regulation method and device

Country Status (2)

Country Link
CN (1) CN107613342A (en)
WO (1) WO2019071720A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815367A (en) * 2019-01-24 2019-05-28 北京字节跳动网络技术有限公司 The interaction control method and device of displayed page
CN110572722A (en) * 2019-09-26 2019-12-13 腾讯科技(深圳)有限公司 Video clipping method, device, equipment and readable storage medium
CN112114912A (en) * 2019-06-19 2020-12-22 华为技术有限公司 User interface layout method and electronic equipment
US11586255B2 (en) 2019-11-19 2023-02-21 Beijing Bytedance Network Technology Co., Ltd. Method and apparatus for adjusting view for target device, electronic device and medium
CN115857852A (en) * 2020-09-11 2023-03-28 华为技术有限公司 Application layout control method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256477A (en) * 2007-02-26 2008-09-03 索尼株式会社 Image processing system, information processing apparatus, image processing method and program
US20120050558A1 (en) * 2010-08-31 2012-03-01 Sony Corporation Image processing apparatus and image processing method
CN102622991A (en) * 2011-02-01 2012-08-01 宏正自动科技股份有限公司 Image adjusting device and image adjusting method
CN105554347A (en) * 2015-12-15 2016-05-04 魅族科技(中国)有限公司 Content display method and device
CN106028124A (en) * 2016-07-04 2016-10-12 北京金山安全软件有限公司 Video playing method and device and electronic equipment
CN106454407A (en) * 2016-10-25 2017-02-22 广州华多网络科技有限公司 Video live broadcast method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303571B (en) * 2016-08-29 2019-03-15 武汉斗鱼网络科技有限公司 The method and system of adaptive screen rotation are realized in image acquisition process

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101256477A (en) * 2007-02-26 2008-09-03 索尼株式会社 Image processing system, information processing apparatus, image processing method and program
US20120050558A1 (en) * 2010-08-31 2012-03-01 Sony Corporation Image processing apparatus and image processing method
CN102622991A (en) * 2011-02-01 2012-08-01 宏正自动科技股份有限公司 Image adjusting device and image adjusting method
CN105554347A (en) * 2015-12-15 2016-05-04 魅族科技(中国)有限公司 Content display method and device
CN106028124A (en) * 2016-07-04 2016-10-12 北京金山安全软件有限公司 Video playing method and device and electronic equipment
CN106454407A (en) * 2016-10-25 2017-02-22 广州华多网络科技有限公司 Video live broadcast method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109815367A (en) * 2019-01-24 2019-05-28 北京字节跳动网络技术有限公司 The interaction control method and device of displayed page
US11586345B2 (en) 2019-01-24 2023-02-21 Beijing Bytedance Network Technology Co., Ltd. Method and apparatus for interaction control of display page
CN112114912A (en) * 2019-06-19 2020-12-22 华为技术有限公司 User interface layout method and electronic equipment
CN110572722A (en) * 2019-09-26 2019-12-13 腾讯科技(深圳)有限公司 Video clipping method, device, equipment and readable storage medium
US11586255B2 (en) 2019-11-19 2023-02-21 Beijing Bytedance Network Technology Co., Ltd. Method and apparatus for adjusting view for target device, electronic device and medium
CN115857852A (en) * 2020-09-11 2023-03-28 华为技术有限公司 Application layout control method and related device

Also Published As

Publication number Publication date
WO2019071720A1 (en) 2019-04-18

Similar Documents

Publication Publication Date Title
CN107613342A (en) Video self-adapting regulation method and device
US8412291B2 (en) Detection, selection and provision of external antennas for a mobile device
CN107767875A (en) Sound control method, device and terminal device
AU2011214998B2 (en) Data operation method for terminal including three-piece display units and terminal supporting the same
US8644784B2 (en) Terminal apparatus and diversity antenna control method for the same
US20110231517A1 (en) Smart download system for mobile devices with multiple data interfaces using enhanced HTTP proxy server
CN106445549A (en) Method and device for adjusting functional module layout in application program interface
CN105120135A (en) Binocular camera
CN103944864A (en) Information transmission method, information sending device, receiving device and system
CN101395672A (en) Low storage portable media player
CN110096660A (en) Method, apparatus and electronic equipment for loading page picture
CN106528627A (en) Method and apparatus for loading and locating webpage browsing position
CN106155595A (en) The storage optimization method of memory and system
CN105933452A (en) Information pushing method and device, information displaying method and device
CN105827866A (en) Mobile terminal and control method
WO2018006856A1 (en) Echo cancellation method and terminal, and computer storage medium
CN107197509A (en) heartbeat connection method and device
CN107135536A (en) Method for connecting network and device
CN105979195A (en) Video image processing apparatus and method
CN107135518A (en) Maintain method, device and the terminal device of heartbeat connection
CN108882324A (en) Processing method, device, computer equipment and the storage medium of intelligence switching WiFi
CN106128470A (en) The device and method of display audible spectrum
CN105516471A (en) Display apparatus and display method for automatically-received information
CN105430500A (en) Mobile terminal-based automatic program acquisition method and system, and program playing device
US20140135072A1 (en) Display device, display control method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180119