Reply by bharath November 10, 20052005-11-10
Hi mayank,
I am using TVP5146 Decoder and SAA7104H;SAA7105H Encoder ,which are present on board(DM642 EVM).I am also connecting a camera and TV to the board.

In TI directory i have not found the example of NTSC your are mentioning.I went to the DDK/media folder and found an example code for c5509_mmc which was of no help.I am using CCS 3.0 Version and added the patch up code for DM642, installed the addon softwares like DDK,NDK,flashburn and RF. If you please provide me the path for the example code ,then it will be of great help to me.

Please tell me if my idea is wrong , i was thinking of configuring the decoder TVP5146 using I2C .The output of decoder will be in YCbCr 4:2:2 sample resolution. I will configue the video port buffer size to hold (720*576) D1 PAL samples. I will also configure the video port to resample the data to 4:2:0 resolution. video port can be configured to do horizontal scaling while the vertical scaling has to be done by our software. Now the EDMA is configured to fetch this data and place it in SDRAM. In SDRAM ,i will make 2 buffers to use them as ping pong buffers. my H.264 application will take the data from this buffer and starts its processing. I want to write the code till this part and later on i will think of displaying it. How will i convert the D1 resolution image to CIF and QCIF. Kindly provide me some info on PVID drivers.waiting for your reply.

thanking you
bharath

mayank agarwal <may_ank77@may_...> wrote:
Hi Bharat,
You haven't mentioned what ADC and DAC are present
on your board.If it is saa7105/saaa7115 then it is ok.
i assume that you are connecting the camera as well as
TV to the board.
In the ti directory there must be some NTSC example
which illustrates the capture and display of real
time video in D1 size and there are examples which
show you how to change that to CIF\VGA\PAL sizes.
DM642 supports three video ports 2 for capture and one
for display.You have to configure these video ports in
input/output of cdb file(in the examples it has
already been done).
To connect some encoder and decoder like MPEG4\H.264
you have to first capture the incoming the incoming
video using FVID driver functions store it in buffer
convert it to 4:2:2 format and then call encoding and
decoding APIs of corresponding algorithm and then
you can be able to run the video
capture\encode\decode\display in a loopback fashion
where real time video capture using camera is being
displayed on TV.

Regards,
Mayank

--- bharath wrote:

> Dear all,
> I want to capture the images using a
> camera and have to display it on a monitor/TV using
> dm642 EVM board. My idea to proceed with this is
> like below:
>
> connect the camera and configure one of the Decoder
> of dm642(dm642 has 2 decoders). I can choose and
> configure DM642 using I2C module. The output of the
> decode will be 4:2:2 YCbCr format. This is given to
> the video port and which i will configure to
> resample the data into 4:2:0 sampling resolution. I
> have lot of queries to reach till here.
>
> 1)How to bringup I2C module and configure video
> decoder and video port.
> 2) How to tune to D1 resolution or CIF or QCIF .
> 3) If i want to use the data stored the video port
> buffer(i.e 4:2:0 samples) to my application say
> H.264 how to fetch this data .Will this video port
> buffer overflow if my processing time is more.
>
> Please help me with more details ASAP. waiting for
> your reply.
>
> thanking you.


Reply by mayank agarwal November 10, 20052005-11-10
Hi Bharat,
You haven't mentioned what ADC and DAC are present
on your board.If it is saa7105/saaa7115 then it is ok.
i assume that you are connecting the camera as well as
TV to the board.
In the ti directory there must be some NTSC example
which illustrates the capture and display of real
time video in D1 size and there are examples which
show you how to change that to CIF\VGA\PAL sizes.
DM642 supports three video ports 2 for capture and one
for display.You have to configure these video ports in
input/output of cdb file(in the examples it has
already been done).
To connect some encoder and decoder like MPEG4\H.264
you have to first capture the incoming the incoming
video using FVID driver functions store it in buffer
convert it to 4:2:2 format and then call encoding and
decoding APIs of corresponding algorithm and then
you can be able to run the video
capture\encode\decode\display in a loopback fashion
where real time video capture using camera is being
displayed on TV.

Regards,
Mayank

--- bharath <bharathchandru@bhar...> wrote:

> Dear all,
> I want to capture the images using a
> camera and have to display it on a monitor/TV using
> dm642 EVM board. My idea to proceed with this is
> like below:
>
> connect the camera and configure one of the Decoder
> of dm642(dm642 has 2 decoders). I can choose and
> configure DM642 using I2C module. The output of the
> decode will be 4:2:2 YCbCr format. This is given to
> the video port and which i will configure to
> resample the data into 4:2:0 sampling resolution. I
> have lot of queries to reach till here.
>
> 1)How to bringup I2C module and configure video
> decoder and video port.
> 2) How to tune to D1 resolution or CIF or QCIF .
> 3) If i want to use the data stored the video port
> buffer(i.e 4:2:0 samples) to my application say
> H.264 how to fetch this data .Will this video port
> buffer overflow if my processing time is more.
>
> Please help me with more details ASAP. waiting for
> your reply.
>
> thanking you. >
>
> c6x-unsubscribe@c6x-...


Mayank Agarwal
Software Engineer
Semiconductor Division
Sasken Communication Technologies
Bangalore



Reply by bharath November 10, 20052005-11-10
Dear all,
I want to capture the images using a camera and have to display it on a monitor/TV using dm642 EVM board. My idea to proceed with this is like below:

connect the camera and configure one of the Decoder of dm642(dm642 has 2 decoders). I can choose and configure DM642 using I2C module. The output of the decode will be 4:2:2 YCbCr format. This is given to the video port and which i will configure to resample the data into 4:2:0 sampling resolution. I have lot of queries to reach till here.

1)How to bringup I2C module and configure video decoder and video port.
2) How to tune to D1 resolution or CIF or QCIF .
3) If i want to use the data stored the video port buffer(i.e 4:2:0 samples) to my application say H.264 how to fetch this data .Will this video port buffer overflow if my processing time is more.

Please help me with more details ASAP. waiting for your reply.

thanking you.