CN102158762A - Method and system for achieving television user interface based on SDL (System Descriptive Language) - Google Patents

Method and system for achieving television user interface based on SDL (System Descriptive Language) Download PDF

Info

Publication number
CN102158762A
CN102158762A CN 201110061870 CN201110061870A CN102158762A CN 102158762 A CN102158762 A CN 102158762A CN 201110061870 CN201110061870 CN 201110061870 CN 201110061870 A CN201110061870 A CN 201110061870A CN 102158762 A CN102158762 A CN 102158762A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
interface
ui
sdl
layer
library
Prior art date
Application number
CN 201110061870
Other languages
Chinese (zh)
Other versions
CN102158762B (en )
Inventor
王勃
Original Assignee
深圳市酷开网络科技有限公司
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

Links

Abstract

The invention is suitable for the technical field of televisions and particularly provides a method and system for achieving a television user interface based on an SDL (System Descriptive Language). The system provided by the invention comprises a driving layer, an SDL layer, an SDL UI (User Interface) management layer and a UI application layer, wherein the driving layer provides a driving program and a protocol interface; the SDL layer is used for forming an unified graph drafting interface and a graph special effect library according to the driving program and protocol interface which areprovided by the driving layer; the SDL UI management layer is used for managing the relevant resources, windows and progresses according to the requirements of a user and calling the special effect functions of the unified graph drafting interface in the SDL layer and the graph special effect library, thereby realizing a UI interface application resource library; and the UI application layer is used for realizing UI application according to the UI interface application resource library. The method and system provided by the invention can be used for realizing that different television systemscan not be limited by the software and hardware of a development platform and support to be compatible to various software systems such as Linux, Windows and the like, and the modules are mutually, independently, conveniently and rapidly transplanted to other platforms.

Description

一种基于SDL的电视机用户接口界面的实现方法及系统 Method and system for realizing SDL television based user interface to the interface

技术领域 FIELD

[0001] 本发明属于电视机技术领域,尤其涉及一种基于SDL的电视机用户接口界面的实现方法及系统。 [0001] The present invention belongs to the field of television technology, particularly to a method and system for TV user interface to the SDL-based interface.

背景技术 Background technique

[0002] 电视的诞生、发展至今,给大家带来无尽的数字视听享受,功能也越来越强大。 [0002] the birth of television, the development so far, give us endless digital audiovisual enjoyment, more powerful functions. 随着一项项技术的产生、发展、成熟,随着跨行业技术的应用,如卡拉0K、网络技术等,一次又一次赋予它新的使命,扮演越来越多的角色。 With the emergence of a key technology, development, maturity, with the application of cross-industry technologies, such as karaoke 0K, network technology, time and time again to give it a new mission, to play more and more roles. 越来越多的丰富我们的生活。 More and more we enrich our lives. 随着电视行业的发展,涌现出一批批芯片方案,每一种芯片方案有自己的优势,同时也存在劣势,此外,每种芯片应用的硬件平台和软件架构也有所不同,因此,对于不同的电视系统,受开发平台的软硬件限制,无法方便、快速的移植到其它的平台上的问题。 With the development of the television industry, the emergence of a batch chip solution, each chip solution has its own advantages, there are also disadvantages, in addition, each chip hardware platform and application software architectures are different, therefore, for different television systems, software and hardware platform developed by the restrictions can not be easily and quickly ported to other platforms on the issue.

发明内容 SUMMARY

[0003] 本发明实施例的目的在于提供一种电视机用户接口界面的生成方法,旨在解决现有技术的对于不同的电视系统,受开发平台的软硬件限制,无法方便、快速的移植到其它的平台上的问题。 [0003] The object of embodiments of the present invention to provide a method for generating a television interface, a user interface, to solve the prior art to a different TV system, developed by the software and hardware platform limitations, can not be easily and quickly migrate to issues on other platforms.

[0004] 本发明实施例是这样实现的,一种基于SDL的电视机用户接口界面的实现系统, 所述系统包括: [0004] Embodiments of the invention are implemented as a SDL television interface to achieve a user interface, the system comprises based on:

[0005] 驱动层,用于提供驱动程序及协议接口; [0005] driver layer for providing drivers and protocol interface;

[0006] SDL层,用于根据所述驱动层提供的驱动程序及协议接口,形成统一的图形绘制接口及图形特效库; [0006] SDL layer, according to the driver and the driver layer protocol interface provided to form a unified graphical drawing interface and graphics library of effects;

[0007] SDL UI管理层,用于根据用户需求,对相关的资源、窗口和进程进行管理,并调用SDL层中统一的图形绘制接口和图形特效库的特效功能,实现UI界面应用资源库; [0007] SDL UI management, according to user needs, related resources, windows and process management, and call a unified graphical drawing interface and graphic effects library of effects capabilities SDL layer, the UI interface application repository;

[0008] UI应用层,用于根据所述UI界面应用资源库,实现UI应用。 [0008] UI application layer for application according to the UI interface repository, the UI application.

[0009] 本发明实施例还提供了一种基于SDL的电视机用户接口界面的实现方法,所述方法包括下述步骤: [0009] The present invention further provides a method for implementing a user interface based on SDL television interface, said method comprising the steps of:

[0010] 根据驱动程序及协议接口,形成统一的图形绘制接口及图形特效库; [0010] The drivers and protocol interface to form a unified graphical drawing interface and graphics library of effects;

[0011] 根据用户需求,对相关的资源、窗口和进程进行管理,并通过所述统一的图形绘制接口和图形特效库的特效功能,实现UI界面应用资源库; [0011] According to user needs, related resources, windows and process management, and through a unified graphical drawing interface and graphic effects library of special effects features, the UI interface application repository;

[0012] 由所述UI界面应用资源库,实现UI应用。 [0012] UI interface application by the resource library, the UI application.

[0013] 在本发明实施例中,通过构建基于SDL的UI系统,SDL层根据驱动层提供的驱动程序及协议接口,形成统一的图形绘制接口及图形特效库,并由SDLUI管理层根据用户需求, 对相关的资源、窗口和进程进行管理,同时,调用SDL层中统一的图形绘制接口和图形特效库的特效功能,实现UI界面应用资源库,并通过资源库,实现UI应用,实现了对于不同的电视系统,可以不受开发平台的软硬件限制,并且各模块间相互独立,可以方便、快捷的移植到其它平台上。 [0013] In an embodiment of the present invention, by constructing a UI SDL-based system, according to the driver and the SDL layer protocol interface driver layer provided to form a unified graphical drawing interface effects and graphics library, based on user demand management by SDLUI of relevant resources, windows and process management, at the same time, call the SDL layer unified graphical drawing interface and graphic effects library of special effects features, the UI interface application repository, and through the repository, the UI application, realized for different TV systems can be developed without hardware platform limitations, independent of each other between modules and, conveniently and quickly ported to other platforms. 附图说明 BRIEF DESCRIPTION

[0014] 图1是本发明实施例一提供的基于SDL的电视机用户接口界面的实现系统的结构图; [0014] FIG. 1 is a configuration diagram of a television-based system for implementing a user interface SDL interface according to a first embodiment of the present invention;

[0015] 图2是本发明实施例二提供的基于SDL的电视机用户接口界面的实现系统的结构图; [0015] FIG. 2 is a configuration diagram of a television-based system for implementing a user interface SDL interface according to a second embodiment of the present invention;

[0016] 图3是本发明实施例三提供的基于SDL的电视机用户接口界面的实现方法; [0016] FIG. 3 is implemented method according to a third television based user interface SDL interface embodiment of the present invention;

[0017] 图4是本发明实施例三提供的DC实现图片旋转功能增强的方法的实现流程图; Implementation of the method [0017] FIG. 4 is a according to a third embodiment of the present invention is to realize a DC flowchart enhanced image rotation;

[0018] 图5是本发明实施例三提供的通过surface实现动画机制的方法的实现流程图; [0018] FIG. 5 is a flowchart of a method implemented animate mechanism according to a third embodiment of the present invention by the surface;

[0019] 图6是本发明实施例三提供的基于SDL的UI系统实现相册模块的流程图。 [0019] FIG. 6 is a flowchart of an implementation of the SDL album UI module based system according to a third embodiment of the present invention.

具体实施方式 detailed description

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

[0021] 在本发明实施例中,通过构建基于简易直控媒体层(Simple DirectMediaLayer, SDL)的用户界面(User Interface, UI)系统,SDL层根据驱动层提供的驱动程序及协议接口,形成统一的图形绘制接口及图形特效库,实现了对于不同的电视系统,可以不受开发平台的软硬件限制,并且各模块间相互独立,可以方便、快捷的移植到其它平台上。 [0021] In the embodiment of the present invention, by building based on a simple direct control of the media layer (Simple DirectMediaLayer, SDL) UI (User Interface, UI) system, the SDL layer according to the driver and the protocol interface driver layer provided to form a unified the graphical drawing interface library and graphics effects achieved for different television systems may be developed without hardware platform limitations, independent of each other between modules and, conveniently and quickly ported to other platforms.

[0022] 一种基于SDL的电视机用户接口界面的实现系统,所述系统包括: [0022] An SDL television interface to achieve a user interface, the system comprises based on:

[0023] 驱动层,用于提供驱动程序及协议接口; [0023] driver layer for providing drivers and protocol interface;

[0024] SDL层,用于根据所述驱动层提供的驱动程序及协议接口,形成统一的图形绘制接口及图形特效库; [0024] SDL layer, according to the driver and the driver layer protocol interface provided to form a unified graphical drawing interface and graphics library of effects;

[0025] SDL UI管理层,用于根据用户需求,对相关的资源、窗口和进程进行管理,并调用SDL层中统一的图形绘制接口和图形特效库的特效功能,实现UI界面应用资源库; [0025] SDL UI management, according to user needs, related resources, windows and process management, and call a unified graphical drawing interface and graphic effects library of effects capabilities SDL layer, the UI interface application repository;

[0026] UI应用层,用于根据所述UI界面应用资源库,实现UI应用。 [0026] UI application layer for application according to the UI interface repository, the UI application.

[0027] 本发明实施例还提供了一种基于SDL的电视机用户接口界面的实现方法,所述方法包括下述步骤: [0027] The present invention further provides a method for implementing a user interface based on SDL television interface, said method comprising the steps of:

[0028] 根据驱动程序及协议接口,形成统一的图形绘制接口及图形特效库; [0028] The drivers and protocol interface to form a unified graphical drawing interface and graphics library of effects;

[0029] 根据用户需求,对相关的资源、窗口和进程进行管理,并通过所述统一的图形绘制接口和图形特效库的特效功能,实现UI界面应用资源库; [0029] According to user needs, related resources, windows and process management, and through a unified graphical drawing interface and graphic effects library of special effects features, the UI interface application repository;

[0030] 由所述UI界面应用资源库,实现UI应用。 [0030] The UI interface application by the resource library, the UI application.

[0031] 在本发明实施例中,通过构建基于SDL的UI系统,SDL层根据驱动层提供的驱动程序及协议接口,形成统一的图形绘制接口及图形特效库,并由SDLUI管理层根据用户需求, 对相关的资源、窗口和进程进行管理,同时,调用SDL层中统一的图形绘制接口和图形特效库的特效功能,实现UI界面应用资源库,并通过资源库,实现UI应用,实现了对于不同的电视系统,可以不受开发平台的软硬件限制,并且各模块间相互独立,可以方便、快捷的移植到其它平台上。 [0031] In an embodiment of the present invention, by constructing a UI SDL-based system, according to the driver and the SDL layer protocol interface driver layer provided to form a unified graphical drawing interface effects and graphics library, based on user demand management by SDLUI of relevant resources, windows and process management, at the same time, call the SDL layer unified graphical drawing interface and graphic effects library of special effects features, the UI interface application repository, and through the repository, the UI application, realized for different TV systems can be developed without hardware platform limitations, independent of each other between modules and, conveniently and quickly ported to other platforms.

[0032] 以下结合具体实施例对本发明的实现进行详细描述:[0033] 实施例一 [0032] Hereinafter, the present invention is implemented will be described in detail with reference to specific embodiments: [0033] Example a

[0034] 图1示出了本发明实施例一提供的基于SDL的电视机用户接口界面的实现系统的结构图,为了便于说明,仅示出了与本发明实施例相关的部分,该系统可以是内置于电视机中的软件单元、硬件单元或者软硬结合单元。 [0034] FIG. 1 shows a block diagram of the present invention is based television system for implementing a user interface SDL interface according to a first embodiment, for convenience of explanation, only a part related to the embodiment of the present invention, the system may It is built into the television software means, hardware means or a rigid-flex unit.

[0035] 在本发明实施例中,电视机用户接口界面可以是基于Linux系统和Win32等系统上的用户接口。 [0035] In an embodiment of the present invention, the television interface may be based on the user interface a user interface on Linux systems and Win32 systems.

[0036] 驱动层11提供驱动程序及协议接口。 [0036] The driver layer 11 provides an interface and protocol drivers.

[0037] SDL层12根据驱动层11提供的驱动程序及协议接口,形成统一的图形绘制接口及图形特效库。 [0037] SDL layer 12 according to the driver and the driver layer protocol interface 11 is provided to form a unified graphical drawing interface and graphics effects library.

[0038] SDL UI管理层13根据接收的用户需求,对相关的资源、窗口和进程进行管理,并调用SDL层12中的图形绘制接口和图形特效库的特效功能,实现UI界面应用资源库。 [0038] SDL UI based on user demand management 13 received, related resources, windows and process management, and call an effect function graphical drawing interface and graphical effects library SDL layer 12, the UI interface application repository.

[0039] UI应用层14根据SDL UI管理层13的UI界面应用资源库,实现UI应用。 [0039] The UI application layer 14 is the SDL UI UI management interface application repository 13, the UI application.

[0040] 在本发明实施例中,通过构建基于SDL的UI系统,SDL层根据驱动层提供的驱动程序及协议接口,形成统一的图形绘制接口及图形特效库,并由SDLUI管理层根据用户需求, 对相关的资源、窗口和进程进行管理,同时,调用SDL层中统一的图形绘制接口和图形特效库的特效功能,实现UI界面应用资源库,并通过上述UI界面应用资源库,实现UI应用,使得在电视UI系统开发过程中,可以不受开发平台的软硬件限制,并且各模块间相互独立, 可以方便、快捷的移植到其它平台上。 [0040] In an embodiment of the present invention, by constructing a UI SDL-based system, according to the driver and the SDL layer protocol interface driver layer provided to form a unified graphical drawing interface effects and graphics library, based on user demand management by SDLUI of relevant resources, windows and process management, at the same time, call the SDL layer unified graphical drawing interface and graphic effects library of special effects features, the UI interface application repository and via the UI interface application repository, the UI application , such that the UI television system development process, the development of software and hardware limitations may not platform independent and between modules, convenient, fast and portable to other platforms.

[0041] 实施例二 [0041] Second Embodiment

[0042] 图2示出了本发明实施例二提供的基于SDL的电视机用户接口界面的实现系统的结构图。 [0042] FIG. 2 shows a block diagram of the present invention is based television system for implementing a user interface SDL interface according to a second embodiment.

[0043] 在本发明实施例中,驱动层21包括软件开发工具包平台215 (softwaredevelopment kit, SDK)、二维矢量渲染引擎213、嵌入式系统开放图形程序接口引擎(Open Graphics Library for Embedded Systems,OpenGL ES) 214 及浮点库211 和矢量字库212。 [0043] In an embodiment of the present invention, the driving layer 21 comprising a software development kit platform 215 (softwaredevelopment kit, SDK), two-dimensional vector rendering engine 213, embedded graphics program interface engine open system (Open Graphics Library for Embedded Systems, OpenGL ES) 214 and floating point vector font library 211 and 212.

[0044] 在本发明实施例中,在通过SDK开发平台215提供应用程序驱动和应用程序编程接口(Application Programming hterface,API)。 [0044] In an embodiment of the present invention, provided by the SDK application development platform 215 and the driver application programming interface (Application Programming hterface, API). 二维矢量渲染引擎213 实现二维矢量图形处理功能,可以采用开源图形绘制库(Anti-Grain Geometry, AGG)项目来实现二维图像库。 Two-dimensional vector rendering engine 213 to achieve the two-dimensional vector graphics capabilities, you can use the open-source graphics rendering library (Anti-Grain Geometry, AGG) project to achieve the two-dimensional image library. 通过采用开源图形绘制库能提供高质量的图像渲染功能,可以实现支持路径、支持抗锯齿渲染、支持二维图像变换、支持各种像素格式、支持2种颜色组合模式、支持SDL平台。 Drawing library can provide high quality images through the use of open-source graphics rendering function, the path may be implemented to support, rendering support anti-aliasing, two-dimensional image conversion support, support various pixel formats, it supports two modes color combination, supported SDL internet. 3D的图形渲染引擎可以通过OpenGL ES引擎来实现。 3D graphics rendering engine can be achieved through OpenGL ES engine.

[0045] 在本发明实施例中,SDL层包括图形抽象层221 (Graphics Abstract Layer, GAL) 和图形特效库222。 [0045] In an embodiment of the present invention, SDL layer comprising a pattern abstraction layer 221 (Graphics Abstract Layer, GAL) 222, and graphics effects library.

[0046] 图形抽象层221根据平台差异,提供统一的图形绘制接口,从而屏蔽平台差异化, 例如,不同平台的2D、3D图形接口是不同的,不同平台的硬件加速功能也是不同的,而通过图形抽象层则可以屏蔽不同接口的差异,及为不同的平台提供不同的加速功能,从而使UI 具有良好的兼容性。 [0046] pattern abstraction layer 221 platform differences, to provide a uniform graphical drawing interface, thereby shielding the platform differences, eg, 2D different platforms, 3D graphics interfaces are different, different platforms hardware acceleration are different, and by pattern abstraction layer can shield the differences of different interfaces, and provide different functions for different platforms acceleration, so that UI has good compatibility.

[0047] 图形特效库222提供常用的窗口特效功能,如平移、旋转、缩放、实现窗口动画机制等常用的动画特效,其中,[0048] ①窗口动画机制是指在窗口切换、焦点移动等动画播放,由统一机制在窗口绘制过程中实现,不需要用户自己来控制动画的播放。 [0047] Graphics effects library 222 provides common window effects capabilities, such as translation, rotation, scaling, implemented window animation mechanism common animation effects, wherein, [0048] ① window animation mechanism refers window switch, focus movement and other animation play, realized by a unified mechanism in the window drawing process, does not require users themselves, to control the animation.

[0049] ②增强私有设备上下文(device context, DC)的处理机制,使得动画机制能采用私有DC作为动画内容的画布。 [0049] ② enhanced private device context processing mechanism (device context, DC), so that the animation mechanism can be employed as a private DC canvas video content.

[0050] ③图形特效库222可以实现预先设计好的动画效果,包括移动、旋转、缩放以及不同效果组合的动画。 [0050] ③ library 222 may be implemented graphical effects predesigned animation effects, including move, rotate, scale, and animate the different combinations.

[0051] 在本发明实施例中,SDL层还可以包括输入抽象层221 anput AbstractLayer, IAL)。 [0051] In an embodiment of the present invention, SDL may also include an input layer abstraction layer 221 anput AbstractLayer, IAL).

[0052] 在本发明实施例中,SDL UI管理层23包括窗口管理模块231、资源管理模块232、 消息管理模块233、控件库234。 [0052] In an embodiment of the present invention, SDL UI management module 23 includes a window manager 231, a resource management module 232, message management module 233, control library 234.

[0053] 窗口管理模块231对窗口进行管理,例如图片的渲染效果、排列、光标的移动等。 [0053] The window management module 231 pairs of window management such as image rendering, arrangement, movement of a cursor and the like.

[0054] 资源管理模块232以多进程方式统一管理UI使用的各种资源,包括图片和字体资源,并提供相应的应用接口来使用这些资源,例如,应用程序编程接口(Application Programming hterface,API)。 [0054] resource management module 232 in a multi-way process of unified management UI using a variety of resources, including images and font resources, and provide the appropriate application interface to use these resources, for example, application programming interfaces (Application Programming hterface, API) . 由于多进程需要访问统一的系统资源,因此整个系统的字体和图片可以共享同一内存。 Because multiple processes require access to a unified system resources, so the whole system fonts and pictures may share the same memory. 同时,一些共同的图片资源也可以采用共享资源的方式来使用,因此,降低整个系统的内存使用量。 At the same time, some common image resources can also be used to share ways to use resources, thereby reducing memory usage of the whole system.

[0055] 消息管理模块233对各窗口及各控件间的传递消息进行管理。 [0055] The message management module 233 manages transmission and each message between the respective control window.

[0056] 控件库234提供界面常用的控件,如图形列表控件(ImageList),按钮(button)、 编辑框(edit)、复选框(checkbox)、组合框(combobox)、图像交换格式(Graphics Interchange Format, gif)动画、列表框(Iistbox)、列表视图控件(Iistview)、进度条(progressbar)、静态文本框(static)、轨迹条(trackbar)、滚动条(scrollbar)、文本编辑框(textedit)等。 [0056] common control library 234 provides an interface controls, such as a graphical list control (the ImageList), button (Button), edit box (Edit), box (CheckBox), a combo box (ComboBox), Graphics Interchange Format (Graphics Interchange Format, gif) animation, list boxes (Iistbox), the list view control (Iistview), the progress bar (progressbar), static text box (static), track bar (trackbar), the scroll bar (scrollbar), text edit box (textedit) Wait.

[0057] 在本发明实施中,SDL UI管理层23还可以包括服务端模块,提供多进程的管理, 消息转发以及各个进程之间的通信协议等。 [0057] In the embodiment of the present invention, SDL UI 23 may further include a management server module, providing multi-process management, message forwarding and communication protocols between the various processes and the like.

[0058] 在本发明实施例中,UI应用层M具体可以包括应用模块M1、浏览器242、Java虚拟机243及游戏模块M4,当然还可以实现更多的应用,而不限于上述应用。 [0058] In an embodiment of the present invention, the UI application layer M may include an application specific module M1, browser 242, Java virtual machine module 243 and the game M4, of course also be implemented more applications, not limited to the aforementioned application.

[0059] 应用模块241调用UI界面应用资源库的资源,实现各种应用系统,例如,可以实现特色风格的家庭网络,多媒体及电视的应用系统,具体可以包括如影视、音乐、相册等应用功能的实现。 [0059] Application module 241 calls the UI interface application repository resources, to achieve a variety of applications, for example, can be implemented applications Special style of home networking, multimedia and television, specifically include such as film, music, photo albums and other applications implementation.

[0060] 在浏览器242对于界面中大量使用焦点框的情况,可以增强采用光标来实现焦点框的机制,满足光标能显示、隐藏、移动和放大的功能。 [0060] In the case of browser interface 242 for use in a large number of the focus frame can be enhanced mechanism employed to achieve the focus frame cursor, the cursor can be displayed to meet, hide, amplification and movement functions.

[0061] 在本发明实施例中,可以利用二维矢量图形库提供的二维平面方面的图像处理能力,实现解释、执行Java脚本的虚拟环境的Java虚拟机M3,。 [0061] In an embodiment of the present invention may be two-dimensional plane image processing capabilities of the two-dimensional vector graphics library aspects provided to achieve interprets and executes Java script virtual environment of the Java Virtual Machine M3 ,.

[0062] 在本发明实施例中,可以将SDL以动态链接库(dynamic library)的形式免费地用于商业游戏模块244的开发。 [0062] In an embodiment of the present invention, the SDL may be in the form of a dynamic link library (dynamic library) used to develop commercial free game module 244.

[0063] 在本发明实施例中,UI界面简洁美观,动画流畅,支持多种图片格式,同时,图片, 音乐基于数据库的管理,实现对数据库内的各种资源的快速检索,通过数据库功能,实现对音乐,图片的分类排序,并实现各种音乐,图片的播放,删除,检索等功能,由于支持多进程处理,动画、图片刷新、实时性更流畅,支持OPENGL ES的3D处理,在功能上更强大。 [0063] In an embodiment of the present invention, the UI interface simple and beautiful, smooth animation, supports a variety of image formats, while, pictures, music management database based, quick retrieval of resources in the database, through the database function, sorting realization of music, pictures, and achieve a variety of music, pictures, play, delete, retrieval and other functions, as support for multi-process handling, animating, picture refresh, smoother real-time, 3D processing support OPENGL ES, and in function the more powerful. [0064] 实施例三 [0064] Example three

[0065] 图3示出了本发明实施例三提供的基于SDL的电视机用户接口界面的实现方法, 详述如下: [0065] FIG. 3 shows a third embodiment of the present invention provides a method implemented SDL television interface based user interface, as detailed below:

[0066] 在步骤S301中,根据驱动程序及协议接口,形成统一的图形绘制接口及图形特效库。 [0066] In step S301, according to the drivers and protocol interface to form a unified graphical drawing interface and graphics effects library.

[0067] 在本发明实施例中特效库,就是指预先定义好一些特效,提供界面使用。 [0067] In embodiments of the present invention, effects library, refers to a number of pre-defined effect, provide an interface to use. 例如,每一种动画都有共同的元素组成,如动画的背景、动画的前景,及移动的内容、动画的帧数、动画的每一帧的间隔时间、动画的路径,从哪个位置到哪个位置,动画的运动方式,比如是勻速、加速运动、自由落体等。 For example, every animation have common elements, such as the time interval of each frame of the animated background, foreground animation content, and movement, the number of frames of animation, the animation, the animation path, from which position to which position, motion animation, such as a constant speed, acceleration, free fall and so on. 所以,我们首先需要由底层开放一个私有的接口,例如surface 接口,使之支持并兼容上层实现的特效库,再由上层实现统一的图形绘制接口以及各种特效。 So, we first need to open a private by the underlying interface, such as surface interfaces, and support to make it compatible library of special effects to achieve the top, and then drawing interface and a variety of special effects to achieve a unified graphics from the top.

[0068] 在步骤S302中,根据用户需求,对相关的资源、窗口和进程进行管理,并通过统一的图形绘制接口和图形特效库的特效功能,实现UI界面应用资源库。 [0068] In step S302, according to user needs, related resources, windows and process management, and through a unified graphical drawing interface and graphic effects library of special effects features, the UI interface application repository.

[0069] 在本发明实施例中,为了便于理解以实现相册功能为例,要实现相册模块功能,系统可以为相册模块开设一个独立的进程,对实现相册的各种资源、窗口进行管理,如各种播放控件如播放、暂停、快进、快退等,再如相册实现的效果(淡入淡出、放大、缩小、旋转等)。 [0069] In an embodiment of the present invention, for ease of understanding as an example to achieve the photo album, the album module to achieve the function, the system can be set up as a separate process modules album, album of resources to achieve, window management, such as various playback controls such as play, pause, fast forward, rewind, etc., to achieve the effect of another example album (fade, zoom, rotate, etc.). 具体通过调用步骤S301中的统一绘制接口以及的特效库,实现相册UI界面应用资源库。 Through a unified interface calls to draw specific step S301 and the effects library that implements the album UI interface application repository.

[0070] 在步骤S303中,由UI界面应用资源库,实现UI应用。 [0070] In step S303, the UI interface application repository, the UI application.

[0071 ] 在本发明实施例中,在上层UI应用实现过程中,调用UI界面应用资源库中的资源特效,实现最终应用的功能,如相册。 [0071] In an embodiment of the present invention, the upper layer UI application implementation, the application interface UI effects call resource repository, realize the function of the final application, such as a photo album.

[0072] 在本发明实施例中,图形特效库可以通过DC实现图片旋转功能增强,请参阅图4, [0072] In an embodiment of the present invention, the graphics library of effects can be rotated by a DC to achieve enhanced image, see Figure 4,

[0073] 在步骤S401中,获取设备环境DC函数库:HDC Hdc = : :GetDC(m_hffnd); [0073] In step S401, it acquires the device library environment DC: HDC Hdc =:: GetDC (m_hffnd);

[0074] 在步骤S402中,主窗口、文档模版进行初始化dniWnstance (); [0074] In step S402, the main window, document templates initialized dniWnstance ();

[0075]在步骤 S403 中,功能操作写字=MoveToEx (Hdc,0,0,NULL); [0075] In step S403, the operation of writing the function = MoveToEx (Hdc, 0,0, NULL);

[0076] 在步骤S404中,功能操作画线=LineTo (Hdc,0,100); [0076] In step S404, the line drawing operation function = LineTo (Hdc, 0,100);

[0077]在步骤 S405 中,加载位图文件:HSDLBTMAPg_bmp = SDL_LoadBitmapFile (file); [0077] In step S405, the bitmap file is loaded: HSDLBTMAPg_bmp = SDL_LoadBitmapFile (file);

[0078] 在步骤S406中,对图片进行转换处理:SDL_BitmapToDev (g_bmp); [0078] In step S406, the picture conversion processing: SDL_BitmapToDev (g_bmp);

[0079]在步骤 S407 中,释放DC 库:RealseDC (m_hWnd,Hdc)。 [0079] In step S407, the release DC library: RealseDC (m_hWnd, Hdc).

[0080] 其中,在步骤S403中,调用函数后,还可以对用什么样的笔(HPEN),字是什么颜色(SetTextClor)进行选择。 [0080] wherein, in step S403, after the function call, but also what kind of pen (HPEN), what color a word (SetTextClor) selected.

[0081] 在步骤S404中,可以对用笔(HPEN)、颜色GetTextClor)、刷子或填充(CBrash) 等进行选择。 [0081] In step S404, may pen (HPEN), color GetTextClor), brush or filling (CBrash) or the like to select.

[0082] 在步骤S406中,对图片进行转换处理须注意,转换图片的格式必须和DC相同,否则无法正常显示。 [0082] In step S406, the picture conversion processing should note that the picture format conversion and DC must be the same, or can not be displayed properly.

[0083] 在本发明实施例中,图形特效库可以通过surface实现动画机制,请参阅图5 : [0083] In an embodiment of the present invention, the graphics library can achieve animation effects by Surface mechanism, see Figure 5:

[0084] S501,创建一个私有surface,函数接口SDL_Surface*SDL_ CreatePrivateSurface(HSDLWND hwnd)。 [0084] S501, to create a private surface, the function interface SDL_Surface * SDL_ CreatePrivateSurface (HSDLWND hwnd).

[0085] S502, 基于私有surface,对区域进行绘制UI_API intSDL_ InvalidateRect (HSDLWND hwnd, SDL_Rect*rect,BOOL berase)。 [0085] S502, based on private surface, a region drawn UI_API intSDL_ InvalidateRect (HSDLWND hwnd, SDL_Rect * rect, BOOL berase). [0086] S503,系统完成绘制,发送PRIVATEUPDATE到私有surface的拥有窗口。 [0086] S503, the system completes the drawing, the window has to send private PRIVATEUPDATE the surface.

[0087] S504,对私有surface和显示surface做动画处理。 [0087] S504, do animate private surface and display surface.

[0088]其中,在步骤 S502 中,调用函数接口UI_API int SDL_InvalidateRect (HSDLWND hwnd, SDL_Rect*rect,BOOL berase)后,会将区域内的内容绘制到私有surface上。 [0088] wherein, in the step S502, the calling function interfaces UI_API SDL_InvalidateRect (HSDLWND hwnd, SDL_Rect * rect, BOOL berase) int, the contents will be drawn to the area of ​​private surface. 需要注意的是,invalidaterect使用的是postmessage的方式传递消息。 Note that, invalidaterect using postmessage way to pass messages.

[0089] 图6示出基于本发明SDL的UI系统实现的相册模块具体实现流程,在基于SDL的UI系统之相册中,采用单线程机制:数据库初始化- >从数据库获取数据- >传递数据给页面或控件显示->调用播放接口->控制播放显示。 [0089] FIG. 6 shows a module SDL album UI system of the present invention implemented based on the specific implementation process, in the album of the SDL-based UI system, a single thread mechanism: Database Initialization -> Get data from the database -> Data passed to the page or control display -> call play Interface -> control playback display.

[0090] S601,通过调用SDL_Overlay*SDL_CreateYUVOverlay(int w, int h, Uint32format, SDL_Surface*display)创建YUV 解码层。 [0090] S601, by calling SDL_Overlay * SDL_CreateYUVOverlay (int w, int h, Uint32format, SDL_Surface * display) creating YUV decoded layer.

[0091] S602,初始化创建场景。 [0091] S602, initialization create a scene.

[0092] S603,装载场景数据。 [0092] S603, the scene data load.

[0093] S604,播放场景。 [0093] S604, the scene plays.

[0094] S605,对场景进行切换。 [0094] S605, a scene switching.

[0095] S606,暂停场景。 [0095] S606, pause scene.

[0096] S607,对场景进行切换后,播放新场景。 [0096] S607, the switching of the scene, a new scene playback.

[0097] S608,暂停场景后,调用int PhotoSenceContinue (HPH0T0PLAY handle)继续播放场景。 [0097] S608, after a pause the scene, calling int PhotoSenceContinue (HPH0T0PLAY handle) continues to play a scene.

[0098] S609,停止场景。 [0098] S609, the stopped scene.

[0099] S610,释放场景资源。 [0099] S610, the release of resources scene.

[0100] 在本发明实施例中,通过根据用户需求,对相关的资源、窗口和进程进行管理,并通过统一的图形绘制接口和图形特效库的特效功能,生成界面资源,并根据UI界面应用资源库,实现UI应用实现了对于不同的电视系统,可以不受开发平台的软硬件限制,并且各模块间相互独立,可以方便、快捷的移植到其它平台上。 [0100] In the embodiment of the present invention, by according to user needs, the relevant resources, windows and process management, and drawing effects functional interfaces and graphical effects libraries unified pattern generation interface resources, and a UI interface application resource library that implements the UI for the application to achieve a different TV system, you can not develop software and hardware platform limitations, and between each module independently and can be easily and quickly ported to other platforms.

[0101] 综上所述,在本发明实施例中,通过构建基于SDL的UI系统,SDL层根据驱动层提供的驱动程序及协议接口,形成统一的图形绘制接口及图形特效库,并由SDL UI管理层根据用户需求,对相关的资源、窗口和进程进行管理,同时,调用SDL层中统一的图形绘制接口和图形特效库的特效功能,实现UI界面应用资源库,并通过资源库,实现UI应用,实现了对于不同的电视系统,可以不受开发平台的软硬件限制,并且各模块间相互独立,可以方便、快捷的移植到其它平台上。 [0101] As described above, in the embodiment of the present invention, by constructing a UI SDL-based system, according to the driver and the SDL layer protocol interface driver layer provided to form a unified graphical drawing interface and graphics effects library by SDL UI management based on user demand, related resources, and processes to manage the window while calling SDL layer unified graphical drawing interface and graphic effects library of special effects features, the UI interface application repository, and through the repository, achieve UI application, achieved for different television systems may be developed without hardware platform limitations, independent of each other between modules and, conveniently and quickly ported to other platforms.

[0102] 此外,该系统生成的UI界面简洁美观,动画流畅,支持多种图片格式,同时,图片, 音乐基于数据库的管理,实现对数据库内的各种资源的快速检索,通过数据库功能,实现对音乐,图片的分类排序,并实现各种音乐,图片的播放,删除,检索等功能,由于支持多进程处理,动画、图片刷新、实时性更流畅,支持OPENGL ES的3D处理,在功能上更强大。 [0102] In addition, the system generates a UI interface is simple and beautiful, smooth animation, supports a variety of image formats, simultaneously, pictures, music-based database management, rapid retrieval of resources within the database by database functions to achieve sorting of music, pictures, and achieve a variety of music, pictures, play, delete, retrieval and other functions, as support for multi-process handling, animating, picture refresh, smoother real-time, 3D processing support OPENGL ES, and in function More powerful.

[0103] 值得注意的是,上述系统实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。 [0103] Notably, the above-described system embodiments, the included units divided only in accordance with the logic function, but are not limited to the division, as long as the corresponding functions can be achieved; Further, each of the functional units specific names for convenience only distinguished from each other, are not intended to limit the scope of the present invention.

[0104] 另外,本领域普通技术人员可以理解实现上述各实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,相应的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘或光盘等。 [0104] Further, those of ordinary skill in the art may understand that the above embodiments all or part of the method steps may be relevant hardware instructed by a program, the corresponding program may be stored in a computer readable storage medium. the storage medium, such as ROM / RAM, magnetic disk, or optical disk.

[0105] 以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。 [0105] The foregoing is only preferred embodiments of the present invention but are not intended to limit the present invention, any modifications within the spirit and principle of the present invention, equivalent substitutions and improvements should be included in the present within the scope of the invention.

Claims (9)

  1. 1. 一种基于SDL的电视机用户接口界面的实现系统,其特征在于,所述系统包括: 驱动层,用于提供驱动程序及协议接口;SDL层,用于根据所述驱动层提供的驱动程序及协议接口,形成统一的图形绘制接口及图形特效库;SDL UI管理层,用于根据用户需求对相关的资源、窗口和进程进行管理,并调用所述SDL层中的图形绘制接口和图形特效库的特效功能,实现UI界面应用资源库; UI应用层,用于根据所述UI界面应用资源库,实现UI应用。 1. A system for implementing a user interface SDL television-based interface, wherein, said system comprising: a driver layer for providing drivers and protocol interface; SDL layer, for driving the drive provided by the layer procedures and protocol interface to form a unified graphical drawing interface and graphics effects library; SDL UI management, for the management of related resources, and process window according to user needs, and calls the graphical drawing interface and graphical SDL layer effects effects function library, the UI interface application repository; UI application layer for application according to the UI interface repository, the UI application.
  2. 2.如权利要求1所述的系统,其特征在于,所述驱动层包括SDK开发平台、二维矢量渲染引擎、嵌入式系统开放图形程序接口引擎、浮点库和矢量字库。 2. The system according to claim 1, characterized in that said drive layer SDK platform development, two-dimensional vector rendering engine, embedded graphics program open systems interface engine, comprising a vector font, and the floating-point library.
  3. 3.如权利要求1所述的系统,其特征在于,所述SDL层包括: 图形抽象层,用于根据平台差异,提供统一的图形绘制接口; 图形特效库,用于形成窗口的特效功能。 The system according to claim 1, wherein said layer comprises SDL: pattern abstraction layer, according to platform differences, to provide a uniform graphical drawing interface; graphics library of effects for forming a window effects capabilities.
  4. 4.如权利要求1所述的系统,其特征在于,所述SDL UI管理层包括: 服务端;控件库;窗口管理模块,用于对窗口进行管理;消息管理模块,用于对各窗口及各控件间的传递消息进行管理; 资源管理模块,用于以多进程方式统一管理各种资源,并提供相应的应用接口以使用相关资源。 4. The system according to claim 1, characterized in that the SDL UI management comprising: a server; control library; window management module for managing the window; message management module, and for each window passing messages between the various controls to manage; resource management module for multi-process manner to the unified management of resources, and provide the appropriate application interface to use resources.
  5. 5.如权利要求1所述的系统,其特征在于,所述UI应用层包括: 浏览器;应用模块,用于调用所述UI界面应用资源库的资源,实现各种应用系统; Java虚拟机,用于利用二维矢量图形库的二维平面的图像处理能力,实现解释、执行Java脚本的虚拟环境;游戏模块,用于以动态链接库的形式开发游戏软件。 5. The system according to claim 1, characterized in that, the UI application layer includes: a browser; application module, a resource interface application invoking the UI repository, to achieve a variety of applications; the Java Virtual Machine , image processing capabilities for two-dimensional plane using the two-dimensional vector graphics library, to achieve interprets and executes Java virtual environment script; game module for the development of game software in the form of dynamic link libraries.
  6. 6. 一种基于SDL的电视机用户接口界面的实现方法,其特征在于,所述方法包括下述步骤:根据驱动程序及协议接口,形成统一的图形绘制接口及图形特效库; 根据用户需求,对相关的资源、窗口和进程进行管理,并通过所述统一的图形绘制接口和图形特效库的特效功能,实现UI界面应用资源库; 由所述UI界面应用资源库,实现UI应用。 A television SDL implementation interface based user interface, wherein, said method comprising the steps of: drivers and protocol interface to form a unified graphical drawing interface effects and graphics library; according to the needs of the user, of relevant resources, windows and process management, and drawing interface features graphical effects and effects library through the unified graphical, the UI interface application repository; by the UI interface application repository, the UI application.
  7. 7.如权利要求6所述的方法,其特征在于,所述方法包括下述步骤:通过所述统一的图形绘制接口调用二维矢量渲染引擎、嵌入式系统开放图形程序接口引擎、浮点库和矢量字库。 7. The method according to claim 6, characterized in that the method comprises the steps of: rendering engine draws a two-dimensional vector interface call on the unified pattern, the embedded graphical programming interface engine open system, floating-point library and vector font.
  8. 8.如权利要求6所述的方法,其特征在于,所述方法还包括下述步骤: 所述图形特效库通过DC实现图片旋转功能增强。 8. The method according to claim 6, wherein said method further comprises the steps of: said database through graphical effects rotation DC image enhancement implementation.
  9. 9.如权利要求6所述的方法,其特征在于,所述方法还包括下述步骤: 所述图形特效库通过surface实现动画机制。 9. The method according to claim 6, wherein said method further comprises the steps of: animation of the graphical library of effects achieved by the mechanism surface.
CN 201110061870 2011-03-15 2011-03-15 Method and system for achieving television user interface based on SDL (System Descriptive Language) CN102158762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110061870 CN102158762B (en) 2011-03-15 2011-03-15 Method and system for achieving television user interface based on SDL (System Descriptive Language)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110061870 CN102158762B (en) 2011-03-15 2011-03-15 Method and system for achieving television user interface based on SDL (System Descriptive Language)

Publications (2)

Publication Number Publication Date
CN102158762A true true CN102158762A (en) 2011-08-17
CN102158762B CN102158762B (en) 2013-03-27

Family

ID=44439893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110061870 CN102158762B (en) 2011-03-15 2011-03-15 Method and system for achieving television user interface based on SDL (System Descriptive Language)

Country Status (1)

Country Link
CN (1) CN102158762B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306099A (en) * 2011-08-23 2012-01-04 上海网达软件有限公司 Cross-platform graphic display method and graphic display system on handheld terminal equipment
CN102752368A (en) * 2012-05-31 2012-10-24 上海必邦信息科技有限公司 Method for improving interface remote display efficiencies and picture qualities between electronic equipment
CN103108244A (en) * 2013-01-31 2013-05-15 冠捷显示科技(厦门)有限公司 Method for virtualizing television system
CN104796670A (en) * 2015-04-23 2015-07-22 安徽省道一电子科技有限公司 Cross-platform multiway realtime video processing system architecture based on flow line architecture
CN105739994A (en) * 2016-03-01 2016-07-06 深圳市茁壮网络股份有限公司 Vertical-screen television set display method and device and vertical-screen television set

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060023900A1 (en) * 2004-07-28 2006-02-02 Erhart George W Method and apparatus for priority based audio mixing
CN101042816A (en) * 2007-04-27 2007-09-26 重庆邮电大学 Interactive switching system and processing method based on SDL graphics relationship
CN101505365A (en) * 2009-02-25 2009-08-12 南京邮电大学 Real-time video monitoring system implementing method based on network television set-top box
US20090204398A1 (en) * 2005-06-24 2009-08-13 Robert Du Measurement of Spoken Language Training, Learning & Testing
CN101814024A (en) * 2009-10-23 2010-08-25 深圳创维-Rgb电子有限公司 Framework and tool for designing cross-platform 3D interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060023900A1 (en) * 2004-07-28 2006-02-02 Erhart George W Method and apparatus for priority based audio mixing
US20090204398A1 (en) * 2005-06-24 2009-08-13 Robert Du Measurement of Spoken Language Training, Learning & Testing
CN101042816A (en) * 2007-04-27 2007-09-26 重庆邮电大学 Interactive switching system and processing method based on SDL graphics relationship
CN101505365A (en) * 2009-02-25 2009-08-12 南京邮电大学 Real-time video monitoring system implementing method based on network television set-top box
CN101814024A (en) * 2009-10-23 2010-08-25 深圳创维-Rgb电子有限公司 Framework and tool for designing cross-platform 3D interface

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306099A (en) * 2011-08-23 2012-01-04 上海网达软件有限公司 Cross-platform graphic display method and graphic display system on handheld terminal equipment
CN102752368A (en) * 2012-05-31 2012-10-24 上海必邦信息科技有限公司 Method for improving interface remote display efficiencies and picture qualities between electronic equipment
CN103108244A (en) * 2013-01-31 2013-05-15 冠捷显示科技(厦门)有限公司 Method for virtualizing television system
CN103108244B (en) * 2013-01-31 2015-09-30 冠捷显示科技(厦门)有限公司 A television system virtualization approach
CN104796670A (en) * 2015-04-23 2015-07-22 安徽省道一电子科技有限公司 Cross-platform multiway realtime video processing system architecture based on flow line architecture
CN105739994A (en) * 2016-03-01 2016-07-06 深圳市茁壮网络股份有限公司 Vertical-screen television set display method and device and vertical-screen television set

Also Published As

Publication number Publication date Type
CN102158762B (en) 2013-03-27 grant

Similar Documents

Publication Publication Date Title
Lamberti et al. A streaming-based solution for remote visualization of 3D graphics on mobile devices
US5523769A (en) Active modules for large screen displays
US7290216B1 (en) Method and apparatus for implementing a scene-graph-aware user interface manager
US20060107229A1 (en) Work area transform in a graphical user interface
US20120127183A1 (en) Distribution Processing Pipeline and Distributed Layered Application Processing
US20130027404A1 (en) Systems, methods, and computer-readable media for managing collaboration on a virtual work of art
US20110314093A1 (en) Remote Server Environment
Schmalstieg et al. Bridging multiple user interface dimensions with augmented reality.
US20120092277A1 (en) Touch Support for Remoted Applications
US20120084517A1 (en) Shared Memory Between Child and Parent Partitions
US20100289804A1 (en) System, mechanism, and apparatus for a customizable and extensible distributed rendering api
US20100122184A1 (en) Method and System for Distributed Computing Interface
US20120086717A1 (en) Instant remote rendering
US20120081383A1 (en) Cross-environment user interface mirroring using remote rendering
US20120086716A1 (en) User interaction across cross-environment applications through an extended graphics context
US20120262379A1 (en) Gesture visualization and sharing between electronic devices and remote displays
US20120089992A1 (en) User interaction support across cross-environment applications
Jeong et al. High-performance dynamic graphics streaming for scalable adaptive graphics environment
US20100079480A1 (en) Methods and Systems for Per Pixel Alpha-Blending of a Parent Window and a Portion of a Background Image
US6392665B1 (en) Capture mechanism for computer generated motion video images
US7012606B2 (en) System and method for a unified composition engine in a graphics processing system
Funkhouser et al. Large-format displays
DeFanti et al. The OptIPortal, a scalable visualization, storage, and computing interface device for the OptiPuter
US20050055377A1 (en) User interface for composing multi-media presentations
US20050257137A1 (en) Animation review methods and apparatus

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model