image: bump BufferSize
This commit is contained in:
parent
99382d0a66
commit
c0269ead20
1 changed files with 4 additions and 3 deletions
|
@ -5,11 +5,11 @@ const custom = @import("custom.zig");
|
||||||
|
|
||||||
const plugins = @import("plugin.zig");
|
const plugins = @import("plugin.zig");
|
||||||
|
|
||||||
/// Approximate size of the BMP header.
|
/// Approximate size of the BMP header, in bytes.
|
||||||
pub const BMPHeaderSize: usize = 82000;
|
pub const BMPHeaderSize: usize = 82000;
|
||||||
|
|
||||||
/// Buffer size for main copying
|
/// Buffer size for main image copying.
|
||||||
pub const BufferSize: usize = 60000;
|
pub const BufferSize: usize = 300000;
|
||||||
|
|
||||||
pub const ImageError = error{
|
pub const ImageError = error{
|
||||||
OpenFail,
|
OpenFail,
|
||||||
|
@ -176,6 +176,7 @@ pub const Image = struct {
|
||||||
return n_read == 1;
|
return n_read == 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Copy bytes from the current file to out_file.
|
||||||
fn copyBytes(
|
fn copyBytes(
|
||||||
self: *Image,
|
self: *Image,
|
||||||
out_file: *c.SNDFILE,
|
out_file: *c.SNDFILE,
|
||||||
|
|
Loading…
Reference in a new issue