CN109120979B - Video enhancement control method and device and electronic equipment - Google Patents
Video enhancement control method and device and electronic equipment Download PDFInfo
- Publication number
- CN109120979B CN109120979B CN201810968779.4A CN201810968779A CN109120979B CN 109120979 B CN109120979 B CN 109120979B CN 201810968779 A CN201810968779 A CN 201810968779A CN 109120979 B CN109120979 B CN 109120979B
- Authority
- CN
- China
- Prior art keywords
- video
- control
- electronic device
- state
- enhancement
- 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
- 238000000034 method Methods 0.000 title claims abstract description 84
- 230000000007 visual effect Effects 0.000 claims abstract description 67
- 238000001514 detection method Methods 0.000 claims description 21
- 230000008859 change Effects 0.000 claims description 14
- 230000002708 enhancing effect Effects 0.000 claims description 2
- 230000008569 process Effects 0.000 description 20
- 238000010586 diagram Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 11
- 238000012545 processing Methods 0.000 description 11
- 230000000694 effects Effects 0.000 description 7
- 230000004044 response Effects 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000013459 approach Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000005252 bulbus oculi Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
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/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
-
- 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440263—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
-
- 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/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44213—Monitoring of end-user related data
- H04N21/44218—Detecting physical presence or behaviour of the user, e.g. using sensors to detect if the user is leaving the room or changes his face expression during a TV program
-
- 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/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4438—Window management, e.g. event handling following interaction with the user interface
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Social Psychology (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
本申请实施例公开了一种视频增强控制方法、装置以及电子设备。所述方法包括:检测电子设备是否处于视频播放状态;若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于控制开启或关闭视觉增强;若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视觉增强。本方法使得在视频播放过程中,用户可以通过对控制控件进行触控操作,以开启或者关闭对所播放视频的视觉增强,进而给用户对于控制是否进行视觉增强提供了便利,提升了用户体验。
The embodiments of the present application disclose a video enhancement control method, device, and electronic device. The method includes: detecting whether the electronic device is in a video playback state; if the electronic device is detected to be in the video playback state, detecting the state of a control control, the control control is used to control turning on or off visual enhancement; if the state of the control control is detected to indicate turning on video enhancement, visual enhancement is performed on the played video. This method allows the user to turn on or off the visual enhancement of the played video by touching the control control during video playback, thereby providing convenience for the user to control whether to perform visual enhancement, thereby improving the user experience.
Description
技术领域technical field
本申请涉及图像处理技术领域,更具体地,涉及一种视频增强控制方法、装置以及电子设备。The present application relates to the technical field of image processing, and more particularly, to a video enhancement control method, apparatus, and electronic device.
背景技术Background technique
带屏幕的电子设备应用随着社会的发展,其应用范围不断地扩大。例如,利于屏幕显示图片以及视频等图像。而大部分电子设备的显示质量会因为周围光源的变化,或者是所显示视频的片源质量问题而受到严重影响。With the development of society, the application of electronic equipment with a screen has been continuously expanded. For example, it is beneficial to display images such as pictures and videos on the screen. However, the display quality of most electronic devices will be seriously affected by changes in the surrounding light source or the quality of the video source displayed.
发明内容SUMMARY OF THE INVENTION
鉴于上述问题,本申请提出了一种视频增强控制方法、装置以及电子设备,以改善上述问题。In view of the above problems, the present application proposes a video enhancement control method, apparatus, and electronic device to improve the above problems.
第一方面,本申请提供了一种视频增强控制方法,应用于电子设备,所述方法包括:检测电子设备是否处于视频播放状态;若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于控制开启或关闭视觉增强;若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视觉增强。In a first aspect, the present application provides a video enhancement control method, which is applied to an electronic device. The method includes: detecting whether the electronic device is in a video playing state; if it is detected that the electronic device is in the video playing state, detecting and controlling The state of the control, which is used to control turning on or off the visual enhancement; if it is detected that the state of the control indicates that the video enhancement is turned on, the played video is visually enhanced.
第二方面,本申请提供了一种视频增强控制装置,应用于电子设备,所述装置包括:播放状态检测单元,用于检测电子设备是否处于视频播放状态;控件状态检测单元,用于若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于控制开启或关闭视觉增强;视频增强单元,用于若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视觉增强。In a second aspect, the present application provides a video enhancement control device, which is applied to an electronic device. The device includes: a playback state detection unit for detecting whether the electronic device is in a video playback state; a control state detection unit for detecting if the electronic device is in a video playback state When the electronic device is in the video playback state, the state of the control control is detected, and the control control is used to control to turn on or turn off the visual enhancement; the video enhancement unit is used for turning on the video enhancement if the state of the control control is detected. , which visually enhances the video being played.
第三方面,本申请提供了一种电子设备,包括一个或多个处理器以及存储器;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的方法。In a third aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be The one or more processors are executed, and the one or more programs are configured to perform the above-described method.
第四方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码运行时执行上述的方法。In a fourth aspect, the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, wherein the above method is executed when the program code is executed.
本申请提供的一种视频增强控制方法、装置以及电子设备,通过检测电子设备是否处于视频播放状态,若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于响应于触控操作控制开启或关闭视觉增强,若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视觉增强。从而使得在视频播放过程中,用户可以通过对控制控件进行触控操作,以开启或者关闭对所播放视频的视觉增强,进而给用户对于控制是否进行视觉增强提供了便利,提升了用户体验。The present application provides a video enhancement control method, device and electronic device, by detecting whether the electronic device is in the video playback state, if it is detected that the electronic device is in the video playback state, the state of the control control is detected, and the control control It is used to control the visual enhancement to be turned on or off in response to the touch operation. If it is detected that the state of the control control indicates that the video enhancement is turned on, the video enhancement is performed on the played video. Therefore, during the video playback process, the user can turn on or off the visual enhancement of the played video by performing a touch operation on the control controls, thereby providing convenience for the user to control whether to perform the visual enhancement and improving the user experience.
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These and other aspects of the present application will be more clearly understood in the description of the following embodiments.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.
图1示出了本申请提出的另一种视频解码的流程图;1 shows a flowchart of another video decoding proposed by the present application;
图2示出了本申请提出的一种视频增强控制方法的流程图;2 shows a flowchart of a video enhancement control method proposed by the present application;
图3示出了本申请提出的一种视频增强控制方法中的界面示意图;3 shows a schematic interface diagram in a video enhancement control method proposed by the present application;
图4示出了本申请提出的一种视频增强控制方法中的播放界面的示意图;4 shows a schematic diagram of a playback interface in a video enhancement control method proposed by the present application;
图5示出了本申请提出的另一种视频增强控制方法的流程图;FIG. 5 shows a flowchart of another video enhancement control method proposed by the present application;
图6示出了本申请提出的另一种视频增强控制方法中控制控件的示意图;6 shows a schematic diagram of the control controls in another video enhancement control method proposed by the present application;
图7示出了本申请提出的另一种视频增强控制方法中控制控件被隐藏的示意图;Fig. 7 shows the schematic diagram that the control controls are hidden in another video enhancement control method proposed by the present application;
图8示出了本申请提出的另一种视频增强控制方法中另一种控制控件被隐藏的示意图;FIG. 8 shows a schematic diagram of another control control being hidden in another video enhancement control method proposed by the present application;
图9示出了本申请提出的另一种视频增强控制方法中清晰度切换控件的示意图;9 shows a schematic diagram of a sharpness switching control in another video enhancement control method proposed by the present application;
图10示出了本申请提出的另一种视频增强控制方法中清晰度备选控件的示意图;FIG. 10 shows a schematic diagram of a clarity alternative control in another video enhancement control method proposed by the present application;
图11示出了本申请提出的再一种视频增强控制方法的流程图;FIG. 11 shows a flowchart of yet another video enhancement control method proposed by the present application;
图12示出了本申请提出的一种视频增强控制装置的结构框图;12 shows a structural block diagram of a video enhancement control device proposed by the present application;
图13示出了本申请提出的另一种视频增强控制装置的结构框图;FIG. 13 shows a structural block diagram of another video enhancement control device proposed by the present application;
图14示出了本申请提出的再一种视频增强控制装置的结构框图;FIG. 14 shows a structural block diagram of still another video enhancement control device proposed by the present application;
图15示出了本申请的用于执行根据本申请实施例的视频增强控制方法的电子设备的结构框图。FIG. 15 shows a structural block diagram of the electronic device of the present application for executing the video enhancement control method according to the embodiment of the present application.
图16是本申请实施例的用于保存或者携带实现根据本申请实施例的图像处理方法的程序代码的存储单元。FIG. 16 is a storage unit for storing or carrying a program code for implementing the image processing method according to the embodiment of the present application according to the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
随着电子设备的硬件性能的提升,更多的电子设备可以支持进行视频播放。例如,电子设备可以运行视频播放客户端,然后通过该视频播放客户端来对从网络请求的视频进行播放,或者可以通过运行网页浏览器,然后通过在网页浏览器中进行视频播放,再或者电子设备可以通过视频播放软件对本地存储的视频文件进行播放。With the improvement of the hardware performance of electronic devices, more electronic devices can support video playback. For example, the electronic device may run a video playback client, and then use the video playback client to play the video requested from the network, or may run a web browser, and then play the video in the web browser, or the electronic device The device can play the locally stored video files through the video playing software.
而无论对于是在网络上传输播放的视频,还是在本地存储的视频,在视频的被生成的时候,为了能够降低对存储空间的占用以及便于在网络上传输,都会对生成的视频进行压缩。那么相应的,电子设备在获取到视频时,先获取的到也会是压缩编码以后的视频,那么在这种情况下,电子设备会先对已经压缩编码的视频进行视频解码。Regardless of whether the video is transmitted and played on the network or the video stored locally, when the video is generated, in order to reduce the occupation of storage space and facilitate transmission on the network, the generated video will be compressed. Correspondingly, when the electronic device obtains the video, the first obtained video will also be the video after compression encoding, then in this case, the electronic device will first perform video decoding on the video that has been compressed and encoded.
通常,如图1所示,电子设备可以通过硬解码以及软解码两种方式来进行视频解码。其中,硬解码是指使用非CPU进行解码,如GPU(Graphics Processing Unit)、专用的DSP、FPGA、ASIC芯片等。而软解码是指使用CPU进行解码。Generally, as shown in FIG. 1 , an electronic device can perform video decoding in two ways: hard decoding and soft decoding. Among them, hard decoding refers to using non-CPU for decoding, such as GPU (Graphics Processing Unit), dedicated DSP, FPGA, ASIC chip, and so on. And soft decoding refers to using the CPU to decode.
具体地,如图1所示,MediaFramework通过与客户端或者网页浏览器的API接口获取待播放的视频文件,并交由Video Decode,其中,Media Framework为操作系统中多媒体框架。而其中Video Decode为视频解码器,用于将视频数据解码。Specifically, as shown in FIG. 1 , MediaFramework acquires the video file to be played through an API interface with a client or a web browser, and submits it to Video Decode, where Media Framework is a multimedia framework in an operating system. The Video Decode is a video decoder for decoding video data.
不论是硬解码还是软解码,在将视频数据解码之后,会将解码后的视频数据发送至SurfaceFlinger,由SurfaceFlinger将解码后的视频数据渲染和合成之后,在屏幕上显示。其中,SurfaceFlinger是一个独立的Service,它接收所有的Surface作为输入,根据ZOrder、透明度、大小、位置等参数,计算出每个Surface在最终合成图像中的位置,然后交由HWComposer或OpenGL生成最终的显示Buffer,然后显示到特定的显示设备上。Whether it is hard decoding or soft decoding, after decoding the video data, the decoded video data will be sent to SurfaceFlinger, and SurfaceFlinger will render and synthesize the decoded video data and display it on the screen. Among them, SurfaceFlinger is an independent Service, which receives all Surfaces as input, calculates the position of each Surface in the final composite image according to ZOrder, transparency, size, position and other parameters, and then passes it to HWComposer or OpenGL to generate the final Display the Buffer, and then display it on a specific display device.
而发明人发现无论是在硬解码还是软解码过程中都可以加入视觉增强过程,从而使得后续所播放的视频有更高的视觉效果。例如,可以基于HQV(hollywood qualityvideo)技术对视频进行边缘去燥、调节曝光度或者提升清晰度等。此外,还可以通过其他的方式来提升所播放视频的视觉体验,例如,提升颜色艳丽程度等。The inventor found that a visual enhancement process can be added in either the hard decoding or the soft decoding process, so that the subsequently played video has a higher visual effect. For example, based on the HQV (hollywood quality video) technology, the video can be de-dried, the exposure can be adjusted, or the definition can be improved. In addition, the visual experience of the video being played can also be improved in other ways, for example, enhancing the vividness of the colors and the like.
但是,发明人进一步的发现,对于是否对所播放的视频进行视觉增强的控制方式还有待提升。因此,提出了申请提供的可以提升控制便利性以及智能化的视频增强控制方法、装置以及电子设备。However, the inventor further found that the control method for whether to perform visual enhancement on the played video still needs to be improved. Therefore, the application provides a video enhancement control method, device and electronic device that can improve control convenience and intelligence.
下面将结合具体实施例对本申请内容进行介绍。The content of the present application will be introduced below with reference to specific embodiments.
请参阅图2,本申请提供的一种视频增强控制方法,应用于电子设备,所述方法包括:Referring to FIG. 2, a video enhancement control method provided by the present application is applied to an electronic device, and the method includes:
步骤S110:检测电子设备是否处于视频播放状态。Step S110: Detect whether the electronic device is in a video playing state.
在本申请中,电子设备可以通过多种的方式来识别当前是否处于视频播放状态。In this application, the electronic device can identify whether it is currently in a video playback state through various methods.
作为一种方式,所述检测电子设备是否处于视频播放状态的步骤包括:检测所述电子设备中是否有设定的视频播放应用程序在运行;若检测到有设定的视频播放应用程序在运行,判定所述电子设备处于所述视频播放状态。其中,电子设备可以预先建立一个视频播放应用程序的名单,以便在该名单中记录视频播放应用程序。其中,该名单可以由电子设备的用户自由配置,也可以根据某个视频播放应用程序的使用情况来确定。As one way, the step of detecting whether the electronic device is in a video playing state includes: detecting whether a set video playing application is running in the electronic device; if it is detected that a set video playing application is running , and determine that the electronic device is in the video playing state. Wherein, the electronic device may establish a list of video playing applications in advance, so as to record the video playing applications in the list. The list may be freely configured by the user of the electronic device, or may be determined according to the usage of a certain video playback application.
例如,如图3所示,在图3所示的界面中显示有多个应用程序,以及每个应用程序对应的状态。可以理解的是,若应用程序对应的状态为图示的“关”,那么表示该应用程序移除或者不加入到上述名单中,若应用程序对应的状态为图示的“开”,那么表示该应用程序加入到上述名单中。例如,对于名称为“TX视频”的应用程序,其对应的状态为“开”,即表示“TX视频”这个应用程序会存在于前述的名单中。而对于名称为“AQY视频”的应用程序,其对应的状态为“关”,那么表示“AQY视频”这个应用程序不会存在于前述的名单中。For example, as shown in FIG. 3 , the interface shown in FIG. 3 displays a plurality of application programs and the corresponding state of each application program. It can be understood that if the state corresponding to the application is "off" as shown in the figure, it means that the application is removed or not added to the above list, and if the state corresponding to the application is "on" as shown in the figure, it means that the application is removed or not added to the above list. This application is added to the above list. For example, for an application named "TX Video", its corresponding state is "On", which means that the application "TX Video" will exist in the aforementioned list. For an application named "AQY Video", its corresponding state is "Off", which means that the application "AQY Video" will not exist in the aforementioned list.
再者,电子设备可以检测每个视频播放应用程序的使用频率,若检测到某个视频播放程序的使用频率超过设定的频率,则可以将该视频播放应用程序添加到前述名单中,并对应的将该视频播放应用程序的名称在图3中所对应的状态配置为“开”。Furthermore, the electronic device can detect the frequency of use of each video playback application, and if it is detected that the frequency of use of a certain video playback application exceeds the set frequency, the video playback application can be added to the aforementioned list, and the corresponding video playback application can be added to the list. The state corresponding to the name of the video playback application in Figure 3 is configured as "on".
那么在这种情况下,电子设备可以先检测当前在前台运行的应用程序是哪个,然后再进一步的检测当前前台运行的应用程序是否在该名单中,若在,那么就判定当前处于视频播放状态。其中,作为一种方式,若电子设备为Android操作系统,可以通过执行ActivityManager的getRunningTasks方法来获取到当前在前台运行的应用程序的名称。此外,电子设备还可以通过UsageStatsManager来获取用户使用的程序的列表,将该列表中记录的最近使用的应用程序识别为当前的前台应用。再者,还可以通过Android自带无障碍功能,监控窗口焦点的变化,拿到焦点窗口对应包名作为当期在前台运行的应用程序。In this case, the electronic device can first detect which application is currently running in the foreground, and then further detect whether the application currently running in the foreground is in the list. . As a method, if the electronic device is an Android operating system, the name of the application currently running in the foreground can be obtained by executing the getRunningTasks method of the ActivityManager. In addition, the electronic device may also obtain a list of programs used by the user through the UsageStatsManager, and identify the most recently used application recorded in the list as the current foreground application. Furthermore, you can also monitor the change of the window focus through the built-in accessibility function of Android, and get the package name corresponding to the focus window as the current application running in the foreground.
作为另外一种方式,电子设备还可以结合检测AudioManager类的返回值来确定是否有视频在进行播放。在这种情况下,电子设备可以先检测AudioManager类的返回值来确定是否有音频输出,若在检测到有音频输出的情况下,再进一步的根据前述检测是否有视频播放应用程序运行来确定电子设备是否处于视频播放状态。As another way, the electronic device can also determine whether there is a video playing in combination with detecting the return value of the AudioManager class. In this case, the electronic device can first detect the return value of the AudioManager class to determine whether there is audio output. If audio output is detected, the electronic device can further determine whether there is a video playback application running according to the aforementioned detection. Whether the device is in video playback state.
再者,作为再一种方式,电子设备还可以通过检测视频播放按键的触控状态来检测是否处于视频播放状态。例如,如图4所示,在图4所示的视频播放界面99中显示有播放按键98,且图4中所示的界面为视频播放暂停的状态。那么在这种情况下,当检测到播放按键98被触控后,即可判定电子设备当前处于视频播放状态。相应的,若电子设备处于视频播放状态后,检测到播放按键98再次被触控,则可以判定电子设备处于视频暂停状态,从而取消进行视觉增强。通过这种方式使得可以在进行视觉增强的过程中,可以只对正在播放的视频进行视觉增强,而不必对处于暂停播放时所显示的画面进行视觉增强,以提升增强效率。Furthermore, as a further way, the electronic device can also detect whether it is in the video playing state by detecting the touch state of the video playing button. For example, as shown in FIG. 4 , a
其中,需要说明的是,作为一种方式,本申请所提供的视频增强控制方法可以由前述的视频播放应用程序来执行,也可以由电子设备中独立于视频播放应用程序以外的程序来执行。其中,若提供的视频增强控制方法可以由前述的视频播放应用程序来执行,那么执行视频增强控制方法可以由视频播放应用程序在运行过程中对应主进程包括的一个子进程来进行执行,以便在执行视频增强方法的过程中避免对视频播放应用程序的其他功能造成影响。而若视频增强控制方法由电子设备中独立于视频播放应用程序以外的程序来执行,那么可以由独立于视频播放应用程序的另一个应用程序来执行。It should be noted that, as a method, the video enhancement control method provided by the present application may be executed by the aforementioned video playback application, or may be executed by a program in the electronic device independent of the video playback application. Wherein, if the provided video enhancement control method can be executed by the aforementioned video playback application, then the execution of the video enhancement control method can be performed by a subprocess included in the corresponding main process during the operation of the video playback application, so as to The process of executing the video enhancement method avoids affecting other functions of the video playback application. However, if the video enhancement control method is executed by a program in the electronic device that is independent of the video playback application, it can be executed by another application independent of the video playback application.
步骤S120:若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于控制开启或关闭视觉增强。Step S120: If it is detected that the electronic device is in the video playing state, the state of the control control is detected, and the control control is used to control the visual enhancement to be turned on or off.
其中,可以理解的是,电子设备可以建立一个变量,然后利用变量值来标识控制控件的状态。例如,若变量值为0,则表示控制控件处于表征关闭视觉增强的状态,而若变量值为1,则表示控制控件处于表征开启视觉增强的状态。那么在这种情况下,电子设备检测到处于视频播放状态后,可以检测该变量值来确定控制控件的状态。Among them, it can be understood that the electronic device may establish a variable, and then use the variable value to identify the state of the control control. For example, if the value of the variable is 0, it means that the control is in a state indicating that the visual enhancement is turned off, and if the value of the variable is 1, it means that the control is in a state indicating that the visual enhancement is turned on. Then in this case, after the electronic device detects that it is in the video playing state, it can detect the value of the variable to determine the state of the control control.
可选的,该变量值可以存储在预先建立的数据表中。在这种情况下,电子设备在检测到处于视频播放状态后,可以通过查表的方式来获取到前述变量值,进而判断控制控件的状态。Optionally, the variable value can be stored in a pre-built data table. In this case, after detecting that the electronic device is in the video playing state, it can obtain the aforementioned variable values by looking up a table, and then judge the state of the control controls.
此外,当某个应用程序被安装在电子设备后,其对应的配置文件的存储位置是相对固定的,作为另外一种方式,该变量值还可以存储在所对应的视频播放应用程序的配置文件中。在这种情况下,电子设备在检测到有视频播放应用程序安装后,且检测到该安装的视频播放应用程序被设置为设定的视频播放应用程序后,可以在该视频播放应用程序的配置文件夹中查找任一txt格式的文件,然后在该查找到的txt格式的文件中添加一个变量,进而将该变量的值作为前述的变量值。通过这种方式,可以在不新增加文件的情况下,利用视频播放应用程序本申请的配置文件即可实现控制控件的状态检测,并且因为是利用的视频播放应用程序自身的配置文件,那么可以很好的区分某一个视频播放应用程序对应的控制控件的状态。In addition, when an application is installed on the electronic device, the storage location of the corresponding configuration file is relatively fixed. As another way, the variable value can also be stored in the configuration file of the corresponding video playback application. middle. In this case, after the electronic device detects that a video playback application is installed, and detects that the installed video playback application is set as the set video playback application, the electronic device can configure the video playback application in the configuration of the video playback application. Find any file in txt format in the folder, and then add a variable to the found file in txt format, and then use the value of the variable as the aforementioned variable value. In this way, the state detection of the control controls can be realized by using the configuration file of the video playback application without adding a new file, and because it is the configuration file of the video playback application used, then It is very good to distinguish the state of the control controls corresponding to a certain video playback application.
在这种情况下,为了避免对配置文件原本功能的影响,作为一种方式,可以以注释的方式,将变量添加到配置文件中。例如,对于txt格式的文件,其中以“//”或者“/*”开头的字符位注释内容。那么在这种情况下,电子设备配置的变量为hqv的情况下,向txt文件中插入的内容可以为“//hqv=1”,即表征开启视觉增强。In this case, in order to avoid affecting the original function of the configuration file, as a way, you can add variables to the configuration file in the form of comments. For example, for a file in txt format, the characters beginning with "//" or "/*" are used to annotate the content. Then, in this case, when the variable configured by the electronic device is hqv, the content inserted into the txt file may be "//hqv=1", which means that visual enhancement is turned on.
需要说明的是,对于一些应用程序被更新或者重新安装后,其对应的配置文件会被修改或者被其他文件替换掉。那么在这种情况下,若检测到设定的视频播放应用程序更新后或者重新安装后,可以先检测是否还存在之前选中的txt格式的文件,若存储则进一步的检测更新后的或者重新安装后的视频播放应用程序对应的之前被选中的txt中是否还可以读取出之前插入的变量,若读取失败,则重新以前述的方式插入变量。若检测到已经不存在之前选中的txt格式的文件,则重新选择txt文件。It should be noted that after some applications are updated or reinstalled, their corresponding configuration files will be modified or replaced by other files. Then in this case, if it is detected that the set video playback application is updated or reinstalled, you can first detect whether the previously selected txt format file still exists, and if it is stored, further detect the updated or reinstalled Whether the previously-inserted variable can still be read from the previously selected txt corresponding to the subsequent video playback application, and if the reading fails, the variable will be re-inserted in the aforementioned manner. If it is detected that the previously selected txt file does not exist, select the txt file again.
下面再通过具体的应用程序来对上述的内容来进行说明。The above content will be described below through specific application programs.
若电子设备检测到名称为TX视频的视频播放应用程序被安装后,会进一步的检测TX视频是否被配置为设定的视频播放应用程序。若检测到TX视频被配置为了设定的视频播放应用程序。那么电子设备会进一步的存储TX视频的配置文件的文件夹中搜寻txt格式的文件。在任一搜寻到一个名字为tx.txt后,会向该tx.txt中插入一条数据,数据内容为“//hqv=1”,以表征TX视频对应的控制控件处于表征开启视觉增强的状态,那么对应的若检测到TX视频对应的控制控件被触控后,电子设备会对应的将原本插入的内容修改为“//hqv=0”,以表征TX视频对应的控制控件处于表征关闭视觉增强的状态。那么,电子设备检测到TX视频被更新或者重新安装后,会检测TX视频对应的配置文件中是否还存在tx.txt这个文件,若存在则进一步的检测是否还能从tx.txt中读取出“//hqv=1”或者“//hqv=1”的内容,若可以,则表征之前的配置依然有效,若不能读取出,则默认向tx.txt中插入“//hqv=1”。若电子设备发现已经无法查找到tx.txt文件后,可以再重新选择一个txt文件。If the electronic device detects that a video playback application named TX Video is installed, it will further detect whether TX Video is configured as the set video playback application. If detected TX video is configured as the set video playback application. Then the electronic device will further search for files in txt format in the folder where the configuration files of the TX video are stored. After any search for a name named tx.txt, a piece of data will be inserted into the tx.txt, the content of the data is "//hqv=1", to indicate that the control control corresponding to the TX video is in the state of enabling visual enhancement, Then correspondingly, if it is detected that the control control corresponding to the TX video is touched, the electronic device will correspondingly modify the original inserted content to "//hqv=0" to indicate that the control control corresponding to the TX video is in the closed visual enhancement mode. status. Then, after the electronic device detects that the TX video has been updated or reinstalled, it will detect whether the tx.txt file still exists in the configuration file corresponding to the TX video. The content of "//hqv=1" or "//hqv=1", if possible, indicates that the previous configuration is still valid, if it cannot be read out, insert "//hqv=1" into tx.txt by default . If the electronic device finds that the tx.txt file cannot be found, it can re-select a txt file.
需要说明的是,对于每个视频播放应用程序所对应的被选择的存储变量的文件,可以以数据表的方式存储在电子设备中,以便电子设备查找。It should be noted that the selected storage variable file corresponding to each video playing application can be stored in the electronic device in the form of a data table, so that the electronic device can search.
需要说明的是,前述的txt格式的文件,以及变量值都是示例性的,本申请不做具体限定。电子设备可以根据可以查找到的格式文件具体设定。例如,还可以使用xml格式的文件存储变量值。It should be noted that the aforementioned files in txt format and variable values are exemplary, and are not specifically limited in this application. The electronic device can be specifically set according to the format file that can be found. For example, you can also use an xml-formatted file to store variable values.
作为一种方式,所述控制控件独立于所述视频播放应用程序以外运行。那么在步骤S120可以包括检测独立于所述预设的视频播放应用程序以外的控制控件的状态。In one approach, the control controls operate independently of the video playback application. Then, step S120 may include detecting the state of the control controls independent of the preset video playback application.
步骤S130:若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视觉增强。Step S130: If it is detected that the state of the control control indicates that video enhancement is enabled, perform visual enhancement on the played video.
在本申请中电子设备可以基于多种方式对所播放的视频进行视觉增强。例如,电子设备可以根据所播放视频本申请的属性进行视觉增强。其中该属性包括清晰度以及颜色信息等。In the present application, the electronic device can visually enhance the played video in various ways. For example, the electronic device may perform visual enhancements based on the properties of the video being played. The attributes include sharpness and color information.
作为一种方式,电子设备可以从所播放的视频中提取一帧目标图像作为属性判断的依据。可以理解的是,如果一幅图像已经模糊了,那么再对它进行一次模糊处理,图像中的高频分量变化不会太大。但如果图像本身的清晰度较高,对它进行一次模糊处理,则高频分量变化会非常大。那么作为一种方式,电子设备可以通过将目标图像进行一次模糊处理(例如,高斯模糊处理),得到该图像的退化图像,然后再比对模糊处理之前的图像和模糊处理之后的图像相邻像素值的变化情况,根据变化的大小确定清晰度值的高低。那么在这种情况下,变化越大,则目标图像的清晰度越高。As a way, the electronic device can extract a frame of target image from the played video as a basis for attribute judgment. It is understandable that if an image is already blurred, then if it is blurred again, the high frequency components in the image will not change too much. But if the sharpness of the image itself is high and it is blurred once, the change of high frequency components will be very large. Then, as a way, the electronic device can obtain a degraded image of the image by performing a blurring process (for example, Gaussian blurring) on the target image, and then compare the adjacent pixels of the image before the blurring process and the image after the blurring process. The change of the value determines the level of the sharpness value according to the size of the change. Then in this case, the larger the change, the higher the clarity of the target image.
此外,除了上述的通过将目标图像进行模糊处理后,来确定目标图像的清晰度外,还可以采用其他的方式来计算清晰度。可选的,可以通过下述的计算公式In addition, in addition to determining the sharpness of the target image by blurring the target image as described above, other methods may also be used to calculate the sharpness. Optionally, it can be calculated by the following formula
D(f)=∑y∑x|f(x+2,y)-f(x,y)|2 D(f)=∑ y ∑ x |f(x+2, y)-f(x, y)| 2
来确定清晰度。其中,f(x,y)表示图像f对应像素点(x,y)的灰度值,D(f)为图像清晰度计算结果。可选的,在本申请中,f(x,y)可以选择实时预览图像中高频分量区域。to determine clarity. Among them, f(x, y) represents the gray value of the pixel (x, y) corresponding to the image f, and D(f) is the image definition calculation result. Optionally, in this application, f(x, y) can select the high-frequency component area in the real-time preview image.
那么在这种情况下,若检测到目标图像的清晰度低于设定值,那么可以对所播放的视频进行清晰度方面的视觉增强。Then, in this case, if it is detected that the definition of the target image is lower than the set value, then the played video can be visually enhanced in terms of definition.
再者,对于颜色信息,在本申请中可以通过色偏程度来定义。作为一种方式,电子设备可以通过目标图像的色度分部情况以及色度平均值来确定当前色色偏程度。作为一种方式,当电子设备检测到目标图像的色度分布基本上为单峰值,或者分布较为集中,且色度平均值又大于设定值时,则判定目标图像存在色偏。并且可以根据预先建立的色度平均值与色偏对应关系,来确定得到色偏的值以作为颜色信息。Furthermore, the color information can be defined by the degree of color shift in this application. As a way, the electronic device can determine the current color shift degree through the chromaticity subdivision and the chromatic average value of the target image. As a method, when the electronic device detects that the chromaticity distribution of the target image is basically a single peak, or the distribution is relatively concentrated, and the average chromaticity is greater than the set value, it is determined that the target image has a color shift. And the value of the obtained color shift can be determined as the color information according to the pre-established corresponding relationship between the chromaticity average value and the color shift.
此外,电子设备还可以根据电子设备所处的环境来确定进行哪些方面的视觉增强,例如,可以根据电子设备所处的环境光的强度来确实是否对所播放的视频的进行亮度方面的视觉增强。In addition, the electronic device can also determine which aspects of visual enhancement to perform according to the environment in which the electronic device is located, for example, whether to perform visual enhancement in terms of brightness of the video being played can indeed be performed according to the intensity of the ambient light in which the electronic device is located. .
需要说明的是,若电子设备前台同时又两个应用程序分屏进行视频播放的情况下,电子设备可以选择其中的一个进行视觉增强,或者同时对分屏显示的两个应用程序各自所播放的视频均进行视觉曾强。其中,作为一种方式,若电子设备设置有处于屏幕同一侧的摄像头的情况下,可以通过摄像头采集用户当前眼球关注的区域,从而在电子设备分屏显示两个应用程序的界面的情况下,可以对距离该关注的区域更近的应用程序的界面所显示的视频进行视觉增强。It should be noted that, if there are two application programs in the foreground of the electronic device for video playback at the same time, the electronic device can select one of them for visual enhancement, or simultaneously play the video of the two application programs displayed on the split screen. Videos are all visually strong. Among them, as a way, if the electronic device is provided with a camera on the same side of the screen, the camera can capture the area of the user's current eyeball attention, so that when the electronic device splits the screen to display the interfaces of the two applications, Visual enhancements can be made to the video displayed by the interface of the application that is closer to the area of interest.
本申请提供的一种视频增强控制方法,通过检测电子设备是否处于视频播放状态,若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于响应于触控操作控制开启或关闭视觉增强,若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视觉增强。从而使得在视频播放过程中,用户可以通过对控制控件进行触控操作,以开启或者关闭对所播放视频的视觉增强,进而给用户对于控制是否进行视觉增强提供了便利,提升了用户体验。In a video enhancement control method provided by the present application, by detecting whether an electronic device is in a video playing state, if it is detected that the electronic device is in the video playing state, the state of a control control is detected, and the control control is used to respond to a touch The control operation controls the visual enhancement to be turned on or off, and if the state of the control control is detected to indicate that the video enhancement is turned on, the played video is visually enhanced. Therefore, during the video playback process, the user can turn on or off the visual enhancement of the played video by performing a touch operation on the control controls, thereby providing convenience for the user to control whether to perform the visual enhancement and improving the user experience.
请参阅图5,本申请提供的一种视频增强控制方法,应用于电子设备,所述方法包括:Please refer to FIG. 5, a video enhancement control method provided by the present application is applied to an electronic device, and the method includes:
步骤S210:检测电子设备是否处于视频播放状态。Step S210: Detect whether the electronic device is in a video playing state.
步骤S220:若检测到所述电子设备处于所述视频播放状态,在所述电子设备的视频播放界面上层叠显示所述控制控件,所述控制控件用于控制开启或关闭视觉增强。Step S220: If it is detected that the electronic device is in the video playback state, display the control controls in a layered manner on the video playback interface of the electronic device, where the control controls are used to control the visual enhancement to be turned on or off.
如图6所示,若电子设备检测到所述电子设备处于所述视频播放状态,在图示的视频播放界面99上悬浮显示控制控件97。其中,用户通过触控该控制控件97可以使得控制控件97在表征开启或关闭视觉增强这两种状态之前切换。作为一种方式,当电子设备在显示控制控件97后,用户可以通过对控制控件进行滑动,以将控制控件移出视频播放界面99。例如,如图7所示,若将图6显示的控制控件朝向图6中的上方滑动以后,控制控件97会朝向上方滑动,在滑动结束以后转换为图7中所示的标识96。那么在这种情况下,若用户朝向图7所示的下方滑动标识96,可以触发控制控件97再次如图6中所示的样式显示。As shown in FIG. 6 , if the electronic device detects that the electronic device is in the video playing state, a
此外,除了可以朝向图6所示的上方滑动控制控件97外,依然也可以朝向其他方向滑动控制控件97。例如,如图8所示,若控制控件97被朝向图6所示的左侧滑动后,其所转换的标识96会对应的出现在视频播放界面的左侧。In addition, in addition to sliding the
其中,对于在何种时机下在所述电子设备的视频播放界面上层叠显示所述控制控件可以有多种方式。There may be various manners for displaying the control controls in layers on the video playback interface of the electronic device at what timing.
作为一种方式,用户在使用电子设备的时候,可以通过用户帐号进行登录以便电子设备可以区别不同的用户。那么在这种情况下,电子设备可以通过所登录的用户帐号的等级来确定是否显示控制控件。例如,对于用户帐号等级从低到高可以预先划分为一级、二级以及三级,并且设定二级以上的用户帐号才能能进行视觉增强。那么电子设备检测到处于视频播放状态后,可以进一步的检测当前登录的用户帐号的等级,若检测到当前登录的用户帐号的等级为二级或者以上等级,那么电子设备可以在所述电子设备的视频播放界面上层叠显示所述控制控件。而若电子设备检测到当前登录的用户帐号的等级低于二级,那么电子设备可以显示提示信息,以便提示用户升级帐号以后可以进行视觉增强。As a way, when the user uses the electronic device, the user can log in through the user account so that the electronic device can distinguish different users. Then in this case, the electronic device can determine whether to display the control controls according to the level of the logged-in user account. For example, user account levels from low to high can be pre-divided into first-level, second-level, and third-level, and visual enhancement can be performed only by setting user accounts above level two. Then, after the electronic device detects that it is in the video playback state, it can further detect the level of the currently logged-in user account. The control controls are displayed in layers on the video playback interface. However, if the electronic device detects that the level of the currently logged-in user account is lower than the second level, the electronic device may display prompt information, so as to prompt the user to perform visual enhancement after upgrading the account.
需要说明的是,前述的帐号,可以为登录电子设备的操作系统的帐号,也可以为具体进行视频播放的视频播放应用程序的帐号。It should be noted that the aforementioned account may be an account for logging in to the operating system of the electronic device, or may be an account for a video playback application that specifically performs video playback.
作为一种方式,电子设备检测所述视频播放界面所播放视频包括的连续多帧图像的变化频率;若所述变化频率大于设定频率,在所述电子设备的视频播放界面上层叠显示所述控制控件。In one way, the electronic device detects the change frequency of the continuous multiple frames of images included in the video played on the video playback interface; if the change frequency is greater than the set frequency, the video playback interface of the electronic device displays the Control controls.
其中,可以理解的是,所播放的视频包括多帧的图像。而所播放的视频的内容不同其各自对应的内容的变化频率会有不同。例如,所播放的视频是电视剧或者电影类的视频的情况下,因为电视剧或者电影类的视频中画面的变化频率比较高,那么在这种情况下,用户更加期望有更加良好的视觉体验。而对于另外一些视频场景,例如,知识讲解类的或者是某种课程类的视频中,因为画面会长期保持在相同的状态,而只是对应的音频数据会有不同的变化。例如,有些课程类的视频场景中,画面会长时间定格在一张PPT页面上,而对应的表征对PPT页面的内容进行讲解的音频会不断的变化。那么在这种情况,用户更加关注的是所讲解的内容,对于视觉体验的要求不会太高。Wherein, it can be understood that the played video includes images of multiple frames. The content of the video being played is different, and the frequency of change of the corresponding content will be different. For example, if the video being played is a video of a TV series or a movie, because the frequency of changes of pictures in a video of a TV series or a movie is relatively high, in this case, the user expects a better visual experience. For other video scenarios, for example, knowledge explanation or certain course videos, because the picture will remain in the same state for a long time, but only the corresponding audio data will have different changes. For example, in some course video scenes, the picture will be frozen on a PPT page for a long time, and the corresponding audio that explains the content of the PPT page will change continuously. Then in this case, the user pays more attention to the content explained, and the requirements for the visual experience are not too high.
那么基于上述情况,作为一种方式,获取所播放的视频所包括的连续多帧图像,获取该连续多帧图像各自的内容特征,基于所述内容特征,获取所述所播放的视频所表征的画面内容的变化频率。Then, based on the above situation, as a method, obtain the continuous multi-frame images included in the played video, obtain the respective content features of the continuous multi-frame images, and based on the content features, obtain the video represented by the played video. How often the screen content changes.
作为一种方式,可以通过获取灰度平均值来确定图像的内容特征。在这种方式下,电子设备可以获取所述连续多帧图像各自的灰度平均值,基于所述灰度平均值获取所述连续多帧图像各自的内容特征。As one way, the content characteristics of the image can be determined by taking the average value of grayscale. In this manner, the electronic device may acquire the respective grayscale average values of the consecutive multi-frame images, and acquire respective content features of the consecutive multi-frame images based on the grayscale average values.
下面再对上述提到的基于所述灰度平均值获取所述连续多帧图像各自的内容特征进行说明。The above-mentioned acquisition of the respective content features of the consecutive multi-frame images based on the grayscale average value will be described below.
可以先将图像缩小到8x8的尺寸,总共64个像素。这一步的作用是去除各种图片尺寸和图片比例的差异,只保留结构、明暗等基本信息。再将缩小后的图片,转为64级灰度图片。计算图片中所有像素的灰度平均值。将每个像素的灰度与平均值进行比较,如果大于或等于平均值记为1,小于平均值记为0。将上一步的比较结果,组合在一起,就构成了一个64位的二进制整数,这就是这张图像的指纹。得到图像的指纹后,就可以对比不同的图像的指纹,计算出64位中有多少位是不一样的.如果不相同的数据位数不超过5,就说明两张图像很相似,如果大于10,说明它们是两张不同的图像。那么如果连续检测采集n张图像后,在检测到相邻两张图像不相似后,非相似度加1,那么将比对完成该n张图像后得到的非相似度除以前述的n,所得到的值即为变化频率。You can start by reducing the image to 8x8 size, for a total of 64 pixels. The function of this step is to remove the differences in various image sizes and image ratios, and only retain basic information such as structure, light and shade. Then convert the reduced image to a 64-level grayscale image. Calculates the grayscale average of all pixels in the picture. The gray level of each pixel is compared with the average value, and if it is greater than or equal to the average value, it is recorded as 1, and if it is less than the average value, it is recorded as 0. Combining the comparison results in the previous step together forms a 64-bit binary integer, which is the fingerprint of this image. After getting the fingerprints of the images, you can compare the fingerprints of different images and calculate how many bits in the 64 bits are different. If the number of different data bits does not exceed 5, it means that the two images are very similar. If it is greater than 10 , indicating that they are two different images. Then, if after continuous detection and collection of n images, after it is detected that the two adjacent images are not similar, the dissimilarity is increased by 1, then the dissimilarity obtained after the comparison of the n images is divided by the aforementioned n, so The resulting value is the frequency of change.
那么在这种情况下,为了能够更加的灵活的确当当前用户的实际需求,若检测到变化频率大于设定的频率,即表征当前播放的视频为电视剧或者电影类的视频,即可显示在所述电子设备的视频播放界面上层叠显示所述控制控件,以便提醒用户电子设备还可以进一步的进行视觉增强,从而提升播放视频的视觉体验。Then in this case, in order to be more flexible to meet the actual needs of the current user, if the detected frequency of change is greater than the set frequency, it means that the currently playing video is a TV series or movie video, which can be displayed in all The control controls are displayed in layers on the video playback interface of the electronic device, so as to remind the user that the electronic device can further perform visual enhancement, thereby improving the visual experience of playing the video.
此外,作为另外一种方式,电子设备可以检测所述视频播放界面所播放视频的分辨率;若所述视频播放界面所播放视频的分辨率为设定分辨率,在所述电子设备的视频播放界面上层叠显示所述控制控件。In addition, as another way, the electronic device can detect the resolution of the video played on the video playing interface; if the resolution of the video played on the video playing interface is the set resolution, the video playing on the electronic device The control controls are displayed in layers on the interface.
可以理解的是,电子设备在播放不同的分辨率的视频时,所呈现出来的清晰度会有差别,而随着分辨率的提升,电子设备所播放的视频会更加的清晰。那么在一种情况下,所述设定分辨率为所述视频播放界面所播放视频支持的最高分辨率。It is understandable that when the electronic device plays videos of different resolutions, the resolution presented will be different, and as the resolution increases, the video played by the electronic device will be clearer. Then, in one case, the set resolution is the highest resolution supported by the video played by the video playback interface.
需要说明的是,电子设备在播放视频时,所播放视频的分辨率会受所播放视频本身可以支持的分辨率以及电子设备本身所支持的分辨率的影响。例如,若将视频本身的分辨率从低到高可以有为标清、高清以及超清,而电子设备所支持的分辨率从低到高也为标清、高清以及超清的情况下。若检测到电子设备所支持的最高分辨率为高清,那么即使所播放视频的分辨率支持超清的分辨率的情况下,所播放视频所支持的最高分辨率依然为高清。It should be noted that, when an electronic device plays a video, the resolution of the played video will be affected by the resolution supported by the played video itself and the resolution supported by the electronic device itself. For example, if the resolution of the video itself is from low to high, it can be SD, HD, and UHD, and the resolutions supported by electronic devices are also SD, HD, and UHD from low to high. If it is detected that the highest resolution supported by the electronic device is HD, then even if the resolution of the played video supports ultra-high-definition resolution, the highest resolution supported by the played video is still high-definition.
再者,若所播放视频所支持的最高分辨率低于电子设备所支持分辨率,那么在这种情况下,即使用户使用电子设备进行视频播放,所播放的视频的最高分辨率依然为所播放视频所支持的最高分辨率。那么为了便于提醒用户可以进一步的提升所播放视频的视觉体验,可以在检测到所播放的视频所支持的最高分辨率低于电子设备所支持的最高分辨率的情况下,在所述电子设备的视频播放界面上层叠显示所述控制控件,从而使得便于用户通过该控制触发电子设备进行视觉增强,使得所播放的视频可以展现出比其所能支持的最高分辨率对应的播放效果更好的播放效果。Furthermore, if the highest resolution supported by the video being played is lower than the resolution supported by the electronic device, then in this case, even if the user uses the electronic device to play the video, the highest resolution of the video being played is still the same as the video being played. The highest resolution supported by the video. Then, in order to remind the user that the visual experience of the played video can be further improved, when it is detected that the highest resolution supported by the played video is lower than the highest resolution supported by the electronic device, the The control controls are stacked and displayed on the video playback interface, so that it is convenient for the user to trigger the electronic device to perform visual enhancement through the control, so that the played video can show a better playback effect than the playback effect corresponding to the highest resolution that it can support. Effect.
例如,如图9所示,在图9所示的图中,示出了清晰度切换控件95,当用户点击该清晰度切换控件95后,如图10所示,可以显示清晰度备选控件94,在该清晰度备选控件94中显示有可以被选择的清晰度,例如,在图10中所示,该所播放的视频所支持的最高分辨率为超清,那么在这种情况下,如果电子设备所支持的最高分辨率为超清或者甚至是比超清的分辨率更高的4K模型下,可以在界面上显示控制控件97。从而使得在所播放的视频已经以其所能支持的最高分辨率进行播放的情况下,在显示了控制控件后,用户可以触发控制控件处于开启视觉增强的状态,从而使得电子设备可以对所播放的视频进行视觉增强,进而使得所播放的视频可以展现出比其所能支持的最高分辨率对应的播放效果更好的播放效果。For example, as shown in FIG. 9 , in the diagram shown in FIG. 9 , a
可以理解的是,视频播放应用程序在可以在线进行的视频播放,那么在在线进行视频播放的过程中,所播放的视频的数据是实时从网络中获取的。而对于不同分辨率的视频各自所占用的存储空间的的大小是会有区别的。例如,对于同一个视频内容,标清模式的视频内容可能会占用200MB的存储空间,而高清模式的视频内容可能会占用700MB的存储空间。而在传输过程中亦是如此,对于分辨率更高的视频内容,其传输所占用的网络带宽越大。It can be understood that, when the video playing application can play the video online, the data of the played video is obtained from the network in real time during the online video playing. The size of the storage space occupied by the videos of different resolutions will be different. For example, for the same video content, the video content in SD mode may occupy 200MB of storage space, and the video content in HD mode may occupy 700MB of storage space. The same is true in the transmission process. For video content with a higher resolution, the network bandwidth occupied by the transmission is larger.
在这种情况下,可选的,电子设备可以在检测到若所述视频播放界面所播放视频的分辨率为设定分辨率,且检测到电子设备所接入网络的网络质量低于设定条件后,降低所播放视频的分辨率;在所述电子设备的视频播放界面上层叠显示所述控制控件。In this case, optionally, the electronic device may detect that the resolution of the video played on the video playback interface is the set resolution, and the network quality of the network to which the electronic device is connected is lower than the set resolution. After the conditions are met, the resolution of the played video is reduced; the control controls are displayed in layers on the video playback interface of the electronic device.
其中,电子设备可以通过多种方式检测当前的网络质量。例如,电子设备可以通过网络的重传率来评价网络的质量。Among them, the electronic device can detect the current network quality in various ways. For example, the electronic device can evaluate the quality of the network by the retransmission rate of the network.
需要说明的是,若电子设备是基于TCP协议接入网路的情况下,电子设备是使用滑动窗口来管理基本数据收发过程,同时确保数据流的有效及可靠传输,从而不致发送速率明显快于接收速率。而其中,如果在计时器超时之前电子设备没有收到确认信息,则判定发生重传超时,电子设备会自动重传之前超时发送的数据。It should be noted that if the electronic device is connected to the network based on the TCP protocol, the electronic device uses a sliding window to manage the basic data sending and receiving process, and at the same time ensures the effective and reliable transmission of the data stream, so that the sending rate is not significantly faster than receive rate. Wherein, if the electronic device does not receive the acknowledgment information before the timer expires, it is determined that a retransmission timeout occurs, and the electronic device automatically retransmits the previously sent data over time.
再者,若电子设备在进行视频的播放过程中,若多次在播放过程中出现卡顿,那么意味着电子设备对待进行播放的视频的解码过程出现了卡顿,再或者是接收网络数据出现卡顿,进而会造成用户体验不佳。那么电子设备还可以通过检测预设时间段内,视频播放过程中卡顿的次数,来评价网络的质量。Furthermore, if the electronic device is in the process of playing the video, if there is a freeze during the playback process for many times, it means that the decoding process of the video to be played by the electronic device is stuck, or the receiving network data appears. Caton, which will result in poor user experience. Then, the electronic device can also evaluate the quality of the network by detecting the number of times the video is stuck during the playback of the video within a preset time period.
例如,若电子设备以超清的模式进行视频播放,而在视频播放的过程中拖电子设备通过上述方式检测到网络质量低于设定的条件,那么会将所播放视频的分比率降低为高清模式,而在这种情况下,可以在所述电子设备的视频播放界面上层叠显示所述控制控件,从而使得可以便于用户通过显示的控制控件触发对以高清模式播放的视频进行视觉增强,进而使得电子设备虽然是以高清模式进行视频播放,但是可以展示出比高清更好的视觉效果。For example, if the electronic device plays a video in the ultra-HD mode, and the electronic device detects that the network quality is lower than the set condition through the above-mentioned method during the video playback, the sub-ratio of the played video will be reduced to high-definition In this case, the control controls can be stacked and displayed on the video playback interface of the electronic device, so that it is convenient for the user to trigger the visual enhancement of the video played in the high-definition mode through the displayed control controls, and then Although the electronic device plays video in high-definition mode, it can show better visual effects than high-definition.
需要说明的是,电子设备在进行视觉增强的过程中,会增加CPU或者GPU的计算资源消耗,那么若电子设备检测到网络质量不低于设定的条件,那么可以提示用户是否切换为更高的分辨率,并提示用户是否关闭视觉增强,从而在网络状态恢复良好以后,降低对CPU或者GPU的计算资源消耗。It should be noted that in the process of visual enhancement, the electronic device will increase the computing resource consumption of the CPU or GPU. If the electronic device detects that the network quality is not lower than the set condition, it can prompt the user whether to switch to a higher level. resolution, and prompt the user whether to turn off visual enhancement, so as to reduce the consumption of computing resources on the CPU or GPU after the network status is restored.
通过上述方式从而使得能够保证电子设备可以在网络状态不佳的情况下,不仅可以流畅的播放视频,还可以实现展示比当前网络状态所能支持的流畅播放的分辨率的播放效果更好的播放效果。Through the above method, it can be ensured that the electronic device can not only play the video smoothly under the condition of poor network status, but also can achieve a better playback effect than the resolution of the smooth playback supported by the current network status. Effect.
步骤S230:响应于作用于控制控件的触控操作,将控制控件切换到表征开启视频增强的状态。Step S230 : In response to the touch operation acting on the control controls, switch the control controls to a state indicating that video enhancement is enabled.
步骤S240:若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态。Step S240: If it is detected that the electronic device is in the video playing state, the state of the control controls is detected.
步骤S250:若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视觉增强。Step S250: If it is detected that the state of the control control indicates that video enhancement is enabled, perform visual enhancement on the played video.
本申请提供的一种视频增强控制方法,通过检测电子设备是否处于视频播放状态,若检测到所述电子设备处于所述视频播放状态后,可以再根据所播放视频的分辨率以及电子设备的网络状态来确定是否在屏幕上显示用于响应于触控操作控制开启或关闭视觉增强的控制控件,再进一步的检测控制控件的状态,若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视觉增强。从而使得在视频播放过程中,用户可以通过对控制控件进行触控操作,以开启或者关闭对所播放视频的视觉增强,进而给用户对于控制是否进行视觉增强提供了便利,提升了用户体验。In a video enhancement control method provided by the present application, by detecting whether an electronic device is in a video playback state, if it is detected that the electronic device is in the video playback state, it can be further determined according to the resolution of the played video and the network of the electronic device. state to determine whether to display the control controls for turning on or off the visual enhancement in response to the touch operation on the screen, and then further detect the state of the control controls. The played video is visually enhanced. Therefore, during the video playback process, the user can turn on or off the visual enhancement of the played video by performing a touch operation on the control controls, thereby providing convenience for the user to control whether to perform the visual enhancement and improving the user experience.
请参阅图11,本申请提供的一种视频增强控制方法,应用于电子设备,所述方法包括:Please refer to FIG. 11 , a video enhancement control method provided by the present application is applied to an electronic device, and the method includes:
步骤S310:检测电子设备是否处于视频播放状态。Step S310: Detect whether the electronic device is in a video playing state.
步骤S320:若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于控制开启或关闭视觉增强。Step S320: If it is detected that the electronic device is in the video playing state, the state of a control control is detected, and the control control is used to control turning on or off the visual enhancement.
步骤S330:若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视觉增强。Step S330: If it is detected that the state of the control control indicates that video enhancement is enabled, perform visual enhancement on the played video.
步骤S340:响应于作用于控制控件的触控操作,将控制控件切换到表征关闭视频增强的状态。Step S340: In response to the touch operation acting on the control controls, switch the control controls to a state representing turning off the video enhancement.
步骤S350:若检测到所述控制控件的状态表征开关闭视频增强,取消对所播放的视频进行视觉增强。Step S350: If it is detected that the state of the control control indicates that the video enhancement is turned off, cancel the visual enhancement of the played video.
本申请提供的一种视频增强控制方法,通过检测电子设备是否处于视频播放状态,若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于响应于触控操作控制开启或关闭视觉增强,若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视觉增强。从而使得在视频播放过程中,用户可以通过对控制控件进行触控操作,以开启或者关闭对所播放视频的视觉增强,进而给用户对于控制是否进行视觉增强提供了便利,提升了用户体验。In a video enhancement control method provided by the present application, by detecting whether an electronic device is in a video playing state, if it is detected that the electronic device is in the video playing state, the state of a control control is detected, and the control control is used to respond to a touch The control operation controls the visual enhancement to be turned on or off, and if the state of the control control is detected to indicate that the video enhancement is turned on, the played video is visually enhanced. Therefore, during the video playback process, the user can turn on or off the visual enhancement of the played video by performing a touch operation on the control controls, thereby providing convenience for the user to control whether to perform the visual enhancement and improving the user experience.
请参阅图12,本申请提供的一种视频增强控制装置400,应用于电子设备,所述装置400包括:播放状态检测单元410、控件状态检测单元420以及视频增强单元430。Referring to FIG. 12 , a video enhancement control apparatus 400 provided by the present application is applied to electronic equipment. The apparatus 400 includes: a playback
播放状态检测单元410,用于检测电子设备是否处于视频播放状态。The play
作为一种方式,播放状态检测单元410,用于检测所述电子设备中是否有设定的视频播放应用程序在运行;若检测到有设定的视频播放应用程序在运行,判定所述电子设备处于所述视频播放状态。In one way, the playback
控件状态检测单元420,用于若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于控制开启或关闭视觉增强。The control
作为一种方式,所述控制控件独立于所述视频播放应用程序以外运行。In one approach, the control controls operate independently of the video playback application.
视频增强单元430,用于若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视觉增强。The
请参阅图13,本申请提供的一种视频增强控制装置500,应用于电子设备,所述装置500包括:播放状态检测单元510、控件显示单元520、控件状态切换单元530、控件状态检测单元540以及视频增强单元550。Referring to FIG. 13 , a video enhancement control device 500 provided by the present application is applied to electronic equipment, and the device 500 includes: a playback
播放状态检测单元510,用于检测电子设备是否处于视频播放状态;Playing
控件显示单元520,用于若检测到电子设备处于视频播放状态,在所述电子设备的视频播放界面上层叠显示控制控件,所述控制控件用于控制开启或关闭视觉增强。The
控件状态切换单元530,用于响应于作用于控制控件的触控操作,将控制控件切换到表征开启视频增强的状态。The control
控件状态检测单元540,用于若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态。The control
视频增强单元550,用于若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视觉增强。The
请参阅图14,本申请提供的一种视频增强控制装置600,应用于电子设备,所述装置600包括:播放状态检测单元610、控件状态检测单元620以及视频增强单元630以及增强取消单元640。Referring to FIG. 14 , a video enhancement control apparatus 600 provided by the present application is applied to electronic equipment. The apparatus 600 includes: a playback
播放状态检测单元610,用于检测电子设备是否处于视频播放状态。The play
作为一种方式,播放状态检测单元610,用于检测所述电子设备中是否有设定的视频播放应用程序在运行;若检测到有设定的视频播放应用程序在运行,判定所述电子设备处于所述视频播放状态。In one way, the playback
控件状态检测单元620,用于若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于控制开启或关闭视觉增强。The control
作为一种方式,所述控制控件独立于所述视频播放应用程序以外运行。In one approach, the control controls operate independently of the video playback application.
视频增强单元630,用于若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视觉增强。The
增强取消单元640,用于若检测到所述控制控件的状态表征开关闭视频增强,取消对所播放的视频进行视觉增强。The
需要说明的是,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and units, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here. . In several embodiments provided in this application, the coupling between the modules may be electrical, mechanical or other forms of coupling. In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
需要说明的是,本申请中具体如何根据音频编码类型对音频数据进行编码是可以采用现有的技术,本申请就不再细述。It should be noted that, in this application, how to encode the audio data according to the audio encoding type can adopt the existing technology, which will not be described in detail in this application.
综上所述,本申请提供的一种视频增强控制方法、装置以及电子设备,通过检测电子设备是否处于视频播放状态,若检测到所述电子设备处于所述视频播放状态,检测控制控件的状态,所述控制控件用于响应于触控操作控制开启或关闭视觉增强,若检测到所述控制控件的状态表征开启视频增强,对所播放的视频进行视觉增强。从而使得在视频播放过程中,用户可以通过对控制控件进行触控操作,以开启或者关闭对所播放视频的视觉增强,进而给用户对于控制是否进行视觉增强提供了便利,提升了用户体验。In summary, the present application provides a video enhancement control method, device and electronic device, by detecting whether the electronic device is in the video playback state, if it is detected that the electronic device is in the video playback state, the state of the control control is detected. , the control control is used to control turning on or off the visual enhancement in response to the touch operation, and if it is detected that the state of the control control indicates that the video enhancement is turned on, the played video is visually enhanced. Therefore, during the video playback process, the user can turn on or off the visual enhancement of the played video by performing a touch operation on the control controls, thereby providing convenience for the user to control whether to perform the visual enhancement and improving the user experience.
下面将结合图15对本申请提供的一种电子设备进行说明。An electronic device provided by the present application will be described below with reference to FIG. 15 .
请参阅图15,基于上述的图像处理方法、装置,本申请实施例还提供的另一种可以执行前述终端控制方法的电子设备100。电子设备100包括相互耦合的一个或多个(图中仅示出一个)处理器102、存储器104、网络模块106、视频编解码器108、摄像头110以及屏幕112。其中,该存储器104中存储有可以执行前述实施例中内容的程序,而处理器102可以执行该存储器104中存储的程序。Referring to FIG. 15 , based on the above-mentioned image processing method and apparatus, an embodiment of the present application further provides another
其中,处理器102可以包括一个或者多个处理核。处理器102利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器104内的指令、程序、代码集或指令集,以及调用存储在存储器104内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器102可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(ProgrammableLogic Array,PLA)中的至少一种硬件形式来实现。处理器102可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器102中,单独通过一块通信芯片进行实现。The
存储器104可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器104可用于存储指令、程序、代码、代码集或指令集。存储器104可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The
所述网络模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯,例如和无线接入点进行通讯。所述网络模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述网络模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。The
该视频编解码器108可以用于对摄像头110所采集的图像进行编码,或者对网络模块106从网络请求的数据进行解码,以便传输到屏幕112进行显示。具体的,视频编解码器108可以为GPU、专用的DSP、FPGA、ASIC芯片等。The
请参考图16,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 16 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 800 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。The computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. Computer readable storage medium 800 has storage space for
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims (9)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810968779.4A CN109120979B (en) | 2018-08-23 | 2018-08-23 | Video enhancement control method and device and electronic equipment |
PCT/CN2019/090440 WO2020038071A1 (en) | 2018-08-23 | 2019-06-06 | Video enhancement control method, device, electronic apparatus, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810968779.4A CN109120979B (en) | 2018-08-23 | 2018-08-23 | Video enhancement control method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109120979A CN109120979A (en) | 2019-01-01 |
CN109120979B true CN109120979B (en) | 2020-08-21 |
Family
ID=64860982
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810968779.4A Active CN109120979B (en) | 2018-08-23 | 2018-08-23 | Video enhancement control method and device and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109120979B (en) |
WO (1) | WO2020038071A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109120979B (en) * | 2018-08-23 | 2020-08-21 | Oppo广东移动通信有限公司 | Video enhancement control method and device and electronic equipment |
CN110442389B (en) * | 2019-08-07 | 2024-01-09 | 北京技德系统技术有限公司 | Method for sharing GPU (graphics processing Unit) in multi-desktop environment |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710924A (en) * | 2009-11-16 | 2010-05-19 | 宇龙计算机通信科技(深圳)有限公司 | Method for saving electricity for mobile terminal and mobile terminal |
CN102811354A (en) * | 2011-05-30 | 2012-12-05 | 深圳市快播科技有限公司 | Video image quality enhanced playing method and on-demand terminal |
CN105898485A (en) * | 2016-03-30 | 2016-08-24 | 苏州合欣美电子科技有限公司 | Player capable of adaptively adjusting playing brightness |
CN106201417A (en) * | 2016-07-04 | 2016-12-07 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for adjusting screen display brightness |
CN106231416A (en) * | 2016-08-16 | 2016-12-14 | 北京小米移动软件有限公司 | Method for processing video frequency and device |
CN106550261A (en) * | 2016-12-12 | 2017-03-29 | 暴风集团股份有限公司 | Lift the exhibiting method and system of video image clarity |
CN106782431A (en) * | 2017-03-10 | 2017-05-31 | 广东欧珀移动通信有限公司 | A kind of screen backlight brightness adjusting method, device and mobile terminal |
CN106792169A (en) * | 2016-12-12 | 2017-05-31 | 深圳Tcl数字技术有限公司 | Internet video play handling method and device |
CN107846624A (en) * | 2017-10-30 | 2018-03-27 | 广东欧珀移动通信有限公司 | Video quality adjustment method, device, terminal equipment and storage medium |
CN108111910A (en) * | 2017-12-22 | 2018-06-01 | 烽火通信科技股份有限公司 | A kind of method and system for adjusting video playing clarity |
CN108260013A (en) * | 2018-03-28 | 2018-07-06 | 维沃移动通信有限公司 | A kind of video playing control method and terminal |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8233738B2 (en) * | 2007-07-30 | 2012-07-31 | Dolby Laboratories Licensing Corporation | Enhancing dynamic ranges of images |
CN105654446A (en) * | 2016-02-02 | 2016-06-08 | 广东欧珀移动通信有限公司 | Method and device for adjusting video definition |
CN105763922B (en) * | 2016-04-28 | 2019-01-04 | 徐文波 | The method and apparatus of video processing |
US10681391B2 (en) * | 2016-07-13 | 2020-06-09 | Oath Inc. | Computerized system and method for automatic highlight detection from live streaming media and rendering within a specialized media player |
CA2997355A1 (en) * | 2016-12-30 | 2019-06-14 | Tivo Solutions Inc. | Advanced trick-play modes for streaming video |
CN106919401B (en) * | 2017-03-10 | 2021-04-09 | Oppo广东移动通信有限公司 | Method and device for dynamically adjusting resolution and mobile terminal |
CN107659828B (en) * | 2017-10-30 | 2020-01-14 | Oppo广东移动通信有限公司 | Video image quality adjusting method and device, terminal equipment and storage medium |
CN107948627B (en) * | 2017-11-27 | 2019-11-08 | 腾讯科技(深圳)有限公司 | Video broadcasting method, calculates equipment and storage medium at device |
CN109120979B (en) * | 2018-08-23 | 2020-08-21 | Oppo广东移动通信有限公司 | Video enhancement control method and device and electronic equipment |
-
2018
- 2018-08-23 CN CN201810968779.4A patent/CN109120979B/en active Active
-
2019
- 2019-06-06 WO PCT/CN2019/090440 patent/WO2020038071A1/en active Application Filing
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101710924A (en) * | 2009-11-16 | 2010-05-19 | 宇龙计算机通信科技(深圳)有限公司 | Method for saving electricity for mobile terminal and mobile terminal |
CN102811354A (en) * | 2011-05-30 | 2012-12-05 | 深圳市快播科技有限公司 | Video image quality enhanced playing method and on-demand terminal |
CN105898485A (en) * | 2016-03-30 | 2016-08-24 | 苏州合欣美电子科技有限公司 | Player capable of adaptively adjusting playing brightness |
CN106201417A (en) * | 2016-07-04 | 2016-12-07 | 广东欧珀移动通信有限公司 | Method, device and mobile terminal for adjusting screen display brightness |
CN106231416A (en) * | 2016-08-16 | 2016-12-14 | 北京小米移动软件有限公司 | Method for processing video frequency and device |
CN106550261A (en) * | 2016-12-12 | 2017-03-29 | 暴风集团股份有限公司 | Lift the exhibiting method and system of video image clarity |
CN106792169A (en) * | 2016-12-12 | 2017-05-31 | 深圳Tcl数字技术有限公司 | Internet video play handling method and device |
CN106782431A (en) * | 2017-03-10 | 2017-05-31 | 广东欧珀移动通信有限公司 | A kind of screen backlight brightness adjusting method, device and mobile terminal |
CN107846624A (en) * | 2017-10-30 | 2018-03-27 | 广东欧珀移动通信有限公司 | Video quality adjustment method, device, terminal equipment and storage medium |
CN108111910A (en) * | 2017-12-22 | 2018-06-01 | 烽火通信科技股份有限公司 | A kind of method and system for adjusting video playing clarity |
CN108260013A (en) * | 2018-03-28 | 2018-07-06 | 维沃移动通信有限公司 | A kind of video playing control method and terminal |
Also Published As
Publication number | Publication date |
---|---|
WO2020038071A1 (en) | 2020-02-27 |
CN109120979A (en) | 2019-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11627369B2 (en) | Video enhancement control method, device, electronic device, and storage medium | |
CN109685726B (en) | Game scene processing method and device, electronic equipment and storage medium | |
WO2020062924A1 (en) | Video enhancement control method and device, electronic apparatus, and storage medium | |
WO2020107989A1 (en) | Video processing method and apparatus, and electronic device and storage medium | |
WO2021068598A1 (en) | Encoding method and device for screen sharing, and storage medium and electronic equipment | |
US11456013B2 (en) | Video decoding control method, electronic device, and storage medium | |
CN109361949B (en) | Video processing method, video processing device, electronic equipment and storage medium | |
KR102558385B1 (en) | Video augmentation control method, device, electronic device and storage medium | |
WO2020038127A1 (en) | Decoding method and apparatus, electronic device, and storage medium | |
WO2020108010A1 (en) | Video processing method and apparatus, electronic device and storage medium | |
WO2020108060A1 (en) | Video processing method and apparatus, and electronic device and storage medium | |
US20210233572A1 (en) | Video processing method, electronic device, and storage medium | |
CN109120979B (en) | Video enhancement control method and device and electronic equipment | |
CN109587561B (en) | Video processing method and device, electronic equipment and storage medium | |
CN109587555B (en) | Video processing method, device, electronic device and storage medium | |
CN109218803B (en) | Video enhancement control method and device and electronic equipment | |
WO2020107970A1 (en) | Video decoding method and apparatus, electronic device, and storage medium | |
JP2018514133A (en) | Data processing method and apparatus | |
CN113989136A (en) | Definition enhancement method, terminal and storage medium | |
CN109257636B (en) | Switching method and device for video enhancement, electronic equipment and storage medium | |
CN109712100B (en) | Video enhancement control method and device and electronic equipment | |
CN117221293A (en) | Data transmission method, device, electronic equipment and storage medium |
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 |