XTask mod - help newbie =)

Re: XTask mod - help newbie =)

Postby kostett » November 1st, 2010, 3:59 pm

kucink132, thank you very much, I try to use this code in my xtask mod some time later =) because at this moment I occupied by making inNSDinfo.. thank you)
(:
User avatar
kostett
Rada Pemalu
 
Posts: 17
Joined: October 27th, 2010, 9:16 pm
Location: Russian Federation, Arkhangelsk city

Re: XTask mod - help newbie =)

Postby kokakokbrut » November 1st, 2010, 4:53 pm

code like linux elf :D
@mas kucink
itu di sintak bagian mana nya ya ?
HIDUP PERSIB
HIDUP VIKING
User avatar
kokakokbrut
VIP Member
 
Posts: 1805
Joined: November 21st, 2009, 3:33 pm
Location: Bandung <-> Ciamis

Re: XTask mod - help newbie =)

Postby ilham » November 1st, 2010, 7:28 pm

Khan pakai bahasa C Kang, jadi ya linux juga.
User avatar
ilham
Site Admin
 
Posts: 3037
Joined: December 29th, 2009, 1:22 am
Location: Tangerang

Re: XTask mod - help newbie =)

Postby kucink132 » November 1st, 2010, 8:28 pm

kokakokbrut wrote:code like linux elf :D
@mas kucink
itu di sintak bagian mana nya ya ?


kurang ngerti pertanyaannya mas :D

file elf emang standar linux(Executable and Linkable Format), tapi gak harus linux yang menjalankan file tersebut. Elf itu standar format file executable yang multi platform. Kalo .EXE biasanya kan untuk arsitektur x86, IA-32, IA-64, kalo Elf bisa buat arsitektur SPARC, MIPS, ARM(SGold Siemens), dll
User avatar
kucink132
Rada Pemalu
 
Posts: 11
Joined: October 13th, 2010, 8:00 pm

Re: XTask mod - help newbie =)

Postby Budi_XP » November 1st, 2010, 8:46 pm

andRa4 wrote:Image
LIKE THIS :x
I will try to change my M65 to be like the picture above

like this too
kapan punya ya :-O :-O :-O :-O
A35,A50,A55,A65,A75,C35,C45,C55,C65,CX65,CX70,C75,CX75,M35,ME45,ME45(Funky Orange)(Bogner),M55,M65(4),M65 Rescue,ME75(3),M75(2),S35,S45,Sl45(5)Sl42,S65(2),SX1(8),SX66,SXG75(2),S75(BW,BL)SK65, SK6R(2),SX45,SX56,Siemens PLT830,Motorola E1000
DOPOD 818Pro
User avatar
Budi_XP
Gaul
 
Posts: 1211
Joined: December 2nd, 2009, 6:40 pm
Location: BARLINGMASCAKEB

Re: XTask mod - help newbie =)

Postby kokakokbrut » November 2nd, 2010, 12:47 am

kucink132 wrote:kurang ngerti pertanyaannya mas :D


kucink132 wrote:here i give an ilustration for decoloring animation(the one that make screen goes from color to black-and-white)

Code: Select all
// this is pseudocode, for ilustrational purposes
// Author: Oky Firmansyah. 2010


unsigned int AnimationDuration;// for storing duration

void startDecoloringAnimation()          // this function is called by event manager
{
    AnimationDuration=100;               // set animation duration
    KERNEL_Resume(DecoloringAnimation);  // call main animation loop asynchronously(Siemens OS is single thread, cooperation pre-emptive)
}

void DecoloringAnimation()
{
    unsigned char x, y;
    for(x=0;x<132;x++)
        for(y=0;y<176;y++)
        {
            unsigned char redVal;         // for storing how red a pixel is
            unsigned char greenVal;       // for storing how green a pixel is
            unsigned char blueVal;        // for storing how blue a pixel is
            unsigned char alphaVal;       // for storing alpha transperency of one pixel
            unsigned int  compositeVal;   // for storing all color and transperency value in 32-bit word

            compositeVal=getPixel(x, y);       // please refer to elf library for actual function
            redVal=extract_red(compositeVal);  // please refer to elf library for actual function
            blueVal=extract_blue(compositeVal);// please refer to elf library for actual function
            greenVal=extract_green(compositeVal);// please refer to elf library for actual function
            alphaVal=extract_alpha(compositeVal);// please refer to elf library for actual function
           
            redVal=redVal*k+greenVal+blueVal/(k+2);   // you can experiment with any k value(>2)
            greenVal=greenVal*k+redVal+blueVal/(k+2);
            blueVal=blueVal*k+greenVal+redVal/(k+2);
            compositeVal=combineRGB(redVal, greenVal, blueVal, alphaVal);
            setPixel(x, y, compositeVal);     // store new value
        }
    AnimationDuration=AnimationDuration-1;
    if(AnimationDuration)
        KERNEL_Resume(DecoloringAnimation); // continue loop, call asynchronously, please refer to elf library
}


nah maxudnya souce code yang ini dari file yg mana ya mas ?
ane lagi belajar ubek" elf

@kostett
I'm sorry i'm using my language in your thread :D. but i will translate if you want :D
HIDUP PERSIB
HIDUP VIKING
User avatar
kokakokbrut
VIP Member
 
Posts: 1805
Joined: November 21st, 2009, 3:33 pm
Location: Bandung <-> Ciamis

Re: XTask mod - help newbie =)

Postby kucink132 » November 2nd, 2010, 12:21 pm

@kokakokbrut

you can put it in main XTask source code, make sure you call startDecoloringAnimation() function before or after XTask GUI shown
User avatar
kucink132
Rada Pemalu
 
Posts: 11
Joined: October 13th, 2010, 8:00 pm

Re: XTask mod - help newbie =)

Postby ilham » November 2nd, 2010, 2:18 pm

@All: Kalau sudah jadi share ya XTask SGold-nya! TQ.
User avatar
ilham
Site Admin
 
Posts: 3037
Joined: December 29th, 2009, 1:22 am
Location: Tangerang

Re: XTask mod - help newbie =)

Postby kokakokbrut » November 2nd, 2010, 11:22 pm

Code: Select all
for(x=0;x<132;x++)
        for(y=0;y<176;y++)

132 x 176 = total pixel in SGold LCD?
if that is true, i think your XTask mod run on Sgold type. and New Sgold LCD pixel is bigger than SGold. and then value of x and y must be change.
is it right ?
HIDUP PERSIB
HIDUP VIKING
User avatar
kokakokbrut
VIP Member
 
Posts: 1805
Joined: November 21st, 2009, 3:33 pm
Location: Bandung <-> Ciamis

Re: XTask mod - help newbie =)

Postby TUFF Stough » November 3rd, 2010, 9:09 am

Screen resolution for S75 = M65 = 176 x 132
TUFF Stough
VIP Member
 
Posts: 637
Joined: December 4th, 2009, 6:11 pm

PreviousNext

Return to ELF

cron