CN107659837B - A multimedia data playback control method and mobile terminal - Google Patents
A multimedia data playback control method and mobile terminal Download PDFInfo
- Publication number
- CN107659837B CN107659837B CN201710773380.6A CN201710773380A CN107659837B CN 107659837 B CN107659837 B CN 107659837B CN 201710773380 A CN201710773380 A CN 201710773380A CN 107659837 B CN107659837 B CN 107659837B
- Authority
- CN
- China
- Prior art keywords
- display ratio
- flexible screen
- bending
- ratio
- multimedia data
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/414—Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
- H04N21/41407—Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/026—Details of the structure or mounting of specific components
- H04M1/0266—Details of the structure or mounting of specific components for a display module assembly
- H04M1/0268—Details of the structure or mounting of specific components for a display module assembly including a flexible display panel
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/041—Indexing scheme relating to G06F3/041 - G06F3/045
- G06F2203/04102—Flexible digitiser, i.e. constructional details for allowing the whole digitising part of a device to be flexed or rolled like a sheet of paper
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Controls And Circuits For Display Device (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
本发明提供一种多媒体数据播放控制方法及移动终端,涉及通信技术领域。该方法,应用于设置有柔性屏的移动终端,所述方法包括:若接收到播放多媒体数据的指令,则检测柔性屏的弯折参数;基于检测到的弯折参数,确定柔性屏的第一显示比例;将所述第一显示比例确定为所述多媒体数据的播放比例;按照所述播放比例,播放所述多媒体数据。本发明的方案解决了现有的多媒体数据播放方式播放时,因比例不适而出现的画面被拉伸或者裁减,以及屏幕黑框,降低了播放效果和移动终端适用性的问题。
The invention provides a multimedia data playback control method and a mobile terminal, and relates to the technical field of communication. The method is applied to a mobile terminal provided with a flexible screen, and the method includes: if an instruction to play multimedia data is received, detecting the bending parameters of the flexible screen; based on the detected bending parameters, determining the first flexible screen display ratio; determining the first display ratio as the playback ratio of the multimedia data; playing the multimedia data according to the playback ratio. The solution of the present invention solves the problems of stretched or cropped pictures and black frames on the screen due to inappropriate proportions in the existing multimedia data playback mode, which reduces the playback effect and the applicability of mobile terminals.
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种多媒体数据播放控制方法及移动终端。The invention relates to the field of communication technology, in particular to a multimedia data playback control method and a mobile terminal.
背景技术Background technique
随着通信技术的迅速发展,手机、平板等移动终端的功能越来越多样化,拍照、看电影、打游戏、网页浏览新闻、购物等都被集成到移动终端中,使之成为了一种新型的多媒体设备。With the rapid development of communication technology, the functions of mobile terminals such as mobile phones and tablets are becoming more and more diversified. Taking pictures, watching movies, playing games, browsing news on the web, shopping, etc. are all integrated into mobile terminals, making them a kind of New multimedia equipment.
但是,移动终端的不同多媒体应用的人机交互界面,所设计预定的分辨率是不同的,对应的显示时的宽高比例也有不同。现有的多媒体播放,一种方式,是将不同比例的媒体播放界面在屏幕上全屏显示,画面不可避免的被拉伸或裁减;一种方式,是为了显示比例适应不进行全屏显示,在屏幕四周会存在黑框。这样,现有的方式将会影响到多媒体播放的效果,降低了移动终端的适用性。However, the human-computer interaction interfaces of different multimedia applications of mobile terminals are designed with different predetermined resolutions, and the corresponding display aspect ratios are also different. One way of existing multimedia playback is to display media playback interfaces with different proportions in full screen on the screen, and the picture will inevitably be stretched or cut; There will be a black frame around it. In this way, the existing method will affect the effect of multimedia playback and reduce the applicability of the mobile terminal.
发明内容Contents of the invention
本发明实施例提供一种多媒体数据播放控制方法及移动终端,以解决现有的多媒体数据播放方式播放时,因比例不适而出现的画面被拉伸或者裁减,以及屏幕黑框,降低了播放效果和移动终端适用性的问题。Embodiments of the present invention provide a multimedia data playback control method and a mobile terminal to solve the problem of stretched or cropped pictures due to improper proportions and black frames on the screen when the existing multimedia data playback method is played, which reduces the playback effect. and the applicability of mobile terminals.
第一方面,提供了一种多媒体数据播放控制方法,应用于设置有柔性屏的移动终端,所述方法包括:In a first aspect, a multimedia data playback control method is provided, which is applied to a mobile terminal provided with a flexible screen, and the method includes:
若接收到播放多媒体数据的指令,则检测柔性屏的弯折参数;If an instruction to play multimedia data is received, the bending parameters of the flexible screen are detected;
基于检测到的弯折参数,确定柔性屏的第一显示比例;determining a first display ratio of the flexible screen based on the detected bending parameters;
将所述第一显示比例确定为所述多媒体数据的播放比例;determining the first display ratio as the playback ratio of the multimedia data;
按照所述播放比例,播放所述多媒体数据。Play the multimedia data according to the playing ratio.
第二方面,提供了一种移动终端,设置有柔性屏,所述移动终端包括:In a second aspect, a mobile terminal is provided, which is provided with a flexible screen, and the mobile terminal includes:
处理模块,用于若接收到播放多媒体数据的指令,则检测柔性屏的弯折参数;A processing module, configured to detect bending parameters of the flexible screen if an instruction to play multimedia data is received;
第一确定模块,用于基于检测到的弯折参数,确定柔性屏的第一显示比例;A first determination module, configured to determine a first display ratio of the flexible screen based on the detected bending parameters;
第二确定模块,用于将所述第一显示比例确定为所述多媒体数据的播放比例;A second determining module, configured to determine the first display ratio as the playback ratio of the multimedia data;
播放模块,用于按照所述播放比例,播放所述多媒体数据。The playing module is used to play the multimedia data according to the playing ratio.
第三方面,提供了一种移动终端,设置有柔性屏,所述移动终端还包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的多媒体数据播放控制方法中的步骤。In a third aspect, a mobile terminal is provided, which is provided with a flexible screen, and the mobile terminal further includes a processor, a memory, and a computer program stored in the memory and operable on the processor, the computer program When executed by the processor, the steps in the above multimedia data playback control method are realized.
第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如如上所述的多媒体数据播放控制方法中的步骤。In a fourth aspect, a computer-readable storage medium is provided. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps in the multimedia data playback control method as described above are implemented. .
在本发明实施例中,在接收到播放多媒体数据的指令后,就通过检测柔性屏的弯折参数,基于该弯折参数来确定柔性屏的第一显示比例,将第一显示比例确定为该多媒体数据的播放比例,按照该播放比例播放该多媒体数据。这样,经对柔性屏和多媒体数据的适配调整后,多媒体数据的播放将保持最佳的比例,画面不变形失真,同时,画面在对应区域全屏显示,不会有黑边,提高了多媒体数据播放效果,以及移动终端的适用性。In the embodiment of the present invention, after receiving an instruction to play multimedia data, the first display ratio of the flexible screen is determined based on the bending parameters of the flexible screen by detecting the bending parameters, and the first display ratio is determined as the The playback ratio of the multimedia data, and the multimedia data is played according to the playback ratio. In this way, after the adaptation and adjustment of the flexible screen and multimedia data, the playback of multimedia data will maintain the best ratio, and the picture will not be deformed and distorted. playback effect, and the applicability of mobile terminals.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本发明实施例的多媒体数据播放控制方法的流程图之一;Fig. 1 is one of flow charts of the multimedia data playback control method of the embodiment of the present invention;
图2为本发明实施例中移动终端的柔性屏示意图之一;Fig. 2 is one of the schematic diagrams of the flexible screen of the mobile terminal in the embodiment of the present invention;
图3为本发明实施例中移动终端的柔性屏示意图之二;Fig. 3 is the second schematic diagram of the flexible screen of the mobile terminal in the embodiment of the present invention;
图4为本发明实施例的多媒体数据播放控制方法的流程图之二;Fig. 4 is the second flow chart of the multimedia data playback control method according to the embodiment of the present invention;
图5为本发明实施例中移动终端的柔性屏示意图之三;Fig. 5 is the third schematic diagram of the flexible screen of the mobile terminal in the embodiment of the present invention;
图6为本发明实施例中移动终端的柔性屏示意图之四;Fig. 6 is the fourth schematic diagram of the flexible screen of the mobile terminal in the embodiment of the present invention;
图7为本发明实施例的移动终端的结构示意图之一;FIG. 7 is one of the schematic structural diagrams of a mobile terminal according to an embodiment of the present invention;
图8为本发明实施例的移动终端的结构示意图之二;FIG. 8 is a second structural schematic diagram of a mobile terminal according to an embodiment of the present invention;
图9为本发明实施例的移动终端的结构示意图之三;FIG. 9 is a third structural schematic diagram of a mobile terminal according to an embodiment of the present invention;
图10为本发明另一实施例的移动终端的结构示意图;FIG. 10 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention;
图11为本发明又一实施例的移动终端的结构示意图;FIG. 11 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention;
图12为图5中柔性屏弯折后的示意图;FIG. 12 is a schematic diagram of the flexible screen in FIG. 5 after being bent;
图13为图6中柔性屏弯折后的示意图。FIG. 13 is a schematic diagram of the flexible screen in FIG. 6 after being bent.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
如图1所示,本发明实施例的多媒体数据播放控制方法,应用于设置有柔性屏的移动终端,所述方法包括:As shown in Figure 1, the multimedia data playback control method of the embodiment of the present invention is applied to a mobile terminal provided with a flexible screen, and the method includes:
步骤101,若接收到播放多媒体数据的指令,则检测柔性屏的弯折参数。Step 101, if an instruction to play multimedia data is received, then detect bending parameters of the flexible screen.
本步骤中,通过接收到的播放多媒体数据的指令,了解到用户对多媒体数据的播放需求,则进行柔性屏的弯折参数检测。其中,用户将基于预先设置的触发方式输入播放多媒体数据的指令。这里的触发方式可以有多种,如物理按键或虚拟按键触发的,又或者是通过生物识别技术触发的,等等,在此不再一一列举。In this step, the user's demand for playing multimedia data is known through the received instruction to play multimedia data, and then the bending parameter detection of the flexible screen is performed. Wherein, the user will input an instruction to play multimedia data based on a preset trigger mode. There can be various ways of triggering, such as being triggered by a physical button or a virtual button, or by biometric technology, etc., which will not be listed here.
步骤102,基于检测到的弯折参数,确定柔性屏的第一显示比例。Step 102, based on the detected bending parameters, determine a first display ratio of the flexible screen.
本步骤中,将基于步骤101检测到的弯折参数,确定柔性屏的第一显示比例,以进行后续播放。In this step, based on the bending parameters detected in step 101, the first display ratio of the flexible screen is determined for subsequent playback.
步骤103,将所述第一显示比例确定为所述多媒体数据的播放比例。Step 103, determining the first display ratio as the playback ratio of the multimedia data.
本步骤中,将步骤102确定的第一显示比例确定为多媒体数据的播放比例,以便之后柔性屏与多媒体数据的适应性播放。In this step, the first display ratio determined in step 102 is determined as the playback ratio of the multimedia data, so as to facilitate the adaptive playback of the flexible screen and the multimedia data afterwards.
步骤104,按照所述播放比例,播放所述多媒体数据。Step 104: Play the multimedia data according to the playing ratio.
本步骤中,在步骤103之后,就能够按照该播放比例,播放该多媒体数据,实现柔性屏与多媒体数据的适应性播放。In this step, after step 103, the multimedia data can be played according to the playback ratio, so as to realize the adaptive playback of the flexible screen and the multimedia data.
本发明实施例的多媒体数据播放控制方法,在接收到播放多媒体数据的指令后,就通过检测柔性屏的弯折参数,基于该弯折参数来确定柔性屏的第一显示比例,然后将第一显示比例确定为该多媒体数据的播放比例,最终,按照该播放比例播放该多媒体数据。这样,经对柔性屏和多媒体数据的适应调整后,多媒体数据的播放能够避免因两者的不适配而影响播放效果的问题,提高了多媒体数据播放效果,以及移动终端的适用性。In the multimedia data playback control method of the embodiment of the present invention, after receiving an instruction to play multimedia data, the first display ratio of the flexible screen is determined based on the bending parameters by detecting the bending parameters of the flexible screen, and then the first The display ratio is determined as the playback ratio of the multimedia data, and finally, the multimedia data is played according to the playback ratio. In this way, after the adaptation and adjustment of the flexible screen and multimedia data, the playback of multimedia data can avoid the problem of affecting the playback effect due to the incompatibility of the two, and improve the playback effect of multimedia data and the applicability of the mobile terminal.
优选的,为完整对播放的对应调整,该实施例中的第一显示比例和播放比例均是指宽高比例。Preferably, in order to complete the corresponding adjustment of the playback, the first display ratio and the playback ratio in this embodiment both refer to the aspect ratio.
其中,待播放的多媒体数据不限于单独的视频、音频文件,还可以是应用程序的用户界面图像等,在此不再一一列举。Wherein, the multimedia data to be played is not limited to individual video and audio files, and may also be user interface images of application programs, etc., which will not be listed here.
应该知道的是,上述播放多媒体数据的指令的触发还可由待播放的多媒体数据的菜单设置选项实现。以一游戏程序为例,可通过在其设置菜单中选择开启柔性屏自适应功能,触发播放多媒体数据的指令,执行上述步骤101-步骤104,通过检测当前柔性屏的弯折参数,先基于该弯折参数来确定柔性屏的第一显示比例,然后将该第一显示比例确定为该游戏程序的用户界面图像的播放比例,从而,按照该播放比例播放该用户界面图像。这样,该用户界面图像就能够避免因与显示区域不适配而出现被拉伸、裁减或者屏幕黑边的问题,实现更优的播放效果。It should be known that the triggering of the above-mentioned instruction to play multimedia data can also be realized by a menu setting option of the multimedia data to be played. Taking a game program as an example, you can choose to enable the adaptive function of the flexible screen in its setting menu, trigger an instruction to play multimedia data, and execute the above steps 101-104. By detecting the bending parameters of the current flexible screen, first based on the The bending parameters are used to determine the first display ratio of the flexible screen, and then the first display ratio is determined as the playback ratio of the user interface image of the game program, so that the user interface image is played according to the playback ratio. In this way, the user interface image can avoid problems of being stretched, cropped, or black borders on the screen due to incompatibility with the display area, thereby achieving a better playback effect.
当然,也可以在菜单设置中选择不开启柔性屏自适应功能,从而按照默认方式经多媒体数据的播放。另外,菜单设置选项实现触发的方式,还能够添加记忆功能,当用户下一次进入同样的应用程序时,无需再次选择,将延续上一次的选择进行对应方式的播放,使得该移动终端的使用更加便捷,减少了用户的频繁操作。Of course, it is also possible to choose not to enable the adaptive function of the flexible screen in the menu setting, so as to play the multimedia data in a default manner. In addition, the trigger mode of the menu setting option can also add a memory function. When the user enters the same application program next time, there is no need to select again, and the corresponding mode will continue to be played last time, making the use of the mobile terminal more convenient. It is convenient and reduces the frequent operations of users.
在本发明实施例中,因移动终端设置有柔性屏,用户能够根据自己的喜欢和需要在柔性屏的宽高方向上的任意点进行手动弯折,如图2和图3所示,将第一区域201和第二区域202弯折到另一侧,而未弯折的第三区域203将作为显示区域进行多媒体数据的播放。因此,在上述实施例的基础上,步骤101中,检测柔性屏的弯折参数的步骤,包括:In the embodiment of the present invention, since the mobile terminal is equipped with a flexible screen, the user can manually bend the flexible screen at any point in the width and height direction according to his own preferences and needs, as shown in Figure 2 and Figure 3, the second The first area 201 and the second area 202 are bent to the other side, and the unbent third area 203 will be used as a display area for playing multimedia data. Therefore, on the basis of the above embodiments, in step 101, the step of detecting the bending parameters of the flexible screen includes:
检测用户对柔性屏的弯折控制操作;Detect the user's bending control operation on the flexible screen;
若检测到用户对柔性屏的弯折控制操作,则获取柔性屏的弯折参数。If the user's bending control operation on the flexible screen is detected, the bending parameters of the flexible screen are acquired.
这里,将通过检测用户对柔性屏的弯折控制操作,来获取到该柔性屏的弯折参数如弯折区域、弯折方向和弯折角度等,了解到用户对柔性屏的弯折,以便后续根据该柔性屏的弯折,调整多媒体数据以适应用户期望的显示区域进行播放。Here, by detecting the user's bending control operation on the flexible screen, the bending parameters of the flexible screen, such as the bending area, bending direction and bending angle, etc., will be obtained, and the user's bending of the flexible screen will be known, so that Subsequently, according to the bending of the flexible screen, the multimedia data is adjusted to fit the user's desired display area for playing.
其中,弯折区域在柔性屏的另一侧还可用于对未弯折区域的支撑,提高用户双手的自由行。Among them, the bent area on the other side of the flexible screen can also be used to support the unbent area, improving the free movement of the user's hands.
例如,针对图2和图3所示的柔性屏,在用户对柔性屏进行弯折控制操作后,该移动终端即可通过自身第一区域201和第二区域202的支撑立于桌面上。检测该弯折控制操作,通过确定柔性屏发生弯折的位置,获取到弯折参数(如弯折区域、弯折方向等)。For example, with regard to the flexible screen shown in FIG. 2 and FIG. 3 , after the user performs bending control operation on the flexible screen, the mobile terminal can stand on the desktop with the support of its own first area 201 and second area 202 . The bending control operation is detected, and bending parameters (such as bending area, bending direction, etc.) are obtained by determining the bending position of the flexible screen.
具体的,如图4所示,步骤102包括:Specifically, as shown in Figure 4, step 102 includes:
步骤1021,提取弯折参数中的弯折区域。Step 1021, extract the bending area in the bending parameters.
在上述方法中,用户对柔性屏主动进行弯折控制操作时,将能够获取到柔性屏的弯折参数,本步骤中,即可直接从弯折参数中提取到所需的弯折区域。In the above method, when the user actively performs a bending control operation on the flexible screen, the bending parameters of the flexible screen will be obtained. In this step, the required bending area can be directly extracted from the bending parameters.
步骤1022,根据所述弯折区域,确定柔性屏的未弯折区域。Step 1022: Determine the unbent area of the flexible screen according to the bending area.
本步骤中,在经步骤1021提取到弯折区域后,结合该柔性屏在未弯折时的整体面积,就能够确定出该柔性屏的未弯折区域。In this step, after the bending area is extracted in step 1021, the unbending area of the flexible screen can be determined in combination with the overall area of the flexible screen when it is not bent.
步骤1023,获取所述未弯折区域的显示比例。Step 1023, acquire the display ratio of the unbent area.
本步骤中,在步骤1022确定出未弯折区域后,即能够获取到当前未弯折区域的显示比例。以图3中的未弯折区域第三区域203为例,在无法直接获取其显示比例时,可通过该第三区域203当前的显示分辨率a*b,计算得到对应的显示比例c:d。In this step, after the unbent area is determined in step 1022, the display ratio of the current unbent area can be acquired. Taking the third area 203 of the unbent area in FIG. 3 as an example, when the display ratio cannot be obtained directly, the corresponding display ratio c:d can be calculated based on the current display resolution a*b of the third area 203 .
步骤1024,将所述未弯折区域的显示比例确定为第一显示比例。Step 1024, determining the display ratio of the unbent region as a first display ratio.
本步骤中,将确定上述步骤1023获取到的未弯折区域的显示比例为该柔性屏的第一显示比例。In this step, the display ratio of the unbent area acquired in step 1023 above will be determined as the first display ratio of the flexible screen.
这样,经步骤1021-步骤1024,通过提取经用户的弯折控制操作后柔性屏弯折参数中的弯折区域,能够确定出在该柔性屏中的未弯折区域,进而得到该未弯折区域的显示比例,将其确定为第一显示比例,这样,当如步骤103和步骤104,将该第一显示比例作为多媒体数据的播放比例,并以该第一显示比例播放多媒体数据时,由于多媒体数据的播放比例与柔性屏当前未弯折区域的显示比例相等,就能够有效避免因与显示区域不适配而出现被拉伸、裁减或者屏幕黑边的问题,实现更优的播放效果。In this way, through step 1021-step 1024, by extracting the bending area in the bending parameters of the flexible screen after the user's bending control operation, the unbent area in the flexible screen can be determined, and then the unbent area can be obtained. The display ratio of the region is determined as the first display ratio. Like this, when as step 103 and step 104, the first display ratio is used as the playback ratio of the multimedia data, and when playing the multimedia data with the first display ratio, due to The playback ratio of multimedia data is equal to the display ratio of the current unbent area of the flexible screen, which can effectively avoid the problems of being stretched, cut or black borders on the screen due to incompatibility with the display area, and achieve better playback effects.
其中,考虑到多媒体数据的原始播放比例是在该多媒体数据的制作时已确定的,所以,在确定柔性屏未弯折区域的显示比例后,往往该未弯折区域的显示比例与多媒体数据的原始播放比例是不同的,此时,将以未弯折区域的显示比例作为多媒体数据的播放比例,对多媒体数据进行缩放。仍以图3所示的柔性屏为例,将先由待播放的多媒体数据的原始播放比例和第三区域203的显示比例,确定多媒体数据宽度方向的缩放比例以及高度方形的缩放比例,然后对多媒体数据进行处理,使其播放比例与未弯折区域的显示比例一致。而且由于宽高比例与显示分辨率的对应关系,还可由待播放的多媒体数据的原始显示分辨率n*m,第三区域203的显示分辨率p*q,得到多媒体数据宽度方向的缩放比例p/n以及高度方形的缩放比例q/m,进而对多媒体数据进行处理,使其播放比例与未弯折区域的显示比例一致。Among them, considering that the original playback ratio of the multimedia data is determined when the multimedia data is produced, after determining the display ratio of the unbent area of the flexible screen, the display ratio of the unbent area is often different from the display ratio of the multimedia data. The original playback ratio is different. At this time, the display ratio of the unbent area is used as the playback ratio of the multimedia data to scale the multimedia data. Still taking the flexible screen shown in Figure 3 as an example, the scaling ratio in the width direction of the multimedia data and the scaling ratio in the height square are determined by the original playback ratio of the multimedia data to be played and the display ratio of the third area 203, and then the The multimedia data is processed so that its playback ratio is consistent with the display ratio of the unbent area. Moreover, due to the corresponding relationship between the aspect ratio and the display resolution, the original display resolution n*m of the multimedia data to be played and the display resolution p*q of the third area 203 can be used to obtain the scaling ratio p in the width direction of the multimedia data /n and the highly square zoom ratio q/m, and then process the multimedia data so that the playback ratio is consistent with the display ratio of the unbent area.
当然,在实际应用中,用户可能不会对该柔性屏进行主动弯折,此时,在步骤101的检测柔性屏的弯折参数的步骤之前,还包括:Of course, in practical applications, the user may not actively bend the flexible screen. In this case, before the step of detecting the bending parameters of the flexible screen in step 101, the steps include:
获取柔性屏的初始显示比例;Get the initial display ratio of the flexible screen;
获取所述多媒体数据的第二显示比例;Acquiring a second display ratio of the multimedia data;
将所述第二显示比例和所述初始显示比例进行比较;comparing the second display scale with the initial display scale;
若所述第二显示比例和所述初始显示比例不相同,则根据所述初始显示比例和所述第二显示比例,控制柔性屏进行弯折。If the second display ratio is different from the initial display ratio, control the flexible screen to bend according to the initial display ratio and the second display ratio.
这里,对于柔性屏未受到用户主动弯折的情况,将先获取柔性屏的初始显示比例(即该柔性屏未弯折状态的显示比例)以及多媒体数据的第二显示比例(即该多媒体数据的原始播放比例),通过将第二显示比例和初始显示比例进行比较,两者不相同时,由该初始显示比例和该第二显示比例去控制柔性屏弯折。这样,柔性屏弯折后,该柔性屏的未弯折区域的显示比例就能够实现与第二显示比例相同,达到在该柔性屏的未弯折区域播放该多媒体数据时,在用户点击播放或触发启动后,即可开始播放电影,玩游戏或进行其他多媒体数据播放,因在播放前,柔性屏能够根据多媒体数据的尺寸自动调整了自身适应该多媒体数据播放的最佳宽高比例,所以开始多媒体播放后,多媒体画面可以保持自身的显示比例进行播放,画面不变形失真,同时,画面全屏显示,不会有黑边,提高了多媒体使用体验。Here, for the case where the flexible screen is not actively bent by the user, the initial display ratio of the flexible screen (that is, the display ratio in the unbent state of the flexible screen) and the second display ratio of the multimedia data (that is, the display ratio of the multimedia data) will be obtained first. Original display ratio), by comparing the second display ratio with the initial display ratio, if the two are different, the initial display ratio and the second display ratio are used to control the bending of the flexible screen. In this way, after the flexible screen is bent, the display ratio of the unbent area of the flexible screen can be the same as the second display ratio, so that when the multimedia data is played in the unbent area of the flexible screen, when the user clicks to play or After triggering and starting, you can start playing movies, games or other multimedia data. Before playing, the flexible screen can automatically adjust itself according to the size of the multimedia data. After the multimedia is played, the multimedia screen can maintain its own display ratio for playback without deformation and distortion of the screen. At the same time, the screen is displayed in full screen without black borders, which improves the multimedia experience.
具体的,上述步骤中,根据所述初始显示比例和所述第二显示比例,控制柔性屏进行弯折的步骤,包括:Specifically, in the above steps, the step of controlling the bending of the flexible screen according to the initial display ratio and the second display ratio includes:
根据所述初始显示比例和所述第二显示比例,确定柔性屏的弯折区域;Determine the bending area of the flexible screen according to the initial display ratio and the second display ratio;
获取预设的弯折方向和弯折角度;Obtain the preset bending direction and bending angle;
控制柔性屏的所述弯折区域按照所述预设的弯折方向和弯折角度进行弯折;controlling the bending area of the flexible screen to bend according to the preset bending direction and bending angle;
其中,弯折后的柔性屏的显示比例为所述第一显示比例,所述第一显示比例与所述第二显示比例相同。Wherein, the display ratio of the bent flexible screen is the first display ratio, and the first display ratio is the same as the second display ratio.
这里,将先根据已获取到的初始显示比例和第二显示比例,确定出使两者相同时柔性屏的弯折区域,然后再获取到移动终端中预设的弯折方向和弯折角度,控制该柔性屏的弯折区域按照该预设的弯折方向和弯折角度进行弯折,从而实现弯折后该柔性屏的未弯折区域的显示比例与第二显示比例相同的目的,也就是第一显示比例和第二显示比例相同。之后,该多媒体数据既能够在该柔性屏的未弯折区域中进行优化播放,不发生拉伸、裁减或者屏幕黑边等问题。Here, according to the obtained initial display ratio and second display ratio, the bending area of the flexible screen is determined when the two are the same, and then the bending direction and bending angle preset in the mobile terminal are obtained. Control the bending area of the flexible screen to be bent according to the preset bending direction and bending angle, so as to achieve the purpose that the display ratio of the unbent area of the flexible screen after bending is the same as the second display ratio, and also That is, the first display ratio is the same as the second display ratio. Afterwards, the multimedia data can be played optimally in the unbent area of the flexible screen without problems such as stretching, clipping, or black borders on the screen.
进一步具体地,根据所述初始显示比例和所述第二显示比例,确定柔性屏的弯折区域的步骤,包括:Further specifically, according to the initial display ratio and the second display ratio, the step of determining the bending area of the flexible screen includes:
若所述初始显示比例大于所述第二显示比例,则计算柔性屏的宽度方向的调整像素值;If the initial display ratio is greater than the second display ratio, calculate the adjusted pixel value in the width direction of the flexible screen;
基于所述宽度方向的调整像素值,确定柔性屏的弯折区域。The bending area of the flexible screen is determined based on the adjusted pixel value in the width direction.
这里,通过获知初始显示比例大于第二显示比例,优选地,将确定柔性屏在宽度方向上进行弯折,所以将计算柔性屏的宽度方向的调整像素值,基于该宽度方向的调整像素值,确定柔性屏的弯折区域。这样,就能够针对柔性屏在宽度方向上的显示像素多于实际播放需求的情况,确定出所需的弯折区域,以保证之后播放的效果。Here, by knowing that the initial display ratio is greater than the second display ratio, preferably, it will be determined that the flexible screen is bent in the width direction, so the adjusted pixel value in the width direction of the flexible screen will be calculated, and based on the adjusted pixel value in the width direction, Determine the bending area of the flexible screen. In this way, the required bending area can be determined for the situation that the display pixels in the width direction of the flexible screen are more than the actual playback requirements, so as to ensure the effect of subsequent playback.
例如,当前移动终端柔性屏如图5所示,其初始显示比例大于待播放的多媒体数据的第二显示比例,按照上述方法,由第二显示比例16:9,即可计算柔性屏的宽度方向的调整像素值Y1,Y1=X1/9*16,其中X1为该柔性屏的高度方向的显示像素值,此时,按照柔性屏内部的像素排列信息,找到定位点A,确定弯折区域501。这样,如图12所示,在移动终端控制该弯折区域501弯折后,柔性屏上的未弯折区域502的显示比例将与多媒体数据的第二显示比例相同,之后,在多媒体播放时,就能够保证多媒体画面的最佳比例全屏播放,且画面不失真、无黑边。For example, the current flexible screen of a mobile terminal is shown in Figure 5, and its initial display ratio is greater than the second display ratio of the multimedia data to be played. According to the above method, the width direction of the flexible screen can be calculated from the second display ratio of 16:9. The adjusted pixel value Y1, Y1=X1/9*16, where X1 is the display pixel value in the height direction of the flexible screen, at this time, according to the pixel arrangement information inside the flexible screen, find the positioning point A, and determine the bending area 501 . In this way, as shown in Figure 12, after the mobile terminal controls the bending of the bending area 501, the display ratio of the unbent area 502 on the flexible screen will be the same as the second display ratio of the multimedia data. , it can ensure the best proportion of the multimedia screen to play in full screen, and the screen is not distorted and has no black borders.
此外,根据所述初始显示比例和所述第二显示比例,确定柔性屏的弯折区域的步骤,包括:In addition, according to the initial display ratio and the second display ratio, the step of determining the bending area of the flexible screen includes:
若所述初始显示比例小于所述第二显示比例,则计算柔性屏的高度方向的调整像素值;If the initial display ratio is smaller than the second display ratio, calculate the adjusted pixel value in the height direction of the flexible screen;
基于所述高度方向的调整像素值,确定柔性屏的弯折区域。A bending area of the flexible screen is determined based on the adjusted pixel value in the height direction.
这里,通过获知初始显示比例小于第二显示比例,优选地,将确定柔性屏在高度方向上进行弯折,所以将计算柔性屏的高度方向的调整像素值,基于该高度方向的调整像素值,确定柔性屏的弯折区域。这样,就能够针对柔性屏在高度方向上的显示像素多于实际播放需求的情况,确定出所需的弯折区域,以保证之后播放的效果。Here, by knowing that the initial display ratio is smaller than the second display ratio, preferably, it will be determined that the flexible screen is bent in the height direction, so the adjusted pixel value in the height direction of the flexible screen will be calculated, and based on the adjusted pixel value in the height direction, Determine the bending area of the flexible screen. In this way, the required bending area can be determined for the case where the display pixels in the height direction of the flexible screen are more than the actual playback requirements, so as to ensure the effect of subsequent playback.
例如,当前移动终端柔性屏如图6所示,其初始显示比例小于待播放的多媒体数据的第二显示比例,按照上述方法,由第二显示比例21:9,即可计算柔性屏的高度方向的调整像素值Y2,Y2=X2/21*16,其中X2为该柔性屏的宽度方向的显示像素值,此时,按照柔性屏内部的像素排列信息,找到定位点B,确定弯折区域601。这样,如图13所示,在移动终端控制该弯折区域601弯折后,柔性屏上的未弯折区域602的显示比例将与多媒体数据的第二显示比例相同,之后,在多媒体播放时,就能够保证多媒体画面的最佳比例全屏播放,且画面不失真、无黑边。For example, the current flexible screen of a mobile terminal is shown in Figure 6, and its initial display ratio is smaller than the second display ratio of the multimedia data to be played. According to the above method, the height direction of the flexible screen can be calculated from the second display ratio of 21:9. The adjusted pixel value Y2, Y2=X2/21*16, where X2 is the display pixel value in the width direction of the flexible screen, at this time, according to the pixel arrangement information inside the flexible screen, find the positioning point B, and determine the bending area 601 . In this way, as shown in Figure 13, after the mobile terminal controls the bending of the bending area 601, the display ratio of the unbent area 602 on the flexible screen will be the same as the second display ratio of the multimedia data. , it can ensure the best proportion of the multimedia screen to play in full screen, and the screen is not distorted and has no black borders.
还应该知道的是,在本发明的上述实施例中,由于多媒体数据最终实现的播放都是在柔性屏弯折后的未弯折区域,所以,在步骤102之后,还包括:It should also be known that, in the above-mentioned embodiments of the present invention, since the multimedia data is finally played in the unbent area after the flexible screen is bent, after step 102, it also includes:
控制所述弯折区域的像素点关闭。Control the pixels of the bending area to turn off.
由于弯折区域部分并不用于多媒体数据的播放,所以,在确定柔性屏的第一显示比例后,即可将对应弯折区域的像素点关闭,避免电量的非必要消耗,延长待机时长。Since the bending area is not used for playing multimedia data, after determining the first display ratio of the flexible screen, the pixels corresponding to the bending area can be turned off to avoid unnecessary power consumption and extend the standby time.
当然,在多媒体数据的播放完成后,移动终端需控制器柔性屏恢复未弯折状态,控制关闭的像素点启动,以便该移动终端之后能够进行其他应用。Of course, after the playback of the multimedia data is completed, the mobile terminal needs to control the flexible screen to restore the unbent state, and control the activation of the closed pixels, so that the mobile terminal can perform other applications later.
综上所述,本发明实施例的多媒体数据播放控制方法,在接收到播放多媒体数据的指令后,就通过检测柔性屏的弯折参数,基于该弯折参数来确定柔性屏的第一显示比例,将第一显示比例确定为该多媒体数据的播放比例,按照该播放比例播放该多媒体数据。这样,经对柔性屏和多媒体数据的适配调整后,多媒体数据的播放将保持最佳的比例,画面不变形失真,同时,画面在对应区域全屏显示,不会有黑边,提高了多媒体数据播放效果,以及移动终端的适用性。To sum up, the multimedia data playback control method of the embodiment of the present invention, after receiving an instruction to play multimedia data, detects the bending parameters of the flexible screen, and determines the first display ratio of the flexible screen based on the bending parameters. , determining the first display ratio as the playback ratio of the multimedia data, and playing the multimedia data according to the playback ratio. In this way, after the adaptation and adjustment of the flexible screen and multimedia data, the playback of multimedia data will maintain the best ratio, and the picture will not be deformed and distorted. playback effect, and the applicability of mobile terminals.
图7是本发明一个实施例的移动终端的框图。图7所示的移动终端700设置有柔性屏,该移动终端700包括:处理模块701、第一确定模块702、第二确定模块703和播放模块704。FIG. 7 is a block diagram of a mobile terminal according to one embodiment of the present invention. The mobile terminal 700 shown in FIG. 7 is provided with a flexible screen, and the mobile terminal 700 includes: a processing module 701 , a first determining module 702 , a second determining module 703 and a playing module 704 .
处理模块701,用于若接收到播放多媒体数据的指令,则检测柔性屏的弯折参数;The processing module 701 is configured to detect the bending parameters of the flexible screen if an instruction to play multimedia data is received;
第一确定模块702,用于基于检测到的弯折参数,确定柔性屏的第一显示比例;The first determination module 702 is configured to determine a first display ratio of the flexible screen based on the detected bending parameters;
第二确定模块703,用于将所述第一显示比例确定为所述多媒体数据的播放比例;The second determining module 703 is configured to determine the first display ratio as the playback ratio of the multimedia data;
播放模块704,用于按照所述播放比例,播放所述多媒体数据。The playing module 704 is configured to play the multimedia data according to the playing ratio.
在图7的基础上,如图8所示,可选地,所述处理模块701包括:On the basis of FIG. 7, as shown in FIG. 8, optionally, the processing module 701 includes:
检测子模块7011,用于检测用户对柔性屏的弯折控制操作;The detection sub-module 7011 is used to detect the user's bending control operation on the flexible screen;
第一获取子模块7012,用于若检测到用户对柔性屏的弯折控制操作,则获取柔性屏的弯折参数。The first obtaining sub-module 7012 is configured to obtain bending parameters of the flexible screen if it is detected that the user performs a bending control operation on the flexible screen.
可选地,所述第一确定模块702包括:Optionally, the first determining module 702 includes:
提取子模块7021,用于提取弯折参数中的弯折区域;The extraction sub-module 7021 is used to extract the bending area in the bending parameters;
第一确定子模块7022,用于根据所述弯折区域,确定柔性屏的未弯折区域;The first determination sub-module 7022 is configured to determine the unbent area of the flexible screen according to the bending area;
第二获取子模块7023,用于获取所述未弯折区域的显示比例;The second obtaining sub-module 7023 is used to obtain the display ratio of the unbent area;
第二确定子模块7024,用于将所述未弯折区域的显示比例确定为第一显示比例。The second determination sub-module 7024 is configured to determine the display ratio of the unbent region as the first display ratio.
在图7的基础上,如图9所示,可选地,所述处理模块701还包括:On the basis of FIG. 7, as shown in FIG. 9, optionally, the processing module 701 further includes:
第三获取子模块7013,用于获取柔性屏的初始显示比例;The third acquisition sub-module 7013 is used to acquire the initial display ratio of the flexible screen;
第四获取子模块7014,用于获取所述多媒体数据的第二显示比例;The fourth obtaining sub-module 7014 is used to obtain the second display ratio of the multimedia data;
比较子模块7015,用于将所述第二显示比例和所述初始显示比例进行比较;A comparing submodule 7015, configured to compare the second display ratio with the initial display ratio;
控制子模块7016,用于若所述第二显示比例和所述初始显示比例不相同,则根据所述初始显示比例和所述第二显示比例,控制柔性屏进行弯折。The control submodule 7016 is configured to control the flexible screen to bend according to the initial display ratio and the second display ratio if the second display ratio is different from the initial display ratio.
可选地,所述控制子模块7016包括:Optionally, the control submodule 7016 includes:
确定单元70161,用于根据所述初始显示比例和所述第二显示比例,确定柔性屏的弯折区域;A determining unit 70161, configured to determine the bending area of the flexible screen according to the initial display ratio and the second display ratio;
获取单元70162,用于获取预设的弯折方向和弯折角度;An acquisition unit 70162, configured to acquire a preset bending direction and bending angle;
控制单元70163,控制柔性屏的所述弯折区域按照所述预设的弯折方向和弯折角度进行弯折;The control unit 70163 controls the bending area of the flexible screen to bend according to the preset bending direction and bending angle;
其中,弯折后的柔性屏的显示比例为所述第一显示比例,所述第一显示比例与所述第二显示比例相同。Wherein, the display ratio of the bent flexible screen is the first display ratio, and the first display ratio is the same as the second display ratio.
可选地,所述控制单元70163包括:Optionally, the control unit 70163 includes:
第一处理子单元701631,用于若所述初始显示比例大于所述第二显示比例,则计算柔性屏的宽度方向的调整像素值;The first processing subunit 701631 is used to calculate the adjusted pixel value in the width direction of the flexible screen if the initial display ratio is greater than the second display ratio;
第一确定子单元701632,用于基于所述宽度方向的调整像素值,确定柔性屏的弯折区域。The first determining subunit 701632 is configured to determine the bending area of the flexible screen based on the adjusted pixel value in the width direction.
可选地,所述控制单元70163包括:Optionally, the control unit 70163 includes:
第二处理子模块701633,用于若所述初始显示比例小于所述第二显示比例,则计算柔性屏的高度方向的调整像素值;The second processing sub-module 701633 is used to calculate the adjusted pixel value in the height direction of the flexible screen if the initial display ratio is smaller than the second display ratio;
第二确定子单元701634,用于基于所述高度方向的调整像素值,确定柔性屏的弯折区域。The second determining subunit 701634 is configured to determine the bending area of the flexible screen based on the adjusted pixel value in the height direction.
可选地,所述移动终端700还包括:Optionally, the mobile terminal 700 also includes:
控制模块705,用于控制所述弯折区域的像素点关闭。The control module 705 is configured to control the pixels in the bending area to be turned off.
移动终端700能够实现图1至图6的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。该移动终端在接收到播放多媒体数据的指令后,就通过检测柔性屏的弯折参数,基于该弯折参数来确定柔性屏的第一显示比例,将第一显示比例确定为该多媒体数据的播放比例,按照该播放比例播放该多媒体数据。这样,经对柔性屏和多媒体数据的适配调整后,多媒体数据的播放将保持最佳的比例,画面不变形失真,同时,画面在对应区域全屏显示,不会有黑边,提高了多媒体数据播放效果,以及移动终端的适用性。The mobile terminal 700 can implement various processes implemented by the mobile terminal in the method embodiments shown in FIG. 1 to FIG. 6 , and details are not repeated here to avoid repetition. After the mobile terminal receives an instruction to play multimedia data, it detects the bending parameters of the flexible screen, determines the first display ratio of the flexible screen based on the bending parameters, and determines the first display ratio as the playback of the multimedia data. ratio, and play the multimedia data according to the playback ratio. In this way, after the adaptation and adjustment of the flexible screen and multimedia data, the playback of multimedia data will maintain the best ratio, and the picture will not be deformed and distorted. playback effect, and the applicability of mobile terminals.
本发明实施例还提供了一种移动终端,设置有柔性屏,所述移动终端还包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述的多媒体数据播放控制方法的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention also provides a mobile terminal, which is provided with a flexible screen, and the mobile terminal further includes a processor, a memory, and a computer program stored in the memory and operable on the processor, the computer When the program is executed by the processor, each process of the above-mentioned multimedia data playback control method can be realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述的多媒体数据播放控制方法的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。An embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process of the above multimedia data playback control method is implemented, and The same technical effect can be achieved, so in order to avoid repetition, details will not be repeated here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
图10是本发明另一个实施例的移动终端的框图。图10所示的移动终端1000包括:至少一个处理器1001、存储器1002、至少一个网络接口1004和用户接口1003。移动终端1000中的各个组件通过总线系统1005耦合在一起。可理解,总线系统1005用于实现这些组件之间的连接通信。总线系统1005除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图10中将各种总线都标为总线系统1005。FIG. 10 is a block diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal 1000 shown in FIG. 10 includes: at least one processor 1001 , a memory 1002 , at least one network interface 1004 and a user interface 1003 . Various components in the mobile terminal 1000 are coupled together through the bus system 1005 . It can be understood that the bus system 1005 is used to realize connection and communication between these components. In addition to the data bus, the bus system 1005 also includes a power bus, a control bus and a status signal bus. However, the various buses are labeled as bus system 1005 in FIG. 10 for clarity of illustration.
其中,用户接口1003可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。在本发明实施例中显示器为柔性屏。Wherein, the user interface 1003 may include a display, a keyboard or a pointing device (for example, a mouse, a trackball (trackball), a touch panel or a touch screen, etc. In the embodiment of the present invention, the display is a flexible screen.
可以理解,本发明实施例中的存储器1002可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double DataRate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本文描述的系统和方法的存储器1002旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 1002 in this embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double DataRate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM, SLDRAM) And Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM). Memory 1002 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
在一些实施方式中,存储器1002存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统10021和应用程序10022。In some implementations, the memory 1002 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 10021 and an application program 10022 .
其中,操作系统10021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序10022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序10022中。Among them, the operating system 10021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing tasks based on hardware. The application program 10022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., and is used to realize various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 10022 .
在本发明实施例中,移动终端1000还包括:存储在存储器1002上并可在处理器1001上运行的计算机程序,计算机程序被处理器1001执行时实现如下步骤:若接收到播放多媒体数据的指令,则检测柔性屏的弯折参数;基于检测到的弯折参数,确定柔性屏的第一显示比例;将所述第一显示比例确定为所述多媒体数据的播放比例;按照所述播放比例,播放所述多媒体数据。In the embodiment of the present invention, the mobile terminal 1000 also includes: a computer program stored in the memory 1002 and operable on the processor 1001. When the computer program is executed by the processor 1001, the following steps are implemented: if an instruction to play multimedia data is received , then detect the bending parameters of the flexible screen; determine the first display ratio of the flexible screen based on the detected bending parameters; determine the first display ratio as the playback ratio of the multimedia data; according to the playback ratio, Play the multimedia data.
上述本发明实施例揭示的方法可以应用于处理器1001中,或者由处理器1001实现。处理器1001可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1001中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1001可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的计算机可读存储介质中。该计算机可读存储介质位于存储器1002,处理器1001读取存储器1002中的信息,结合其硬件完成上述方法的步骤。具体地,该计算机可读存储介质上存储有计算机程序,计算机程序被处理器1001执行时实现如上述多媒体数据播放控制方法实施例的各步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 1001 or implemented by the processor 1001 . The processor 1001 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 1001 or instructions in the form of software. The aforementioned processor 1001 may be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other available Program logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in a computer-readable storage medium mature in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers, and the like. The computer-readable storage medium is located in the memory 1002, and the processor 1001 reads the information in the memory 1002, and completes the steps of the above method in combination with its hardware. Specifically, a computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor 1001, various steps in the above embodiments of the multimedia data playback control method are implemented.
可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It should be understood that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSP Device, DSPD), programmable logic Device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application or a combination thereof.
对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein can be implemented through modules (eg, procedures, functions, and so on) that perform the functions described herein. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.
可选地,计算机程序被处理器1001执行时还可实现如下步骤:检测用户对柔性屏的弯折控制操作;若检测到用户对柔性屏的弯折控制操作,则获取柔性屏的弯折参数。Optionally, when the computer program is executed by the processor 1001, the following steps can also be implemented: detecting the user's bending control operation on the flexible screen; if the user's bending control operation on the flexible screen is detected, obtaining the bending parameters of the flexible screen .
可选地,计算机程序被处理器1001执行时还可实现如下步骤:提取弯折参数中的弯折区域;根据所述弯折区域,确定柔性屏的未弯折区域;获取所述未弯折区域的显示比例;将所述未弯折区域的显示比例确定为第一显示比例。Optionally, when the computer program is executed by the processor 1001, the following steps can also be implemented: extracting the bending area in the bending parameters; determining the unbent area of the flexible screen according to the bending area; obtaining the unbent area A display ratio of the region; determining the display ratio of the unbent region as the first display ratio.
可选地,计算机程序被处理器1001执行时还可实现如下步骤:获取柔性屏的初始显示比例;获取所述多媒体数据的第二显示比例;将所述第二显示比例和所述初始显示比例进行比较;若所述第二显示比例和所述初始显示比例不相同,则根据所述初始显示比例和所述第二显示比例,控制柔性屏进行弯折。Optionally, when the computer program is executed by the processor 1001, the following steps can also be implemented: obtaining the initial display ratio of the flexible screen; obtaining the second display ratio of the multimedia data; combining the second display ratio with the initial display ratio performing a comparison; if the second display ratio is different from the initial display ratio, then controlling the flexible screen to bend according to the initial display ratio and the second display ratio.
可选地,计算机程序被处理器1001执行时还可实现如下步骤:根据所述初始显示比例和所述第二显示比例,确定柔性屏的弯折区域;获取预设的弯折方向和弯折角度;控制柔性屏的所述弯折区域按照所述预设的弯折方向和弯折角度进行弯折;其中,弯折后的柔性屏的显示比例为所述第一显示比例,所述第一显示比例与所述第二显示比例相同。Optionally, when the computer program is executed by the processor 1001, the following steps can also be implemented: according to the initial display ratio and the second display ratio, determine the bending area of the flexible screen; obtain the preset bending direction and bending Angle; control the bending area of the flexible screen to bend according to the preset bending direction and bending angle; wherein, the display ratio of the flexible screen after bending is the first display ratio, and the second display ratio A display scale is the same as the second display scale.
可选地,计算机程序被处理器1001执行时还可实现如下步骤:若所述初始显示比例大于所述第二显示比例,则计算柔性屏的宽度方向的调整像素值;基于所述宽度方向的调整像素值,确定柔性屏的弯折区域。Optionally, when the computer program is executed by the processor 1001, the following steps can also be implemented: if the initial display ratio is greater than the second display ratio, then calculate the adjusted pixel value in the width direction of the flexible screen; Adjust the pixel value to determine the bending area of the flexible screen.
可选地,计算机程序被处理器1001执行时还可实现如下步骤:若所述初始显示比例小于所述第二显示比例,则计算柔性屏的高度方向的调整像素值;基于所述高度方向的调整像素值,确定柔性屏的弯折区域。Optionally, when the computer program is executed by the processor 1001, the following steps can also be implemented: if the initial display ratio is smaller than the second display ratio, then calculate the adjusted pixel value in the height direction of the flexible screen; Adjust the pixel value to determine the bending area of the flexible screen.
可选地,计算机程序被处理器1001执行时还可实现如下步骤:控制所述弯折区域的像素点关闭。Optionally, when the computer program is executed by the processor 1001, the following step can also be implemented: controlling the pixel points in the bending area to be turned off.
移动终端1000能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。在接收到播放多媒体数据的指令后,就通过检测柔性屏的弯折参数,基于该弯折参数来确定柔性屏的第一显示比例,将第一显示比例确定为该多媒体数据的播放比例,按照该播放比例播放该多媒体数据。这样,经对柔性屏和多媒体数据的适配调整后,多媒体数据的播放将保持最佳的比例,画面不变形失真,同时,画面在对应区域全屏显示,不会有黑边,提高了多媒体数据播放效果,以及移动终端的适用性。The mobile terminal 1000 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and to avoid repetition, details are not repeated here. After receiving the instruction to play multimedia data, by detecting the bending parameters of the flexible screen, the first display ratio of the flexible screen is determined based on the bending parameters, and the first display ratio is determined as the playback ratio of the multimedia data, according to The playing ratio plays the multimedia data. In this way, after the adaptation and adjustment of the flexible screen and multimedia data, the playback of multimedia data will maintain the best ratio, and the picture will not be deformed and distorted. playback effect, and the applicability of mobile terminals.
图11是本发明另一个实施例的移动终端的结构示意图。具体地,图11中的移动终端1100可以为手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、或车载电脑等。Fig. 11 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal 1100 in FIG. 11 may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.
图11中的移动终端1100包括射频(Radio Frequency,RF)电路1110、存储器1120、输入单元1130、显示单元1140、处理器1160、音频电路1170、WiFi(Wireless Fidelity)模块1180和电源1190。Mobile terminal 1100 in FIG.
其中,输入单元1130可用于接收用户输入的数字或字符信息,以及产生与移动终端1100的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元1130可以包括触控面板1131。触控面板1131,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1131上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板1131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器1160,并能接收处理器1160发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1131。除了触控面板1131,输入单元1130还可以包括其他输入设备1132,其他输入设备1132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 1130 can be used for receiving number or character information input by the user, and generating signal input related to user setting and function control of the mobile terminal 1100 . Specifically, in the embodiment of the present invention, the input unit 1130 may include a touch panel 1131 . The touch panel 1131, also referred to as a touch screen, can collect user's touch operations on or near it (such as the user's operation on the touch panel 1131 using any suitable object or accessory such as a finger, a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 1131 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 1160, and can receive and execute commands sent by the processor 1160. In addition, the touch panel 1131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1131, the input unit 1130 may also include other input devices 1132, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.
其中,显示单元1140可用于显示由用户输入的信息或提供给用户的信息以及移动终端1100的各种菜单界面。显示单元1140可包括显示面板1141,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1141。在本发明实施例中显示面板1141为柔性屏。Wherein, the display unit 1140 may be used to display information input by the user or provided to the user and various menu interfaces of the mobile terminal 1100 . The display unit 1140 may include a display panel 1141, and optionally, the display panel 1141 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED). In the embodiment of the present invention, the display panel 1141 is a flexible screen.
应注意,触控面板1131可以覆盖显示面板1141,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器1160以确定触摸事件的类型,随后处理器1160根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 1131 can cover the display panel 1141 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 1160 to determine the type of the touch event, and then the processor 1160 provides corresponding visual output on the touch display screen according to the type of the touch event.
触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons.
其中处理器1160是移动终端1100的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器1121内的软件程序和/或模块,以及调用存储在第二存储器1122内的数据,执行移动终端1100的各种功能和处理数据,从而对移动终端1100进行整体监控。可选的,处理器1160可包括一个或多个处理单元。Wherein the processor 1160 is the control center of the mobile terminal 1100, which uses various interfaces and lines to connect the various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the first memory 1121, and calling the software programs and/or modules stored in the second memory 1121. The data in the memory 1122 executes various functions of the mobile terminal 1100 and processes data, so as to monitor the mobile terminal 1100 as a whole. Optionally, the processor 1160 may include one or more processing units.
在本发明实施例中,移动终端1100还包括:存储在存储器1120上并可在处理器1160上运行的计算机程序,计算机程序被处理器1160执行时实现如下步骤:若接收到播放多媒体数据的指令,则检测柔性屏的弯折参数;基于检测到的弯折参数,确定柔性屏的第一显示比例;将所述第一显示比例确定为所述多媒体数据的播放比例;按照所述播放比例,播放所述多媒体数据。In the embodiment of the present invention, the mobile terminal 1100 also includes: a computer program stored in the memory 1120 and operable on the processor 1160. When the computer program is executed by the processor 1160, the following steps are implemented: if an instruction to play multimedia data is received , then detect the bending parameters of the flexible screen; determine the first display ratio of the flexible screen based on the detected bending parameters; determine the first display ratio as the playback ratio of the multimedia data; according to the playback ratio, Play the multimedia data.
可选地,计算机程序被处理器1160执行时还可实现如下步骤:检测用户对柔性屏的弯折控制操作;若检测到用户对柔性屏的弯折控制操作,则获取柔性屏的弯折参数。Optionally, when the computer program is executed by the processor 1160, the following steps can also be implemented: detecting the user's bending control operation on the flexible screen; if the user's bending control operation on the flexible screen is detected, obtaining the bending parameters of the flexible screen .
可选地,计算机程序被处理器1160执行时还可实现如下步骤:提取弯折参数中的弯折区域;根据所述弯折区域,确定柔性屏的未弯折区域;获取所述未弯折区域的显示比例;将所述未弯折区域的显示比例确定为第一显示比例。Optionally, when the computer program is executed by the processor 1160, the following steps can also be implemented: extracting the bending area in the bending parameters; determining the unbent area of the flexible screen according to the bending area; obtaining the unbent area A display ratio of the region; determining the display ratio of the unbent region as the first display ratio.
可选地,计算机程序被处理器1160执行时还可实现如下步骤:获取柔性屏的初始显示比例;获取所述多媒体数据的第二显示比例;将所述第二显示比例和所述初始显示比例进行比较;若所述第二显示比例和所述初始显示比例不相同,则根据所述初始显示比例和所述第二显示比例,控制柔性屏进行弯折。Optionally, when the computer program is executed by the processor 1160, the following steps can also be implemented: obtaining the initial display ratio of the flexible screen; obtaining the second display ratio of the multimedia data; comparing the second display ratio to the initial display ratio performing a comparison; if the second display ratio is different from the initial display ratio, then controlling the flexible screen to bend according to the initial display ratio and the second display ratio.
可选地,计算机程序被处理器1160执行时还可实现如下步骤:根据所述初始显示比例和所述第二显示比例,确定柔性屏的弯折区域;获取预设的弯折方向和弯折角度;控制柔性屏的所述弯折区域按照所述预设的弯折方向和弯折角度进行弯折;其中,弯折后的柔性屏的显示比例为所述第一显示比例,所述第一显示比例与所述第二显示比例相同。Optionally, when the computer program is executed by the processor 1160, the following steps can also be implemented: according to the initial display ratio and the second display ratio, determine the bending area of the flexible screen; obtain a preset bending direction and bending Angle; control the bending area of the flexible screen to bend according to the preset bending direction and bending angle; wherein, the display ratio of the flexible screen after bending is the first display ratio, and the second display ratio A display scale is the same as the second display scale.
可选地,计算机程序被处理器1160执行时还可实现如下步骤:若所述初始显示比例大于所述第二显示比例,则计算柔性屏的宽度方向的调整像素值;基于所述宽度方向的调整像素值,确定柔性屏的弯折区域。Optionally, when the computer program is executed by the processor 1160, the following steps can also be implemented: if the initial display ratio is greater than the second display ratio, then calculate the adjusted pixel value in the width direction of the flexible screen; Adjust the pixel value to determine the bending area of the flexible screen.
可选地,计算机程序被处理器1160执行时还可实现如下步骤:若所述初始显示比例小于所述第二显示比例,则计算柔性屏的高度方向的调整像素值;基于所述高度方向的调整像素值,确定柔性屏的弯折区域。Optionally, when the computer program is executed by the processor 1160, the following steps can also be implemented: if the initial display ratio is smaller than the second display ratio, then calculate the adjusted pixel value in the height direction of the flexible screen; Adjust the pixel value to determine the bending area of the flexible screen.
可选地,计算机程序被处理器1160执行时还可实现如下步骤:控制所述弯折区域的像素点关闭。Optionally, when the computer program is executed by the processor 1160, the following step can also be implemented: controlling the pixel points in the bending area to be turned off.
可见,该移动终端在接收到播放多媒体数据的指令后,就通过检测柔性屏的弯折参数,基于该弯折参数来确定柔性屏的第一显示比例,将第一显示比例确定为该多媒体数据的播放比例,按照该播放比例播放该多媒体数据。这样,经对柔性屏和多媒体数据的适配调整后,多媒体数据的播放将保持最佳的比例,画面不变形失真,同时,画面在对应区域全屏显示,不会有黑边,提高了多媒体数据播放效果,以及移动终端的适用性。It can be seen that after receiving the instruction to play multimedia data, the mobile terminal detects the bending parameters of the flexible screen, determines the first display ratio of the flexible screen based on the bending parameters, and determines the first display ratio as the multimedia data. The playback ratio of the multimedia data is played according to the playback ratio. In this way, after the adaptation and adjustment of the flexible screen and multimedia data, the playback of multimedia data will maintain the best ratio, and the picture will not be deformed and distorted. playback effect, and the applicability of mobile terminals.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
进一步需要说明的是,此说明书中所描述的移动终端包括但不限于智能手机、平板电脑等。It should be further noted that the mobile terminals described in this manual include, but are not limited to, smart phones, tablet computers, and the like.
此说明书中所描述的许多功能部件都被称为模块,以便更加特别地强调其实现方式的独立性。Many functional components described in this specification are referred to as modules in order to more particularly emphasize the independence of their implementation.
本发明实施例中,模块可以用软件实现,以便由各种类型的处理器执行。举例来说,一个标识的可执行代码模块可以包括计算机指令的一个或多个物理或者逻辑块,举例来说,其可以被构建为对象、过程或函数。尽管如此,所标识模块的可执行代码无需物理地位于一起,而是可以包括存储在不同位里上的不同的指令,当这些指令逻辑上结合在一起时,其构成模块并且实现该模块的规定目的。In the embodiments of the present invention, the modules may be implemented by software so as to be executed by various types of processors. An identified module of executable code may, by way of example, comprise one or more physical or logical blocks of computer instructions which may, for example, be structured as an object, procedure, or function. Notwithstanding, the executable code of an identified module need not be physically located together, but may include distinct instructions stored in different bits which, when logically combined, constitute the module and implement the specified Purpose.
实际上,可执行代码模块可以是单条指令或者是许多条指令,并且甚至可以分布在多个不同的代码段上,分布在不同程序当中,以及跨越多个存储器设备分布。同样地,操作数据可以在模块内被识别,并且可以依照任何适当的形式实现并且被组织在任何适当类型的数据结构内。所述操作数据可以作为单个数据集被收集,或者可以分布在不同位置上(包括在不同存储设备上),并且至少部分地可以仅作为电子信号存在于系统或网络上。Indeed, a module of executable code may be a single instruction, or many instructions, and may even be distributed over several different code segments, among different programs and across multiple memory devices. Likewise, operational data may be identified within modules, and may be implemented in any suitable form and organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed in different locations (including on different storage devices), and may exist, at least in part, only as electronic signals on a system or network.
在模块可以利用软件实现时,考虑到现有硬件工艺的水平,所以可以以软件实现的模块,在不考虑成本的情况下,本领域技术人员都可以搭建对应的硬件电路来实现对应的功能,所述硬件电路包括常规的超大规模集成(VLSI)电路或者门阵列以及诸如逻辑芯片、晶体管之类的现有半导体或者是其它分立的元件。模块还可以用可编程硬件设备,诸如现场可编程门阵列、可编程阵列逻辑、可编程逻辑设备等实现。When the module can be realized by software, considering the level of the existing hardware technology, the module that can be realized by software, regardless of the cost, those skilled in the art can build the corresponding hardware circuit to realize the corresponding function. The hardware circuit includes conventional very large scale integration (VLSI) circuits or gate arrays as well as existing semiconductors such as logic chips, transistors, or other discrete components. A module may also be implemented in programmable hardware devices such as field programmable gate arrays, programmable array logic, programmable logic devices, and the like.
上述范例性实施例是参考该些附图来描述的,许多不同的形式和实施例是可行而不偏离本发明精神及教示,因此,本发明不应被建构成为在此所提出范例性实施例的限制。更确切地说,这些范例性实施例被提供以使得本发明会是完善又完整,且会将本发明范围传达给那些熟知此项技术的人士。在该些图式中,组件尺寸及相对尺寸也许基于清晰起见而被夸大。在此所使用的术语只是基于描述特定范例性实施例目的,并无意成为限制用。如在此所使用地,除非该内文清楚地另有所指,否则该单数形式“一”、“一个”和“该”是意欲将该些多个形式也纳入。会进一步了解到该些术语“包含”及/或“包括”在使用于本说明书时,表示所述特征、整数、步骤、操作、构件及/或组件的存在,但不排除一或更多其它特征、整数、步骤、操作、构件、组件及/或其族群的存在或增加。除非另有所示,陈述时,一值范围包含该范围的上下限及其间的任何子范围。The exemplary embodiments described above are described with reference to these drawings. Many different forms and embodiments are possible without departing from the spirit and teachings of the present invention. Therefore, the present invention should not be construed as the exemplary embodiments set forth herein. limits. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will convey the scope of the invention to those skilled in the art. In the drawings, component sizes and relative sizes may be exaggerated for clarity. The terminology used herein is for the purpose of describing certain exemplary embodiments only and is not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include these plural forms unless the context clearly dictates otherwise. It will be further understood that the terms "comprises" and/or "comprises", when used in this specification, indicate the presence of stated features, integers, steps, operations, components and/or components, but do not exclude one or more other The presence or addition of features, integers, steps, operations, components, components and/or groups thereof. Unless otherwise indicated, when stated a range of values includes the upper and lower limits of that range and any subranges therebetween.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710773380.6A CN107659837B (en) | 2017-08-31 | 2017-08-31 | A multimedia data playback control method and mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710773380.6A CN107659837B (en) | 2017-08-31 | 2017-08-31 | A multimedia data playback control method and mobile terminal |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107659837A CN107659837A (en) | 2018-02-02 |
| CN107659837B true CN107659837B (en) | 2019-09-27 |
Family
ID=61128738
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710773380.6A Active CN107659837B (en) | 2017-08-31 | 2017-08-31 | A multimedia data playback control method and mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107659837B (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109192113B (en) * | 2018-06-29 | 2021-12-03 | 努比亚技术有限公司 | Terminal display method, terminal and computer readable storage medium |
| CN111758263A (en) * | 2018-06-29 | 2020-10-09 | 华为技术有限公司 | Display method and terminal for flexible screen |
| CN109814793A (en) * | 2019-02-28 | 2019-05-28 | 努比亚技术有限公司 | A kind of interface control method, equipment and computer readable storage medium |
| CN110399086B (en) * | 2019-07-24 | 2021-09-24 | 网易(杭州)网络有限公司 | Game picture display control method and device, storage medium and electronic equipment |
| CN110673697B (en) * | 2019-09-23 | 2021-08-27 | Oppo广东移动通信有限公司 | Control method and device of electronic equipment, electronic equipment and storage medium |
| CN111142767B (en) | 2019-12-16 | 2021-06-01 | 华为技术有限公司 | A custom button method, device and storage medium for a folding device |
| CN113703644A (en) * | 2020-05-20 | 2021-11-26 | Oppo广东移动通信有限公司 | User interface display method, device, terminal and storage medium |
| CN113835470B (en) * | 2020-06-08 | 2024-11-26 | Oppo广东移动通信有限公司 | Display screen control method, device, terminal and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101788850A (en) * | 2009-01-09 | 2010-07-28 | 三星电子株式会社 | Mobile terminal having foldable display and operation method for the same |
| CN103309594A (en) * | 2012-03-12 | 2013-09-18 | 联想(北京)有限公司 | Touch screen input method and electronic equipment |
| CN104919411A (en) * | 2013-01-07 | 2015-09-16 | 三星电子株式会社 | Content zooming method and terminal implementing the same |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102097496B1 (en) * | 2013-10-07 | 2020-04-06 | 엘지전자 주식회사 | Foldable mobile device and method of controlling the same |
-
2017
- 2017-08-31 CN CN201710773380.6A patent/CN107659837B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101788850A (en) * | 2009-01-09 | 2010-07-28 | 三星电子株式会社 | Mobile terminal having foldable display and operation method for the same |
| CN103309594A (en) * | 2012-03-12 | 2013-09-18 | 联想(北京)有限公司 | Touch screen input method and electronic equipment |
| CN104919411A (en) * | 2013-01-07 | 2015-09-16 | 三星电子株式会社 | Content zooming method and terminal implementing the same |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107659837A (en) | 2018-02-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107659837B (en) | A multimedia data playback control method and mobile terminal | |
| US11128802B2 (en) | Photographing method and mobile terminal | |
| CN106780685B (en) | A kind of generation method and terminal of dynamic picture | |
| CN107172346B (en) | Virtualization method and mobile terminal | |
| CN107317993B (en) | A video call method and mobile terminal | |
| CN106657793A (en) | Image processing method and mobile terminal | |
| CN106909289B (en) | Operation method and mobile terminal of application control | |
| CN106534685A (en) | Panoramic image generation method and mobile terminal | |
| CN107395997A (en) | A kind of image pickup method and mobile terminal | |
| CN106791357A (en) | A kind of image pickup method and mobile terminal | |
| CN106648035A (en) | Image resolution adjusting method and mobile terminal | |
| CN107562345B (en) | Information storage method and mobile terminal | |
| CN107678644A (en) | A kind of image processing method and mobile terminal | |
| CN106126108A (en) | A kind of breviary map generalization method and mobile terminal | |
| CN107613203A (en) | A kind of image processing method and mobile terminal | |
| CN106454456A (en) | Video playing control method and mobile terminal | |
| CN106227488A (en) | The display packing of a kind of reminder message and mobile terminal | |
| CN106101545A (en) | A kind of image processing method and mobile terminal | |
| CN107333067A (en) | Camera control method and terminal | |
| CN107566641A (en) | A kind of multimedia file broadcasting control method and mobile terminal | |
| CN106506801A (en) | A kind of method of adjustment camera zoom magnification and mobile terminal | |
| CN106168894A (en) | A kind of content display method and mobile terminal | |
| CN107592458A (en) | A kind of image pickup method and mobile terminal | |
| CN107172465A (en) | A kind of video playing control method and mobile terminal | |
| CN107194907A (en) | A kind of sectional drawing synthetic method and mobile terminal |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |