estimated_stream_size
ctx->max_stream_size = estimated_stream_size(streaminfo->width,
stream_size = estimated_stream_size(pix->width, pix->height);