DSPRelated.com
Forums

Real-time video

Started by matt...@yahoo.co.uk August 21, 2006
I have a Blackfin BF533 and am wanting to pass video through *almost* real-time, with small image processing happening on the way. This processing is things such as inverting, or simple digital zoom. I am looking for help with outputting the frames stored in memory from a video input code example found with the VisualDSP++ 4.5 software. Any help greatly appreciated. I have also watched the video tutorials on the Analog website, but have found them not very useful in this case.

Thanks,
Matt
You cannot do this with the BF533 EZ KIT lite hardware as is. You will need to use the BF561 kit or prototype the required hardware and interface it to the BF533 EZ-KIT using the EZ extender board from ADI.

Bottom line the BF533 EZ-KIT Lite hardware isn't capable of "passing" through video.

Anybody else want to comment on this?

m...@yahoo.co.uk wrote:
I have a Blackfin BF533 and am wanting to pass video through *almost* real-time, with small image processing happening on the way. This processing is things such as inverting, or simple digital zoom. I am looking for help with outputting the frames stored in memory from a video input code example found with the VisualDSP++ 4.5 software. Any help greatly appreciated. I have also watched the video tutorials on the Analog website, but have found them not very useful in this case.

Thanks,
Matt

---------------------------------
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.
Matt,

If you have code for the BF533 it isn't lost. Depending on what you've done it's an easy port over to the BF561.

I think you are approaching the finish line now.

Since the BF561 has two PPI ports you can set one up as an input and the other as an output. If you are going to have to set up some software buffers in SDRAM. YOu will have lets say a capture buffer, workspace buffer #1, workspace buffer #2, and output frame buffer. You will have to adjust the core clock to your liking depending on your algorithms but that is straight simple. After you capture a frame move it to workspace buffer #1 so you can free up the capture buffer to capture the next incoming frame. Then use your routines to bring in the video frame in workspace buffer #1 to perform your tasks and dump the results in workspace #2. You can manage the workspace buffers how you like but you will need to double buffer things or you will get choppy video. Before you run your code you will have to set-up the digital video timing code to get the encoder to properly display your results. Do this such that you have a template in the output frame buffer so when you get your
results in workspace #2 completed you can do a DMA block transfer to the output buffer and the DMA transfer that out the second PPI port.

You may want to read the EE Note 276 (EE-276) the will explain how to set up the memory structure to yield the best performance. The setup the digital timing codes for the output video the PPI section of the manual explains how to organize the timing codes correctly. I believe it is under ITU-656 Overview section in the PPI chapter.

If you have the memory to spare you could just copy the captured frame in full frame mode over to the output buffer and then just write over the active video region. That would save you having to write software to create the digital timing codes.

If anyone has a better way please chime in.

Matt Watts wrote:
Hi again Gabriel,

Sorry I realised when I received your reply that you'd
said that before-my apologies, info went straight
through me!OK, so assuming I were to purchase the
BF561 EZ Kit, I have been looking at the video_in_out
project already acquired from Analog. It specifically
says in the readme that no processing is done on the
video being passed through, but also gives no clue as
to where to put this image processing code (most of
which I have already done in vain with the BF533). Any
help very gratefully welcomed as always,

Matt

--- Gabriel Abreo wrote:

> You cannot do this with the BF533 EZ KIT lite
> hardware as is. You will need to use the BF561 kit
> or prototype the required hardware and interface it
> to the BF533 EZ-KIT using the EZ extender board from
> ADI.
>
> Bottom line the BF533 EZ-KIT Lite hardware isn't
> capable of "passing" through video.
>
> Anybody else want to comment on this?
>
> m...@yahoo.co.uk wrote:
> I have a Blackfin BF533 and am wanting to
> pass video through *almost* real-time, with small
> image processing happening on the way. This
> processing is things such as inverting, or simple
> digital zoom. I am looking for help with outputting
> the frames stored in memory from a video input code
> example found with the VisualDSP++ 4.5 software. Any
> help greatly appreciated. I have also watched the
> video tutorials on the Analog website, but have
> found them not very useful in this case.
>
> Thanks,
> Matt
>
>
> ---------------------------------
> Do you Yahoo!?
> Get on board. You're invited to try the new Yahoo!
> Mail Beta.

___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1/min.
Hi Guys,
You can definitely do video on BF533 EZ-KIT!
J8 has three Video outputs, directly taken from DAC outputs of ADV7171
on-board.
You will have to write PPI driver to get video output in CCIR656 thrown out
of PPI of Blackfin BF533.

Best Regards,
Harish

-----Original Message-----
From: Gabriel Abreo [mailto:a...@yahoo.com]
Sent: Monday, August 21, 2006 7:18 PM
To: m...@yahoo.co.uk; a...
Subject: Re: [adsp] Real-time video

You cannot do this with the BF533 EZ KIT lite hardware as is. You will
need to use the BF561 kit or prototype the required hardware and interface
it to the BF533 EZ-KIT using the EZ extender board from ADI.

Bottom line the BF533 EZ-KIT Lite hardware isn't capable of "passing"
through video.

Anybody else want to comment on this?

m...@yahoo.co.uk wrote:
I have a Blackfin BF533 and am wanting to pass video through *almost*
real-time, with small image processing happening on the way. This processing
is things such as inverting, or simple digital zoom. I am looking for help
with outputting the frames stored in memory from a video input code example
found with the VisualDSP++ 4.5 software. Any help greatly appreciated. I
have also watched the video tutorials on the Analog website, but have found
them not very useful in this case.

Thanks,
Matt

----
--
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.

-------------------DISCLAIMER------------------
The information transmitted herewith is confidential and proprietary information intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.
--------------------
I think you misunderstood him. Hes saying that you cant do
"passing through" video on the BF533 EZ KIT. You can only have video in
or video out, but not the 2 at the same time.

I have a BF533 EZ KIT but havent played a lot with it, so I cant
confirm or deny his affirmation.

Daniel Mendes

Harish N S escreveu:
>
> Hi Guys,
> You can definitely do video on BF533 EZ-KIT!
> J8 has three Video outputs, directly taken from DAC outputs of ADV7171
> on-board.
> You will have to write PPI driver to get video output in CCIR656
> thrown out of PPI of Blackfin BF533.
>
> Best Regards,
> Harish
>
>
> -----Original Message-----
> *From:* Gabriel Abreo [mailto:a...@yahoo.com]
> *Sent:* Monday, August 21, 2006 7:18 PM
> *To:* m...@yahoo.co.uk; a...
> *Subject:* Re: [adsp] Real-time video
>
> You cannot do this with the BF533 EZ KIT lite hardware as is. You
> will need to use the BF561 kit or prototype the required hardware
> and interface it to the BF533 EZ-KIT using the EZ extender board
> from ADI.
>
> Bottom line the BF533 EZ-KIT Lite hardware isn't capable of
> "passing" through video.
>
> Anybody else want to comment on this?
>
> */m...@yahoo.co.uk/* wrote:
>
> I have a Blackfin BF533 and am wanting to pass video through
> *almost* real-time, with small image processing happening on
> the way. This processing is things such as inverting, or
> simple digital zoom. I am looking for help with outputting the
> frames stored in memory from a video input code example found
> with the VisualDSP++ 4.5 software. Any help greatly
> appreciated. I have also watched the video tutorials on the
> Analog website, but have found them not very useful in this case.
>
> Thanks,
> Matt
>
> Do you Yahoo!?
> Get on board. You're invited
>
> to try the new Yahoo! Mail Beta.
> -------------------DISCLAIMER------------------
> The information transmitted herewith is confidential and proprietary
> information intended only for use by the individual or entity to which
> it is addressed. If the reader of this message is not the intended
> recipient, you are hereby notified that any review, retransmission,
> dissemination, distribution, copying or other use of, or taking of any
> action in reliance upon this information is strictly prohibited. If
> you have received this communication in error, please contact the
> sender and delete the material from your computer.
> --------------------
>
Matt,

The BF533 processor itself can handle realtime video. I done a number of projects using that processor in custom designs and it can handle it. The BF533 EZ-Kit lite can't due to the circuit design for utilizing the PPI port. You have to completely isolate the TX/RX modes of the PPI from the peripheral devices using a tri-state directional buffer along with a video FIFO if you want to multiplex the PPI. Since your video processing doesn't sound like much this may be an option for a target board.

Regarding the OSD of text.

This sounds dumb but it works quite well as all I needed was a time stamp.

Now I need to add some level of transparency as well so this played in my approach. I created my own font library using multidimensional arrays without adding a graphics library.

Something like this...

char ZERO[11][12] {
{0,0,0,0,0,2,2,0,0,0,0,0},
{0,0,0,2,2,2,2,2,2,0,0,0},
{0,0,2,1,1,1,1,1,1,2,0,0},
{0,2,1,1,2,2,2,2,1,1,2,0},
{0,2,1,1,2,0,0,2,1,1,2,0},
{0,2,1,1,2,0,0,2,1,1,2,0},
{0,2,1,1,2,0,0,2,1,1,2,0},
{0,2,1,1,2,0,0,2,1,1,2,0},
{0,2,1,1,1,2,2,1,1,1,2,0},
{0,0,2,1,1,1,1,1,1,2,0,0},
{0,0,0,2,2,2,2,2,2,0,0,0}
};

In this case I assigned the color white to "1" and black to a "2" with "0" being 100% transparent. Then I just choose a location(address) to insert the character. The point of insertion will be the upper left portion of the array. Now your algorithm has to alot for
the offset when dealing with a new line of data so that the lines that make up your character are aligned. A DMA transfer works good for this to automate things.

Hope this helps

Gabe

Matt Watts wrote:
Yes, I would definitely be interested. I have also
received these replies about being able to do what i
want with the BF533, but cant find any resource online
that clarifies once and for all!I am definitely
inclined to believe you judging by my playing around
with this kit, but it is a lot of money to waste if i
can do it with this one!

--- Gabriel Abreo wrote:

> Actually nobody replied. I figured out how to do it
> myself if you are interested.
>
> Matt Watts wrote: OK,
> great, thanks for all your help!I'll hopefully
> receive the 561 in a few days, at which point i'll
> no
> doubt require a little more pushing in the right
> direction...!Yeah I should think my code i've
> already
> written will slot in quite nicely to what you are
> saying because all i need to give it is the start
> address and destination of the frame to be
> manipulated.
> but in the mean time, i just saw your post about
> text
> overlay and was wondering if you had any personal
> replies? I too am looking to have text overlay.
> Cheers again,
> Matt
> --- Gabriel Abreo wrote:
>
> > Matt,
> >
> > If you have code for the BF533 it isn't lost.
> > Depending on what you've done it's an easy port
> over
> > to the BF561.
> >
> > I think you are approaching the finish line now.
> >
> > Since the BF561 has two PPI ports you can set one
> > up as an input and the other as an output. If you
> > are going to have to set up some software buffers
> in
> > SDRAM. YOu will have lets say a capture buffer,
> > workspace buffer #1, workspace buffer #2, and
> output
> > frame buffer. You will have to adjust the core
> clock
> > to your liking depending on your algorithms but
> that
> > is straight simple. After you capture a frame move
> > it to workspace buffer #1 so you can free up the
> > capture buffer to capture the next incoming frame.
> > Then use your routines to bring in the video frame
> > in workspace buffer #1 to perform your tasks and
> > dump the results in workspace #2. You can manage
> the
> > workspace buffers how you like but you will need
> to
> > double buffer things or you will get choppy video.
> > Before you run your code you will have to set-up
> the
> > digital video timing code to get the encoder to
> > properly display your results. Do this such that
> you
> > have a template in the output frame buffer so when
> > you get your
> > results in workspace #2 completed you can do a DMA
> > block transfer to the output buffer and the DMA
> > transfer that out the second PPI port.
> >
> > You may want to read the EE Note 276 (EE-276) the
> > will explain how to set up the memory structure to
> > yield the best performance. The setup the digital
> > timing codes for the output video the PPI section
> of
> > the manual explains how to organize the timing
> codes
> > correctly. I believe it is under ITU-656 Overview
> > section in the PPI chapter.
> >
> > If you have the memory to spare you could just
> > copy the captured frame in full frame mode over to
> > the output buffer and then just write over the
> > active video region. That would save you having to
> > write software to create the digital timing codes.
> >
> > If anyone has a better way please chime in.
> >
> >
> >
> > Matt Watts wrote:
> > Hi again Gabriel,
> >
> > Sorry I realised when I received your reply that
> > you'd
> > said that before-my apologies, info went straight
> > through me!OK, so assuming I were to purchase the
> > BF561 EZ Kit, I have been looking at the
> > video_in_out
> > project already acquired from Analog. It
> > specifically
> > says in the readme that no processing is done on
> the
> > video being passed through, but also gives no clue
> > as
> > to where to put this image processing code (most
> of
> > which I have already done in vain with the BF533).
> > Any
> > help very gratefully welcomed as always,
> >
> > Matt
> >
> >
> >
> >
> > --- Gabriel Abreo wrote:
> >
> > > You cannot do this with the BF533 EZ KIT lite
> > > hardware as is. You will need to use the BF561
> kit
> > > or prototype the required hardware and interface
> > it
> > > to the BF533 EZ-KIT using the EZ extender board
> > from
> > > ADI.
> > >
> > > Bottom line the BF533 EZ-KIT Lite hardware isn't
> > > capable of "passing" through video.
> > >
> > > Anybody else want to comment on this?
> > >
> > > m...@yahoo.co.uk wrote:
> > > I have a Blackfin BF533 and am wanting to
> > > pass video through *almost* real-time, with
> small
> > > image processing happening on the way. This
> > > processing is things such as inverting, or
> simple
> > > digital zoom. I am looking for help with
> > outputting
> > > the frames stored in memory from a video input
> > code
> > > example found with the VisualDSP++ 4.5 software.
> > Any
> > > help greatly appreciated. I have also watched
> the
> > > video tutorials on the Analog website, but have
> > > found them not very useful in this case.
> > >
> > > Thanks,
> > > Matt
> > >
> > >
> > >
> > > Messages in this topic (1) Reply (via
> > > web post) | Start a new topic
> > > Messages
> > >
> > >
> > >
> > > Note: If you do a simple "reply" with your email
> > > client, only the author of this message will
> > receive
> > > your answer. You need to do a "reply all" if you
> > > want your answer to be distributed to the entire
> > > group.
> > >
> > >
> > > About this discussion group:
> > >
> > > Archives:
> > > http://www.dsprelated.com/groups/adsp/1.php
> > >
> > > To Post: Send an email to a...
> > >
> > > Other DSP Related Groups:
> > > http://www.dsprelated.com/groups.php
> > >
> > >
> > > You are receiving Individual Emails Change
> > Delivery
> > > Settings
> > > Visit Your Group | Yahoo! Groups Terms of Use |
> > > Unsubscribe
> > >
> > > Recent Activity
> > >
> > > 21
> > > New Members
> > >
> > > Visit Your Group
> > > New Message Search
> > > Find the message you want faster. Visit your
> group
> > > to try out the improved message search.
> > >
> > >
> > >
> > >
> > > Share feedback on the new changes to Groups
>
=== message truncated ==
___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com

---------------------------------
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail.
Hi Friends,
How are you?
In my project we are using External SRAM & FLASH memory .
so can any one explain how the booting will occurs in ADSP-21062.
if possible explain the boot sequency of this processor.
Earlier i worked on MC688332, i have good exposure on that MC68332.
Please help me regarding this.
Thanking you all in advance.

Regards,
Reddy.

---------------------------------
Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business.
On Wed, 23 Aug 2006, niranjan podduturi wrote:

> Hi Friends,
> How are you?
> In my project we are using External SRAM & FLASH memory .
> so can any one explain how the booting will occurs in ADSP-21062.
> if possible explain the boot sequency of this processor.
> Earlier i worked on MC688332, i have good exposure on that MC68332.
> Please help me regarding this.
> Thanking you all in advance.

There are several ways to boot. Check out
http://www.analog.com/processors/sharc/technicalLibrary/manuals/index.html
and hit 2106x user's manual. In section 11.6 it explains the different
boot modes. Depending on how you set your flash up, you can use
an EPROM boot or no boot. Read that a few times, then ask more questions!

Patience, persistence, truth,
Dr. mike