@zappar/zappar-cv 3.0.1-beta.0 → 3.0.1-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "3.0.1-beta.0";
1
+ export declare const VERSION = "3.0.1-beta.10";
package/lib/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "3.0.1-beta.0";
1
+ export const VERSION = "3.0.1-beta.10";
@@ -266,7 +266,7 @@ function consumeReader(mod, r, reader, p, userFacing, server, source, workerMess
266
266
  mat4.fromScaling(cameraToDeviceTransform, [-1, 1, -1]);
267
267
  else
268
268
  mat4.identity(cameraToDeviceTransform);
269
- let focalLength = 240.0 * dataWidth / 320.0;
269
+ let focalLength = (userFacing ? 300.0 : 240.0) * dataWidth / 320.0;
270
270
  cameraModel[0] = focalLength;
271
271
  cameraModel[1] = focalLength;
272
272
  cameraModel[2] = dataWidth * 0.5;
@@ -322,8 +322,8 @@ function consumeReader(mod, r, reader, p, userFacing, server, source, workerMess
322
322
  buffer.set(mod.HEAPU8.subarray(dataPointer, dataPointer + size));
323
323
  buffers.ready.push({ token, data: {
324
324
  data: buffer,
325
- width: r.pipeline_camera_frame_data_raw_width(p),
326
- height: r.pipeline_camera_frame_data_raw_height(p),
325
+ width: r.pipeline_camera_data_width(p),
326
+ height: r.pipeline_camera_data_height(p),
327
327
  } });
328
328
  }
329
329
  server.exploreState();