Hi TI Experts,
I create a simple graph to show the camera image on the display with following nodes.
GRAPH: cam_graph_85 (#nodes = 4, #executions = 61)
NODE: CAPTURE2: capture_node: avg = 33272 usecs, min/max = 33261 / 33538 usecs, #executions = 61
NODE: VPAC_LDC1: ldc_node: avg = 3973 usecs, min/max = 3956 / 4034 usecs, #executions = 61
NODE: VPAC_MSC1: scaler_node: avg = 6098 usecs, min/max = 6054 / 6295 usecs, #executions = 61
NODE: DISPLAY1: DisplayNode: avg = 14000 usecs, min/max = 80 / 14395 usecs, #executions = 61
My purpose is to show the variable sub-region of camera image to the different position on the display.
For example, the original camera image is 1920x1080, and display resolution is 1920x1080
0 secs: show full camera image (0,0) - (1920,1080) to display (0,0) - (1920,1080)
10 secs: show the region (0,0) - (960,1080) to display (0,0) - (960,1080)
24 secs: show the region (960,0) - (1920,1080) to display (100,0) - (1060,1080)
30 secs: show the region (0,0) - (960,540) to display (960,540) - (1920,1080)
...
This could be done by enabling display cropping and setting following variables.
display_params.enableCropping = 1;
display_params.cropPrms.startX
display_params.cropPrms.startY
display_params.cropPrms.width
display_params.cropPrms.height
display_params.outWidth
display_params.outHeight
display_params.posX
display_params.posY
But I don't know how to make it changed and effect dynamically during graph is running.
I tried to map the display_param_obj out and made modification, but I can not see the change unless I re-create the whole graph..
I have thought about to use TIVX_DISPLAY_SET_CROP_PARAMS command, but it can not made modification to variables out of cropPrms
Thanks for the guidance
Regards,
Christopher
