added check to avoid out of range. Co-authored-by: Venkateshwar Reddy Kandula <vkandula@amd.com>
rocprofiler_rocjpef_api_id_t
rocprofiler_rocjpeg_api_id_t