microMinded
Posts: 13
Joined: Tue May 21, 2013 5:46 pm

A+ Capabilities

Mon Dec 29, 2014 12:13 pm

Quick questions:

- Can the Model A+ run the 320x480 Touch LCD? My A13 Olinuxino had 256MB ram and it could barely run X and nothing else...

- Can the A+ Run the camera at full resolution, 5MP images and 1080P streaming?

- Can the Pi run Stellarium? If not are there any alternatives?

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: A+ Capabilities

Mon Dec 29, 2014 12:22 pm

2) Yes , because Hardware acceleration. Note that you cannot
do take video and stills at the same time. You need to
switch between modes (and back) and that can take a second.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26716
Joined: Sat Jul 30, 2011 7:41 pm

Re: A+ Capabilities

Mon Dec 29, 2014 12:27 pm

Stellarium, when I tried it, was very very slow. But I failed to get HW acceleration working (I think). It may be better if enabled, but it may be just as bad, depending on where the bottlenecks are. This was a couple of years ago - perhaps someone else has figured it out.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

mikerr
Posts: 2827
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: A+ Capabilities

Mon Dec 29, 2014 12:52 pm

ghans wrote: Note that you cannot
do take video and stills at the same time. You need to
switch between modes (and back) and that can take a second.
picamera can take video and stills at the same time by using the video port
http://picamera.readthedocs.org/en/late ... -recording
Android app - Raspi Card Imager - download and image SD cards - No PC required !

microMinded
Posts: 13
Joined: Tue May 21, 2013 5:46 pm

Re: A+ Capabilities

Mon Dec 29, 2014 4:56 pm

mikerr wrote: picamera can take video and stills at the same time by using the video port
http://picamera.readthedocs.org/en/late ... -recording
That's a pretty nifty trick! it's even able to capture at two different resolutions. Is this a feature of the API or a capability built into the imaging sensor?

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: A+ Capabilities

Mon Dec 29, 2014 5:04 pm

picamera uses the MMAL C API , which itself is built on
the OpenMAX IL C API. The talk about "components" and
"ports" is OpenMAX lingo , so i guess it is a API feature
exposed in a more comfortable way.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

microMinded
Posts: 13
Joined: Tue May 21, 2013 5:46 pm

Re: A+ Capabilities

Tue Dec 30, 2014 4:00 pm

6.3. The preview doesn’t work on my PiTFT screen
The camera’s preview system directly overlays the Pi’s output on the HDMI or composite video ports. At this time, it will not operate with GPIO-driven displays like the PiTFT.
I assume this means there will be no preview across a VNC connection? Or does VNC copy/compress and stream the video buffer directly?

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: A+ Capabilities

Tue Dec 30, 2014 4:01 pm

Thats right , VNC cannot display the camera preview either.


ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

microMinded
Posts: 13
Joined: Tue May 21, 2013 5:46 pm

Re: A+ Capabilities

Tue Dec 30, 2014 6:37 pm

Well that throws a wrench into the plans as I was originally going to use an SPI LCD or VNC...

Do you know if the cameras output is being transferred DMA style directly to the GPU's internal memory or if its being written to a memory mapped location?

If its a MMAP block transfer I could theoretically copy the data from the same memory location into a false dev device. If its directly into GPU memory then I would need to setup a circular buffer the size of the the YUV full frame and constantly record video and then access that block device.

Anybody done work that that yet?

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: A+ Capabilities

Tue Dec 30, 2014 6:39 pm

Well , there is a workaround :
https://github.com/notro/fbtft/wiki/Fra ... -mirroring

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26716
Joined: Sat Jul 30, 2011 7:41 pm

Re: A+ Capabilities

Tue Dec 30, 2014 7:20 pm

microMinded wrote:Well that throws a wrench into the plans as I was originally going to use an SPI LCD or VNC...

Do you know if the cameras output is being transferred DMA style directly to the GPU's internal memory or if its being written to a memory mapped location?

If its a MMAP block transfer I could theoretically copy the data from the same memory location into a false dev device. If its directly into GPU memory then I would need to setup a circular buffer the size of the the YUV full frame and constantly record video and then access that block device.

Anybody done work that that yet?
It's all done on the GPU, the camera ISP is composited in real time by the HVS hardware block. It's the only way it can be done fast enough. Moving data to and from the ARM at that speed isn't possible at full frame rate.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

microMinded
Posts: 13
Joined: Tue May 21, 2013 5:46 pm

Re: A+ Capabilities

Tue Dec 30, 2014 9:12 pm

ghans wrote: Well , there is a workaround :
Interesting framebuffer mirroring but the preview only exists in silicon so it wont help this case.
jamesh wrote: It's all done on the GPU, the camera ISP is composited in real time by the HVS hardware block. It's the only way it can be done fast enough. Moving data to and from the ARM at that speed isn't possible at full frame rate.
Guess i'm going to look into my ring buffer idea then.

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: A+ Capabilities

Tue Dec 30, 2014 9:44 pm

fbcp should work for the camera preview , it works with
most other programs which use GPU accelaration by using
a Pi-specific API to grab screenshots.

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: A+ Capabilities

Tue Dec 30, 2014 10:18 pm

ghans wrote:fbcp should work for the camera preview
It does.

microMinded
Posts: 13
Joined: Tue May 21, 2013 5:46 pm

Re: A+ Capabilities

Tue Dec 30, 2014 11:16 pm

ghans wrote:fbcp ... Pi-specific API to grab screenshots.
I didn't get that from a cursory read over of the page, but I am glad it does. I will look at its code on how it is grabbing the camera preview as if its all done in silicon their should be no possible way to read it. Their might be a memory map hidden in there somewhere.

But for 2% CPU loss for a full framebuffer copy why reinvent the wheel, lol.

Return to “Beginners”