Skip to content

Commit

Permalink
Disable BufferAccess handling in PrimitiveBlocks
Browse files Browse the repository at this point in the history
We need a better way to implement ViewProperties.getRootAccessType()
Currently, it causes LazyCellImgs to load the first Cell to determine
the Access type. We should add a method to NativeImg to get the Access
type directly, but I'm not sure yet what complications that might cause.
  • Loading branch information
tpietzsch committed Sep 14, 2024
1 parent d35835f commit cc07d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/imglib2/blocks/ViewPrimitiveBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public ViewPrimitiveBlocks( final ViewProperties< T, R > props )
{
this.props = props;
final PrimitiveType primitiveType = props.getRootType().getNativeTypeFactory().getPrimitiveType();
final MemCopy memCopy = MemCopy.forPrimitiveType( primitiveType, props.getRootAccessType() instanceof BufferAccess, false );
final MemCopy memCopy = MemCopy.forPrimitiveType( primitiveType, /*props.getRootAccessType() instanceof BufferAccess*/ false, false );
final Extension extension = props.getExtension() != null ? props.getExtension() : Extension.border();
final Object oob = extractOobValue( props.getRootType(), extension );
final Ranges findRanges = Ranges.forExtension( extension );
Expand Down

0 comments on commit cc07d99

Please sign in to comment.