Open jonnew opened 1 year ago
The frame_size result of
frame_size
oni_get_opt(ctx, ONI_OPT_MAXREADFRAMESIZE, &frame_size, &frame_size_sz);
cannot be used to set the minimal ONI_OPT_BLOCKREADSIZE via
ONI_OPT_BLOCKREADSIZE
oni_size_t block_read_size = frame_size; size_t block_size_sz = sizeof(block_read_size); rc = oni_set_opt(ctx, ONI_OPT_BLOCKREADSIZE, &block_read_size, block_size_sz);
due to some required overhead. This is not a bug, but something that needs to a least be documented and perhaps requires a utility function to get the correct minimal ONI_OPT_BLOCKREADSIZE.
The
frame_size
result ofcannot be used to set the minimal
ONI_OPT_BLOCKREADSIZE
viadue to some required overhead. This is not a bug, but something that needs to a least be documented and perhaps requires a utility function to get the correct minimal
ONI_OPT_BLOCKREADSIZE
.