cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
chaitusvk
Participant
Participant
231 Views
Registered: ‎02-15-2019

How to config VDMA for video processing in PS with triple buffer mode

Jump to solution

Hi .. i  newbie to video processing , i want to blank some pixels in video , i want to do this in PS  

My idea is 

1. config VDMA in triple buffer mode ,Buffers namely 0,1,2

2. Config VDMA in circular buffer mode .

3. At an instant  Write channel will write to Buffer " 0"

4 . i will process frame from buffer " 1"

5. Read channel will read from Buffer " 2"

 

 i want to use S2MM INTERRUPT  and check for  MM2S and S2MM buffer number in PARK PTR REG  so i can find free buffer ....

please confirm me 

1. In circular buffer mode MM2s and S2MM work on different frame bufffer

2. Read/Write channel will change to next frame buffer after completion of current frame , in which fastion this happen

    say both MM2S and S2MM are configured with same start address 

 

Thank you 

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
florentw
Moderator
Moderator
178 Views
Registered: ‎11-09-2015

Hi @chaitusvk 

please confirm me 

1. In circular buffer mode MM2s and S2MM work on different frame bufffer

If the genlock is properly configured, then yes they will work on different buffers

2. Read/Write channel will change to next frame buffer after completion of current frame , in which fastion this happen

    say both MM2S and S2MM are configured with same start address 

As you are in triple buffer mode this is not complicated. When the read or write pointer arrives at the end of a frame, it will go to the only available buffer (not the one which the other one is on and not the one it was previously on)


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**

View solution in original post

2 Replies
florentw
Moderator
Moderator
179 Views
Registered: ‎11-09-2015

Hi @chaitusvk 

please confirm me 

1. In circular buffer mode MM2s and S2MM work on different frame bufffer

If the genlock is properly configured, then yes they will work on different buffers

2. Read/Write channel will change to next frame buffer after completion of current frame , in which fastion this happen

    say both MM2S and S2MM are configured with same start address 

As you are in triple buffer mode this is not complicated. When the read or write pointer arrives at the end of a frame, it will go to the only available buffer (not the one which the other one is on and not the one it was previously on)


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**

View solution in original post

chaitusvk
Participant
Participant
155 Views
Registered: ‎02-15-2019

Thank you so much @florentw 

0 Kudos