Fujitsu DTV/STB solution driver (FAPex driver) Documentation [V01L00R00]


OSD Demo Application

Table of Contents

Introduction
Making application
Running application
Command Usage

Back to top

Introduction

The fapex_osd_demo is a simple automated OSD demonstrator application which shows the general usage of the PAINT library to display OSD layers and the Cursor Plane. It also makes use of the DRAW library in order to display bitmap picture files on the OSDs and on the Cursor Plane. The bitmap picture files should be registered in ./data folder.
This is located in the "FAPexU_V01L00R00/sample_application/fapex_osd_demo" subfolder.

Back to top

Making application

This application is compiled with the following fapex_subsystems libraries.

basically libraries
libdraw libfapex_abst libfontserver libosdhandler libvcl

selectable libraries
In case of using Bitmap font for character display ( The optional setting of Makefile: USE_FREETYPE=0 )
libfontserver_engine_fbf libfbf

In case of using TrueType font for character display ( The optional setting of Makefile: USE_FREETYPE=1 )
libfontserver_engine_ft libftf libfreetype2

This application is compiled with shared libraries by make command in default setting.
If you select the compiling with static libraries, you should change setting of Makefile to "LIBTYPE=static".

This application is builded with the following commands after above necessary setting.

 $ cd FAPexU_V01L00R00/sample_application/fapex_osd_demo
 $ make
Back to top

Running application

After kernel booting, this application is executed by the following commands.

 # ./insmodall.sh
 # ./fapex_osd_demo

In addition, you can set arguments as follows.

./fapex_osd_demo [-s hd_mode sd_mode(optional)]

This "-s" option set the video output mode.
The "hd_mode" is a value according to VIDEO_HdEncoderT. This defalut value is VIDEO_1920x1080x50I(6).
The "sd_mode" is a value according to VIDEO_SdEncoderT. This defalut value is VIDEO_PAL(4).
Back to top

Command Usage

The OSD demo automatically displays images continuously.
Additionally, within the OSD demo itself, the following commands may be used:

Operation Command

 ( layerIndex ... 1:OSD1 / 2:SD2 / 3:Cursor Plane )

  • alpha <layerIndex> <alphaValue>
    This command changes the global alpha value of the target layer. The range of alphaValue is 0..255.
  • back <Y value> <Cr value> <Cb value>
    This command set the background color. The range of each "elements value" is 0..255.
  • clut <layerIndex>
    This command displays the color map for CLUT of the target layer.
  • enable <layerIndex>
    This command enables or disables the display of the target layer.
  • end
    This command will end optional test pattern and start the automated OSD demonstration.
    This optional test pattern commands are 'clut', 'font', 'move', 'pause' and 'rect'.
  • exit
    This command exits the application.
  • fade <layerIndex>
    This command makes fading the display of the target layer.
  • font <layerIndex>
    This command displays characters included in current font to the target layer continuously.
    The target layer is either OSD1 or OSD2.
  • hilight
    This command switches the hilight of Cursor Plane.
  • move or
  • move <deltaX> <deltaY>
    This command moves the display position of the target layer continuously.
    If each initial delta value (deltaX, deltaY) are not set, these are set random. When position of the target layer reaches the edge, these will be set random again.
  • order or
  • order <OSD1 order> <OSD2 order> <Cursor Plane order>
    This command set the layer order. The range of "order value" is 0..3. The bigger value layer will be front.
    If each "order value" are not set, these order are set random.
  • pause
    This command pauses the automated OSD demonstration.
  • rect or
  • rect <layerIndex>
    This command will continuously draw random rectangle with current color mode.
    If layerIndex is not set, it is selected automatically. However, this commands may fail by lack of memory.
  • resize <scale ratio> or
  • resize <X scale ratio> <Y scale ratio>
    This command scales display of the target layer.
    If both of "X and Y scale ratio" are not set, X and Y scaler value are equal.
Back to top


Copyright © 2006-2010 by Fujitsu Semiconductor Europe GmbH
Copyright © 2008-2010 by Fujitsu Semiconductor Limited

Disclaimer:
Please note that the use of this has been based on the terms and conditions of "DK Consent Letter (For Linux)" agreement between you and Fujitsu Semiconductor Limited.
The contents of this document may be revised without prior notice. Contact our sales department for confirmation. The information in this document are presented as is, no license is granted by implication or otherwise.
More...

FUJITSU sales representatives