ScalableTSDFVolume::Integrate error

I was trying to integrate the frames into TSDF Scalable volume to create a Mesh from that but i am getting an error doing that. Is this an error created because of improper creation of rgbd image ?.

code:
rgbd = o3c.geometry.RGBDImage.create_from_color_and_depth(img, depimg, depth_trunc=4.0, convert_rgb_to_intensity=False)
volume.integrate(rgbd,o3c.camera.PinholeCameraIntrinsic(o3c.camera.PinholeCameraIntrinsicParameters.PrimeSenseDefault),np.linalg.inv(pos_data.m))

Error:
RuntimeError: [Open3D Error] (virtual void open3d::pipelines::integration::ScalableTSDFVolume::Integrate(const open3d::geometry::RGBDImage&, const open3d::camera::PinholeCameraIntrinsic&, const Matrix4d&)) /root/Open3D/cpp/open3d/pipelines/integration/ScalableTSDFVolume.cpp:49: Unsupported image format.