2010-04-06 04:29:19     Looking for sample for capturing video (PPI/DMA) on BF548

Document created by Aaronwu Employee on Aug 21, 2013
Version 1Show Document
  • View in full screen mode

2010-04-06 04:29:19     Looking for sample for capturing video (PPI/DMA) on BF548

Zev Ovnat (ISRAEL)

Message: 88139   

 

Hi!

 

I'm a newbie with ucLinux on the Blackfin, though I've written extensively using Analog's Visual DSP++.

 

Can someone point me in the right direction for finding simple sample code for the BF548 - getting video usng the PPI and DMA transfers.

 

It would be wonderful if something like "...\VisualDSP 5.0\Blackfin\Examples\ADSP-BF533 EZ-KIT Lite\Video Input (C)" was available for the Linux platform (but for BF548, of course)...

 

 

Thanks!

 

Zev

QuoteReplyEditDelete

 

 

2010-04-06 07:15:27     Re: Looking for sample for capturing video (PPI/DMA) on BF548

Yi Li (CHINA)

Message: 88144   

 

Zev,

 

There are some camera drivers for Blackfin, see:   docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:v4l_blackfin_camera

 

-Yi

QuoteReplyEditDelete

 

 

2010-04-06 10:09:02     Re: Looking for sample for capturing video (PPI/DMA) on BF548

Zev Ovnat (ISRAEL)

Message: 88149   

 

Thanks Yi...

 

The link, however, doesn't lead to the driver...

 

Zev

QuoteReplyEditDelete

 

 

2010-04-06 11:55:27     Re: Looking for sample for capturing video (PPI/DMA) on BF548

Zev Ovnat (ISRAEL)

Message: 88153   

 

Hi,

 

BDR is an Analog Devices partner and manufactures BF548 based cameras (with various Micron sensors).

 

Up to now, we've been building our applications using VisualDSP.

 

We would like to provide our customers with the option of implementing custom user functions independently.

 

The complexity of VisualDSP LDF's makes this virtually impossible.

 

We are, therefore, attempting to provide a simple ucLinux platform for this process.

 

While I'm able to build and run the ffmpeg example, I'm having trouble isolating the BlackFin kernel from the bewildering mass of ffmpeg stuff and writing a simple app that captures frames and transmits them to a client by means of UDP or TCP/IP.

 

Locating the 'bfin' folder is obvious - but I have no idea how to whittle the ffmpeg project down to something manageable. In addition, I cannot find all the basic stuff I'd expect to find - such as configuring PPI/DMA transfer etc.

 

It would be wonderful if something like "...\VisualDSP 5.0\Blackfin\Examples\ADSP-BF533 EZ-KIT Lite\Video Input (C)" was available for the Linux platform...

 

Any help/advice on this would be greatly appreciated.

 

Sincerely,

 

Zev Ovnat

QuoteReplyEditDelete

 

 

2010-04-07 00:45:09     Re: Looking for sample for capturing video (PPI/DMA) on BF548

Sonic Zhang (CHINA)

Message: 88157   

 

You can find all available video4linux camera driver under linux-2.6.x/drivers/media/video/blackfin .

 

The way to capture video in your application is through V4L APIs. You can find the documents at   www.linuxtv.org/downloads/video4linux/API/V4L2_API/ and the sample code at   www.linuxtv.org/downloads/video4linux/API/V4L2_API/v4l2spec/capture.c

QuoteReplyEditDelete

 

 

2010-04-07 00:46:39     Re: Looking for sample for capturing video (PPI/DMA) on BF548

Sonic Zhang (CHINA)

Message: 88158   

 

You should also take care of the V4L API version 1 or version 2 according to the driver you decide to use.

QuoteReplyEditDelete

 

 

2010-04-08 03:01:36     Re: Looking for sample for capturing video (PPI/DMA) on BF548

Zev Ovnat (ISRAEL)

Message: 88213   

 

Thanks!

 

Is there by any chance, in addition to 'capture.c', an example 'main.c' and a makefile?

 

If no makefile is available, would 'ffmpeg's makefile - modulo minor changes - work?

 

Zev

Attachments

    Outcomes