This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How can I Access to the histogram module?

Other Parts Discussed in Thread: TVP5146

Hello everyone, This is my first Post, I've been reading and solving problems since a couple of months from this great forum and I want to say thanks

I need use the Histogram module (DM6446) for an specific aplication, I was reading these manuals but I didn't find how to

LSP 2.00 DaVinci Linux CCDC Driver

LSP 2.00 DaVinci Linux AF Driver

LSP 2.00 DaVinci Linux AEW Driver

LSP 2.00 DaVinci Linux Previewer Driver

Do I have to create my own Driver to control histogram?

I'm using MV5, dvsdk_2_00_00_22 and PSP_02_00_00_140

 

When I try to start modules AEW and AF this is response (insmod)

 Davici AEW Driver cannot be loaded
 VIDEO PORT is not enabledData Flow path from CCDC is disabled

 Davinci AF driver cannot be loaded
 VIDEO PORT is not enabled
 CCDC needs to be configured

my bootargs:

setenv bootargs=console=ttyS0,115200n8 nointrd rw ip=192.168.0.10:192.168.0.255:255.255.255.0:200.13.249.101:200.13.224.254::off root=/dev/nfs nfsroot=192.168.0.5:/home/josnelihurt/NFS_exports/davinci,nolock mem=120M davinci_capture.device_type=1


Thanks for your time and help

  • Please note that these drivers are included in dvsdk 2.00.00.22; however, you must select the proper capture device via your bootargs (davinci_capture.device_type=1 implies TVP5146 which defaults to BT.656 input).  Since these modules operate on RAM data, you must select a sensor input type device.  You can refer to the CCD driver User's Guide (sprug89.pdf) for more details; these document is located under

        PSP_02_00_00_140/docs   (under DVSDK installation).

  • Thanks for your fast answer Mr Gonzales.

    I'm really confused, because I use a camera conected to the composite video port on dm6446(Evaluation module http://focus.ti.com/docs/toolsw/folders/print/tmdsevm6446.html). I understand that I have to use the TVP5146(davinci_capture.device_type=1) that is the chip on the Evaluation board. Today I have been reading CCD driver User's Guide (sprug89.pdf) but I didn't found any clues. If I put other value in davinci_capture.device_type like 0 or 2 (device = 0 (for MT9T001), 1 (for TVP5146), or 2 (for MT9T031).) the AEW driver and AF driver can be loaded but obviously I cannot get video because I'm using the incorrect device.

    1. My question is can I use the AF or AEW driver with an input from RAM? or I must use from a video source directly, because the hardware module is capable according with SPRUE38F(TMS320DM644x DMSoC Video Processing Front End (VPFE) User's Guide).
    2. To use histogram module in SPRS283F(6.13.1.5 Histogram) Which driver I must use?, because in the AF, AEW and in the Previewer driver I can't find histogram reference, additional to this in the SPRP589 slide 12 they put an red X in that indicates is not available. Is this right?

    I really appreciate your help.

  • Let me try to clear up some areas of confusion

    1) The Histogram and H3A (AWB, AF, AE) hardware modules operate on RAW bayer pattern pixel data; these is the type of data normally captured from CCD sensors such as MT9T031; these hardware blocks cannot operate on YCbCr pixel data.  That said, the DM6446 video input interface can accept BT.656 video (via TVP5146), RAW Bayer Pattern data (via MT9Txxx interface), or raw YCbCr data with separate video timing pins (no hardware to provide for this path on our EVM).  Please note that TVP5146 takes a composite signal and produces a BT.656 signal (YCbCr pixel data + video timing all passed data bus).  Therefore, if you choose the TVP5146 path, you will be capturing YCbCr data into DDR and the Histogram and H3A blocks will be disabled since they cannot operate on this type of pixel data.  This is described in VPFE UG.

    2) Even though we provide drivers for Histogram and H3A blocks; these are very complex blocks to understand and support.  This is one reason why we have teamed up with third parties such as APPRO to provide solutions such as IPNC (IP Net Cam) reference designs which include the software for these blocks integrated into a working solution.  For those customers wishing to do their own design, they can go thru their local sales representative ( http://focus.ti.com/general/docs/salesrep/salesrep.tsp?DCMP=TIHomeTracking&HQS=Other+OT+home_b_salesrep ) to sign an NDA to get additional information on using these blocks.

    I hope this helps add some clarity.

  • ok, Now, I understand a little more.
    Now I have a new question, I need to use the histogram and others image and video functions on DSP, looking for information, I found that TI created an a library with differents functions for image and video processing called IMGLIB, now my question is: Can I use this functions on a codec, for example in "dvsdk_2_00_00_22/codec_engine_2_23_01/examples/ti/sdo/ce/examples/codecs/viddec_copy", How can I integrate the IMGLIB to my codec because in the "TMS320C64x+ DSP Image/Video Processing Library (v2.0.1) Programmer's Guide" SPRUF30A don't makes mention to how include this lib in Linux,
    The Video and Imaging Coprocessor (VICP) is used by the IMGLIB

    Thanks for all your information

  • Hello Juan,

     

    If I understand your reply, you said if we use the TVP5146 (which is the case for one of our customers), we have to use some blocks provide by TI, right ?

    In that case, the only solution is to contact sale representative, is there another way to obtain these blocks ? We are based in France and we must help a client to complete a project urgently, I frightened that contact a local representative for France will waste time.

    To summarize the situation, we have a platform based on DM6446 EVM with TVP5146, we have to integrate MPEG and H264 encode and save on file, H3A, resizer. We have tried to boot the kernel from Arago (PSP 3.0 Revision 37) without success, no display. Today we have a 2.6.32 which works, resizer, cmem, dsplink, but no H3A and no encode and save process.

    May you provide us some support. We will appreciate your assistance.

    Thanks in advance.

     

    Regards