
The DCC Capture Application
=============================

The application will allow to capture video using NCast DCC Card. 
Use this application to capture and process the video from NCast Digitizer Card. 

1. Installing the application
================================
You have to compile the application and then use dcccapture executable.
Type:
    make
    
or compile the code manually:
    gcc dcccapture.c -o dcccapture

Run is using:
    ./dcccapture

Copy the executable wherever you need it.



2. How To use the program ?
==============================

Start the program with appropriate parameters, and then stop it using Ctrl+C
or SIGINT signal ( "killall -s SIGINT dcccapture" )
Change the parameters, or modify:

     ProcessTheFrame(char *p_plane0, int width, int height, int format, int size)

function inside the program before running it.





3. Parameters
=================
By default application captures 1280x720 Planar YUV [I420] frames and ignores them.

The default behavior may be modified:


    --to-file <filename>  - this will cause the application to save raw frames in a file
    
    --format <format name>  -- formats are:

	     RGB3: V4L2_PIX_FMT_RGB24	RGB 24 bps
	     BGR3: V4L2_PIX_FMT_BGR24	RGB 24 bps
	     YU12: V4L2_PIX_FMT_YUV420  YUV Planar 12 bps
	     422P: V4L2_PIX_FMT_YUV422P	  YUV Planar 16 bsp
    
    --width <width>
    
    --height <height>
    
    --fps  <framerate>
    

Simple example


   ./dcccapture --to-file video.raw --format YU12 --width 1280 --height 720 --fps 60
   
 
While application is running, open second console and see actual and expected framerate stats on 

   cat /proc/digitizer
   
proc filesystem entry.



 
 

    
