[go: up one dir, main page]

CN105812933A - Television starting method and device - Google Patents

Television starting method and device Download PDF

Info

Publication number
CN105812933A
CN105812933A CN201410843234.2A CN201410843234A CN105812933A CN 105812933 A CN105812933 A CN 105812933A CN 201410843234 A CN201410843234 A CN 201410843234A CN 105812933 A CN105812933 A CN 105812933A
Authority
CN
China
Prior art keywords
animation
startup
playback
boot
time
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.)
Granted
Application number
CN201410843234.2A
Other languages
Chinese (zh)
Other versions
CN105812933B (en
Inventor
杨志平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Corp
Original Assignee
TCL Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Corp filed Critical TCL Corp
Priority to CN201410843234.2A priority Critical patent/CN105812933B/en
Publication of CN105812933A publication Critical patent/CN105812933A/en
Application granted granted Critical
Publication of CN105812933B publication Critical patent/CN105812933B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

本发明适用于智能电视领域,提供了一种电视的启动方法及装置。所述方法包括:TV启动预设时间后,开机动画启动;监测TV当前的启动进度,获取TV的启动信息,所述TV的启动信息包括所述TV当前启动的阶段,所述TV从启动开始到启动结束包括若干阶段;基于所获取的启动信息及开机动画的帧数确定开机动画的初步播放帧率,实现TV与开机动画的初步同步;在TV播放进行阶段转换时,若TV启动的剩余时间与所述开机动画播放的剩余时间不相等,基于当前TV的启动进程信息及开机动画的播放进程信息调整开机动画的播放帧率,以使TV启动和开机动画播放同时结束。本发明实施例能够时TV启动和开机动画播放同步。

The invention is applicable to the field of smart TVs, and provides a TV starting method and device. The method includes: after the TV is started for a preset time, the start-up animation starts; monitoring the current start-up progress of the TV, and obtaining TV start-up information, the TV start-up information includes the current start-up stage of the TV, and the TV starts from start-up It includes several stages until the end of the startup; determine the initial playback frame rate of the startup animation based on the acquired startup information and the number of frames of the startup animation, and realize the initial synchronization of the TV and the startup animation; The time is not equal to the remaining time of the boot animation playback, and the playback frame rate of the boot animation is adjusted based on the start process information of the current TV and the playback process information of the boot animation, so that the TV starts and the boot animation playback ends simultaneously. The embodiment of the present invention can synchronize TV start-up and start-up animation playback.

Description

电视的启动方法及装置Method and device for starting a TV

技术领域technical field

本发明实施例属于智能电视领域,尤其涉及一种电视的启动方法及装置。Embodiments of the present invention belong to the field of smart TVs, and in particular relate to a method and device for starting a TV.

背景技术Background technique

当前,智能电视系统软件大都基于Android平台构建,其启动过程大致为bootloader引导linux内核,再由linux内核加载Android的根文件系统,并执行Android系统的init进程,最后由init进程启动Android系统的后续进程,直到系统启动完成。At present, most of the smart TV system software is based on the Android platform. The startup process is roughly that the bootloader guides the linux kernel, and then the linux kernel loads the root file system of Android, executes the init process of the Android system, and finally starts the follow-up process of the Android system by the init process. process until the system boot is complete.

基于Android平台构建的智能电视系统,主要是在Android平台的基础上增加了TV功能(如模拟电视(AnalogTelevisionLimited,ATV),数字电视(Digitaltelevision,DTV))。虽然各电视厂商或各电视方案的TV功能和Android架构各不相同,但在用户空间部分基本都是由init进程来启动其TV进程。init进程启动系统服务和守护进程采用克隆(fork)形式,即init进程启动的进程基本是并行运行的。The smart TV system based on the Android platform mainly adds TV functions (such as analog television (Analog Television Limited, ATV), digital television (Digital television, DTV)) on the basis of the Android platform. Although the TV functions and Android architecture of each TV manufacturer or TV solution are different, in the user space part, the init process basically starts its TV process. The init process starts system services and daemons in the form of cloning (fork), that is, the processes started by the init process basically run in parallel.

智能电视系统的显示分为两个层Video(视频层、TV层)和OSD(用于显示Android的普通应用的图形层),当需要显示视频或TV时,可以隐藏OSD层,或将OSD层设置为透明。The display of the smart TV system is divided into two layers: Video (video layer, TV layer) and OSD (graphics layer for displaying Android common applications). When video or TV needs to be displayed, the OSD layer can be hidden, or the OSD layer Set to transparent.

现有方法中,开机动画在OSD层显示,TV画面在Video层显示,均由init进程同时启动,并行运行。由于并行启动开机动画和TV画面的进程的启动顺序是不确定的,因此,当启动开机动画和TV画面的进程不同步时,可能在开机动画前闪一次蓝屏(TV初始化画面或TV画面);也可能在开机动画播放时,播放TV声音。In the existing method, the boot animation is displayed on the OSD layer, and the TV picture is displayed on the Video layer, both of which are started simultaneously by the init process and run in parallel. Since the starting sequence of the process of starting the boot animation and the TV screen in parallel is uncertain, when the process of starting the boot animation and the TV screen is not synchronized, a blue screen (TV initialization screen or TV screen) may flash once before the boot animation; It is also possible to play TV sound when the boot animation is playing.

发明内容Contents of the invention

本发明实施例提供了一种电视的启动方法及装置,旨在解决现有方法TV启动和开机动画播放不同步的问题。Embodiments of the present invention provide a method and device for starting a TV, aiming at solving the problem of out-of-synchronization between TV start-up and start-up animation playing in the existing method.

本发明实施例是这样实现的,一种电视的启动方法,所述方法包括:The embodiment of the present invention is achieved in this way, a method for starting a TV, the method comprising:

S1、TV启动预设时间后,开机动画启动;S1. After the TV starts for a preset time, the boot animation starts;

S2、监测TV当前的启动进度,获取TV的启动信息,所述TV的启动信息包括所述TV当前启动的阶段,所述TV从启动开始到启动结束包括若干阶段;S2. Monitor the current start-up progress of the TV, and obtain start-up information of the TV. The start-up information of the TV includes the current start-up stage of the TV, and the TV includes several stages from start-up to start-up;

S3、基于所获取的启动信息及开机动画的帧数确定开机动画的初步播放帧率,实现TV与开机动画的初步同步;S3. Based on the acquired start-up information and the frame number of the start-up animation, determine the initial playback frame rate of the start-up animation, so as to realize the preliminary synchronization of the TV and the start-up animation;

S4、在TV播放进行阶段转换时,若TV启动的剩余时间与所述开机动画播放的剩余时间不相等,基于当前TV的启动进程信息及开机动画的播放进程信息调整开机动画的播放帧率,以使TV启动和开机动画播放同时结束,所述TV的启动进程信息包括TV当前所处的启动阶段及TV启动的剩余时间,所述开机动画的播放进程信息包括开机动画当前的播放帧率及开机动画未播放的帧数。S4. When the stage is switched during TV playback, if the remaining time of TV startup is not equal to the remaining time of the startup animation playback, adjust the playback frame rate of the startup animation based on the current TV startup process information and the playback progress information of the startup animation, To make the TV start and the start-up animation play end simultaneously, the start-up process information of the TV includes the current start-up stage of the TV and the remaining time of TV start-up, the play process information of the start-up animation includes the current playback frame rate and The number of frames the boot animation did not play.

本发明实施例的另一目的在于提供一种电视的启动装置,所述装置包括:Another object of the embodiments of the present invention is to provide a TV starting device, the device comprising:

开机动画启动单元,用于TV启动预设时间后,开机动画启动;The boot animation start unit is used to start the boot animation after the TV starts for a preset time;

启动信息获取单元,用于监测TV当前的启动进度,获取TV的启动信息,所述TV的启动信息包括所述TV当前启动的阶段,所述TV从启动开始到启动结束包括若干阶段;The startup information acquisition unit is used to monitor the current startup progress of the TV and acquire the startup information of the TV. The TV startup information includes the current startup stage of the TV, and the TV includes several stages from startup to startup;

播放帧率初步确定单元,用于基于所获取的启动信息及开机动画的帧数确定开机动画的初步播放帧率,实现TV与开机动画的初步同步;The playback frame rate preliminary determination unit is used to determine the preliminary playback frame rate of the boot animation based on the acquired startup information and the frame number of the boot animation, so as to realize the preliminary synchronization of the TV and the boot animation;

播放帧率修正单元,用于在TV播放进行阶段转换时,若TV启动的剩余时间与所述开机动画播放的剩余时间不相等,基于当前TV的启动进程信息及开机动画的播放进程信息调整开机动画的播放帧率,以使TV启动和开机动画播放同时结束,所述TV的启动进程信息包括TV当前所处的启动阶段及TV启动的剩余时间,所述开机动画的播放进程信息包括开机动画当前的播放帧率及开机动画未播放的帧数。The playback frame rate correction unit is used to adjust the startup process information based on the current TV startup process information and the startup animation playback process information if the remaining time of the TV startup is not equal to the remaining time of the startup animation when the stage is switched during TV playback. Animation playback frame rate, so that TV startup and startup animation playback end at the same time, the startup process information of the TV includes the current startup stage of the TV and the remaining time of TV startup, and the playback process information of the startup animation includes startup animation The current playback frame rate and the number of unplayed frames of the startup animation.

在本发明实施例中,由于开机动画的播放帧率与TV启动有关,并且,在开机动画的播放过程中,也及时根据后续的TV启动信息修正开机动画中未播放的帧的播放帧率,因此,使得开机动画的播放时间与TV启动的时间相同,从而解决电视启动过程中由于TV启动和开机动画播放不同步导致的现象。In the embodiment of the present invention, because the playback frame rate of the startup animation is related to the TV startup, and during the playback of the startup animation, the playback frame rate of the unplayed frames in the startup animation is also corrected in time according to the subsequent TV startup information, Therefore, the playing time of the booting animation is the same as the time of starting the TV, thereby solving the phenomenon caused by the asynchronous playing of the TV starting and the booting animation during the TV starting process.

附图说明Description of drawings

图1是本发明第一实施例提供的一种电视的启动方法的流程图;FIG. 1 is a flow chart of a method for starting a TV provided in the first embodiment of the present invention;

图2是本发明第一实施例提供的将播放控制参数按照animation结构重组的对象的结构示意图;FIG. 2 is a schematic structural diagram of an object that reorganizes playback control parameters according to the animation structure provided by the first embodiment of the present invention;

图3是本发明第二实施例提供的一种电视的启动装置的结构图。Fig. 3 is a structural diagram of a TV starting device provided by a second embodiment of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

本发明实施例中,TV启动预设时间后,开机动画启动,并监测TV当前的启动进度,获取TV的启动信息,基于所获取的启动信息及开机动画的帧数确定开机动画的初步播放帧率,实现TV与开机动画的初步同步。在TV播放进行阶段转换时,若TV启动的剩余时间与所述开机动画播放的剩余时间不相等,基于当前TV的启动进程信息及开机动画的播放进程信息调整开机动画的播放帧率,以使TV启动和开机动画播放同时结束。In the embodiment of the present invention, after the TV starts for a preset time, the boot animation starts, and monitors the current TV startup progress, obtains the TV startup information, and determines the preliminary play frame of the startup animation based on the acquired startup information and the number of frames of the startup animation rate, to realize the initial synchronization of TV and boot animation. When TV broadcasting carries out phase conversion, if the remaining time of TV starting is not equal to the remaining time of described starting animation playing, adjust the playing frame rate of starting animation based on the starting process information of current TV and the playing process information of starting animation, so that TV startup and startup animation playback end at the same time.

为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.

实施例一:Embodiment one:

图1示出了本发明第一实施例提供的一种电视的启动方法的流程图,详述如下:FIG. 1 shows a flow chart of a method for starting a TV provided in the first embodiment of the present invention, which is described in detail as follows:

步骤S11,TV启动预设时间后,开机动画启动。In step S11, after the TV starts for a preset time, the boot animation starts.

该步骤中,开机动画对应的图片文件可分为至少两组,由于设定播放第一组的图片文件与启动TV同时进行,播放第二组的图片文件与播放TV同时进行,因此,第一组的图片文件的背景可透明,也可不透明,但第二组的图片文件的背景为透明,以便同时显示播放的TV。在本发明实施例中,为了便于表述,将播放开机动画的中分为第一组的图片文件对应的帧简称为开机动画的帧,当TV启动预设时间后,开机动画启动。In this step, the picture files corresponding to the startup animation can be divided into at least two groups, because the picture files of the first group are set to be played simultaneously with starting the TV, and the picture files of the second group are played simultaneously with the TV. Therefore, the first The background of the picture files in the group can be transparent or opaque, but the background of the picture files in the second group is transparent so as to display the playing TV at the same time. In the embodiment of the present invention, for the convenience of expression, the frames corresponding to the picture files divided into the first group in playing the boot animation are simply referred to as the frames of the boot animation. When the TV is started for a preset time, the boot animation starts.

可选地,在所述开机动画启动之前,包括:Optionally, before the boot animation is started, it includes:

A1、读取开机动画的图片文件和播放控制参数,所述播放控制参数包括开机动画的帧数。其中,播放控制参数还包括:动画的显示大小(宽和高),动画的帧率,以及动画被划分的组,组的路径类型、组循环播放数等。A1. Read the picture file of the boot animation and the playback control parameters, the playback control parameters include the number of frames of the boot animation. Among them, the playback control parameters also include: the display size (width and height) of the animation, the frame rate of the animation, and the groups into which the animation is divided, the path type of the group, the number of group loops, etc.

A2、将读取的播放控制参数重组为程序可执行的对象。具体地,将读取的播放控制参数按照animation(动画)结构重组成便于程序执行的对象,该对象的结构如图2所示。如图2所示,为了便于快速循环播放图片文件,预先存储文件映射地址、纹理标记等信息。A2. Reorganize the read playback control parameters into program executable objects. Specifically, the read playback control parameters are reorganized according to the animation (animation) structure into an object that is convenient for program execution, and the structure of the object is shown in FIG. 2 . As shown in FIG. 2 , in order to facilitate fast loop playback of picture files, information such as file mapping addresses and texture marks are stored in advance.

步骤S12,监测TV当前的启动进度,获取TV的启动信息,所述TV的启动信息包括所述TV当前启动的阶段,所述TV从启动开始到启动结束包括若干阶段。Step S12, monitor the current TV start-up progress, and obtain TV start-up information, the TV start-up information includes the current start-up stage of the TV, and the TV includes several stages from start-up to start-up.

其中,TV从启动开始到启动结束预先划分为多个阶段,每个阶段有唯一的标识表明TV当前启动的阶段。Wherein, the TV is pre-divided into a plurality of stages from the start to the end of the start, and each stage has a unique identifier indicating the stage that the TV is currently started.

步骤S13,基于所获取的启动信息及开机动画的帧数确定开机动画的初步播放帧率,实现TV与开机动画的初步同步。Step S13, based on the acquired start-up information and the frame number of the start-up animation, determine the initial playback frame rate of the start-up animation, and realize the preliminary synchronization of the TV and the start-up animation.

在TV的启动信息包括:TV当前启动的阶段Jx、从TV启动开始到当前的时间T0,TV启动所有阶段的总时间Th时,所述基于所获取的启动信息及开机动画的帧数确定开机动画的初步播放帧率,实现TV与开机动画的初步同步,具体包括:When the start-up information of the TV includes: the stage J x of the current start-up of the TV, the time T 0 from the start of the TV to the current time, and the total time T h of all stages of the TV start-up, the frame based on the obtained start-up information and the start-up animation Determine the initial playback frame rate of the boot animation, and realize the initial synchronization of the TV and the boot animation, including:

B1、基于所述启动信息,计算TV启动的当前剩余时间(Th-T0)。在播放开机动画之前,检查TV从启动开始到启动到当前所花费的时间T0和TV启动所有阶段的总时间Th,两数相减确定TV启动的剩余时间。其中,TV启动所有阶段的总时间可为历史的某次TV启动所有阶段的总时间,也可为历史的TV启动所有阶段的总时间的平均值。B1. Based on the startup information, calculate the current remaining time (T h -T 0 ) for TV startup. Before playing the startup animation, check the time T 0 taken by the TV from the start to the present and the total time T h of all stages of the TV start, and subtract the two numbers to determine the remaining time for the TV start. Wherein, the total time of all stages of TV startup may be the total time of all stages of TV startup in a certain history, or may be an average value of the total time of all stages of TV startup in history.

B2、基于(Th-T0)/N确定开机动画的初步播放帧率,所述N为开机动画的帧数。N为正整数。当然,开机动画的初步播放帧率为对(Th-T0)/N向下取整后得到的值。B2. Determine the preliminary playback frame rate of the boot animation based on (T h -T 0 )/N, where N is the number of frames of the boot animation. N is a positive integer. Of course, the initial playback frame rate of the startup animation is a value obtained by rounding down (T h -T 0 )/N.

步骤S14,在TV播放进行阶段转换时,若TV启动的剩余时间与所述开机动画播放的剩余时间不相等,基于当前TV的启动进程信息及开机动画的播放进程信息调整开机动画的播放帧率,以使TV启动和开机动画播放同时结束,所述TV的启动进程信息包括TV当前所处的启动阶段及TV启动的剩余时间,所述开机动画的播放进程信息包括开机动画当前的播放帧率及开机动画未播放的帧数。Step S14, when the TV broadcast is performing a phase transition, if the remaining time of TV startup is not equal to the remaining time of the startup animation playback, adjust the playback frame rate of the startup animation based on the current TV startup process information and the playback progress information of the startup animation , so that the TV startup and startup animation playback end at the same time, the startup process information of the TV includes the current startup stage of the TV and the remaining time of TV startup, and the playback progress information of the startup animation includes the current playback frame rate of the startup animation And the number of frames that the boot animation did not play.

其中,在TV播放进行阶段转换时,若TV启动的剩余时间与所述开机动画播放的剩余时间不相等,基于当前TV的启动进程信息及开机动画的播放进程信息调整开机动画的播放帧率,以使TV启动和开机动画播放同时结束,具体包括:Wherein, when TV broadcasting performs phase conversion, if the remaining time of TV startup is not equal to the remaining time of described boot animation playback, adjust the playback frame rate of boot animation based on the current TV startup process information and the playback process information of boot animation, To make the TV start and start animation playback end at the same time, specifically include:

C1、当TV启动过程进行阶段转换时,获取TV启动的剩余时间;当TV启动到每个阶段对应的标识时,判定TV启动过程进行阶段转换,这时,根据TV启动所有阶段所需的总时间和启动到当前所需的时间,确定TV启动的剩余时间。C1. When the TV start-up process undergoes stage conversion, obtain the remaining time for TV start-up; when the TV starts up to the corresponding logo of each stage, determine that the TV start-up process performs stage conversion. At this time, according to the total time required for TV start-up of all stages The time and the time required to boot up to the present, determine the time remaining for the TV to boot up.

C2、基于开机动画的当前播放帧率及开机动画未播放的帧数计算开机动画的播放剩余时间。具体地,播放帧率为单位时间播放的帧数,播放帧率等于开机动画未播放的帧数与开机动画。因此,基于开机动画的当前播放帧率与开机动画未播放的帧数计算可得到开机动画的播放剩余时间。C2. Calculate the remaining playing time of the boot animation based on the current playback frame rate of the boot animation and the number of unplayed frames of the boot animation. Specifically, the playback frame rate is the number of frames played per unit time, and the playback frame rate is equal to the number of unplayed frames of the startup animation and the startup animation. Therefore, based on the current playback frame rate of the boot animation and the number of unplayed frames of the boot animation, the remaining playing time of the boot animation can be obtained.

C3、判断TV启动的剩余时间是否与所述开机动画的播放剩余时间相等,若是则转到C4,否则转到步骤C5。C3. Judging whether the remaining time of TV startup is equal to the remaining time of playing the startup animation, if so, go to step C4, otherwise go to step C5.

C4、保持当前播放帧率播放开机动画。若TV启动的剩余时间与所述开机动画的播放剩余时间相等,表明TV启动和开机动画的播放继续保持同步,此时,无需调整开机动画的播放帧率。C4. Keep the current playback frame rate and play the startup animation. If the remaining time of TV startup is equal to the remaining playing time of the startup animation, it indicates that the TV startup and the playback of the startup animation continue to be synchronized. At this time, there is no need to adjust the playback frame rate of the startup animation.

C5、基于TV启动的剩余时间及开机动画未播放的帧数调整开机动画的播放帧率。具体地,将开机动画未播放的帧数与TV启动的剩余时间相除,得到的商为开机动画未播放的帧的帧率。当然,开机动画未播放的帧的帧率为对得到的商向下取整后的值。C5. Adjust the playback frame rate of the startup animation based on the remaining time of TV startup and the number of unplayed frames of the startup animation. Specifically, the number of unplayed frames of the startup animation is divided by the remaining time for starting the TV, and the obtained quotient is the frame rate of the unplayed frames of the startup animation. Of course, the frame rate of the frame that is not played in the startup animation is the value obtained by rounding down the obtained quotient.

在该步骤中,由于在每一个阶段都修正开机动画的播放帧率,因此,使得开机动画的播放与TV启动及时持同步,从而在TV启动结束时,开机动画(即开机动画的第一组图片文件)也播放结束,这时,在开始播放已启动结束的TV的同时,播放开机动画的第二组图片文件。In this step, since the playback frame rate of the startup animation is corrected at each stage, the playback of the startup animation is synchronized with the TV startup in time, so that when the TV startup ends, the startup animation (i.e. the first group of startup animation) Picture file) also finishes playing, and at this moment, while starting to play the TV that has started and ended, play the second group of picture files of the boot animation.

可选地,所述基于TV启动的剩余时间及开机动画未播放的帧数调整开机动画的播放帧率,具体包括:Optionally, the adjustment of the playback frame rate of the boot animation based on the remaining time of TV startup and the unplayed frame number of the boot animation specifically includes:

记录每一帧开机动画播放前的时间tb0和播放后的时间tb1Record the time t b0 before playing each frame of boot animation and the time t b1 after playing;

判断[tx-(tb1-tb0)]是否大于预设的值,若是,暂停[tx-(tb1-tb0)]之后继续播放当前帧的下一帧,否则,跳过当前帧的下一帧后继续播放,所述tx为每一帧开机动画的暂停时间。Determine whether [t x -(t b1 -t b0 )] is greater than the preset value, if so, pause [t x -(t b1 -t b0 )] and continue to play the next frame of the current frame, otherwise, skip the current frame Continue to play after the next frame of the frame, and the t x is the pause time of each frame of the boot animation.

其中,(tb1-tb0)为播放一帧开机动画所花费的时间,[tx-(tb1-tb0)]为播放两帧开机动画的暂停时间,可通过usleep[tx-(tb1-tb0)]语句强制暂停播放开机动画的帧。其中,预设的值可为10毫秒,例如,假设播放开机动画第一帧时,计算的[tx-(tb1-tb0)]小于10毫秒,则跳过第二帧,直接播放第三帧,否则,暂停[tx-(tb1-tb0)]后,继续播放第二帧。当然,预设的值也可设置为其他值,此处不作限定。Among them, (t b1 -t b0 ) is the time spent playing one frame of boot animation, [t x -(t b1 -t b0 )] is the pause time of playing two frames of boot animation, which can be passed through usleep[t x -( t b1 -t b0 )] statement forces a pause in the frame of the boot animation. Among them, the preset value can be 10 milliseconds. For example, if the calculated [t x -(t b1 -t b0 )] is less than 10 milliseconds when playing the first frame of the startup animation, skip the second frame and play the first frame directly. Three frames, otherwise, after pausing [t x -(t b1 -t b0 )], continue to play the second frame. Of course, the preset value can also be set to other values, which is not limited here.

可选地,在所述在TV播放进行阶段转换时,若TV启动的剩余时间与所述开机动画播放的剩余时间不相等,基于当前TV的启动进程信息及开机动画的播放进程信息调整开机动画的播放帧率,以使TV启动和开机动画播放同时结束时,包括:Optionally, when performing stage conversion during TV playback, if the remaining time of TV startup is not equal to the remaining time of the startup animation playback, the startup animation is adjusted based on the current TV startup process information and the playback progress information of the startup animation The playback frame rate, so that when the TV starts and the boot animation ends at the same time, including:

在播放每一帧开机动画之前以及播放每一帧开机动画之后,监测是否接收到停止播放开机动画的信号,以便在接收到停止播放开机动画的信号时,及时停止开机动画的播放。Before playing each frame of the boot animation and after playing each frame of the boot animation, monitor whether a signal to stop playing the boot animation is received, so that when the signal to stop playing the boot animation is received, the playback of the boot animation is stopped in time.

为了严格控制TV启动和开机动画播放的同步性,在播放开机动画的每一帧的开始和结束时,都监测是否接收到停止播放开机动画的信号,若接收到,则停止播放开机动画,否则,继续播放。当然,在开机动画的每一组的每次循环开始和结束时,同样监测是否接收到停止播放开机动画的信号。In order to strictly control the synchronization between TV startup and boot animation playback, at the beginning and end of each frame of the boot animation, it is monitored whether a signal to stop playing the boot animation is received, and if received, then stop playing the boot animation, otherwise , continue playing. Of course, at the beginning and end of each cycle of each group of the boot animation, it is also monitored whether a signal to stop playing the boot animation is received.

在本发明第一实施例中,TV启动预设时间后,开机动画启动,并监测TV当前的启动进度,获取TV的启动信息,基于所获取的启动信息及开机动画的帧数确定开机动画的初步播放帧率,实现TV与开机动画的初步同步。在TV播放进行阶段转换时,若TV启动的剩余时间与所述开机动画播放的剩余时间不相等,基于当前TV的启动进程信息及开机动画的播放进程信息调整开机动画的播放帧率,以使TV启动和开机动画播放同时结束。由于开机动画的播放帧率与TV启动有关,并且,在开机动画的播放过程中,也及时根据后续的TV启动信息修正开机动画中未播放的帧的播放帧率,因此,使得开机动画的播放时间与TV启动的时间相同,从而解决电视启动过程中由于TV启动和开机动画播放不同步导致的现象(如闪屏现象)。In the first embodiment of the present invention, after the TV starts for a preset time, the boot animation starts, and monitors the current TV startup progress, obtains the TV startup information, and determines the startup animation frame number based on the acquired startup information and the number of frames of the startup animation. Preliminary playback frame rate to achieve preliminary synchronization of TV and boot animation. When TV broadcasting carries out phase conversion, if the remaining time of TV starting is not equal to the remaining time of described starting animation playing, adjust the playing frame rate of starting animation based on the starting process information of current TV and the playing process information of starting animation, so that TV startup and startup animation playback end at the same time. Since the playback frame rate of the boot animation is related to the TV startup, and during the playback of the boot animation, the playback frame rate of the frames not played in the startup animation is corrected in time according to the follow-up TV startup information, so that the playback of the startup animation The time is the same as the time when the TV starts up, so as to solve the phenomenon (such as flickering phenomenon) caused by the asynchronous playback of TV start-up and boot animation during the TV start-up process.

应理解,在本发明实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that in the embodiment of the present invention, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, rather than the implementation process of the embodiment of the present invention. constitute any limitation.

实施例二:Embodiment two:

图3示出了本发明第二实施例提供的一种电视的启动装置的结构图,该电视的启动装置可应用于各种智能终端,该智能终端可以包括经无线电接入网RAN与一个或多个核心网进行通信的用户设备,该用户设备可以是移动电话(或称为“蜂窝”电话)、具有移动设备的计算机等,例如,用户设备还可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语音和/或数据。又例如,该移动设备可以包括智能手机、平板电脑、电视机、个人数字助理PDA、销售终端POS或车载电脑等。为了便于说明,仅示出了与本发明实施例相关的部分。Fig. 3 shows a structural diagram of a TV starting device provided by the second embodiment of the present invention. The TV starting device can be applied to various smart terminals, and the smart terminal may include a radio access network RAN and one or A user equipment that communicates with multiple core networks. The user equipment can be a mobile phone (or called a "cellular" phone), a computer with a mobile device, etc. For example, the user equipment can also be a portable, pocket, handheld, computer Built-in or vehicle-mounted mobile devices that exchange voice and/or data with the radio access network. For another example, the mobile device may include a smart phone, a tablet computer, a television, a personal digital assistant (PDA), a point-of-sale terminal (POS), or a vehicle-mounted computer. For ease of description, only parts related to the embodiments of the present invention are shown.

该电视的启动装置包括:开机动画启动单元31、启动信息获取单元32、播放帧率初步确定单元33、播放帧率修正单元34。其中:The start-up device of the TV includes: a start-up animation start unit 31 , a start-up information acquisition unit 32 , a play frame rate preliminary determination unit 33 , and a play frame rate correction unit 34 . in:

开机动画启动单元31,用于TV启动预设时间后,开机动画启动。The boot animation starting unit 31 is used for starting the boot animation after the TV is started for a preset time.

其中,开机动画对应的图片文件可分为至少两组,由于设定播放第一组的图片文件与启动TV同时进行,播放第二组的图片文件与播放TV同时进行,因此,第一组的图片文件的背景可透明,也可不透明,但第二组的图片文件的背景为透明,以便同时显示播放的TV。在本发明实施例中,为了便于表述,将播放开机动画的中分为第一组的图片文件对应的帧简称为开机动画的帧。Wherein, the picture files corresponding to the startup animation can be divided into at least two groups. Since the picture files of the first group are set to be played simultaneously with starting the TV, and the picture files of the second group are played simultaneously with the TV, therefore, the first group The background of the picture file can be transparent or opaque, but the background of the second group of picture files is transparent so as to display the playing TV at the same time. In the embodiment of the present invention, for the convenience of expression, the frames corresponding to the picture files divided into the first group in playing the startup animation are simply referred to as the frames of the startup animation.

可选地,在所述开机动画启动之前,包括:读取开机动画的图片文件和播放控制参数,所述播放控制参数包括开机动画的帧数。将读取的播放控制参数重组为程序可执行的对象。Optionally, before starting the boot animation, it includes: reading a picture file of the boot animation and playing control parameters, the playback control parameters including the number of frames of the boot animation. Reassemble the read playback control parameters into a program executable object.

启动信息获取单元32,用于监测TV当前的启动进度,获取TV的启动信息,所述TV的启动信息包括所述TV当前启动的阶段,所述TV从启动开始到启动结束包括若干阶段。The startup information acquisition unit 32 is configured to monitor the current startup progress of the TV and acquire TV startup information, the TV startup information includes the current startup stage of the TV, and the TV includes several stages from startup to startup.

播放帧率初步确定单元33,用于基于所获取的启动信息及开机动画的帧数确定开机动画的初步播放帧率,实现TV与开机动画的初步同步。The playback frame rate preliminary determination unit 33 is used to determine the preliminary playback frame rate of the startup animation based on the acquired startup information and the frame number of the startup animation, so as to realize the preliminary synchronization of the TV and the startup animation.

可选地,播放帧率初步确定单元33包括:Optionally, the playback frame rate preliminary determination unit 33 includes:

当前剩余时间计算模块,用于基于所述启动信息,计算TV启动的当前剩余时间(Th-T0)。其中,TV启动所有阶段的总时间可为历史的某次TV启动所有阶段的总时间,也可为历史的TV启动所有阶段的总时间的平均值。The current remaining time calculating module is configured to calculate the current remaining time (T h - T 0 ) of TV starting based on the starting information. Wherein, the total time of all stages of TV startup may be the total time of all stages of TV startup in a certain history, or may be an average value of the total time of all stages of TV startup in history.

播放帧率计算模块,用于基于(Th-T0)/N确定开机动画的初步播放帧率,所述N为开机动画的帧数。其中,开机动画的初步播放帧率为对(Th-T0)/N向下取整后得到的值。The playback frame rate calculation module is used to determine the preliminary playback frame rate of the boot animation based on (T h -T 0 )/N, where N is the number of frames of the boot animation. Wherein, the initial playback frame rate of the startup animation is a value obtained by rounding down (T h -T 0 )/N.

播放帧率修正单元34,用于在TV播放进行阶段转换时,若TV启动的剩余时间与所述开机动画播放的剩余时间不相等,基于当前TV的启动进程信息及开机动画的播放进程信息调整开机动画的播放帧率,以使TV启动和开机动画播放同时结束,所述TV的启动进程信息包括TV当前所处的启动阶段及TV启动的剩余时间,所述开机动画的播放进程信息包括开机动画当前的播放帧率及开机动画未播放的帧数。The playback frame rate correction unit 34 is used to adjust the start-up process information based on the current TV start-up process information and the start-up animation play process information if the remaining time of the TV start is not equal to the remaining time of the start-up animation when the TV is played for stage conversion. The playback frame rate of the boot animation, so that the TV starts and the boot animation playback ends simultaneously, and the startup process information of the TV includes the current startup stage of the TV and the remaining time of the TV startup, and the playback process information of the boot animation includes boot The current playback frame rate of the animation and the number of unplayed frames of the startup animation.

可选地,播放帧率修正单元34包括:Optionally, the playback frame rate correction unit 34 includes:

启动剩余时间获取模块,用于当TV启动过程进行阶段转换时,获取TV启动的剩余时间。当TV启动到每个阶段对应的标识时,判定TV启动过程进行阶段转换,这时,根据TV启动所有阶段所需的总时间和启动到当前所需的时间,确定TV启动的剩余时间。The module for acquiring the remaining time for starting is used to acquire the remaining time for starting the TV when the stage of the TV starting process is changed. When the TV starts up to the corresponding sign of each stage, it is determined that the TV start-up process undergoes a stage transition. At this time, the remaining time for TV start-up is determined according to the total time required for TV start-up of all stages and the time required for start-up to the current stage.

开机动画剩余播放时间计算模块,用于基于开机动画的当前播放帧率及开机动画未播放的帧数计算开机动画的播放剩余时间。具体地,播放帧率为单位时间播放的帧数,播放帧率等于开机动画未播放的帧数与开机动画。因此,基于开机动画的当前播放帧率与开机动画未播放的帧数计算可得到开机动画的播放剩余时间。The remaining playback time calculation module of the startup animation is used to calculate the remaining playback time of the startup animation based on the current playback frame rate of the startup animation and the number of unplayed frames of the startup animation. Specifically, the playback frame rate is the number of frames played per unit time, and the playback frame rate is equal to the number of unplayed frames of the startup animation and the startup animation. Therefore, based on the current playback frame rate of the boot animation and the number of unplayed frames of the boot animation, the remaining playing time of the boot animation can be obtained.

开机动画剩余播放时间比较模块,用于判断TV启动的剩余时间是否与所述开机动画的播放剩余时间相等,若是则转到开机动画帧率保持模块,否则转到开机动画帧率调整模块。The remaining playing time comparison module of boot animation is used to judge whether the remaining time of TV starting is equal to the playing remaining time of said boot animation, if so, then forward to the boot animation frame rate maintenance module, otherwise forward to the boot animation frame rate adjustment module.

开机动画帧率保持模块,用于保持当前播放帧率播放开机动画。若TV启动的剩余时间与所述开机动画的播放剩余时间相等,表明TV启动和开机动画的播放继续保持同步,此时,无需调整开机动画的播放帧率。The boot animation frame rate maintenance module is used to maintain the current playback frame rate to play the boot animation. If the remaining time of TV startup is equal to the remaining playing time of the startup animation, it indicates that the TV startup and the playback of the startup animation continue to be synchronized. At this time, there is no need to adjust the playback frame rate of the startup animation.

开机动画帧率调整模块,用于基于TV启动的剩余时间及开机动画未播放的帧数调整开机动画的播放帧率。具体地,将开机动画未播放的帧数与TV启动的剩余时间相除,得到的商为开机动画未播放的帧的帧率。当然,开机动画未播放的帧的帧率为对得到的商向下取整后的值。The boot animation frame rate adjustment module is used to adjust the playback frame rate of the boot animation based on the remaining time of TV startup and the number of unplayed frames of the boot animation. Specifically, the number of unplayed frames of the startup animation is divided by the remaining time for starting the TV, and the obtained quotient is the frame rate of the unplayed frames of the startup animation. Of course, the frame rate of the frame that is not played in the startup animation is the value obtained by rounding down the obtained quotient.

可选地,所述开机动画帧率调整模块包括:Optionally, the boot animation frame rate adjustment module includes:

开机动画帧的播放时间记录模块,用于记录每一帧开机动画播放前的时间tb0和播放后的时间tb1The playback time recording module of the boot animation frame is used to record the time t b0 before the playback of each frame of the boot animation and the time t b1 after the playback.

开机动画帧的暂停时间比较模块,用于判断[tx-(tb1-tb0)]是否大于预设的值,若是,暂停[tx-(tb1-tb0)]之后继续播放当前帧的下一帧,否则,跳过当前帧的下一帧后继续播放,所述tx为每一帧开机动画的暂停时间。The pause time comparison module of the boot animation frame is used to judge whether [t x -(t b1 -t b0 )] is greater than the preset value, if so, continue to play the current animation after pausing [t x -(t b1 -t b0 )] The next frame of the frame, otherwise, continue to play after skipping the next frame of the current frame, and the t x is the pause time of each frame of the boot animation.

其中,(tb1-tb0)为播放一帧开机动画所花费的时间,[tx-(tb1-tb0)]为播放两帧开机动画的暂停时间,可通过usleep[tx-(tb1-tb0)]语句强制暂停播放开机动画的帧。其中,预设的值可为10毫秒。Among them, (t b1 -t b0 ) is the time spent playing one frame of boot animation, [t x -(t b1 -t b0 )] is the pause time of playing two frames of boot animation, which can be passed through usleep[t x -( t b1 -t b0 )] statement forces a pause in the frame of the boot animation. Wherein, the preset value may be 10 milliseconds.

可选地,所述电视的启动装置包括:Optionally, the starting device of the TV includes:

停止播放开机动画的信号监测单元,用于在播放每一帧开机动画之前以及播放每一帧开机动画之后,监测是否接收到停止播放开机动画的信号,以便在接收到停止播放开机动画的信号时,及时停止开机动画的播放。为了严格控制TV启动和开机动画播放的同步性,在播放开机动画的每一帧的开始和结束时,都监测是否接收到停止播放开机动画的信号,若接收到,则停止播放开机动画,否则,继续播放。当然,在开机动画的每一组的每次循环开始和结束时,同样监测是否接收到停止播放开机动画的信号。The signal monitoring unit that stops playing the boot animation is used to monitor whether a signal to stop playing the boot animation is received before playing each frame of the boot animation and after playing each frame of the boot animation, so that when the signal to stop playing the boot animation is received , to stop the playback of the boot animation in time. In order to strictly control the synchronization between TV startup and boot animation playback, at the beginning and end of each frame of the boot animation, it is monitored whether a signal to stop playing the boot animation is received, and if received, then stop playing the boot animation, otherwise , continue playing. Of course, at the beginning and end of each cycle of each group of the boot animation, it is also monitored whether a signal to stop playing the boot animation is received.

在本发明实施例中,由于开机动画的播放帧率与TV启动有关,并且,在开机动画的播放过程中,也及时根据后续的TV启动信息修正开机动画中未播放的帧的播放帧率,因此,使得开机动画的播放时间与TV启动的时间相同,从而解决电视启动过程中由于TV启动和开机动画播放不同步导致的现象。In the embodiment of the present invention, because the playback frame rate of the startup animation is related to the TV startup, and during the playback of the startup animation, the playback frame rate of the unplayed frames in the startup animation is also corrected in time according to the subsequent TV startup information, Therefore, the playing time of the booting animation is the same as the time of starting the TV, thereby solving the phenomenon caused by the asynchronous playing of the TV starting and the booting animation during the TV starting process.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,RandomAccessMemory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disk or optical disk and other media that can store program codes.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (10)

1.一种电视的启动方法,其特征在于,所述方法包括:1. A method for starting a TV, characterized in that the method comprises: S1、TV启动预设时间后,开机动画启动;S1. After the TV starts for a preset time, the boot animation starts; S2、监测TV当前的启动进度,获取TV的启动信息,所述TV的启动信息包括所述TV当前启动的阶段,所述TV从启动开始到启动结束包括若干阶段;S2. Monitor the current start-up progress of the TV, and obtain start-up information of the TV. The start-up information of the TV includes the current start-up stage of the TV, and the TV includes several stages from start-up to start-up; S3、基于所获取的启动信息及开机动画的帧数确定开机动画的初步播放帧率,实现TV与开机动画的初步同步;S3. Based on the acquired start-up information and the frame number of the start-up animation, determine the initial playback frame rate of the start-up animation, so as to realize the preliminary synchronization of the TV and the start-up animation; S4、在TV播放进行阶段转换时,若TV启动的剩余时间与所述开机动画播放的剩余时间不相等,基于当前TV的启动进程信息及开机动画的播放进程信息调整开机动画的播放帧率,以使TV启动和开机动画播放同时结束,所述TV的启动进程信息包括TV当前所处的启动阶段及TV启动的剩余时间,所述开机动画的播放进程信息包括开机动画当前的播放帧率及开机动画未播放的帧数。S4. When the stage is switched during TV playback, if the remaining time of TV startup is not equal to the remaining time of the startup animation playback, adjust the playback frame rate of the startup animation based on the current TV startup process information and the playback progress information of the startup animation, To make the TV start and the start-up animation play end simultaneously, the start-up process information of the TV includes the current start-up stage of the TV and the remaining time of TV start-up, the play process information of the start-up animation includes the current playback frame rate and The number of frames the boot animation did not play. 2.根据权利要求1所述的方法,其特征在于,所述TV的启动信息包括:TV当前启动的阶段Jx、从TV启动开始到当前的时间T0,TV启动所有阶段的总时间Th,所述步骤S3具体包括:2. The method according to claim 1, wherein the TV startup information includes: the stage Jx of TV startup currently, the time T 0 from TV startup to the current time, and the total time T of all stages of TV startup h , the step S3 specifically includes: S31、基于所述启动信息,计算TV启动的当前剩余时间(Th-T0);S31. Based on the startup information, calculate the current remaining time (T h -T 0 ) of TV startup; S32、基于(Th-T0)/N确定开机动画的初步播放帧率,所述N为开机动画的帧数。S32. Determine a preliminary playback frame rate of the boot animation based on (T h -T 0 )/N, where N is the number of frames of the boot animation. 3.根据权利要求1所述的方法,其特征在于,所述步骤S4具体包括:3. The method according to claim 1, wherein said step S4 specifically comprises: S41、当TV启动过程进行阶段转换时,获取TV启动的剩余时间;S41. Acquire the remaining time of TV startup when the TV startup process undergoes stage transition; S42、基于开机动画的当前播放帧率及开机动画未播放的帧数计算开机动画的播放剩余时间;S42. Calculate the remaining playing time of the boot animation based on the current playback frame rate of the boot animation and the number of unplayed frames of the boot animation; S43、判断TV启动的剩余时间是否与所述开机动画的播放剩余时间相等,若是则转到步骤S44,否则转到步骤S45;S43, judging whether the remaining time of TV startup is equal to the playing remaining time of the boot animation, if so, go to step S44, otherwise go to step S45; S44、保持当前播放帧率播放开机动画;S44. Keep the current playback frame rate and play the startup animation; S45、基于TV启动的剩余时间及开机动画未播放的帧数调整开机动画的播放帧率。S45. Adjust the playback frame rate of the startup animation based on the remaining time of TV startup and the number of unplayed frames of the startup animation. 4.根据权利要求3所述的方法,其特征在于,所述步骤S45具体包括:4. The method according to claim 3, wherein the step S45 specifically comprises: 记录每一帧开机动画播放前的时间tb0和播放后的时间tb1Record the time t b0 before playing each frame of boot animation and the time t b1 after playing; 判断[tx-(tb1-tb0)]是否大于预设的值,若是,暂停[tx-(tb1-tb0)]之后继续播放当前帧的下一帧,否则,跳过当前帧的下一帧后继续播放,所述tx为每一帧开机动画的暂停时间。Determine whether [t x -(t b1 -t b0 )] is greater than the preset value, if so, pause [t x -(t b1 -t b0 )] and continue to play the next frame of the current frame, otherwise, skip the current frame Continue to play after the next frame of the frame, and the t x is the pause time of each frame of the boot animation. 5.根据权利要求1至4任一项所述的方法,其特征在于,在所述步骤S4时,包括:5. The method according to any one of claims 1 to 4, characterized in that, in step S4, comprising: 在播放每一帧开机动画之前以及播放每一帧开机动画之后,监测是否接收到停止播放开机动画的信号,以便在接收到停止播放开机动画的信号时,及时停止开机动画的播放。Before playing each frame of the boot animation and after playing each frame of the boot animation, monitor whether a signal to stop playing the boot animation is received, so that when the signal to stop playing the boot animation is received, the playback of the boot animation is stopped in time. 6.一种电视的启动装置,其特征在于,所述装置包括:6. A starting device for a TV, characterized in that the device comprises: 开机动画启动单元,用于TV启动预设时间后,开机动画启动;The boot animation start unit is used to start the boot animation after the TV starts for a preset time; 启动信息获取单元,用于监测TV当前的启动进度,获取TV的启动信息,所述TV的启动信息包括所述TV当前启动的阶段,所述TV从启动开始到启动结束包括若干阶段;The startup information acquisition unit is used to monitor the current startup progress of the TV and obtain the startup information of the TV. The TV startup information includes the current startup stage of the TV, and the TV includes several stages from startup to startup; 播放帧率初步确定单元,用于基于所获取的启动信息及开机动画的帧数确定开机动画的初步播放帧率,实现TV与开机动画的初步同步;The playback frame rate preliminary determination unit is used to determine the preliminary playback frame rate of the boot animation based on the acquired startup information and the frame number of the boot animation, so as to realize the preliminary synchronization of the TV and the boot animation; 播放帧率修正单元,用于在TV播放进行阶段转换时,若TV启动的剩余时间与所述开机动画播放的剩余时间不相等,基于当前TV的启动进程信息及开机动画的播放进程信息调整开机动画的播放帧率,以使TV启动和开机动画播放同时结束,所述TV的启动进程信息包括TV当前所处的启动阶段及TV启动的剩余时间,所述开机动画的播放进程信息包括开机动画当前的播放帧率及开机动画未播放的帧数。The playback frame rate correction unit is used to adjust the startup process information based on the current TV startup process information and the startup animation playback process information if the remaining time of the TV startup is not equal to the remaining time of the startup animation when the stage is switched during TV playback. Animation playback frame rate, so that TV startup and startup animation playback end at the same time, the startup process information of the TV includes the current startup stage of the TV and the remaining time of TV startup, and the playback process information of the startup animation includes startup animation The current playback frame rate and the number of unplayed frames of the startup animation. 7.根据权利要求6所述的装置,其特征在于,所述播放帧率初步确定单元包括:7. The device according to claim 6, wherein the unit for initially determining the playback frame rate comprises: 当前剩余时间计算模块,用于基于所述启动信息,计算TV启动的当前剩余时间(Th-T0);The current remaining time calculation module is used to calculate the current remaining time (T h -T 0 ) of TV startup based on the startup information; 播放帧率计算模块,用于基于(Th-T0)/N确定开机动画的初步播放帧率,所述N为开机动画的帧数。The playback frame rate calculation module is used to determine the preliminary playback frame rate of the boot animation based on (T h -T 0 )/N, where N is the number of frames of the boot animation. 8.根据权利要求6所述的装置,其特征在于,所述播放帧率修正单元包括:8. The device according to claim 6, wherein the playback frame rate correction unit comprises: 启动剩余时间获取模块,用于当TV启动过程进行阶段转换时,获取TV启动的剩余时间;A starting remaining time acquisition module is used to obtain the remaining time of TV starting when the TV starting process undergoes a phase transition; 开机动画剩余播放时间计算模块,用于基于开机动画的当前播放帧率及开机动画未播放的帧数计算开机动画的播放剩余时间;The remaining playback time calculation module of the startup animation is used to calculate the playback remaining time of the startup animation based on the current playback frame rate of the startup animation and the number of unplayed frames of the startup animation; 开机动画剩余播放时间比较模块,用于判断TV启动的剩余时间是否与所述开机动画的播放剩余时间相等,若是则转到开机动画帧率保持模块,否则转到开机动画帧率调整模块;The remaining playing time comparison module of boot animation is used to judge whether the remaining time of TV starting is equal to the playing remaining time of said boot animation, if so, then forward to the boot animation frame rate maintenance module, otherwise forward to the boot animation frame rate adjustment module; 开机动画帧率保持模块,用于保持当前播放帧率播放开机动画;The boot animation frame rate maintenance module is used to maintain the current playback frame rate to play the boot animation; 开机动画帧率调整模块,用于基于TV启动的剩余时间及开机动画未播放的帧数调整开机动画的播放帧率。The boot animation frame rate adjustment module is used to adjust the playback frame rate of the boot animation based on the remaining time of TV startup and the number of unplayed frames of the boot animation. 9.根据权利要求8所述的装置,其特征在于,所述开机动画帧率调整模块包括:9. The device according to claim 8, wherein the frame rate adjustment module of the startup animation comprises: 开机动画帧的播放时间记录模块,用于记录每一帧开机动画播放前的时间tb0和播放后的时间tb1The playback time recording module of the boot animation frame is used to record the time t b0 before the playback of each frame of boot animation and the time t b1 after the playback; 开机动画帧的暂停时间比较模块,用于判断[tx-(tb1-tb0)]是否大于预设的值,若是,暂停[tx-(tb1-tb0)]之后继续播放当前帧的下一帧,否则,跳过当前帧的下一帧后继续播放,所述tx为每一帧开机动画的暂停时间。The pause time comparison module of the boot animation frame is used to judge whether [t x -(t b1 -t b0 )] is greater than the preset value, if so, continue to play the current animation after pausing [t x -(t b1 -t b0 )] The next frame of the frame, otherwise, continue to play after skipping the next frame of the current frame, and the t x is the pause time of each frame of the boot animation. 10.根据权利要求6至9任一项所述的装置,其特征在于,所述装置包括:10. The device according to any one of claims 6 to 9, characterized in that the device comprises: 停止播放开机动画的信号监测单元,用于在播放每一帧开机动画之前以及播放每一帧开机动画之后,监测是否接收到停止播放开机动画的信号,以便在接收到停止播放开机动画的信号时,及时停止开机动画的播放。The signal monitoring unit that stops playing the boot animation is used to monitor whether a signal to stop playing the boot animation is received before playing each frame of the boot animation and after playing each frame of the boot animation, so that when the signal to stop playing the boot animation is received , to stop the playback of the boot animation in time.
CN201410843234.2A 2014-12-30 2014-12-30 The starting method and device of TV Expired - Fee Related CN105812933B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410843234.2A CN105812933B (en) 2014-12-30 2014-12-30 The starting method and device of TV

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410843234.2A CN105812933B (en) 2014-12-30 2014-12-30 The starting method and device of TV

Publications (2)

Publication Number Publication Date
CN105812933A true CN105812933A (en) 2016-07-27
CN105812933B CN105812933B (en) 2019-01-18

Family

ID=56420967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410843234.2A Expired - Fee Related CN105812933B (en) 2014-12-30 2014-12-30 The starting method and device of TV

Country Status (1)

Country Link
CN (1) CN105812933B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254948A (en) * 2016-08-17 2016-12-21 深圳Tcl数字技术有限公司 A kind of terminal unit plays control method and the device of start video
CN106649069A (en) * 2016-12-28 2017-05-10 Tcl集团股份有限公司 User behavior statistical method and system
CN107291468A (en) * 2017-06-21 2017-10-24 深圳Tcl新技术有限公司 Play method, terminal and the computer-readable recording medium of power on/off cartoon
CN108287736A (en) * 2017-01-06 2018-07-17 中兴通讯股份有限公司 The open method and device of application
CN112165644A (en) * 2020-09-27 2021-01-01 海信视像科技股份有限公司 Display device and video playing method in vertical screen state
CN113176904A (en) * 2021-04-16 2021-07-27 维沃移动通信有限公司 Application starting animation adjusting method and device
CN114286030A (en) * 2021-03-11 2022-04-05 海信视像科技股份有限公司 Display device
CN115589503A (en) * 2022-10-28 2023-01-10 惠州市德赛西威汽车电子股份有限公司 Vehicle-mounted host startup animation implementation method, system, host and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080077491A1 (en) * 2006-09-21 2008-03-27 Geraldine Robinson Advertisement system and method
CN101304502A (en) * 2008-06-18 2008-11-12 南京Lg新港显示有限公司 Television boot-strap menu display process
CN103686359A (en) * 2013-11-14 2014-03-26 乐视致新电子科技(天津)有限公司 A method and device for playing boot advertisement
CN104202645A (en) * 2014-08-27 2014-12-10 海信集团有限公司 Method for controlling playing of startup screen and user device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080077491A1 (en) * 2006-09-21 2008-03-27 Geraldine Robinson Advertisement system and method
CN101304502A (en) * 2008-06-18 2008-11-12 南京Lg新港显示有限公司 Television boot-strap menu display process
CN103686359A (en) * 2013-11-14 2014-03-26 乐视致新电子科技(天津)有限公司 A method and device for playing boot advertisement
CN104202645A (en) * 2014-08-27 2014-12-10 海信集团有限公司 Method for controlling playing of startup screen and user device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254948A (en) * 2016-08-17 2016-12-21 深圳Tcl数字技术有限公司 A kind of terminal unit plays control method and the device of start video
CN106649069A (en) * 2016-12-28 2017-05-10 Tcl集团股份有限公司 User behavior statistical method and system
CN106649069B (en) * 2016-12-28 2019-12-13 Tcl集团股份有限公司 Method and system for user behavior statistics
CN108287736A (en) * 2017-01-06 2018-07-17 中兴通讯股份有限公司 The open method and device of application
US11334369B2 (en) * 2017-01-06 2022-05-17 Xi'an Zhongxing New Software Co., Ltd. Application launching method and device
CN107291468A (en) * 2017-06-21 2017-10-24 深圳Tcl新技术有限公司 Play method, terminal and the computer-readable recording medium of power on/off cartoon
CN107291468B (en) * 2017-06-21 2021-03-19 深圳Tcl新技术有限公司 Method for playing power-on/power-off animation, terminal and computer readable storage medium
CN112165644A (en) * 2020-09-27 2021-01-01 海信视像科技股份有限公司 Display device and video playing method in vertical screen state
CN114286030A (en) * 2021-03-11 2022-04-05 海信视像科技股份有限公司 Display device
CN113176904A (en) * 2021-04-16 2021-07-27 维沃移动通信有限公司 Application starting animation adjusting method and device
CN115589503A (en) * 2022-10-28 2023-01-10 惠州市德赛西威汽车电子股份有限公司 Vehicle-mounted host startup animation implementation method, system, host and storage medium

Also Published As

Publication number Publication date
CN105812933B (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN105812933A (en) Television starting method and device
US11450055B2 (en) Displaying method, animation image generating method, and electronic device configured to execute the same
CN108737908B (en) Media playing method, device and storage medium
CN106658133B (en) Audio and video synchronous playing method and terminal
US10366669B2 (en) Electronic device and method for driving display thereof
CN104967803B (en) A kind of video recording method and device
CN104683857B (en) Method and device for visual presentation of data preloading
US9431059B2 (en) Information processing method and electronic device thereof
KR102547104B1 (en) Electronic device and method for processing plural images
US9922439B2 (en) Displaying method, animation image generating method, and electronic device configured to execute the same
US12192673B2 (en) Accurate optical flow interpolation optimizing bi-directional consistency and temporal smoothness
CN106303692A (en) Video loading method and device
CN113015007B (en) Video frame inserting method and device and electronic equipment
US20170094219A1 (en) Method and electronic device for providing video of a specified playback time
CN112565909B (en) Video playing method and device, electronic equipment and readable storage medium
US10880590B2 (en) Electronic device and server for video playback
JP5675902B2 (en) Movie generation method and apparatus
KR102133012B1 (en) Media streaming method and electronic device thereof
CN112199149A (en) Interface rendering method and device and electronic equipment
CN110365918A (en) A kind of information source switching method and equipment
CN102647622B (en) Play progress management method for streaming media clip and play progress management system for streaming media clip
KR102494584B1 (en) Display apparatus and content display method thereof
US20240153538A1 (en) Video Playback Method and Apparatus, and Electronic Device
CN107979774A (en) A kind of starting up of terminal method, terminal and storage medium
CN104751084A (en) Information processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190118

CF01 Termination of patent right due to non-payment of annual fee