Improve ISP compatibility (fractional resizing)

This commit is contained in:
Kamil Trzcinski
2022-04-05 11:26:06 +02:00
parent cdcac155f6
commit 863acbbde5
7 changed files with 30 additions and 21 deletions

View File

@ -75,6 +75,11 @@ unsigned fourcc_to_stride(unsigned width, unsigned format)
}
}
int shrink_to_block(int size, int block)
{
return size / block * block;
}
uint64_t get_monotonic_time_us(struct timespec *ts, struct timeval *tv)
{
struct timespec now;