技术领域technical field
本发明实施例涉及视频技术领域,尤其涉及一种视频解码方法及移动终端。Embodiments of the present invention relate to the field of video technology, and in particular, to a video decoding method and a mobile terminal.
背景技术Background technique
在移动互联网时代,随着智能终端的推广和普及,用户不断追求高品质的音视体验。其中,高压缩比、高码率、高分辨率、多声道、无损音源渐渐成为标配,用户对于多媒体的质量要求越来越高。网络视频点播(Video-on-demand,VOD)和直播已成为移动终端视频功能的重要功能,移动终端可根据用户的需求播放相应的视频节目。In the era of mobile Internet, with the promotion and popularization of smart terminals, users are constantly pursuing high-quality audio-visual experience. Among them, high compression ratio, high bit rate, high resolution, multi-channel, and lossless audio sources have gradually become standard configurations, and users have higher and higher requirements for multimedia quality. Network video on demand (Video-on-demand, VOD) and live broadcast have become important functions of the mobile terminal video function, and the mobile terminal can play corresponding video programs according to the needs of users.
现有技术中的视频点播流程主要为:当用户发出点播请求时,流媒体服务系统根据点播信息,在片源库中检索对应的节目信息,并将视频和音频流文件通过高速传输网络传送到用户终端。The video-on-demand process in the prior art is mainly as follows: when a user sends a request for a video, the streaming media service system retrieves the corresponding program information in the source library according to the video-on-demand information, and transmits the video and audio stream files to the user terminal.
但是,现有技术中由于受到服务器带宽、网络传输、终端硬件性能、片源分辨率等制约,移动终端播放在线视频时,如果用户指示快进或快退,或者由于网络阻塞导致视频源被切换时,在线视频将会出现图像显示不连贯,音视频不同步等现象,严重影响了用户的在线观影体验。However, in the prior art, due to constraints such as server bandwidth, network transmission, terminal hardware performance, and source resolution, when a mobile terminal plays online video, if the user indicates fast forward or rewind, or the video source is switched due to network congestion, In this case, the online video will have incoherent image display, out-of-sync audio and video, etc., seriously affecting the user's online viewing experience.
发明内容Contents of the invention
本发明实施例提供一种视频解码方法,以解决现有技术中的在线视频播放过程中,由于受到网络、硬件等因素的限制,若视频源被切换或者视频被快进或后退时,将会出现图像显示不连贯、音视频不同步等现象,严重影响用户体验的问题。The embodiment of the present invention provides a video decoding method to solve the problem that in the online video playing process in the prior art, due to limitations of network, hardware and other factors, if the video source is switched or the video is fast forwarded or rewinded, the There are problems such as incoherent image display and out-of-sync audio and video, which seriously affect the user experience.
为了解决上述技术问题,本发明是这样实现的:In order to solve the problems of the technologies described above, the present invention is achieved in that:
本发明实施例提供了一种视频解码方法,应用于移动终端,所述方法包括:An embodiment of the present invention provides a video decoding method, which is applied to a mobile terminal, and the method includes:
监测视频播放过程中视频的视频源是否从第一视频源被切换为第二视频源,其中,第二视频源的分辨率低于第一视频源的分辨率;Monitoring whether the video source of the video is switched from the first video source to the second video source during video playback, wherein the resolution of the second video source is lower than the resolution of the first video source;
若是,则调用视频软件解码器对视频进行解码;If so, call the video software decoder to decode the video;
当监测到视频的视频源从第二视频源被切换回第一视频源时,调用视频硬件解码器接替视频软件解码器对视频进行解码。When it is detected that the video source of the video is switched back from the second video source to the first video source, the video hardware decoder is invoked to replace the video software decoder to decode the video.
另一方面,本发明实施例提供了一种移动终端,包括:On the other hand, an embodiment of the present invention provides a mobile terminal, including:
监测模块,用于监测视频播放过程中视频的视频源是否从第一视频源被切换为第二视频源,其中,第二视频源的分辨率低于第一视频源的分辨率;The monitoring module is used to monitor whether the video source of the video is switched from the first video source to the second video source during video playback, wherein the resolution of the second video source is lower than the resolution of the first video source;
第一调用模块,用于若是,则调用视频软件解码器对视频进行解码;The first calling module is used to call the video software decoder to decode the video if so;
第二调用模块,用于当监测到视频的视频源从第二视频源被切换回第一视频源时,调用视频硬件解码器接替视频软件解码器对视频进行解码。The second calling module is used to call the video hardware decoder to take over the video software decoder to decode the video when it is detected that the video source of the video is switched from the second video source back to the first video source.
本发明实施例还提供了一种移动终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的视频解码程序,视频解码程序被处理器执行时实现本发明中所示的任意一种视频解码方法的步骤。The embodiment of the present invention also provides a mobile terminal, including: a memory, a processor, and a video decoding program stored in the memory and operable on the processor. When the video decoding program is executed by the processor, the process shown in the present invention is realized Steps of any video decoding method.
本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有视频解码程序,视频解码程序被处理器执行时实现本发明中所示的任意一种视频解码方法的步骤。The embodiment of the present invention also provides a computer-readable storage medium. A video decoding program is stored on the computer-readable storage medium. When the video decoding program is executed by a processor, the steps of any video decoding method shown in the present invention are implemented. .
这样,本发明实施例中,通过监测视频播放过程中视频的视频源是否从第一视频源被切换为第二视频源,其中,第二视频源的分辨率低于第一视频源的分辨率;若是,则调用视频软件解码器对视频进行解码;当监测到视频的视频源从第二视频源被切换回第一视频源时,调用视频硬件解码器接替视频软件解码器对视频进行解码。本发明能够通过调用软件解码器与硬件解码器协同作用,对在线播放视频进行解码,从而有效防止由于网络等原因造成的在线视频的视频源被切换过程中出现的视频卡顿以及音视频不同步现象,进而提升了用户体验。In this way, in the embodiment of the present invention, by monitoring whether the video source of the video is switched from the first video source to the second video source during video playback, wherein the resolution of the second video source is lower than the resolution of the first video source ; If so, call the video software decoder to decode the video; when the video source of the video is switched back to the first video source from the second video source, call the video hardware decoder to replace the video software decoder to decode the video. The present invention can decode the video played online by invoking the synergistic effect of the software decoder and the hardware decoder, thereby effectively preventing the video freeze and audio and video asynchronism during the switching process of the video source of the online video caused by network and other reasons phenomenon, thereby improving the user experience.
附图说明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 according to these drawings without paying creative labor.
图1是本发明实施例中的一种视频解码方法的流程图之一;Fig. 1 is one of flow charts of a kind of video decoding method in the embodiment of the present invention;
图2是本发明实施例中的一种视频解码方法的流程图之二;FIG. 2 is the second flowchart of a video decoding method in an embodiment of the present invention;
图3是本发明实施例中的移动终端的框图之一;Fig. 3 is one of the block diagrams of the mobile terminal in the embodiment of the present invention;
图4是本发明实施例中的移动终端的框图之二;Fig. 4 is the second block diagram of the mobile terminal in the embodiment of the present invention;
图5是本发明实施例中的移动终端的框图之三;FIG. 5 is the third block diagram of the mobile terminal in the embodiment of the present invention;
图6是本发明实施例中的移动终端的框图之四;Fig. 6 is the fourth block diagram of the mobile terminal in the embodiment of the present invention;
图7是本发明实施例中的移动终端的框图之五;Fig. 7 is the fifth block diagram of the mobile terminal in the embodiment of the present invention;
图8是本发明实施例中的移动终端的框图之六;Fig. 8 is the sixth block diagram of the mobile terminal in the embodiment of the present invention;
图9是本发明实施例中的移动终端的结构示意图。Fig. 9 is a schematic structural diagram of a mobile terminal in an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。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.
实施例一Embodiment one
参照图1,示出了本发明实施例中一种视频解码方法的流程图,具体包括:Referring to FIG. 1, it shows a flow chart of a video decoding method in an embodiment of the present invention, specifically including:
步骤101,监测视频播放过程中视频的视频源是否从第一视频源被切换为第二视频源,其中,第二视频源的分辨率低于第一视频源的分辨率。Step 101, monitor whether the video source of the video is switched from the first video source to the second video source during the video playing process, wherein the resolution of the second video source is lower than the resolution of the first video source.
具体的,在本发明的实施例中,移动终端在视频播放过程中,可实时监测当前播放的在线视频的视频源是否被切换。在一个实施例中,若网络发生阻塞,则移动终端中的相应模块会将视频的当前分辨率版本(即第一视频源)切换为低分辨率版本(即第二视频源)。在另一个实施例中,用户若将视频进行快进或后退,由于网络与硬件条件限制,同样会造成视频分辨率的切换。Specifically, in the embodiment of the present invention, during the video playing process, the mobile terminal can monitor in real time whether the video source of the currently playing online video is switched. In one embodiment, if the network is blocked, a corresponding module in the mobile terminal will switch the current resolution version of the video (ie, the first video source) to a low-resolution version (ie, the second video source). In another embodiment, if the user fast-forwards or rewinds the video, due to network and hardware constraints, the video resolution will also be switched.
步骤102,若是,则调用视频软件解码器对视频进行解码。Step 102, if yes, call a video software decoder to decode the video.
具体的,在本发明的实施例中,若移动终端监测到视频的视频源被切换为低分辨率视频源,则移动终端调用视频软件解码器对视频进行解码。具体的,视频软件解码器在对视频进行解码过程中,其是在视频框架层直接对视频进行解码处理,因此,软件解码器在解码过程中具备响应解码迅速并且无延时的特点。但是,软件解码器在解码过程中,存在资源开销大的问题。而硬件解码器是在DSP(Digital Signal Processing,数字信号处理)层对视频进行解码,所以,硬件解码器在解码过程中具备计算速度快且功耗低的特点,但是,在网络阻塞的情况下,硬件解码器检测到有快进、后退或视频源切换的情况时,硬件解码器需要调用多个程序,才能启动硬件执行解码,从而造成时效性差的缺点。因此,移动终端在监测到视频源被切换为低分辨率时,将会调用软件解码器对视频进行解码,而在视频源恢复正常,即,被切换为高分辨率版本(即第一视频源)时,移动终端将立即调用硬件解码器继续对视频进行解码。Specifically, in the embodiment of the present invention, if the mobile terminal detects that the video source of the video is switched to a low-resolution video source, the mobile terminal invokes a video software decoder to decode the video. Specifically, when the video software decoder decodes the video, it directly decodes the video at the video frame layer. Therefore, the software decoder has the characteristics of fast response decoding and no delay in the decoding process. However, the software decoder has a problem of high resource overhead during the decoding process. The hardware decoder decodes the video at the DSP (Digital Signal Processing) layer, so the hardware decoder has the characteristics of fast calculation speed and low power consumption in the decoding process. However, in the case of network congestion , when the hardware decoder detects that there is fast forward, rewind or video source switching, the hardware decoder needs to call multiple programs to start the hardware to perform decoding, resulting in the disadvantage of poor timeliness. Therefore, when the mobile terminal detects that the video source is switched to a low resolution, it will invoke a software decoder to decode the video, and when the video source returns to normal, that is, it is switched to a high-resolution version (that is, the first video source ), the mobile terminal will immediately call the hardware decoder to continue decoding the video.
步骤103,当监测到视频的视频源从第二视频源被切换回第一视频源时,调用视频硬件解码器接替视频软件解码器对视频进行解码。Step 103, when it is detected that the video source of the video is switched from the second video source back to the first video source, call the video hardware decoder to replace the video software decoder to decode the video.
具体的,在本发明的实施例中,移动终端实时监测视频的视频源是否从第二视频源被切换回第一视频源,若是,则立即调用视频硬件解码器接替视频软件解码器继续对视频进行解码。Specifically, in an embodiment of the present invention, the mobile terminal monitors in real time whether the video source of the video is switched back to the first video source from the second video source, and if so, immediately calls the video hardware decoder to take over the video software to decode.
综上,本发明实施例中的技术方案,通过监测视频播放过程中视频的视频源是否从第一视频源被切换为第二视频源,其中,第二视频源的分辨率低于第一视频源的分辨率;若是,则调用视频软件解码器对视频进行解码;当监测到视频的视频源从第二视频源被切换回第一视频源时,调用视频硬件解码器接替视频软件解码器对视频进行解码。本发明能够通过调用软件解码器与硬件解码器协同作用,对在线播放视频进行解码,从而有效防止由于网络等原因造成的在线视频的视频源被切换过程中出现的视频卡顿以及音视频不同步现象,进而提升了用户体验。To sum up, the technical solution in the embodiment of the present invention monitors whether the video source of the video is switched from the first video source to the second video source during video playback, wherein the resolution of the second video source is lower than that of the first video The resolution of the source; if so, call the video software decoder to decode the video; when the video source of the monitored video is switched back to the first video source from the second video source, call the video hardware decoder to replace the video software decoder The video is decoded. The present invention can decode the video played online by invoking the synergistic effect of the software decoder and the hardware decoder, thereby effectively preventing the video freeze and audio and video asynchronism during the switching process of the video source of the online video caused by network and other reasons phenomenon, thereby improving the user experience.
实施例二Embodiment two
参照图2,示出了本发明实施例中一种视频解码方法的流程图,具体包括:Referring to FIG. 2, it shows a flowchart of a video decoding method in an embodiment of the present invention, specifically including:
步骤201,创建视频协同解码器。Step 201, creating a video cooperative decoder.
具体的,在本发明的实施例中,移动终端可调用移动终端中的多个工具(即可实现不同功能的程序代码),生成视频协同解码器。以及,移动终端可生成与视频协同解码器对应的动态链接库,从而在移动终端调用该视频协同解码器中的功能时,直接通过动态链接库即可调用相应的工具。Specifically, in the embodiment of the present invention, the mobile terminal can invoke multiple tools (that is, program codes for realizing different functions) in the mobile terminal to generate a video collaborative decoder. And, the mobile terminal can generate a dynamic link library corresponding to the video cooperative decoder, so that when the mobile terminal invokes a function in the video cooperative decoder, the corresponding tool can be directly invoked through the dynamic link library.
步骤202,监测视频播放过程中视频的视频源是否从第一视频源被切换为第二视频源。Step 202, monitor whether the video source of the video is switched from the first video source to the second video source during the video playing process.
具体的,在本发明的实施例中,移动终端在视频播放过程中,可实时监测当前播放的在线视频的视频源是否被切换。在一个实施例中,若网络发生阻塞,则移动终端中的相应模块会将视频的当前分辨率版本(即第一视频源)切换为低分辨率版本(即第二视频源)。在另一个实施例中,用户若将视频进行快进或后退,由于网络与硬件条件限制,同样会造成视频分辨率的切换。Specifically, in the embodiment of the present invention, during the video playing process, the mobile terminal can monitor in real time whether the video source of the currently playing online video is switched. In one embodiment, if the network is blocked, a corresponding module in the mobile terminal will switch the current resolution version of the video (ie, the first video source) to a low-resolution version (ie, the second video source). In another embodiment, if the user fast-forwards or rewinds the video, due to network and hardware constraints, the video resolution will also be switched.
步骤203,调用视频软件解码器对视频进行解码。Step 203, call the video software decoder to decode the video.
具体的,在本发明的实施例中,若移动终端监测到视频的视频源被切换为低分辨率视频源,则移动终端调用视频软件解码器对视频进行解码。具体调用过程如下:Specifically, in the embodiment of the present invention, if the mobile terminal detects that the video source of the video is switched to a low-resolution video source, the mobile terminal invokes a video software decoder to decode the video. The specific calling process is as follows:
1)通过视频协同解码器检测移动终端是否支持视频软件解码器功能;1) Detect whether the mobile terminal supports the video software decoder function through the video cooperative decoder;
2)若是,则获取移动终端支持的视频软件解码器类型;2) if so, then obtain the video software decoder type supported by the mobile terminal;
3)依据移动终端支持的视频软件解码器类型,创建视频软件解码器;3) Create a video software decoder according to the video software decoder type supported by the mobile terminal;
4)调用视频软件解码器对第二视频源进行解码。4) calling the video software decoder to decode the second video source.
具体的,在本发明的实施例中,移动终端若检测到视频源被切换为低分辨率视频源,则启动视频协同解码器。视频协同解码器读取移动终端中存储的解码信息,解码信息中记录有移动终端是否支持视频软件解码器功能,以及所支持的视频软件解码器类型。视频协同解码器在确定移动终端支持视频软件解码器功能的情况下,从解码信息中获取移动终端支持的视频软件解码器类型,并创建视频软件解码器。在本发明的实施例中,若移动终端支持多种类型的视频软件解码器,则可依据任一种类型,创建对应的视频软件解码器。本发明实施例中,在网络发生阻塞或视频被快进或后退时,导致视频源切换为低分辨率时,移动终端可立即启用视频协同解码器,创建相应的视频软件解码器,并利用视频软件解码器对低分辨率视频源(即第二视频源)进行解码,从而充分发挥了视频软件解码器的解码迅速并且无延时的特点,有效避免了视频卡顿或黑屏等现象,提升了视频流畅性以及用户体验。Specifically, in the embodiment of the present invention, if the mobile terminal detects that the video source is switched to a low-resolution video source, it starts the video cooperative decoder. The video cooperative decoder reads the decoding information stored in the mobile terminal, and the decoding information records whether the mobile terminal supports the video software decoder function and the supported video software decoder type. When the video cooperative decoder determines that the mobile terminal supports the function of the video software decoder, it obtains the video software decoder type supported by the mobile terminal from the decoding information, and creates a video software decoder. In the embodiment of the present invention, if the mobile terminal supports multiple types of video software decoders, a corresponding video software decoder can be created according to any type. In the embodiment of the present invention, when the network is blocked or the video is fast-forwarded or rewinded, causing the video source to switch to a low resolution, the mobile terminal can immediately enable the video cooperative decoder, create a corresponding video software decoder, and use the video The software decoder decodes the low-resolution video source (that is, the second video source), thus giving full play to the characteristics of fast decoding and no delay of the video software decoder, effectively avoiding the phenomenon of video freeze or black screen, and improving the quality of life. Video fluency and user experience.
步骤204,当监测到视频的视频源从第二视频源被切换回第一视频源时,调用视频硬件解码器接替视频软件解码器对视频进行解码。Step 204, when it is detected that the video source of the video is switched from the second video source back to the first video source, call the video hardware decoder to replace the video software decoder to decode the video.
具体的,在本发明的实施例中,移动终端实时监测视频的视频源是否被切换为第一视频源。若是,则停止调用视频软件解码器。以及,调用视频硬件解码器从视频软件解码器停止解码时刻对视频进行解码。Specifically, in the embodiment of the present invention, the mobile terminal monitors in real time whether the video source of the video is switched to the first video source. If so, stop calling the video software decoder. And, call the video hardware decoder to decode the video from the moment when the video software decoder stops decoding.
在本发明的实施例中,移动终端在监测到视频源被切换回高分辨率版本后,则立即停止调用视频软件解码器,并调用视频硬件解码器从视频软件解码器停止解码的时刻继续对视频进行解码。从而实现实时、准确的对软件解码器与硬件解码器进行切换,保证了视频播放的实时性以及流畅性。In the embodiment of the present invention, after the mobile terminal detects that the video source is switched back to the high-resolution version, it immediately stops calling the video software decoder, and calls the video hardware decoder to continue to read the video from the moment when the video software decoder stops decoding. The video is decoded. In this way, real-time and accurate switching between the software decoder and the hardware decoder is realized, which ensures the real-time performance and smoothness of video playback.
此外,在本发明的一个优选的实施例中,移动终端调用视频硬件解码器的过程如下:In addition, in a preferred embodiment of the present invention, the process of the mobile terminal calling the video hardware decoder is as follows:
1)视频通过视频协同解码器检测移动终端是否支持视频硬件解码器功能;1) The video detects whether the mobile terminal supports the video hardware decoder function through the video collaborative decoder;
2)若是,则获取移动终端支持的视频硬件解码器类型;2) if so, then obtain the video hardware decoder type supported by the mobile terminal;
3)依据移动终端支持的视频硬件解码器类型,创建视频硬件解码器;3) Create a video hardware decoder according to the type of video hardware decoder supported by the mobile terminal;
4)调用视频硬件解码器对第一视频源进行解码。4) Call the video hardware decoder to decode the first video source.
具体的,在本发明的实施例中,移动终端若监测到视频源被切换回高分辨率视频源,则启动视频协同解码器。视频协同解码器读取移动终端中存储的解码信息,解码信息中记录有移动终端是否支持视频硬件解码器功能,以及所支持的视频硬件解码器类型。视频协同解码器在确定移动终端支持视频硬件解码器功能的情况下,从解码信息中获取移动终端支持的视频硬件解码器类型,并创建视频硬件解码器。在本发明的实施例中,若移动终端支持多种类型的视频硬件解码器,则可依据任一种类型,创建对应的视频硬件解码器。本发明实施例中,在网络恢复正常时,视频源将切换回高分辨率版本(即第一视频源),移动终端可立即启用视频协同解码器,创建相应的视频硬件解码器,并利用视频硬件解码器对高分辨率视频源进行解码,从而充分发挥了视频硬件解码器的计算速度快、功耗低的特点,进一步提升了视频流畅性以及用户体验。Specifically, in the embodiment of the present invention, if the mobile terminal detects that the video source is switched back to the high-resolution video source, it starts the video cooperative decoder. The video cooperative decoder reads the decoding information stored in the mobile terminal, and the decoding information records whether the mobile terminal supports the video hardware decoder function and the supported video hardware decoder type. The video cooperative decoder obtains the type of video hardware decoder supported by the mobile terminal from the decoding information when it is determined that the mobile terminal supports the video hardware decoder function, and creates a video hardware decoder. In the embodiment of the present invention, if the mobile terminal supports multiple types of video hardware decoders, a corresponding video hardware decoder can be created according to any type. In the embodiment of the present invention, when the network returns to normal, the video source will switch back to the high-resolution version (that is, the first video source), and the mobile terminal can immediately enable the video cooperative decoder, create a corresponding video hardware decoder, and use the video The hardware decoder decodes the high-resolution video source, thus giving full play to the characteristics of fast computing speed and low power consumption of the video hardware decoder, and further improving video fluency and user experience.
步骤205,若检测到视频播放完毕,则删除视频协同解码器,并释放视频协同解码器所占用的资源。Step 205, if it is detected that the video has been played, delete the video cooperative decoder and release the resources occupied by the video cooperative decoder.
具体的,在本发明的实施例中,若移动终端检测到视频播放完毕后,则可删除视频协同解码器,并释放视频协同解码器在启动过程中所占用的内存与硬件资源。在另一个实施例中,若移动终端检测到视频播放器退出或视频停止播放,也可以删除视频协同解码器并释放资源。从而有效提升了系统的资源利用率。Specifically, in the embodiment of the present invention, if the mobile terminal detects that the video has been played, it can delete the video cooperative decoder, and release the memory and hardware resources occupied by the video cooperative decoder during startup. In another embodiment, if the mobile terminal detects that the video player quits or the video stops playing, it can also delete the video cooperative decoder and release resources. Thus, the resource utilization rate of the system is effectively improved.
综上,本发明实施例中的技术方案,通过监测视频播放过程中视频的视频源是否从第一视频源被切换为第二视频源,其中,第二视频源的分辨率低于第一视频源的分辨率;若是,则调用视频软件解码器对视频进行解码;当监测到视频的视频源从第二视频源被切换回第一视频源时,调用视频硬件解码器接替视频软件解码器对视频进行解码。本发明能够通过调用软件解码器与硬件解码器协同作用,对在线播放视频进行解码,从而有效防止由于网络等原因造成的在线视频的视频源被切换过程中出现的视频卡顿以及音视频不同步现象,进而提升了用户体验。To sum up, the technical solution in the embodiment of the present invention monitors whether the video source of the video is switched from the first video source to the second video source during video playback, wherein the resolution of the second video source is lower than that of the first video The resolution of the source; if so, call the video software decoder to decode the video; when the video source of the monitored video is switched back to the first video source from the second video source, call the video hardware decoder to replace the video software decoder The video is decoded. The present invention can decode the video played online by invoking the synergistic effect of the software decoder and the hardware decoder, thereby effectively preventing the video freeze and audio and video asynchronism during the switching process of the video source of the online video caused by network and other reasons phenomenon, thereby improving the user experience.
实施例三Embodiment three
参照图3,示出了本发明实施例中一种移动终端300的框图。具体包括:Referring to FIG. 3 , it shows a block diagram of a mobile terminal 300 in an embodiment of the present invention. Specifically include:
监测模块301,用于监测视频播放过程中视频的视频源是否从第一视频源被切换为第二视频源,其中,第二视频源的分辨率低于第一视频源的分辨率。The monitoring module 301 is configured to monitor whether the video source of the video is switched from the first video source to the second video source during video playing, wherein the resolution of the second video source is lower than that of the first video source.
具体的,在本发明的实施例中,移动终端在视频播放过程中,监测模块301可实时监测当前播放的在线视频的视频源是否被切换。在一个实施例中,若网络发生阻塞,则移动终端中的相应模块会将视频的当前分辨率版本(即第一视频源)切换为低分辨率版本(即第二视频源)。在另一个实施例中,用户若将视频进行快进或后退,由于网络与硬件条件限制,同样会造成视频分辨率的切换。Specifically, in the embodiment of the present invention, during the video playing process of the mobile terminal, the monitoring module 301 can monitor in real time whether the video source of the currently playing online video is switched. In one embodiment, if the network is blocked, a corresponding module in the mobile terminal will switch the current resolution version of the video (ie, the first video source) to a low-resolution version (ie, the second video source). In another embodiment, if the user fast-forwards or rewinds the video, due to network and hardware constraints, the video resolution will also be switched.
第一调用模块302,用于若是,则调用视频软件解码器对视频进行解码。The first calling module 302 is configured to call a video software decoder to decode the video if yes.
具体的,在本发明的实施例中,若移动终端监测到视频的视频源被切换为低分辨率视频源,则移动终端调用视频软件解码器对视频进行解码。具体的,视频软件解码器在对视频进行解码过程中,其是在视频框架层直接对视频进行解码处理,因此,软件解码器在解码过程中具备响应解码迅速并且无延时的特点。但是,软件解码器在解码过程中,存在资源开销大的问题。而硬件解码器是在DSP层对视频进行解码,所以,硬件解码器在解码过程中具备计算速度快且功耗低的特点,但是,在网络阻塞的情况下,硬件解码器检测到有快进、后退或视频源切换的情况时,硬件解码器需要调用多个程序,才能启动硬件执行解码,从而造成时效性差的缺点。因此,移动终端在监测到视频源被切换为低分辨率时,将会调用软件解码器对视频进行解码,而在视频源恢复正常,即,被切换为高分辨率版本(即第一视频源)时,移动终端将立即调用硬件解码器继续对视频进行解码。Specifically, in the embodiment of the present invention, if the mobile terminal detects that the video source of the video is switched to a low-resolution video source, the mobile terminal invokes a video software decoder to decode the video. Specifically, when the video software decoder decodes the video, it directly decodes the video at the video frame layer. Therefore, the software decoder has the characteristics of fast response decoding and no delay in the decoding process. However, the software decoder has a problem of high resource overhead during the decoding process. The hardware decoder decodes the video at the DSP layer. Therefore, the hardware decoder has the characteristics of fast calculation speed and low power consumption during the decoding process. However, in the case of network congestion, the hardware decoder detects that there is fast forwarding. , backward or video source switching, the hardware decoder needs to call multiple programs to start the hardware to perform decoding, resulting in the disadvantage of poor timeliness. Therefore, when the mobile terminal detects that the video source is switched to a low resolution, it will invoke a software decoder to decode the video, and when the video source returns to normal, that is, it is switched to a high-resolution version (that is, the first video source ), the mobile terminal will immediately call the hardware decoder to continue decoding the video.
第二调用模块303,用于当监测到视频的视频源从第二视频源被切换回第一视频源时,调用视频硬件解码器接替视频软件解码器对视频进行解码。The second calling module 303 is configured to call the video hardware decoder to replace the video software decoder to decode the video when it is detected that the video source of the video is switched from the second video source back to the first video source.
具体的,在本发明的实施例中,第二调用模块303实时监测视频的视频源是否被切换回第一视频源,若是,则第二调用模块303立即调用视频硬件解码器接替视频软件解码器继续对视频进行解码。Concretely, in the embodiment of the present invention, the second calling module 303 monitors in real time whether the video source of the video is switched back to the first video source, if so, the second calling module 303 immediately calls the video hardware decoder to replace the video software decoder Proceed to decode the video.
参照图4,在本发明的一个优选的实施例中,在图3的基础上,移动终端进一步包括:Referring to Fig. 4, in a preferred embodiment of the present invention, on the basis of Fig. 3, the mobile terminal further includes:
创建模块304,用于创建视频协同解码器。The creation module 304 is used to create a video cooperative decoder.
相应的,参照图5,在图3的基础上,第一调用模块302进一步包括:Correspondingly, referring to FIG. 5, on the basis of FIG. 3, the first calling module 302 further includes:
第一检测子模块3021,用于通过视频协同解码器检测移动终端是否支持视频软件解码器功能;The first detection sub-module 3021 is used to detect whether the mobile terminal supports the video software decoder function through the video cooperative decoder;
第一获取子模块3022,用于若是,则获取移动终端支持的视频软件解码器类型;The first obtaining submodule 3022 is used to obtain the video software decoder type supported by the mobile terminal if so;
第一创建子模块3023,用于依据移动终端支持的视频软件解码器类型,创建视频软件解码器;The first creating submodule 3023 is used to create a video software decoder according to the type of video software decoder supported by the mobile terminal;
第一调用子模块3024,用于调用视频软件解码器对第二视频源进行解码。The first calling sub-module 3024 is used for calling the video software decoder to decode the second video source.
参照图6,在本发明的一个优选的实施例中,在图3的基础上,第二调用模块303还包括:Referring to Fig. 6, in a preferred embodiment of the present invention, on the basis of Fig. 3, the second calling module 303 also includes:
第二检测子模块3031,用于通过视频协同解码器检测移动终端是否支持视频硬件解码器功能;The second detection submodule 3031 is used to detect whether the mobile terminal supports the video hardware decoder function through the video cooperative decoder;
第二获取子模块3032,用于若是,则获取移动终端支持的视频硬件解码器类型;The second obtaining submodule 3032 is used to obtain the video hardware decoder type supported by the mobile terminal if so;
第二创建子模块3033,用于依据移动终端支持的视频硬件解码器类型,创建视频硬件解码器;The second creation sub-module 3033 is used to create a video hardware decoder according to the type of video hardware decoder supported by the mobile terminal;
第二调用子模块3034,用于调用视频硬件解码器对第一视频源进行解码。The second calling sub-module 3034 is used for calling the video hardware decoder to decode the first video source.
参照图7,在本发明的一个优选的实施例中,在图3的基础上,第二调用模块还包括:Referring to Fig. 7, in a preferred embodiment of the present invention, on the basis of Fig. 3, the second calling module also includes:
监测子模块3035,用于实时监测视频的视频源是否被切换为第一视频源;The monitoring sub-module 3035 is used to monitor whether the video source of the video is switched to the first video source in real time;
停止调用子模块3036,用于若是,则停止调用视频软件解码器;以及,Stop calling submodule 3036, for if, then stop calling video software decoder; And,
调用子模块3037,用于调用视频软件解码器从视频软件解码器停止解码时刻对视频进行解码。Call the sub-module 3037, which is used to call the video software decoder to decode the video from the moment when the video software decoder stops decoding.
参照图8,在本发明的一个优选的实施例中,在图3的基础上,移动终端还包括:Referring to FIG. 8, in a preferred embodiment of the present invention, on the basis of FIG. 3, the mobile terminal further includes:
删除模块305,用于若检测到视频播放完毕,则删除视频协同解码器,并释放视频协同解码器所占用的资源。The deletion module 305 is configured to delete the video cooperative decoder and release the resources occupied by the video cooperative decoder if it is detected that the video is played completely.
本发明实施例提供的移动终端能够实现图1至图2的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal provided by the embodiment of the present invention can implement various processes implemented by the mobile terminal in the method embodiments shown in FIG. 1 to FIG. 2 , and details are not repeated here to avoid repetition.
综上,本发明实施例中的移动终端,通过监测视频播放过程中视频的视频源是否从第一视频源被切换为第二视频源,其中,第二视频源的分辨率低于第一视频源的分辨率;若是,则调用视频软件解码器对视频进行解码;当监测到视频的视频源从第二视频源被切换回第一视频源时,调用视频硬件解码器接替视频软件解码器对视频进行解码。本发明能够通过调用软件解码器与硬件解码器协同作用,对在线播放视频进行解码,从而有效防止由于网络等原因造成的在线视频的视频源被切换过程中出现的视频卡顿以及音视频不同步现象,进而提升了用户体验。To sum up, the mobile terminal in the embodiment of the present invention monitors whether the video source of the video is switched from the first video source to the second video source during video playback, wherein the resolution of the second video source is lower than that of the first video The resolution of the source; if so, call the video software decoder to decode the video; when the video source of the monitored video is switched back to the first video source from the second video source, call the video hardware decoder to replace the video software decoder The video is decoded. The present invention can decode the video played online by invoking the synergistic effect of the software decoder and the hardware decoder, thereby effectively preventing the video freeze and audio and video asynchronism during the switching process of the video source of the online video caused by network and other reasons phenomenon, thereby improving the user experience.
实施例四Embodiment four
图9为实现本发明各个实施例的一种移动终端的硬件结构示意图,FIG. 9 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention,
该移动终端400包括但不限于:射频单元401、网络模块402、音频输出单元403、输入单元404、传感器405、显示单元406、用户输入单元407、接口单元408、存储器409、处理器410、以及电源411等部件。本领域技术人员可以理解,图4中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The mobile terminal 400 includes, but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 410, and Power supply 411 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in Figure 4 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.
处理器410,用于监测视频播放过程中视频的视频源是否从第一视频源被切换为第二视频源,其中,第二视频源的分辨率低于第一视频源的分辨率;若是,则调用视频软件解码器对视频进行解码;当监测到视频的视频源从第二视频源被切换回第一视频源时,调用视频硬件解码器接替视频软件解码器对视频进行解码。The processor 410 is configured to monitor whether the video source of the video is switched from the first video source to the second video source during video playback, wherein the resolution of the second video source is lower than the resolution of the first video source; if so, Then call the video software decoder to decode the video; when the monitored video source is switched back to the first video source from the second video source, call the video hardware decoder to replace the video software decoder to decode the video.
综上,本发明实施例中的移动终端,通过监测视频播放过程中视频的视频源是否从第一视频源被切换为第二视频源,其中,第二视频源的分辨率低于第一视频源的分辨率;若是,则调用视频软件解码器对视频进行解码;当监测到视频的从第二视频源视频源被切换回第一视频源时,调用视频硬件解码器接替视频软件解码器对视频进行解码。本发明能够通过调用软件解码器与硬件解码器协同作用,对在线播放视频进行解码,从而有效防止由于网络等原因造成的在线视频的视频源被切换过程中出现的视频卡顿以及音视频不同步现象,进而提升了用户体验。To sum up, the mobile terminal in the embodiment of the present invention monitors whether the video source of the video is switched from the first video source to the second video source during video playback, wherein the resolution of the second video source is lower than that of the first video The resolution of the source; if so, call the video software decoder to decode the video; when the video source is switched back to the first video source from the second video source, call the video hardware decoder to replace the video software decoder The video is decoded. The present invention can decode the video played online by invoking the synergistic effect of the software decoder and the hardware decoder, thereby effectively preventing the video freeze and audio and video asynchronism during the switching process of the video source of the online video caused by network and other reasons phenomenon, thereby improving the user experience.
应理解的是,本发明实施例中,射频单元401可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器410处理;另外,将上行的数据发送给基站。通常,射频单元401包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元401还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 410; Uplink data is sent to the base station. Generally, the radio frequency unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 401 can also communicate with the network and other devices through a wireless communication system.
移动终端通过网络模块402为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 402, such as helping users send and receive emails, browse web pages, and access streaming media.
音频输出单元403可以将射频单元401或网络模块402接收的或者在存储器409中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元403还可以提供与移动终端400执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元403包括扬声器、蜂鸣器以及受话器等。The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 can also provide audio output related to a specific function performed by the mobile terminal 400 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
输入单元404用于接收音频或视频信号。输入单元404可以包括图形处理器(Graphics Processing Unit,GPU)4041和麦克风4042,图形处理器4041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元406上。经图形处理器4041处理后的图像帧可以存储在存储器409(或其它存储介质)中或者经由射频单元401或网络模块402进行发送。麦克风4042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元401发送到移动通信基站的格式输出。The input unit 404 is used for receiving audio or video signals. The input unit 404 can include a graphics processing unit (Graphics Processing Unit, GPU) 4041 and a microphone 4042, and the graphics processing unit 4041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 406 . The image frames processed by the graphics processor 4041 may be stored in the memory 409 (or other storage media) or sent via the radio frequency unit 401 or the network module 402 . The microphone 4042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 401 for output in the case of a phone call mode.
移动终端400还包括至少一种传感器405,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板4061的亮度,接近传感器可在移动终端400移动到耳边时,关闭显示面板4061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器405还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 4061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 4061 and the display panel 4061 when the mobile terminal 400 moves to the ear / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, etc.) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 405 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元406用于显示由用户输入的信息或提供给用户的信息。显示单元406可包括显示面板4061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板4061。The display unit 406 is used to display information input by the user or information provided to the user. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
用户输入单元407可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元407包括触控面板4071以及其他输入设备4072。触控面板4071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板4071上或在触控面板4071附近的操作)。触控面板4071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器410,接收处理器410发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板4071。除了触控面板4071,用户输入单元407还可以包括其他输入设备4072。具体地,其他输入设备4072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 407 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072 . The touch panel 4071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 4071 or near the touch panel 4071). operate). The touch panel 4071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, 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 For the processor 410, receive the command sent by the processor 410 and execute it. In addition, the touch panel 4071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 4071 , the user input unit 407 may also include other input devices 4072 . Specifically, other input devices 4072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
进一步的,触控面板4071可覆盖在显示面板4061上,当触控面板4071检测到在其上或附近的触摸操作后,传送给处理器410以确定触摸事件的类型,随后处理器410根据触摸事件的类型在显示面板4061上提供相应的视觉输出。虽然在图9中,触控面板4071与显示面板4061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板4071与显示面板4061集成而实现移动终端的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 4071 can be covered on the display panel 4061, and when the touch panel 4071 detects a touch operation on or near it, it will be sent to the processor 410 to determine the type of the touch event, and then the processor 410 will The type of event provides a corresponding visual output on the display panel 4061 . Although in FIG. 9, the touch panel 4071 and the display panel 4061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 4071 and the display panel 4061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.
接口单元408为外部装置与移动终端400连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元408可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端400内的一个或多个元件或者可以用于在移动终端400和外部装置之间传输数据。The interface unit 408 is an interface for connecting an external device to the mobile terminal 400 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 408 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.
存储器409可用于存储软件程序以及各种数据。存储器409可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器409可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 409 can be used to store software programs as well as various data. The memory 409 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 409 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
处理器410是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器409内的软件程序和/或模块,以及调用存储在存储器409内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器410可包括一个或多个处理单元;优选的,处理器410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器410中。The processor 410 is the control center of the mobile terminal, which uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 409, and calling data stored in the memory 409 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 410 .
移动终端400还可以包括给各个部件供电的电源411(比如电池),优选的,电源411可以通过电源管理系统与处理器410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 400 can also include a power supply 411 (such as a battery) for supplying power to various components. Preferably, the power supply 411 can be logically connected to the processor 410 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
另外,移动终端400包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 400 includes some functional modules not shown, which will not be repeated here.
优选的,本发明实施例还提供一种移动终端,包括处理器410,存储器409,存储在存储器409上并可在所述处理器410上运行的计算机程序,该计算机程序被处理器410执行时实现上述视频解码方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a mobile terminal, including a processor 410, a memory 409, a computer program stored in the memory 409 and operable on the processor 410, when the computer program is executed by the processor 410 Each process of the embodiment of the above video decoding method can be realized and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述视频解码方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned video decoding method embodiment is realized, and the same technology can be achieved. Effect, in order to avoid repetition, will not repeat them 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.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive, and those of ordinary skill in the art will Under the enlightenment of the present invention, without departing from the gist of the present invention and the protection scope of the claims, many forms can also be made, all of which belong to the protection of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710909928.5ACN107707976A (en) | 2017-09-29 | 2017-09-29 | A kind of video encoding/decoding method and mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710909928.5ACN107707976A (en) | 2017-09-29 | 2017-09-29 | A kind of video encoding/decoding method and mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN107707976Atrue CN107707976A (en) | 2018-02-16 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710909928.5APendingCN107707976A (en) | 2017-09-29 | 2017-09-29 | A kind of video encoding/decoding method and mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN107707976A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108737893A (en)* | 2018-06-05 | 2018-11-02 | 上海哔哩哔哩科技有限公司 | Realize that quick first frame goes out the video broadcasting method, device and medium of figure based on hybrid decoding |
| CN110198427A (en)* | 2018-07-05 | 2019-09-03 | 腾讯科技(深圳)有限公司 | Video call method and device |
| CN110572712A (en)* | 2018-06-05 | 2019-12-13 | 杭州海康威视数字技术股份有限公司 | decoding method and device |
| CN111107404A (en)* | 2019-12-27 | 2020-05-05 | 珠海全志科技股份有限公司 | Method, system and storage medium for quickly playing interface video of automobile and mobile terminal |
| WO2020098504A1 (en)* | 2018-11-12 | 2020-05-22 | 青岛海信传媒网络技术有限公司 | Video switching control method and display device |
| WO2020107970A1 (en)* | 2018-11-27 | 2020-06-04 | Oppo广东移动通信有限公司 | Video decoding method and apparatus, electronic device, and storage medium |
| WO2020151398A1 (en)* | 2019-01-23 | 2020-07-30 | 上海哔哩哔哩科技有限公司 | Method,device and storage medium for seamlessly switching hardware decoding dynamic resolution, |
| CN111479165A (en)* | 2019-01-23 | 2020-07-31 | 上海哔哩哔哩科技有限公司 | Seamless switching method and device for software and hardware decoding resolution and storage medium |
| CN113490031A (en)* | 2021-06-28 | 2021-10-08 | 海信电子科技(深圳)有限公司 | Display device and multi-window video playing method |
| CN113596585A (en)* | 2021-08-16 | 2021-11-02 | 杭州华橙软件技术有限公司 | Video processing method and device, storage medium and electronic equipment |
| CN114025170A (en)* | 2021-11-30 | 2022-02-08 | 深圳Tcl新技术有限公司 | Video playback method, apparatus, computer device, and computer-readable storage medium |
| WO2024152893A1 (en)* | 2023-01-18 | 2024-07-25 | 百果园技术(新加坡)有限公司 | Video display control method, apparatus and device, and medium and product |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101207728A (en)* | 2007-12-17 | 2008-06-25 | 深圳市同洲电子股份有限公司 | Method for playing back music of digital television receiver and digital television receiver |
| CN101986708A (en)* | 2010-10-29 | 2011-03-16 | 北京中星微电子有限公司 | Video decoding method and decoder |
| CN103124374A (en)* | 2011-11-17 | 2013-05-29 | 株式会社艾库塞尔 | Method for moving image reproduction processing and mobile information terminal using the method |
| CN103581712A (en)* | 2013-11-04 | 2014-02-12 | 广州华工信元通信技术有限公司 | Multi-protocol video playing method and system based on mobile terminal |
| CN104113770A (en)* | 2013-04-18 | 2014-10-22 | 深圳市云帆世纪科技有限公司 | Webpage video playing method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101207728A (en)* | 2007-12-17 | 2008-06-25 | 深圳市同洲电子股份有限公司 | Method for playing back music of digital television receiver and digital television receiver |
| CN101986708A (en)* | 2010-10-29 | 2011-03-16 | 北京中星微电子有限公司 | Video decoding method and decoder |
| CN103124374A (en)* | 2011-11-17 | 2013-05-29 | 株式会社艾库塞尔 | Method for moving image reproduction processing and mobile information terminal using the method |
| CN104113770A (en)* | 2013-04-18 | 2014-10-22 | 深圳市云帆世纪科技有限公司 | Webpage video playing method and device |
| CN103581712A (en)* | 2013-11-04 | 2014-02-12 | 广州华工信元通信技术有限公司 | Multi-protocol video playing method and system based on mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108737893B (en)* | 2018-06-05 | 2021-04-30 | 上海哔哩哔哩科技有限公司 | Video playing method, device and medium for realizing fast first frame map based on hybrid decoding |
| CN110572712A (en)* | 2018-06-05 | 2019-12-13 | 杭州海康威视数字技术股份有限公司 | decoding method and device |
| CN110572712B (en)* | 2018-06-05 | 2021-11-02 | 杭州海康威视数字技术股份有限公司 | Decoding method and device |
| CN108737893A (en)* | 2018-06-05 | 2018-11-02 | 上海哔哩哔哩科技有限公司 | Realize that quick first frame goes out the video broadcasting method, device and medium of figure based on hybrid decoding |
| US11128879B2 (en) | 2018-06-05 | 2021-09-21 | Shanghai Bilibili Technology Co., Ltd. | Hybrid decoding |
| CN110198427A (en)* | 2018-07-05 | 2019-09-03 | 腾讯科技(深圳)有限公司 | Video call method and device |
| CN110198427B (en)* | 2018-07-05 | 2021-09-21 | 腾讯科技(深圳)有限公司 | Video call method and device |
| WO2020098504A1 (en)* | 2018-11-12 | 2020-05-22 | 青岛海信传媒网络技术有限公司 | Video switching control method and display device |
| WO2020107970A1 (en)* | 2018-11-27 | 2020-06-04 | Oppo广东移动通信有限公司 | Video decoding method and apparatus, electronic device, and storage medium |
| CN111479165A (en)* | 2019-01-23 | 2020-07-31 | 上海哔哩哔哩科技有限公司 | Seamless switching method and device for software and hardware decoding resolution and storage medium |
| CN111479165B (en)* | 2019-01-23 | 2021-08-06 | 上海哔哩哔哩科技有限公司 | Seamless switching method and device for software and hardware decoding resolution and storage medium |
| WO2020151398A1 (en)* | 2019-01-23 | 2020-07-30 | 上海哔哩哔哩科技有限公司 | Method,device and storage medium for seamlessly switching hardware decoding dynamic resolution, |
| US11930246B2 (en) | 2019-01-23 | 2024-03-12 | Shanghai Bilibili Technology Co., Ltd. | Seamless switching method, device and storage medium of software and hardware decoding resolution |
| US12328529B2 (en) | 2019-01-23 | 2025-06-10 | Shanghai Bilibili Technology Co., Ltd. | Seamless switching method, device and storage medium of hardware decoding dynamic resolution |
| CN111107404A (en)* | 2019-12-27 | 2020-05-05 | 珠海全志科技股份有限公司 | Method, system and storage medium for quickly playing interface video of automobile and mobile terminal |
| CN113490031A (en)* | 2021-06-28 | 2021-10-08 | 海信电子科技(深圳)有限公司 | Display device and multi-window video playing method |
| CN113596585A (en)* | 2021-08-16 | 2021-11-02 | 杭州华橙软件技术有限公司 | Video processing method and device, storage medium and electronic equipment |
| CN114025170A (en)* | 2021-11-30 | 2022-02-08 | 深圳Tcl新技术有限公司 | Video playback method, apparatus, computer device, and computer-readable storage medium |
| WO2024152893A1 (en)* | 2023-01-18 | 2024-07-25 | 百果园技术(新加坡)有限公司 | Video display control method, apparatus and device, and medium and product |
| Publication | Publication Date | Title |
|---|---|---|
| CN107707976A (en) | A kind of video encoding/decoding method and mobile terminal | |
| CN110248245B (en) | Video positioning method and device, mobile terminal and storage medium | |
| CN108446085A (en) | A kind of throwing screen display methods and mobile terminal | |
| CN110784771B (en) | Video sharing method and electronic equipment | |
| WO2017008627A1 (en) | Multimedia live broadcast method, apparatus and system | |
| CN110719319B (en) | Resource sharing method, device, terminal equipment and storage medium | |
| WO2017202348A1 (en) | Video playing method and device, and computer storage medium | |
| CN110177296A (en) | A kind of video broadcasting method and mobile terminal | |
| CN108471550A (en) | A kind of video intercepting method and terminal | |
| CN110855921B (en) | Video recording control method and electronic equipment | |
| CN111694536A (en) | Audio control method, electronic device and computer-readable storage medium | |
| CN111414097A (en) | Interaction method, interaction system and display equipment | |
| CN111444540A (en) | Display method, electronic device and medium | |
| CN107608606A (en) | A kind of image display method, mobile terminal and computer-readable recording medium | |
| US9781380B2 (en) | Method, apparatus and terminal for playing multimedia content | |
| WO2017215661A1 (en) | Scenario-based sound effect control method and electronic device | |
| CN110198428A (en) | A kind of multimedia file producting method and first terminal | |
| WO2017215511A1 (en) | Control method of scene sound effect and related products | |
| CN109788372B (en) | A kind of streaming media playback method and related device | |
| CN111597540A (en) | Login method of application program, electronic device and readable storage medium | |
| CN109672845B (en) | Video call method and device and mobile terminal | |
| CN108197286A (en) | A kind of method for information display and mobile terminal | |
| CN108347642B (en) | A video playback method and mobile terminal | |
| CN108008808B (en) | Operating parameter adjustment method and mobile terminal | |
| CN108235288B (en) | A Bluetooth audio playback method and mobile terminal |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20180216 |