MP4 Nation Forums
Back to MP4 Nation - The MP4 Nation Blog - The Raz Special - Themes

It is currently Fri May 24, 2013 2:43 am

All times are UTC + 8 hours




Post new topic Reply to topic  [ 57 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
PostPosted: Tue Jul 08, 2008 6:23 am 
Offline
Senior Member
User avatar

Joined: Sun Sep 30, 2007 2:50 pm
Posts: 20627
i subscribed by pure persistence and you have to do it without google as it interferes with the registration, just copy and paste anything that you don't understand into google translate and it will translate it for you (even if it looks like question marks, its still chinese underneath)

well i cant download it (need 50 posts) and i don't have that yet, but from what i have read i cant really see what they are doing, a little seems to be someone harping on about transparency and alpha but getting mixed up, because the firmware can have transparent icons they think its alpha, but its not rue alpha, just a solid color to select and replace as transparent

i may be wrong here but i really do not think this is what it seems, but i may be wrong, maybe the code the guy has written takes in png images and processes them internally to BMP images, replacing the transparent areas with green????????

this is a snippit of code from the imagesearcher, and it seems to be all that it is, no UI for it from what i can gather

what this is doing is looking in the firmware and generating an LST file for use in the original tool we used called the image search editor, this is a text file that you load into the editor that basically is a list of all the images in the firmware, so what this has to do with PNG files i am not sure at all on the searcher at all, might be a red herring.

the imagesearcheditor has been overtaken by the rkuieditor, but this tool could be good as if it does generate the list automatically, (used to have to do it manually|) then what that means is we can export all the images out of the firmware as bmp images as templates

Code:
namespace T50ImageSearcher
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btOpen_Click(object sender, EventArgs e)
        {
            int i=1;
            long picOffset=0;
            long offset = 0;
            string firmName = "E:\\TL-T50\\TL-T50.RKW";
            string lstFileName = "E:\\TL-T50\\TL-T50.RKW.lst";
            string tmpStr = "";
            FileStream fileFirm = File.Open(firmName, FileMode.Open);
            StreamWriter lstFile = new StreamWriter(lstFileName);
            Bitmap picTmp;
            do{
                picTmp=getBitmapFromFirmWare(fileFirm, offset,out picOffset);
                if (picTmp!=null){
                    offset = picOffset+1;
                    picTmp.Save("E:\\TL-T50\\Pic"+Convert.ToString(i)+".bmp";
                    tmpStr="Pic"+Convert.ToString(i)+","+Convert.ToString(picOffset+8,16)+","+Convert.ToString(picTmp.Width)+"x"+
                        Convert.ToString(picTmp.Height)+",32,"+fileFirm.Name;
                    i++;
                    lstFile.WriteLine(tmpStr);
                    lstFile.Flush();
                }
            }while(picTmp!=null);
            fileFirm.Close();
            lstFile.Close();
        }

        private bool isBitmapPosition(FileStream inputFile,long offset,out int width,out int height)
        {
            byte[] dataBuff=new byte[8];
            width = 0;
            height = 0;
            inputFile.Seek(offset, SeekOrigin.Begin);
            inputFile.Read(dataBuff, 0, 8) ;
            if (dataBuff[4] == 0x20 && dataBuff[5] == 0x00&& dataBuff[6]==0x00&&dataBuff[7]==0x00)
            {
                width = dataBuff[1] * 256 + dataBuff[0];
                height = dataBuff[3] * 256 + dataBuff[2];
                if (width < 300 && height < 500 && width>0 && height>0)
                {
                    return true;
                }
            }
            return false;
        }

        private Bitmap creatBitmapFromFirm(FileStream inputFile, long offset,int picWidth, int picHeight)
        {
            Bitmap tmpBitmap = new Bitmap(picWidth, picHeight,PixelFormat.Format32bppRgb);
            int i = 0;
            for (i = 0; i< picHeight * picWidth;i++)
            {
                inputFile.Seek(offset+i)*4), SeekOrigin.Begin);
                byte[] dataBuff=new byte[4];
                inputFile.Read(dataBuff,0,4);
                Color tmpColor = Color.FromArgb(dataBuff[2], dataBuff[1], dataBuff[0]);
                tmpBitmap.SetPixel(i % picWidth, i / picWidth, tmpColor);
            }
            return tmpBitmap;
        }

        private Bitmap getBitmapFromFirmWare(FileStream inputFile, long offset ,out long picOffset)
        {
            long i = offset;
            int picWidth=0;
            int picHeight=0;

            Bitmap tmpBmp;
            for (; i < inputFile.Length-8; i++)
            {
                if (isBitmapPosition(inputFile, i,out picWidth,out picHeight))
                {
                    picOffset = i;
                    tmpBmp = creatBitmapFromFirm(inputFile, i + 8, picWidth, picHeight);
                    return tmpBmp;
                }
            }
            picOffset = -1;
            return null;
        }
    }
}

_________________

  • Phone: Samsung Galaxy Mini / Huawei G300 (just ordered)
  • Fav App: Strava, IMDB, Jewels
  • Portable Audio: currently none
  • Headphones PC: Brainwavz HM5
-------------------------------------------------------------
  • MP4nation webstore: Here


Top
 Profile  
 
PostPosted: Tue Jul 08, 2008 6:30 am 
Offline
Senior Member

Joined: Tue May 27, 2008 10:54 pm
Posts: 257
Location: SC
what i thought from reading is they're using something to replace bmp with png...

_________________
Image


Top
 Profile  
 
PostPosted: Wed Jul 09, 2008 3:12 am 
Offline
Senior Member

Joined: Tue May 27, 2008 10:54 pm
Posts: 257
Location: SC
but maderin...im sure that it do not translate the transparency into a green because if i open their modded bmp0.bin the images have black instead of green transparency...some of them already have finished modding the whole theme including the small icons just by raplacing the bmp wih png with transparency...

_________________
Image


Top
 Profile  
 
PostPosted: Wed Jul 09, 2008 4:32 am 
Offline
Senior Member
User avatar

Joined: Sun Sep 30, 2007 2:50 pm
Posts: 20627
lordwin wrote:
but maderin...im sure that it do not translate the transparency into a green because if i open their modded bmp0.bin the images have black instead of green transparency...some of them already have finished modding the whole theme including the small icons just by raplacing the bmp wih png with transparency...

yep, i see what you mean but it all does not make real sense to me and also if these are PNG images in the firmware in theory the rkui tool sjould not be able to display them as it only looks for bitmap files

i have the 4gb version of the player and i will load that firmware on my player and see what its all about, maybe they have done a few trick with the png images and background images - i will load up teclast firmware and see

do not load teclast firmware if your player is 8gb version

test later

maderin1

_________________

  • Phone: Samsung Galaxy Mini / Huawei G300 (just ordered)
  • Fav App: Strava, IMDB, Jewels
  • Portable Audio: currently none
  • Headphones PC: Brainwavz HM5
-------------------------------------------------------------
  • MP4nation webstore: Here


Top
 Profile  
 
PostPosted: Wed Jul 09, 2008 5:40 am 
Offline
Senior Member
User avatar

Joined: Sun Sep 30, 2007 2:50 pm
Posts: 20627
well i loaded the teclast firmware and all went fine then i loaded the BMP0 file you found, only problem was the the BMP0 file is for an older version of the firmware - DOH!! - so al the images were all over the place

so, failed so far on that score

also got to play around with TTS, funny stuff and loads of setting, chinese or american ladies voice (american called Terry in the list), speed, pitch, punctuation etc, dead funny, not relly that useful as it sounds lke a robot speaking, but could be useful if you want to walk and listen to you emails maybe, anyway i think all he files for this are already in the s:flo firmware its just that th ebuttons have been disabled.

_________________

  • Phone: Samsung Galaxy Mini / Huawei G300 (just ordered)
  • Fav App: Strava, IMDB, Jewels
  • Portable Audio: currently none
  • Headphones PC: Brainwavz HM5
-------------------------------------------------------------
  • MP4nation webstore: Here


Top
 Profile  
 
PostPosted: Wed Jul 09, 2008 6:06 am 
Offline
Senior Member

Joined: Tue May 27, 2008 10:54 pm
Posts: 257
Location: SC
maderin..here's one modded firmware for the latest firmware 1.07 for teclast t50...not for 8gb sflo users...

http://www.sendspace.com/file/wux79j

here's the link on how it looks like!
this one change almost every icons...even the small ones...

http://209.85.135.104/translate_c?hl=en ... WMRa2WTyGw

the images that he used is screenshots of the actual icons in his player...and it looks real perfect...when i try to open it with the older rkuieditor which opens bmp0.bin...the comic icons has black background and the theme 2 icons don't show up properly...they really have another way of doing this...maybe we should ask raz to ask the factory or he may have an account to download at teclast site...

here's the turorial for making his theme..

http://209.85.135.104/translate_c?hl=en ... UwfAaQxqMQ

maybe we could ask raz to download attachments on this page...

_________________
Image


Top
 Profile  
 
PostPosted: Wed Jul 09, 2008 7:01 am 
Offline
Senior Member
User avatar

Joined: Sun Sep 30, 2007 2:50 pm
Posts: 20627
well lordwin, all your hard work has paid off. I have installed the files you found and it is SWEEEET

The icons look superb and certainly are crisp, the second theme has white icons with a white reflection on them and you can clearly see through the reflection as it fades out to the back image below, this was impossible with bitmaps

i do not know how this has been done but i has been and i would love to get hold of the editor and have a go

Most of the images have been changed and the whole thing looks smart and very professional, if we had this ability, theming these players would be so much better

i hope teclast and the factory give this person a call and ask how its done, because the whole feel of the player gains an extra notch in the quality department with this system

well done for all your hard work so far on this and i am sure the program will become available somewhere soon and sorry for doubting you on this, your persistence has so far paid dividends

i hope we get this program soon, life would be so much quicker if we could


GOOD WORK - and of sourse thanks to BQXY on the teclast forums for this, i just tried to leave an invite and thanks but the forum keeps throwing me out :(

_________________

  • Phone: Samsung Galaxy Mini / Huawei G300 (just ordered)
  • Fav App: Strava, IMDB, Jewels
  • Portable Audio: currently none
  • Headphones PC: Brainwavz HM5
-------------------------------------------------------------
  • MP4nation webstore: Here


Top
 Profile  
 
PostPosted: Wed Jul 09, 2008 7:11 am 
Offline
Senior Member

Joined: Tue May 27, 2008 10:54 pm
Posts: 257
Location: SC
ohhhh....maderin...thanks for the update...i'm really excited about this even though i don't have a player yet (don't have money)LOL...good to know about this...makes me so excited...i'm thinking of waiting for the m26...makes modding a whole lot easier and look better...

Quote:
i hope teclast and the factory give this person a call and ask how its done, because the whole feel of the player gains an extra notch in the quality department with this system


i think that the user posted the thing that he uses and the tutorial but the only problem is we cannot download or see any attchments because we need to be registered and at least have 50 posts...there's another user that replaced evry icon but ddn't post any link and he used the same method...i'm sure its on teclast forum so all we need is somebody who can download it...

_________________
Image


Top
 Profile  
 
PostPosted: Wed Jul 09, 2008 7:40 am 
Offline
Senior Member
User avatar

Joined: Sun Sep 30, 2007 2:50 pm
Posts: 20627
i have sent an email to "bqxy" on the teclast bbs and invited them to our forum so they may help us get the program, hopefully they will visit, i also asked permission to host the modded file they created on our forum

_________________

  • Phone: Samsung Galaxy Mini / Huawei G300 (just ordered)
  • Fav App: Strava, IMDB, Jewels
  • Portable Audio: currently none
  • Headphones PC: Brainwavz HM5
-------------------------------------------------------------
  • MP4nation webstore: Here


Top
 Profile  
 
PostPosted: Wed Jul 09, 2008 7:41 am 
Offline
Senior Member

Joined: Tue May 27, 2008 10:54 pm
Posts: 257
Location: SC
do they speak english???LOL...NEVER THOUGHT OF DOING THAT...other people just put their e mail address...i guess that means send it to them...just have to wait again...

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 57 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC + 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group