-
#include "tensorstore/chunk_layout.h"
-
using tensorstore::ChunkLayout::ChunkAspectRatio =
ChunkAspectRatioFor<kUnspecifiedUsage>; -
using tensorstore::ChunkLayout::WriteChunkAspectRatio =
ChunkAspectRatioFor<Usage::kWrite>; -
using tensorstore::ChunkLayout::ReadChunkAspectRatio =
ChunkAspectRatioFor<Usage::kRead>; -
using tensorstore::ChunkLayout::CodecChunkAspectRatio =
ChunkAspectRatioFor<Usage::kCodec>; Specifies the desired aspect ratio for all chunk shapes (codec, read, and write).
Equivalent to specifying
CodecChunkAspectRatio
,ReadChunkAspectRatio
, andWriteChunkAspectRatio
.Even with
hard_constraint=true
, the aspect ratio is always treated as a preference rather than requirement, and is overridden by other constraints on chunk shapes.