Forum Discussion
Tone Mapping Operator IP Malfunctioning
- 11 months ago
Hi @dscully David,
Does this IP have undocumented restrictions on input resolution?
>> Yes, there is restrictions on the input resolution.
For the input width, it needs to be multiple of the pixels in parallels (PIP) and the number of internal tiles (it is fixed as 4)- So, if PIP = 4 and Number of tiles = 4, then the width needs to be multiple of 4x4 = 16
- For the given two widths you could see that condition is not met, 1944/16 = 121.5 and 3268/16=204.25
- I suggest your to try: 1952 for the first case,
- and 3280 for the second case, then if need be, you could use a clipper to put the width back to your desired width.
- For the input height, it needs to be multiple of the number of internal tiles (it is fixed as 4)
- In this case, your current values are both fine.
Regards,
Wincent_Altera
Hello Wincent,
Thank you for the quick response. The target device is 10AX115H2F34E2SG.
- I adjusted the red gain via a color space converter and the ROI region remained black while the color bars changed.
- When I attempt to use larger ROI values typically the function call to intel_vvp_tmo_set_roi_horizontal_x0x1 or intel_vvp_tmo_set_roi_vertical_y0y1 will hang the nios2 processor. On one attempt I was able to set vertical 0->1060 and horizontal to 0->1900. The black area still appeared with a small bit of the test pattern visible.
- I also happened to try a 800x800 camera feed and the results were the same.
Color Bar with Red Gain Set to ~8x:
800x800 Video:
- Wincent_Altera1 year ago
Regular Contributor
HI @dscully ,
Thanks for trying that, I just try to understand betterintel_vvp_tmo_set_bypass is set to 1, and intel_vvp_tmo_set_resolution sets 1920x1080The video pipeline starts at this point and frames pass normally.
>> means by default it is working well (without black bar)
>> Am I get this correct ?If I then set a region of interest using these commands:intel_vvp_tmo_set_roi_horizontal_x0x1(&tmo_instance, 200, 400) intel_vvp_tmo_set_roi_vertical_y0y1(&tmo_instance, 200, 400)
>> The things happen ONLY when you try to set the ROI ?
Regards,
Wincent- dscully1 year ago
New Contributor
Hi Wincent,
If I set the resolution with intel_vvp_tmo_set_resolution and then try to exit bypass mode the component stops producing frames. In ROI mode, the component still produces frames but shows the black box as described above.
Thanks,
David
- Wincent_Altera1 year ago
Regular Contributor
Hi @dscully David,
If you not perform that , you wont see the black box ? Am I get this correct ?
If I set the resolution with intel_vvp_tmo_set_resolution and then try to exit bypass mode the component stops producing frames.
>> just try to understand why you not use the default setting but trying out this ?
>> Is that part of your project requirement ?
>> If I understand correctly from you, by default on VVP design this "black box" issue is not observed in 2k or 800x800 .
But once you make the change as your previous reply the black box came out , am I understand this correctly ?
Regards,
Wincent