Search found 741 matches

by pik33
Mon Oct 15, 2018 7:37 pm
Forum: Graphics
Topic: Camera using OpenMAX
Replies: 22
Views: 661

Re: Camera using OpenMAX

No, I didn't do anything like a screen capture, but it is of course possible to do. There should be a big red raspberry at the center of the screen. It is loaded from a bitmap in (boot)\Colors\Wallpapers directory. If there is no Colors\Wallpapers\rpi-logo.rbm there, then you will get a garbage fill...
by pik33
Mon Oct 15, 2018 10:22 am
Forum: General
Topic: Portable DVD
Replies: 1
Views: 39

Portable DVD

Nothing happens after connecting the portable DVD. Have I call API function or it is simply not supported? I added CDFS to the unit list. Bus 001 Device 004: ID 13fd:0840 Initio Corporation INIC-1618L SATA Couldn't open device, some information will be missing Device Descriptor: bLength 18 bDescript...
by pik33
Mon Oct 15, 2018 5:54 am
Forum: Graphics
Topic: Camera using OpenMAX
Replies: 22
Views: 661

Re: Camera using OpenMAX

Yes, the camera test run when "Disk C" icon is double clicked - I simply attached the code to the first (yet) unused icon :) as this is still an eaaly phase of testing. It seems I need to create an icon for the camera test code now :) --------- Edit: done. Now the camera test has a proper ...
by pik33
Sun Oct 14, 2018 1:18 pm
Forum: Graphics
Topic: Camera using OpenMAX
Replies: 22
Views: 661

Re: Camera using OpenMAX

Now I have what I wanted. After the camera filled the buffer I call fast (about 600 us) procedure which converts the picture from 1280x720 to 320x180. Then I call the next procedure which gets the original Y buffer in about 2 ms As the thing I am working on is supposed to work with IR light, I don't...
by pik33
Sun Oct 14, 2018 7:05 am
Forum: Graphics
Topic: Camera using OpenMAX
Replies: 22
Views: 661

Re: Camera using OpenMAX

As I am now experimenting with this stuff, I made a few backups of the camera code to have an unchanged reference available. This unit https://github.com/pik33/ultibo_retro_gui/blob/master/camera1.backup20181007.pas is now a reference which works. I use RPi3 and RPi3b+ for experimenting. TIcon48 is ...
by pik33
Sat Oct 13, 2018 2:28 pm
Forum: Graphics
Topic: Camera using OpenMAX
Replies: 22
Views: 661

Re: Camera using OpenMAX

An important detail:

The camera x resolution has to be multiply of 32 and y resolution has to be multiply of 16 or else the camera doesn't work.
by pik33
Fri Oct 12, 2018 9:02 am
Forum: Discussion
Topic: Understanding virtual addresses usage
Replies: 1
Views: 52

Understanding virtual addresses usage

I tried to use virtual address space. To test this, I wrote a procedure procedure remapram(from,too,size:integer); var Entry:TPageTableEntry; amount:integer; i:integer; begin amount:=(size div MEMORY_PAGE_SIZE); for i:= 0 to amount do begin Entry:=PageTableGetEntry(from+MEMORY_PAGE_SIZE*i); Entry.Vi...
by pik33
Mon Oct 08, 2018 11:04 am
Forum: Discussion
Topic: Stopwatch
Replies: 6
Views: 91

Re: Stopwatch

Threads are simple here :) First, declare your thread class. You need include threads unit to do it // in uses section add uses threads; // declare a class type TMyThread=class (TThread) private protected procedure Execute; override; public Constructor Create(CreateSuspended : boolean); end; Then yo...
by pik33
Mon Oct 08, 2018 8:05 am
Forum: General
Topic: RPI Zero W limitations
Replies: 10
Views: 274

Re: RPI Zero W limitations

About threads, are there system threads running by default? beside my main program?


Yes, they are. This means make the priority higher may (but may not) help.
by pik33
Mon Oct 08, 2018 7:44 am
Forum: General
Topic: RPI Zero W limitations
Replies: 10
Views: 274

Re: RPI Zero W limitations

Try to profile your code using clockgettotal ... var t:int64; ... t:=clockgettotal; // your code here t:=clockgettotal-t; your_function_for_writeln(t); This is a microsecond clock so you will get the code execution time, so you can determine if it is lua interpreter or something else Maybe you can t...

Go to advanced search