技术领域:Technical field:
本发明涉及数字多媒体技术领域,特别是一种图像切换方法及装置。The invention relates to the technical field of digital multimedia, in particular to an image switching method and device.
背景技术:Background technique:
随着互联网技术的高速发展和多媒体信息的爆发式增长,如超级电视等智能多媒体终端逐渐占据了市场的主流。目前市场上的超级电视提供了优化的艺术界面、绚丽的动画效果、友好的操控界面等。例如,在超级电视的用户界面中设置有文字导航菜单,并针对每一个菜单项配有局部或整体的个性背影。With the rapid development of Internet technology and the explosive growth of multimedia information, intelligent multimedia terminals such as super TVs have gradually occupied the mainstream of the market. Super TVs currently on the market provide optimized art interfaces, gorgeous animation effects, and friendly control interfaces. For example, a text navigation menu is set in the user interface of the super TV, and each menu item is equipped with a partial or overall personalized background.
目前,超级电视等智能终端都使用android为主要系统,在android中提供水平切换界面的方法有两种Gallery和Viewpager。前者的问题是频繁的加载布局,并且不提供布局的复用。如果加载的是较小界面还可以流畅的显示,但若在如超级电视等大型屏幕上进行界面切换,会出现卡顿的情况。而viewpager虽然可以实现快速切换,但切换时间不能自由设定,而且在一个屏幕中只能显示一个布局。如果需要在一个屏幕中同时显示两或两个以上的图像界面时,它会先把不需要替换的图像布局移除,再加载后续的图像界面。而这种方式会导致画面出现不连贯的现象,继而影响到操作的美观度。At present, smart terminals such as super TVs use android as the main system, and there are two methods of providing horizontal switching interfaces in android: Gallery and Viewpager. The problem with the former is that the layout is frequently loaded and does not provide layout reuse. If a small interface is loaded, it can be displayed smoothly, but if the interface is switched on a large screen such as a super TV, there will be a freeze. Although the viewpager can realize fast switching, the switching time cannot be set freely, and only one layout can be displayed on one screen. If two or more image interfaces need to be displayed on one screen at the same time, it will first remove the image layout that does not need to be replaced, and then load the subsequent image interface. However, this method will lead to incoherence in the picture, which in turn will affect the aesthetics of the operation.
发明内容:Invention content:
本发明提供了一种图像切换方法及装置,实现了在超级电视中进行大面积图像的平滑切换,避免了现有技术中图像卡顿的现象。The invention provides an image switching method and device, which realizes smooth switching of large-area images in a super TV, and avoids the phenomenon of image freezing in the prior art.
一种图像切换方法,包括:An image switching method, comprising:
注册第一线程和第二线程;Register the first thread and the second thread;
在所述第一线程生成第一类别图像,将所述第一类别图像设置为可见状态;将所述第一类别图像中当前显示的图像作为第一当前图像;Generate a first category image in the first thread, set the first category image to a visible state; use the currently displayed image in the first category image as the first current image;
根据所述第一当前图像在所述第二线程生成第二图像,作为第二当前图像;将所述第二当前图像设置为可见状态。Generate a second image in the second thread according to the first current image as a second current image; set the second current image to a visible state.
优选地,还包括:Preferably, it also includes:
若检测到所述第一当前图像切换为第一目标图像,根据所述第一目标图像在所述第二线程生成第二目标图像,将所述第二目标图像设置为不可见状态;If it is detected that the first current image is switched to the first target image, a second target image is generated in the second thread according to the first target image, and the second target image is set to an invisible state;
在指定时间内将所述第二当前图像从可见状态渐变为不可见状态,将所述第二目标图像从不可见状态渐变为可见状态。Fading the second current image from a visible state to an invisible state within a specified time, and fading the second target image from an invisible state to a visible state.
优选地,所述检测到所述第一当前图像切换为第一目标图像,具体为:Preferably, the detecting that the first current image is switched to the first target image is specifically:
检测所述第一当前图像的位置坐标或图像面积变化;Detecting changes in position coordinates or image area of the first current image;
若所述第一当前图像的位置坐标移动达到移动阈值,或所述第一当前图像的面积切换超过面积阈值,认为所述第一当前图像切换为第一目标图像。If the position coordinate movement of the first current image reaches a movement threshold, or the area switching of the first current image exceeds an area threshold, it is considered that the first current image is switched to a first target image.
优选地,还包括:Preferably, it also includes:
接收操作指令;receive operating instructions;
根据所述操作指令和当前菜单的层级信息包确定目标菜单;determining the target menu according to the operation instruction and the level information packet of the current menu;
将所述当前菜单的第一当前图像切换为所述目标菜单对应的第一目标图像;switching the first current image of the current menu to the first target image corresponding to the target menu;
所述菜单层级信息包,包括:菜单编码段、菜单相邻索引段;The menu level information package includes: a menu code segment, a menu adjacent index segment;
所述菜单编码段,用于存储所述当前菜单对应的层级和位置码;The menu code segment is used to store the level and position code corresponding to the current menu;
所述菜单相邻索引段,用于存储有所述当前菜单相邻的邻接菜单的层级和位置码,根据所述层级和位置码可以查找到所述邻接菜单。The menu adjacent index segment is used to store the level and position code of the adjacent menu adjacent to the current menu, and the adjacent menu can be found according to the level and position code.
优选地,所述根据所述操作指令和当前菜单的层级信息包确定目标菜单,具体为:Preferably, the determining the target menu according to the operation instruction and the level information packet of the current menu is specifically:
若所述操作指令为查找上级或下级菜单,查找所述当前菜单的菜单相邻索引段中存储的相邻上级层级或相邻下级层级菜单的位置码;If the operation instruction is to search the upper-level or lower-level menu, search for the position code of the adjacent upper-level or adjacent lower-level menu stored in the menu adjacent index segment of the current menu;
根据所述位置码查找所述相邻上级层级或相邻下级层级菜单作为所述目标菜单。Searching for the adjacent upper-level or adjacent lower-level menu as the target menu according to the location code.
优选地,所述根据所述操作指令和当前菜单的层级信息包确定目标菜单,具体为:Preferably, the determining the target menu according to the operation instruction and the level information packet of the current menu is specifically:
若所述操作指令为查找相邻同层级菜单,查找与所述当前菜单层级相同且位置码相邻的菜单作为目标菜单。If the operation instruction is to search for adjacent menus at the same level, search for a menu at the same level as the current menu and with an adjacent location code as the target menu.
一种图像切换装置,包括:线程注册模块、第一图像生成模块和第二图像生成模块;An image switching device, comprising: a thread registration module, a first image generation module and a second image generation module;
所述线程注册模块,用于注册第一线程和第二线程;The thread registration module is used to register the first thread and the second thread;
所述第一图像生成模块,用于在所述第一线程生成第一类别图像,将所述第一类别图像设置为可见状态;将所述第一类别图像中当前显示的图像作为第一当前图像;The first image generating module is configured to generate a first category image in the first thread, set the first category image to a visible state; use the currently displayed image in the first category image as the first current image image;
所述第二图像生成模块,用于根据所述第一当前图像在所述第二线程生成第二图像,作为第二当前图像;将所述第二当前图像设置为可见状态。The second image generating module is configured to generate a second image in the second thread according to the first current image as a second current image; and set the second current image to a visible state.
优选地,还包括:第二目标图像切换模块;Preferably, it also includes: a second target image switching module;
所述第二目标图像切换模块,用于判断若检测到所述第一当前图像切换为第一目标图像,根据所述第一目标图像在所述第二线程生成第二目标图像,将所述第二目标图像设置为不可见状态;The second target image switching module is configured to determine that if it is detected that the first current image is switched to the first target image, a second target image is generated in the second thread according to the first target image, and the The second target image is set to an invisible state;
在指定时间内将所述第二当前图像从可见状态渐变为不可见状态,将所述第二目标图像从不可见状态渐变为可见状态。Fading the second current image from a visible state to an invisible state within a specified time, and fading the second target image from an invisible state to a visible state.
优选地,所述第二目标图像切换模块,包括:位移面积检测子模块;Preferably, the second target image switching module includes: a displacement area detection sub-module;
所述位移面积检测子模块,用于检测所述第一当前图像的位置坐标或图像面积切换;若所述第一当前图像的位置坐标移动达到移动阈值,或所述第一当前图像的面积切换超过面积阈值,认为所述第一当前图像切换为第一目标图像。The displacement area detection sub-module is used to detect the position coordinates of the first current image or image area switching; if the position coordinate movement of the first current image reaches a movement threshold, or the area switching of the first current image If the area threshold is exceeded, it is considered that the first current image is switched to the first target image.
优选地,还包括:指令接收模块、目标菜单确定模块和菜单切换模块;Preferably, it also includes: an instruction receiving module, a target menu determining module and a menu switching module;
所述指令接收模块,用于接收操作指令;The instruction receiving module is used to receive operation instructions;
所述目标菜单确定模块,用于根据所述操作指令和当前菜单的层级信息包确定目标菜单;The target menu determination module is used to determine the target menu according to the operation instruction and the current menu level information package;
所述菜单切换模块,用于将所述当前菜单切换到所述目标菜单,将所述第一当前图像切换为所述目标菜单对应的第一目标图像;The menu switching module is configured to switch the current menu to the target menu, and switch the first current image to a first target image corresponding to the target menu;
所述菜单层级信息包,包括:菜单编码段、菜单相邻索引段;The menu level information package includes: a menu code segment, a menu adjacent index segment;
所述菜单编码段,用于存储所述当前菜单对应的层级和位置码;The menu code segment is used to store the level and position code corresponding to the current menu;
所述菜单相邻索引段,用于存储有所述当前菜单相邻的邻接菜单的层级和位置码,根据所述层级和位置码可以查找到所述邻接菜单。The menu adjacent index segment is used to store the level and position code of the adjacent menu adjacent to the current menu, and the adjacent menu can be found according to the level and position code.
优选地,所述目标菜单确定模块,包括:上下级菜单查找子模块;Preferably, the target menu determination module includes: a search submodule for upper and lower level menus;
所述上下级菜单查找子模块,用于判断若所述操作指令为查找上级或下级菜单,查找所述当前菜单的菜单相邻索引段中存储的相邻上级层级或相邻下级层级菜单的位置码;根据所述位置码查找所述相邻上级层级或相邻下级层级菜单作为所述目标菜单。The upper-lower menu search submodule is used to determine if the operation instruction is to search for a higher-level or lower-level menu, and to search for the position of the adjacent upper-level or adjacent lower-level menu stored in the menu adjacent index segment of the current menu code; according to the position code, search for the adjacent upper-level or adjacent lower-level menu as the target menu.
优选地,所述目标菜单确定模块,包括:同级菜单查找子模块;Preferably, the target menu determination module includes: a peer menu search submodule;
所述同级菜单查找子模块,用于判断若所述操作指令为查找相邻同层级菜单,查找与所述当前菜单层级相同且位置码相邻的菜单作为目标菜单。The same-level menu search submodule is used to determine if the operation instruction is to search for an adjacent same-level menu, and to search for a menu at the same level as the current menu and with an adjacent position code as a target menu.
本发明专利的有益效果:The beneficial effects of the patent of the present invention:
在本实施例中,首先生成第一图像,将所述第一图像设置为可见状态。之后生成第二图像,将所述第二图像设置为不可见状态。最后在指定时间内将所述第一图像从可见状态渐变为不可见状态,将所述第二图像从不可见状态渐变为可见状态。通过使用以上方法,可以实现在多线程下使用图像工具对菜单项和背景项的区分生成,从而解决了现有技术中使用Gallery和Viewpager方式存在的问题,避免了图像切换时卡顿情况的发生。In this embodiment, a first image is generated first, and the first image is set to a visible state. Afterwards, a second image is generated, and the second image is set to an invisible state. Finally, the first image is gradually changed from a visible state to an invisible state, and the second image is gradually changed from an invisible state to a visible state within a specified time. By using the above method, it is possible to use image tools to distinguish and generate menu items and background items under multi-threading, thereby solving the problems existing in the use of Gallery and Viewpager in the prior art, and avoiding the occurrence of stuck situations when images are switched .
附图说明:Description of drawings:
图1为本发明提供的一种图像切换方法第一实施例的流程图;FIG. 1 is a flowchart of a first embodiment of an image switching method provided by the present invention;
图2为本发明提供的一种图像切换方法第二实施例的流程图;FIG. 2 is a flowchart of a second embodiment of an image switching method provided by the present invention;
图3为本发明提供的一种图像切换方法第三实施例的流程图;FIG. 3 is a flowchart of a third embodiment of an image switching method provided by the present invention;
图4为本发明提供的一种图像切换装置第一实施例的原理框图;FIG. 4 is a functional block diagram of the first embodiment of an image switching device provided by the present invention;
图5为本发明提供的一种图像切换装置第二实施例的原理框图;FIG. 5 is a functional block diagram of a second embodiment of an image switching device provided by the present invention;
图6为本发明提供的一种图像切换装置第三实施例的原理框图。FIG. 6 is a functional block diagram of a third embodiment of an image switching device provided by the present invention.
具体实施方式:Detailed ways:
参见图1,该图为本发明提供的一种图像切换方法第一实施例的流程图。Referring to FIG. 1 , the figure is a flow chart of the first embodiment of an image switching method provided by the present invention.
在本实施例中,包括:In this example, include:
S101: 注册第一线程和第二线程。S101: Register the first thread and the second thread.
S102: 在所述第一线程生成第一类别图像,将所述第一类别图像设置为可见状态;将所述第一类别图像中当前显示的图像作为第一当前图像。S102: Generate a first category image in the first thread, set the first category image to a visible state; use the currently displayed image in the first category image as the first current image.
S103: 根据所述第一当前图像在所述第二线程生成第二图像,作为第二当前图像;将所述第二当前图像设置为可见状态。S103: Generate a second image in the second thread according to the first current image as a second current image; set the second current image to a visible state.
在本实施例中,首先在系统中注册第一线程和第二线程。在第一线程中生成第一类别图像。其中,第一类别图像可以是菜单对应的文字导航菜单图像。(如常见的在屏幕中部或下部显示的包括有若干文字的导航菜单图像)。具体地,根据文字导航菜单中的菜单项确定对应的菜单图像。之后在第一线程中使用SurfaceView工具生成具体菜单项图像。同时,将生成的图像设置为可见状态,即用户可以直接看到的。将文字导航菜单中获得焦点的菜单作为当前菜单,当前菜单对应的文字导航菜单图像作为第一当前图像。In this embodiment, firstly, the first thread and the second thread are registered in the system. A first class image is generated in a first thread. Wherein, the first category image may be a text navigation menu image corresponding to the menu. (such as a common navigation menu image displayed in the middle or lower part of the screen that includes several texts). Specifically, the corresponding menu image is determined according to the menu items in the text navigation menu. Then use the SurfaceView tool in the first thread to generate specific menu item images. At the same time, set the generated image to be visible, that is, what the user can see directly. The focused menu in the text navigation menu is used as the current menu, and the text navigation menu image corresponding to the current menu is used as the first current image.
由于文字导航菜单中的图像可能只是涉及菜单图像,对于屏幕的背景图像需要单独进行切换。因此,在确定了第一当前图像后,查找第一当前图像对应的第二图像(背景图像),之后在第二线程中使用SurfaceView生成第二图像,作为第二当前图像,并且将第二图像设置为可见状态。Since the image in the text navigation menu may only refer to the menu image, the background image of the screen needs to be switched separately. Therefore, after determining the first current image, find the second image (background image) corresponding to the first current image, and then use SurfaceView in the second thread to generate the second image as the second current image, and convert the second image to Set to visible state.
在本实施例中,首先注册第一线程和第二线程,之后在所述第一线程生成第一类别图像,将所述第一类别图像设置为可见状态,最后根据所述第一当前图像在所述第二线程生成第二图像,作为第二当前图像。通过使用以上方法,可以实现在多线程下使用SurfaceView工具对菜单项和背景项的区分生成,从而解决了现有技术中使用Gallery和Viewpager方式存在的问题,避免了图像切换时卡顿情况的发生。In this embodiment, the first thread and the second thread are first registered, then a first category image is generated in the first thread, the first category image is set to a visible state, and finally according to the first current image in The second thread generates a second image as a second current image. By using the above method, it is possible to use the SurfaceView tool to distinguish between menu items and background items under multi-threading, thereby solving the problems existing in the use of Gallery and Viewpager in the prior art, and avoiding the occurrence of stuck situations when images are switched .
参见图2,该图为本发明提供的一种图像切换方法第二实施例的流程图。Refer to FIG. 2 , which is a flowchart of a second embodiment of an image switching method provided by the present invention.
本实施例中的步骤S201-S203分别与本发明提供的一种菜单层级操作方法第一实施例中的步骤S101-S103相同,在此不再重复进行介绍。Steps S201-S203 in this embodiment are respectively the same as steps S101-S103 in the first embodiment of the menu level operation method provided by the present invention, and will not be repeated here.
在本实施例中,还包括:In this embodiment, it also includes:
S204: 检测所述第一当前图像是否切换为第一目标图像。S204: Detect whether the first current image is switched to the first target image.
S205: 若检测到所述第一当前图像切换为第一目标图像,根据所述第一目标图像在所述第二线程生成第二目标图像,将所述第二目标图像设置为不可见状态。S205: If it is detected that the first current image is switched to the first target image, generate a second target image in the second thread according to the first target image, and set the second target image to an invisible state.
S206: 在指定时间内将所述第二当前图像从可见状态渐变为不可见状态,将所述第二目标图像从不可见状态渐变为可见状态。S206: Gradually change the second current image from a visible state to an invisible state, and change the second target image from an invisible state to a visible state within a specified time.
在本实施例中,由于用户会根据自己的要求选择不同的导航菜单项,因此第一图像会随着当前菜单的变化而进行不断的切换,从而带动与第一图像相对应的第二图像也不断进行切换。具体地,首先需要检测所述第一当前图像是否切换为第一目标图像。In this embodiment, since users will select different navigation menu items according to their own requirements, the first image will be continuously switched as the current menu changes, thereby driving the second image corresponding to the first image to also Switch constantly. Specifically, it is first necessary to detect whether the first current image is switched to the first target image.
检测的方式可以有很多种,例如检测第一当前图像的位置坐标或图像面积变化,若所述第一当前图像的位置坐标移动达到移动阈值,或所述第一当前图像的面积切换超过面积阈值,则认为用户选择了其它的菜单项,第一当前图像需要进行切换,第二当前图像也需要进行切换。There are many ways to detect, such as detecting the position coordinates of the first current image or the change of the image area, if the position coordinates of the first current image move to reach the movement threshold, or the area switching of the first current image exceeds the area threshold , it is considered that the user has selected other menu items, the first current image needs to be switched, and the second current image also needs to be switched.
一旦判断出第一当前图像切换到第一目标图像,则根据第一目标图像确定对应的第二目标图像,即第一目标图像对应的背景图像。具体的,根据第一目标图像查找到对应的第二目标图像(如第一目标图像确定对应的背景图像),之后使用SurfaceView工具绘制生成对应的第二目标图像(背景图像),并将绘制完成的第二目标图像设置为不可见状态。常见的如将图像的alpha值设置为0或较低的值,以达到透明的或不可见的效果。Once it is determined that the first current image is switched to the first target image, the corresponding second target image is determined according to the first target image, that is, the background image corresponding to the first target image. Specifically, the corresponding second target image is found according to the first target image (for example, the first target image determines the corresponding background image), and then the SurfaceView tool is used to draw and generate the corresponding second target image (background image), and the drawing is completed The second target image is set to invisible state. A common example is setting the alpha value of the image to 0 or a lower value to achieve a transparent or invisible effect.
此时,在第二线程中同时存在两个图像,即第二当前图像和第二目标图像,且第二当前图像为可见状态,第二目标图像为不可见状态。为了实现这两个图像的切换,可以在指定时间内将所述第二当前图像从可见状态渐变为不可见状态(例如将第二当前图像的alpha值从最大值或可见值逐步调整为0或较低不可见值),将所述第二目标图像从不可见状态渐变为可见状态(例如将第二目标图像的alpha值从0或较低不可见值调整为最大值或可见值),从而实现在从第二当前图像向第二目标图像的平滑渐变效果。其中,指定的时间可以为1秒或0.5秒,或者指定的时间可以为第一当前图像切换到第一目标图像的时间,即第一线程的图像切换和第二线程的图像切换是同步的。并且,还可以将第二当前图像和第二目标图像设置为相同大小且设置在同一位置上,以保证上述切换效果。At this time, there are two images in the second thread at the same time, that is, the second current image and the second target image, and the second current image is in a visible state, and the second target image is in an invisible state. In order to realize the switching between these two images, the second current image can be gradually changed from a visible state to an invisible state within a specified time (for example, the alpha value of the second current image is gradually adjusted from the maximum or visible value to 0 or a lower invisible value), gradually changing the second target image from an invisible state to a visible state (for example, adjusting the alpha value of the second target image from 0 or a lower invisible value to a maximum or visible value), thus A smooth gradient effect is achieved from the second current image to the second target image. Wherein, the specified time can be 1 second or 0.5 seconds, or the specified time can be the time when the first current image is switched to the first target image, that is, the image switching of the first thread and the image switching of the second thread are synchronized. Moreover, the second current image and the second target image may also be set to the same size and at the same position, so as to ensure the above switching effect.
在本实施例中,还包括:检测第一当前图像是否切换为第一目标图像,若检测到第一当前图像切换为第一目标图像,根据第一目标图像在第二线程生成第二目标图像,在指定时间内将第二当前图像从可见状态渐变为不可见状态,将第二目标图像从不可见状态渐变为可见状态。通过使用以上方法,可以实现第一图像和第二图像的平滑过渡,避免现有技术中图像卡顿的情况。In this embodiment, it also includes: detecting whether the first current image is switched to the first target image, and if it is detected that the first current image is switched to the first target image, generating a second target image in the second thread according to the first target image , fade the second current image from the visible state to the invisible state, and fade the second target image from the invisible state to the visible state within the specified time. By using the above method, a smooth transition between the first image and the second image can be realized, avoiding the situation of image freezing in the prior art.
参见图3,该图为本发明提供的一种图像切换方法第三实施例的流程图。Refer to FIG. 3 , which is a flowchart of a third embodiment of an image switching method provided by the present invention.
本实施例中的步骤S301-S303与本发明提供的一种图像切换方法第一实施例中的步骤S101-S103相同,在此不再重复介绍。Steps S301-S303 in this embodiment are the same as steps S101-S103 in the first embodiment of the image switching method provided by the present invention, and will not be repeated here.
在本实施例中,在生成所述第二图像前,还包括:In this embodiment, before generating the second image, it also includes:
S304: 接收操作指令。S304: Receive an operation instruction.
S305: 根据所述操作指令和当前菜单的层级信息包内容确定目标菜单。S305: Determine the target menu according to the operation instruction and the level information package content of the current menu.
S306: 将所述当前菜单的第一当前图像切换为所述目标菜单对应的第一目标图像。S306: Switch the first current image of the current menu to the first target image corresponding to the target menu.
在本实施例中,如超级电视等智能终端设备在开机时会首先生成第一图像和第二图像。In this embodiment, a smart terminal device such as a super TV firstly generates a first image and a second image when it is turned on.
之后,用户使用遥控器等指令输入装置输入指令。例如用户按压遥控器上的“左右菜单”按钮,要求从当前菜单切换到左右相邻菜单。Afterwards, the user inputs an instruction using an instruction input device such as a remote controller. For example, the user presses the "left and right menu" button on the remote controller to request to switch from the current menu to the left and right adjacent menus.
此时,获取当前菜单中的信息。在本实施例中的菜单项中,预先在每一个菜单中都包括有层级信息包。层级信息包中的内容包括:菜单编码段、菜单相邻索引段。At this point, the information in the current menu is obtained. Among the menu items in this embodiment, each menu includes a hierarchy information package in advance. The content in the layer information package includes: menu code segment, menu adjacent index segment.
所述菜单编码段,用于存储有所述当前菜单对应的层级位置码。层级信息包中包括:菜单编码段、菜单相邻索引段。The menu code segment is used to store the level position code corresponding to the current menu. The layer information package includes: menu code segment, menu adjacent index segment.
所述菜单编码段,用于存储有所述当前菜单对应的层级位置码。所述层级位置码包括有所述当前菜单所在的层级和位置码。例如:The menu code segment is used to store the level position code corresponding to the current menu. The layer location code includes the layer and location code where the current menu is located. For example:
遥控(I,1)-----超级遥控器(II,1) -------遥控器界面(III,1)Remote Control (I, 1) ----- Super Remote Control (II, 1) ------- Remote Control Interface (III, 1)
-----语音助手(II,2) -------麦克风界面(III,2)-----Voice Assistant (II, 2) --------Microphone Interface (III, 2)
网络(I,2)------有线网络(II,3) -------IP配置界面(III,3)Network (I, 2)------Wired network (II, 3) -------IP configuration interface (III, 3)
-------无线网络(II,4) -------无线搜索界面(III,4)-------Wireless Network (II, 4) -------Wireless Search Interface (III, 4)
则各级具体信息为:The specific information at each level is:
“遥控” 层级为I, 位置码为1"Remote control" level is I, position code is 1
“网络” 层级为I, 位置码为2"Network" level is I, position code is 2
“超级遥控器” 层级为II, 位置码为1"Super remote control" level is II, position code is 1
“语音助手” 层级为II, 位置码为2"Voice Assistant" level is II, position code is 2
“有线网络” 层级为II, 位置码为3"Wired Network" level is II, location code is 3
“无线网络” 层级为II, 位置码为4"Wireless Network" level is II, location code is 4
“遥控器界面” 层级为III, 位置码为1"Remote control interface" level is III, position code is 1
“麦克风界面” 层级为III, 位置码为2"Microphone Interface" level is III, position code is 2
“IP配置界面” 层级为III, 位置码为3"IP configuration interface" level is III, position code is 3
“无线搜索界面” 层级为III, 位置码为4The level of "Wireless Search Interface" is III, and the location code is 4
所述菜单相邻索引段,用于存储有当前菜单的上层和/或下层菜单的层级位置码。The menu adjacent index segment is used to store the layer position codes of the upper and/or lower menus of the current menu.
在每一个菜单都配有层级信息包时,一级的菜单可以根据菜单相邻索引段中记录的信息查找到二级的菜单,而二级的菜单可以根据自身的层级信息包查找到三级的菜单。When each menu is equipped with a layer information package, the first-level menu can find the second-level menu according to the information recorded in the adjacent index segment of the menu, and the second-level menu can find the third-level menu according to its own level information package menu.
之后获取当前菜单,并确定该菜单的层级信息包。由于层级信息包中包括有当前菜单的层级位置码和当前菜单的同级或上下层级的层级位置码。因此,可以根据层级信息包中的内容查找同级或上下层级的菜单作为目标菜单。Then get the current menu and determine the level information package of the menu. Because the level information package includes the level position code of the current menu and the level position codes of the same level or the upper and lower levels of the current menu. Therefore, menus at the same level or at the upper and lower levels can be searched for as target menus according to the content in the level information package.
其中,所述根据所述操作指令和当前菜单的层级结构信息确定相邻的目标菜单。具体可以为:Wherein, the adjacent target menu is determined according to the operation instruction and the hierarchical structure information of the current menu. Specifically, it can be:
如果所述用户输入的操作指令为查找当前菜单的上级或下级菜单,则查找所述当前菜单的菜单相邻索引段中存储的上层或下层菜单的层级位置码,从而确认目标菜单的信息。具体可以为:例如:当前菜单为“超级遥控器”,用户的操作指令为进入下一级菜单,则通过“超级遥控器”菜单的层级信息包中记录的下层菜单的层级位置码确定下一层级菜单为“III”,经查找为“遥控器界面”。If the operation instruction input by the user is to search the upper or lower menu of the current menu, then search the layer position code of the upper or lower menu stored in the menu adjacent index segment of the current menu, so as to confirm the information of the target menu. Specifically, for example: the current menu is "super remote control", and the user's operation instruction is to enter the next level menu, then the next step is determined by the level position code of the lower level menu recorded in the level information package of the "super remote control" menu. The hierarchical menu is "III", which is "remote control interface" after searching.
如果所述用户输入的操作指令为查找当前菜单的同级菜单,则根据当前菜单的层级位置码中的层级和位置码查找相邻菜单的层级位置码,从而确认目标菜单的信息。在本实施例中,根据向前或向后的指令,将计算当前菜单的位置码-1或+1的相邻菜单作为目标菜单。举例:当前菜单为“语音助手”,用户的操作指令为进入前一个同级菜单,则查找“语音助手”菜单的层级为II,位置为2。用户选择切换到前一个同级菜单,则2-1=1,确定位置码为1且菜单层级为II,经查找为“超级遥控器”。将“超级遥控器”菜单作为目标菜单。If the operation instruction input by the user is to search for the same level menu of the current menu, then according to the level and position code in the level position code of the current menu, the level position code of the adjacent menu is searched, so as to confirm the information of the target menu. In this embodiment, according to the forward or backward command, the adjacent menu whose position code -1 or +1 of the current menu is calculated is taken as the target menu. Example: The current menu is "Voice Assistant", and the user's operation command is to enter the previous menu at the same level, then the level of the search "Voice Assistant" menu is II, and the position is 2. If the user chooses to switch to the previous menu at the same level, then 2-1=1, it is determined that the position code is 1 and the menu level is II, which is "super remote control" after searching. Make the "Super Remote" menu the target menu.
最后,在第一线程中将当前菜单对应的第一当前图像切换为所述目标菜单对应的第一目标图像。Finally, switch the first current image corresponding to the current menu to the first target image corresponding to the target menu in the first thread.
在本实施例中,还包括:接收操作指令;根据操作指令和当前菜单的层级信息包确定目标菜单;将当前菜单的第一当前图像切换为目标菜单对应的第一目标图像。通过使用以上方法,可以在接收到用户的指令后根据菜单项中包含的层级信息包进行菜单平行查找切换,方便了用户的操作,避免了现有技术中的需逐层退回的繁琐步骤。In this embodiment, the method further includes: receiving an operation instruction; determining the target menu according to the operation instruction and the layer information packet of the current menu; switching the first current image of the current menu to the first target image corresponding to the target menu. By using the above method, after receiving the user's instruction, the menu can be searched and switched in parallel according to the layer information package contained in the menu item, which facilitates the user's operation and avoids the cumbersome steps of returning layer by layer in the prior art.
在本发明中,在提供的一种菜单层级操作方法的基础上,还提供一种菜单层级操作装置。具体如下:In the present invention, on the basis of the provided menu level operation method, a menu level operation device is also provided. details as follows:
参见图4,该图为本发明提供的一种图像切换装置第一实施例的原理框图。Referring to FIG. 4 , this figure is a functional block diagram of the first embodiment of an image switching device provided by the present invention.
在本实施例中,包括:线程注册模块10、第一图像生成模块20和第二图像生成模块30。In this embodiment, it includes: a thread registration module 10 , a first image generation module 20 and a second image generation module 30 .
所述线程注册模块10,用于注册第一线程和第二线程。The thread registration module 10 is configured to register the first thread and the second thread.
所述第一图像生成模块20,用于在所述第一线程生成第一类别图像,将所述第一类别图像设置为可见状态;将所述第一类别图像中当前显示的图像作为第一当前图像。The first image generation module 20 is configured to generate a first category image in the first thread, set the first category image to a visible state; use the currently displayed image in the first category image as the first category image. current image.
所述第二图像生成模块30,用于根据所述第一当前图像在所述第二线程生成第二图像,作为第二当前图像;将所述第二当前图像设置为可见状态。The second image generation module 30 is configured to generate a second image in the second thread according to the first current image as a second current image; and set the second current image to a visible state.
在本实施例中,首先线程注册模块10在系统中注册第一线程和第二线程。之后第一图像生成模块20在第一线程中生成第一类别图像。其中,第一类别图像可以是菜单对应的文字导航菜单图像。(如常见的在屏幕中部或下部显示的包括有若干文字的导航菜单图像)。具体地,根据文字导航菜单中的菜单项确定对应的菜单图像。之后在第一线程中使用SurfaceView工具生成具体菜单项图像。同时,将生成的图像设置为可见状态,即用户可以直接看到的。将文字导航菜单中获得焦点的菜单作为当前菜单,当前菜单对应的文字导航菜单图像作为第一当前图像。In this embodiment, firstly, the thread registration module 10 registers the first thread and the second thread in the system. Then the first image generation module 20 generates the first category image in the first thread. Wherein, the first category image may be a text navigation menu image corresponding to the menu. (such as a common navigation menu image displayed in the middle or lower part of the screen that includes several texts). Specifically, the corresponding menu image is determined according to the menu items in the text navigation menu. Then use the SurfaceView tool in the first thread to generate specific menu item images. At the same time, set the generated image to be visible, that is, what the user can see directly. The focused menu in the text navigation menu is used as the current menu, and the text navigation menu image corresponding to the current menu is used as the first current image.
由于文字导航菜单中的图像可能只是涉及菜单图像,对于屏幕的背景图像需要单独进行切换。因此,在确定了第一当前图像后,查找第一当前图像对应的第二图像(背景图像),之后第二图像生成模块30在第二线程中使用SurfaceView生成第二图像,作为第二当前图像,并且将第二图像设置为可见状态。Since the image in the text navigation menu may only refer to the menu image, the background image of the screen needs to be switched separately. Therefore, after the first current image is determined, the second image (background image) corresponding to the first current image is searched, and then the second image generation module 30 uses SurfaceView in the second thread to generate the second image as the second current image , and make the second image visible.
在本实施例中,包括:线程注册模块、第一图像生成模块和第二图像生成模块。其中,线程注册模块用于注册第一线程和第二线程。第一图像生成模块用于在所述第一线程生成第一类别图像,将所述第一类别图像设置为可见状态。第二图像生成模块用于根据第一当前图像在第二线程生成第二图像。通过使用以上装置,可以实现在多线程下使用SurfaceView工具对菜单项和背景项的区分生成,从而解决了现有技术中使用Gallery和Viewpager方式存在的问题,避免了图像切换时卡顿情况的发生。In this embodiment, it includes: a thread registration module, a first image generation module and a second image generation module. Wherein, the thread registration module is used for registering the first thread and the second thread. The first image generating module is configured to generate a first category image in the first thread, and set the first category image to a visible state. The second image generation module is used to generate the second image in the second thread according to the first current image. By using the above device, it is possible to use the SurfaceView tool to distinguish and generate menu items and background items under multi-threading, thereby solving the problems existing in the use of Gallery and Viewpager in the prior art, and avoiding the occurrence of stuck situations when images are switched .
参见图5,该图为本发明提供的一种图像切换装置第二实施例的原理框图。Referring to FIG. 5 , this figure is a functional block diagram of a second embodiment of an image switching device provided by the present invention.
在本实施例中,还包括:还包括:第二目标图像切换模块40。In this embodiment, it further includes: a second target image switching module 40 .
所述第二目标图像切换模块40,用于判断若检测到所述第一当前图像切换为第一目标图像,根据所述第一目标图像在所述第二线程生成第二目标图像,将所述第二目标图像设置为不可见状态;在指定时间内将所述第二当前图像从可见状态渐变为不可见状态,将所述第二目标图像从不可见状态渐变为可见状态。The second target image switching module 40 is configured to determine that if it is detected that the first current image is switched to the first target image, generate a second target image in the second thread according to the first target image, and convert the The second target image is set to an invisible state; within a specified time, the second current image is gradually changed from a visible state to an invisible state, and the second target image is gradually changed from an invisible state to a visible state.
在本实施例中,由于用户会根据自己的要求选择不同的导航菜单项,因此第一图像会随着当前菜单的变化而进行不断的切换,从而带动与第一图像相对应的第二图像也不断进行切换。具体地,第二目标图像切换模块40首先需要检测所述第一当前图像是否切换为第一目标图像。In this embodiment, since users will select different navigation menu items according to their own requirements, the first image will be continuously switched as the current menu changes, thereby driving the second image corresponding to the first image to also Switch constantly. Specifically, the second target image switching module 40 first needs to detect whether the first current image is switched to the first target image.
检测的方式可以有很多种,例如在第二目标图像切换模块40中包括有位移面积检测子模块,用于检测第一当前图像的位置坐标或图像面积变化,若所述第一当前图像的位置坐标移动达到移动阈值,或所述第一当前图像的面积切换超过面积阈值,则认为用户选择了其它的菜单项,第一当前图像需要进行切换,第二当前图像也需要进行切换。There are many ways to detect, for example, the second target image switching module 40 includes a displacement area detection sub-module, which is used to detect the position coordinates or image area changes of the first current image, if the position of the first current image If the coordinate movement reaches the movement threshold, or the area switching of the first current image exceeds the area threshold, it is considered that the user has selected another menu item, the first current image needs to be switched, and the second current image also needs to be switched.
一旦判断出第一当前图像切换到第一目标图像,则第二目标图像切换模块40根据第一目标图像确定对应的第二目标图像,即第一目标图像对应的背景图像。具体的,根据第一目标图像查找到对应的第二目标图像(如第一目标图像确定对应的背景图像),之后使用SurfaceView工具绘制生成对应的第二目标图像(背景图像),并将绘制完成的第二目标图像设置为不可见状态。常见的如将图像的alpha值设置为0或较低的值,以达到透明的或不可见的效果。Once it is determined that the first current image is switched to the first target image, the second target image switching module 40 determines the corresponding second target image according to the first target image, that is, the background image corresponding to the first target image. Specifically, the corresponding second target image is found according to the first target image (for example, the first target image determines the corresponding background image), and then the SurfaceView tool is used to draw and generate the corresponding second target image (background image), and the drawing is completed The second target image is set to invisible state. A common example is setting the alpha value of the image to 0 or a lower value to achieve a transparent or invisible effect.
此时,在第二线程中同时存在两个图像,即第二当前图像和第二目标图像,且第二当前图像为可见状态,第二目标图像为不可见状态。为了实现这两个图像的切换,可以在指定时间内将所述第二当前图像从可见状态渐变为不可见状态(例如将第二当前图像的alpha值从最大值或可见值逐步调整为0或较低不可见值),将所述第二目标图像从不可见状态渐变为可见状态(例如将第二目标图像的alpha值从0或较低不可见值调整为最大值或可见值),从而实现在从第二当前图像向第二目标图像的平滑渐变效果。其中,指定的时间可以为1秒或0.5秒,或者指定的时间可以为第一当前图像切换到第一目标图像的时间,即第一线程的图像切换和第二线程的图像切换是同步的。并且,还可以将第二当前图像和第二目标图像设置为相同大小且设置在同一位置上,以保证上述切换效果。At this time, there are two images in the second thread at the same time, that is, the second current image and the second target image, and the second current image is in a visible state, and the second target image is in an invisible state. In order to realize the switching between these two images, the second current image can be gradually changed from a visible state to an invisible state within a specified time (for example, the alpha value of the second current image is gradually adjusted from the maximum or visible value to 0 or a lower invisible value), gradually changing the second target image from an invisible state to a visible state (for example, adjusting the alpha value of the second target image from 0 or a lower invisible value to a maximum or visible value), thus A smooth gradient effect is achieved from the second current image to the second target image. Wherein, the specified time can be 1 second or 0.5 seconds, or the specified time can be the time when the first current image is switched to the first target image, that is, the image switching of the first thread and the image switching of the second thread are synchronized. Moreover, the second current image and the second target image may also be set to the same size and at the same position, so as to ensure the above switching effect.
在本实施例中,还包括:第二目标图像切换模块,用于判断若检测到第一当前图像切换为第一目标图像,根据第一目标图像在第二线程生成第二目标图像,将第二目标图像设置为不可见状态;在指定时间内将第二当前图像从可见状态渐变为不可见状态,将第二目标图像从不可见状态渐变为可见状态。通过使用以上装置,可以实现第一图像和第二图像的平滑过渡,避免现有技术中图像卡顿的情况。In this embodiment, it also includes: a second target image switching module, configured to determine that if it is detected that the first current image is switched to the first target image, a second target image is generated in the second thread according to the first target image, and the second target image is converted to the second target image. The second target image is set to an invisible state; within a specified time, the second current image is gradually changed from a visible state to an invisible state, and the second target image is gradually changed from an invisible state to a visible state. By using the above device, a smooth transition between the first image and the second image can be realized, avoiding the situation of image freezing in the prior art.
参见图6,该图为本发明提供的一种图像切换装置第三实施例的原理框图。Refer to FIG. 6 , which is a functional block diagram of a third embodiment of an image switching device provided by the present invention.
在本实施例中,还包括:指令接收模块50、目标菜单确定模块60和菜单切换模块70。In this embodiment, it further includes: an instruction receiving module 50 , a target menu determining module 60 and a menu switching module 70 .
所述指令接收模块50,用于接收操作指令。The instruction receiving module 50 is configured to receive an operation instruction.
所述目标菜单确定模块60,用于根据所述操作指令和当前菜单的层级信息包确定目标菜单。The target menu determining module 60 is configured to determine a target menu according to the operation instruction and the current menu level information package.
所述菜单切换模块70,用于将所述当前菜单切换到所述目标菜单,将所述第一当前图像切换为所述目标菜单对应的第一目标图像。The menu switching module 70 is configured to switch the current menu to the target menu, and switch the first current image to a first target image corresponding to the target menu.
所述菜单层级信息包,包括:菜单编码段、菜单相邻索引段。The menu level information packet includes: a menu code segment and a menu adjacent index segment.
所述菜单编码段,用于存储所述当前菜单对应的层级和位置码。The menu code segment is used to store the level and position code corresponding to the current menu.
所述菜单相邻索引段,用于存储有所述当前菜单相邻的邻接菜单的层级和位置码,根据所述层级和位置码可以查找到所述邻接菜单。The menu adjacent index segment is used to store the level and position code of the adjacent menu adjacent to the current menu, and the adjacent menu can be found according to the level and position code.
在本实施例中,如超级电视等智能终端设备在开机时会首先生成第一图像和第二图像。In this embodiment, a smart terminal device such as a super TV firstly generates a first image and a second image when it is turned on.
之后,用户使用遥控器等输入指令,由指令接收模块50接收用户的指令。例如用户按压遥控器上的“左右菜单”按钮,要求从当前菜单切换到左右相邻菜单。Afterwards, the user inputs an instruction by using a remote controller or the like, and the instruction receiving module 50 receives the user's instruction. For example, the user presses the "left and right menu" button on the remote controller to request to switch from the current menu to the left and right adjacent menus.
此时,目标菜单确定模块60获取当前菜单中的信息。在本实施例中的菜单项中,预先在每一个菜单中都包括有层级信息包。层级信息包中的内容包括:菜单编码段、菜单相邻索引段。At this time, the target menu determination module 60 acquires information in the current menu. Among the menu items in this embodiment, each menu includes a hierarchy information package in advance. The content in the layer information package includes: menu code segment, menu adjacent index segment.
所述菜单编码段,用于存储有所述当前菜单对应的层级位置码。层级信息包中包括:菜单编码段、菜单相邻索引段。The menu code segment is used to store the level position code corresponding to the current menu. The layer information package includes: menu code segment, menu adjacent index segment.
所述菜单编码段,用于存储有所述当前菜单对应的层级位置码。所述层级位置码包括有所述当前菜单所在的层级和位置码。例如:The menu code segment is used to store the level position code corresponding to the current menu. The layer location code includes the layer and location code where the current menu is located. For example:
遥控(I,1)-----超级遥控器(II,1) -------遥控器界面(III,1)Remote Control (I, 1) ----- Super Remote Control (II, 1) ------- Remote Control Interface (III, 1)
-----语音助手(II,2) -------麦克风界面(III,2)-----Voice Assistant (II, 2) --------Microphone Interface (III, 2)
网络(I,2)------有线网络(II,3) -------IP配置界面(III,3)Network (I, 2)------Wired network (II, 3) -------IP configuration interface (III, 3)
-------无线网络(II,4) -------无线搜索界面(III,4)-------Wireless Network (II, 4) -------Wireless Search Interface (III, 4)
则各级具体信息为:The specific information at each level is:
“遥控” 层级为I, 位置码为1"Remote control" level is I, position code is 1
“网络” 层级为I, 位置码为2"Network" level is I, position code is 2
“超级遥控器” 层级为II, 位置码为1"Super remote control" level is II, position code is 1
“语音助手” 层级为II, 位置码为2"Voice Assistant" level is II, position code is 2
“有线网络” 层级为II, 位置码为3"Wired Network" level is II, location code is 3
“无线网络” 层级为II, 位置码为4"Wireless Network" level is II, location code is 4
“遥控器界面” 层级为III, 位置码为1"Remote control interface" level is III, position code is 1
“麦克风界面” 层级为III, 位置码为2"Microphone Interface" level is III, position code is 2
“IP配置界面” 层级为III, 位置码为3"IP configuration interface" level is III, position code is 3
“无线搜索界面” 层级为III, 位置码为4The level of "Wireless Search Interface" is III, and the location code is 4
所述菜单相邻索引段,用于存储有当前菜单的上层和/或下层菜单的层级位置码。The menu adjacent index segment is used to store the layer position codes of the upper and/or lower menus of the current menu.
在每一个菜单都配有层级信息包时,一级的菜单可以根据菜单相邻索引段中记录的信息查找到二级的菜单,而二级的菜单可以根据自身的层级信息包查找到三级的菜单。When each menu is equipped with a layer information package, the first-level menu can find the second-level menu according to the information recorded in the adjacent index segment of the menu, and the second-level menu can find the third-level menu according to its own level information package menu.
目标菜单确定模块60获取当前菜单,并确定该菜单的层级信息包。由于层级信息包中包括有当前菜单的层级位置码和当前菜单的同级或上下层级的层级位置码。因此,可以根据层级信息包中的内容查找同级或上下层级的菜单作为目标菜单。The target menu determination module 60 obtains the current menu, and determines the level information package of the menu. Because the level information package includes the level position code of the current menu and the level position codes of the same level or the upper and lower levels of the current menu. Therefore, menus at the same level or at the upper and lower levels can be searched for as target menus according to the content in the level information package.
其中,所述目标菜单确定模块60中可以包括有:上下级菜单查找子模块。Wherein, the target menu determining module 60 may include: a submodule for searching upper and lower menus.
上下级菜单查找子模块,用于如果所述用户输入的操作指令为查找当前菜单的上级或下级菜单,则查找所述当前菜单的菜单相邻索引段中存储的上层或下层菜单的层级位置码,从而确认目标菜单的信息。具体可以为:例如:当前菜单为“超级遥控器”,用户的操作指令为进入下一级菜单,则通过“超级遥控器”菜单的层级信息包中记录的下层菜单的层级位置码确定下一层级菜单为“III”,经查找为“遥控器界面”。The upper and lower menu search submodule is used to search the upper or lower menu level position code stored in the menu adjacent index segment of the current menu if the operation instruction input by the user is to search the upper or lower menu of the current menu to confirm the information of the target menu. Specifically, for example: the current menu is "super remote control", and the user's operation instruction is to enter the next level menu, then the next step is determined by the level position code of the lower level menu recorded in the level information package of the "super remote control" menu. The hierarchical menu is "III", which is "remote control interface" after searching.
同级菜单查找子模块,用于如果所述用户输入的操作指令为查找当前菜单的同级菜单,则根据当前菜单的层级位置码中的层级和位置码查找相邻菜单的层级位置码,从而确认目标菜单的信息。在本实施例中,根据向前或向后的指令,将计算当前菜单的位置码-1或+1的相邻菜单作为目标菜单。举例:当前菜单为“语音助手”,用户的操作指令为进入前一个同级菜单,则查找“语音助手”菜单的层级为II,位置为2。用户选择切换到前一个同级菜单,则2-1=1,确定位置码为1且菜单层级为II,经查找为“超级遥控器”。将“超级遥控器”菜单作为目标菜单。The same-level menu search submodule is used to search for the level position code of the adjacent menu according to the level and position code in the level position code of the current menu if the operation instruction input by the user is to search for the same level menu of the current menu, thereby Confirm the information of the target menu. In this embodiment, according to the forward or backward command, the adjacent menu whose position code -1 or +1 of the current menu is calculated is taken as the target menu. Example: The current menu is "Voice Assistant", and the user's operation command is to enter the previous menu at the same level, then the level of the search "Voice Assistant" menu is II, and the position is 2. If the user chooses to switch to the previous menu at the same level, then 2-1=1, it is determined that the position code is 1 and the menu level is II, which is "super remote control" after searching. Make the "Super Remote" menu the target menu.
最后,菜单切换模块70在第一线程中将当前菜单对应的第一当前图像切换为所述目标菜单对应的第一目标图像。Finally, the menu switching module 70 switches the first current image corresponding to the current menu to the first target image corresponding to the target menu in the first thread.
在本实施例中,还包括:指令接收模块、目标菜单确定模块和菜单切换模块。其中,指令接收模块用于接收操作指令;目标菜单确定模块用于根据操作指令和当前菜单的层级信息包确定目标菜单;菜单切换模块用于将当前菜单切换到目标菜单,将所述第一当前图像切换为所述目标菜单对应的第一目标图像。通过使用以上装置,可以在接收到用户的指令后根据菜单项中包含的层级信息包进行菜单平行查找切换,方便了用户的操作,避免了现有技术中的需逐层退回的繁琐步骤。In this embodiment, it also includes: an instruction receiving module, a target menu determining module and a menu switching module. Wherein, the instruction receiving module is used to receive the operation instruction; the target menu determination module is used to determine the target menu according to the operation instruction and the level information package of the current menu; the menu switching module is used to switch the current menu to the target menu, and the first current The image is switched to the first target image corresponding to the target menu. By using the above device, after receiving the user's instruction, the menu can be searched and switched in parallel according to the layer information package contained in the menu item, which facilitates the user's operation and avoids the cumbersome steps of returning layer by layer in the prior art.
以上所述,仅是本发明的较佳实施例而已,并非对本发明作任何形式上的限制。虽然本发明已以较佳实施例揭露如上,然而并非用以限定本发明。任何熟悉本领域的技术人员,在不脱离本发明技术方案范围情况下,都可利用上述揭示的方法和技术内容对本发明技术方案做出许多可能的变动和修饰,或修改为等同切换的等效实施例。因此,凡是未脱离本发明技术方案的内容,依据本发明的技术实质对以上实施例所做的任何简单修改、等同切换及修饰,均仍属于本发明技术方案保护的范围内。The above descriptions are only preferred embodiments of the present invention, and do not limit the present invention in any form. Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Any person familiar with the art, without departing from the scope of the technical solution of the present invention, can use the methods and technical content disclosed above to make many possible changes and modifications to the technical solution of the present invention, or modify it to be equivalent to switch. Example. Therefore, any simple modification, equivalent switching and modification made to the above embodiments according to the technical essence of the present invention, which do not deviate from the technical solution of the present invention, still fall within the protection scope of the technical solution of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410831953.2ACN104519413A (en) | 2014-12-29 | 2014-12-29 | Image switching method and image switching apparatus |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410831953.2ACN104519413A (en) | 2014-12-29 | 2014-12-29 | Image switching method and image switching apparatus |
| Publication Number | Publication Date |
|---|---|
| CN104519413Atrue CN104519413A (en) | 2015-04-15 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410831953.2APendingCN104519413A (en) | 2014-12-29 | 2014-12-29 | Image switching method and image switching apparatus |
| Country | Link |
|---|---|
| CN (1) | CN104519413A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104992412A (en)* | 2015-06-10 | 2015-10-21 | 北京金山安全软件有限公司 | Picture gradual change method and device |
| CN108093283A (en)* | 2017-12-29 | 2018-05-29 | 王小艳 | A kind of implementation method of set-top box 3D rollings graphical interfaces |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1571497A (en)* | 2003-07-25 | 2005-01-26 | 广州市国光数码科技有限公司 | Digital media player and implementing method thereof |
| CN1780442A (en)* | 2004-11-23 | 2006-05-31 | 乐金电子(中国)研究开发中心有限公司 | Mobile communication with settable dynamic manu and manu-setting method |
| CN102385510A (en)* | 2010-09-06 | 2012-03-21 | 上海可鲁系统软件有限公司 | Interface refreshing method of graphical user interface based on different development tools |
| CN102438179A (en)* | 2011-12-01 | 2012-05-02 | 康佳集团股份有限公司 | Method for dynamically displaying external application software menu based on television and television |
| EP2518631A1 (en)* | 2010-02-10 | 2012-10-31 | ZTE Corporation | Picture loading method and terminal |
| CN103577191A (en)* | 2013-10-31 | 2014-02-12 | 中国电子科技集团公司第四十一研究所 | Configurable instrument menu system |
| CN103760966A (en)* | 2013-05-02 | 2014-04-30 | 乐视网信息技术(北京)股份有限公司 | Picture buffering implementation method |
| US8797334B2 (en)* | 2010-01-06 | 2014-08-05 | Apple Inc. | Facilitating efficient switching between graphics-processing units |
| CN104135684A (en)* | 2014-07-17 | 2014-11-05 | Tcl集团股份有限公司 | A method and a device for displaying an interface based on a Firefox OS |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1571497A (en)* | 2003-07-25 | 2005-01-26 | 广州市国光数码科技有限公司 | Digital media player and implementing method thereof |
| CN1780442A (en)* | 2004-11-23 | 2006-05-31 | 乐金电子(中国)研究开发中心有限公司 | Mobile communication with settable dynamic manu and manu-setting method |
| US8797334B2 (en)* | 2010-01-06 | 2014-08-05 | Apple Inc. | Facilitating efficient switching between graphics-processing units |
| EP2518631A1 (en)* | 2010-02-10 | 2012-10-31 | ZTE Corporation | Picture loading method and terminal |
| CN102385510A (en)* | 2010-09-06 | 2012-03-21 | 上海可鲁系统软件有限公司 | Interface refreshing method of graphical user interface based on different development tools |
| CN102438179A (en)* | 2011-12-01 | 2012-05-02 | 康佳集团股份有限公司 | Method for dynamically displaying external application software menu based on television and television |
| CN103760966A (en)* | 2013-05-02 | 2014-04-30 | 乐视网信息技术(北京)股份有限公司 | Picture buffering implementation method |
| CN103577191A (en)* | 2013-10-31 | 2014-02-12 | 中国电子科技集团公司第四十一研究所 | Configurable instrument menu system |
| CN104135684A (en)* | 2014-07-17 | 2014-11-05 | Tcl集团股份有限公司 | A method and a device for displaying an interface based on a Firefox OS |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104992412A (en)* | 2015-06-10 | 2015-10-21 | 北京金山安全软件有限公司 | Picture gradual change method and device |
| CN108093283A (en)* | 2017-12-29 | 2018-05-29 | 王小艳 | A kind of implementation method of set-top box 3D rollings graphical interfaces |
| Publication | Publication Date | Title |
|---|---|---|
| US11221747B2 (en) | Method and apparatus for operating function in touch device | |
| CN105830009B (en) | Method for video processing and equipment | |
| US9626076B2 (en) | Display apparatus for displaying images and method thereof | |
| JP6058798B2 (en) | Augmented reality view layout method and apparatus | |
| US9652125B2 (en) | Device, method, and graphical user interface for navigating media content | |
| CN105307000B (en) | Show device and method thereof | |
| KR102098058B1 (en) | Method and apparatus for providing information in a view mode | |
| US20190196683A1 (en) | Electronic device and control method of electronic device | |
| US9619019B2 (en) | Display apparatus with a plurality of screens and method of controlling the same | |
| EP2670132B1 (en) | Method and apparatus for playing video in portable terminal | |
| US20110224896A1 (en) | Method and apparatus for providing touch based routing services | |
| CN104461571A (en) | Menu level operating method and device | |
| TW201227460A (en) | Method and apparatus for providing different user interface effects for different implementation characteristics of a touch event | |
| KR20130081068A (en) | Method and apparatus for implementing multi-vision system using multiple portable terminals | |
| KR20150026375A (en) | Portable device and controlling method thereof | |
| JP2014120176A (en) | Display apparatus, and method of providing ui thereof | |
| TW201502955A (en) | Information processing apparatus, information processing method, and program | |
| KR20190006221A (en) | A display apparatus and Method for controlling the display apparatus thereof | |
| CN104918125A (en) | Method and device for switching channels | |
| JP2014049133A (en) | Device and content searching method using the same | |
| KR20160040770A (en) | Method and apparatus for searching contents | |
| CN111104037B (en) | Method for helping vision handicapped people browse and mobile terminal | |
| CN104519413A (en) | Image switching method and image switching apparatus | |
| CN105426170A (en) | Information pushing method and information pushing apparatus | |
| KR102077228B1 (en) | Electronic device and Method for controlling the electronic device thereof |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| AD01 | Patent right deemed abandoned | Effective date of abandoning:20180914 | |
| AD01 | Patent right deemed abandoned |