DSPRelated.com
Forums

Interlace problem on DM642 platform

Started by mayank agarwal April 20, 2005

Hi all,
i have scaled the CIF image to 4CIF size but when i am
catching the video through camera and displaying it in
real time video i am getting lines around the finger
(interlace problem).I am using MPEG-4 simple profile
as video algorithm on DM642 platform.
Video capture and display is made possible on
DM642 platform is made possible by using generic part
(saa7115 decoder for capture and saa7105 encoder for
display)and the board specific part (vport library and
the edma which is used to transfer data to and from
video ports).I have the following doubts:

1.Is it possible to deinterlace the video before
capture by making changes in video capture and video
display parameters file(One parameter is to capture
and display video by frame/field1/field2/progressive
mode) and another parameter is whether to keep the
fields separate or merged.I could not understand the
meaning of these parameters(no reasonable explanation
in SPRU629E).If we can solve the interlace problem by
changing these parameters or we have to make changes
elsewhere.

2.If at all there is no solution given by TI to solve
above problemby making changes in video capture and
display parameters file then if we have to modify
the vport library which ontrols the saa7115 capture.

Any hints /suggestions are welcome.
Many thanks for cooperation.
Regards,
Mayank
__________________________________________________




Hi,
Many thanks for your reply

My problem is that
i am getting blurred lines around the edges in real
time display(Image attached).I suspect that this is
interlace problem.To solve this i am capturing\display
on field basis and keeping tje fields separate.
But i am getting half the image,i am not sure
whether
this is the correct way of doing this.Moreover if we
capture/display only one field frame rate will also
increase.
Is there any TI document or link which suggests
when we have to use field capture/display or frame.
Further if we make field capture/display if we have to
make changes in other parameters(Blanking
interval,hor/ vert offset) also or they should
remain the same.
Thanks for your cooperation.
Best Regards,
Mayank
--- Tal Avidor <avidor@avid...> wrote:

> HI,
>
> From what I understand the problem you have is that
> the fields are
> reversed.
>
> In order to fix this you can tell the video port
> driver to inverse the
> fields by changing the fldInv to enable or
> disable. Make sore that
> extCtl is enabled (in this mode the video port will
> sync on embedded
> EAV/SAV codes and not HCTL/VCTL/FID signals).
>
> In regards to the fldOp parameter, when set to
> VPORT_FLDOP_FRAME the
> video port will capture/display a frame (that is
> field 1 and field 2)
> that is interlaced in memory.
>
> When set to VPORT_FLDOP_FLD1/VPORT_FLDOP_FLD2 then
> the video port
> driver will capture/display only one field.
>
> When set to VPORT_FLDOP_PROGRESSIVE it will
> capture/display a frame
> that is in progressive mode in memory.
>
> Now the separate or merged parameter instructs the
> driver how to
> copy/read the image from/to the memory. In separate
> mode a frame will
> be splited to two memory address one for the odd
> field and one for the
> even field. In merge mode the fram will have one
> address in memory.
>
> --- mayank agarwal <may_ank77@may_...> wrote:
> >
> >
> > Hi all,
> > i have scaled the CIF image to 4CIF size but when
> i am
> > catching the video through camera and displaying
> it in
> > real time video i am getting lines around the
> finger
> > (interlace problem).I am using MPEG-4 simple
> profile
> > as video algorithm on DM642 platform.
> > Video capture and display is made possible on
> > DM642 platform is made possible by using generic
> part
> > (saa7115 decoder for capture and saa7105 encoder
> for
> > display)and the board specific part (vport library
> and
> > the edma which is used to transfer data to and
> from
> > video ports).I have the following doubts:
> >
> > 1.Is it possible to deinterlace the video before
> > capture by making changes in video capture and
> video
> > display parameters file(One parameter is to
> capture
> > and display video by
> frame/field1/field2/progressive
> > mode) and another parameter is whether to keep the
> > fields separate or merged.I could not understand
> the
> > meaning of these parameters(no reasonable
> explanation
> > in SPRU629E).If we can solve the interlace problem
> by
> > changing these parameters or we have to make
> changes
> > elsewhere.
> >
> > 2.If at all there is no solution given by TI to
> solve
> > above problemby making changes in video capture
> and
> > display parameters file then if we have to modify
> > the vport library which ontrols the saa7115
> capture.
> >
> > Any hints /suggestions are welcome.
> > Many thanks for cooperation.
> > Regards,
> > Mayank
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > __________________________________________________
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > c6x-unsubscribe@c6x-...
> >
> >
> >
> >
> >
> >
>
> Tal Avidor Unisor LTD
>
> __________________________________________________
>
>


__________________________________________________