Added a compile script. Aslo small changes to main.

This commit is contained in:
Relintai 2020-12-23 17:52:22 +01:00
parent bd99035701
commit 0b95f6696f
3 changed files with 11 additions and 1 deletions

View File

@ -14,6 +14,8 @@ add_executable(fbcp main.c)
target_link_libraries(fbcp bcm_host) target_link_libraries(fbcp bcm_host)
set (CMAKE_C_FLAGS "-std=gnu99 ${CMAKE_C_FLAGS}")
set (CMAKE_C_FLAGS "-std=gnu99 ${CMAKE_C_FLAGS}") set (CMAKE_C_FLAGS "-std=gnu99 ${CMAKE_C_FLAGS}")
set (CMAKE_C_FLAGS "-std=gnu99 ${CMAKE_C_FLAGS}") set (CMAKE_C_FLAGS "-std=gnu99 ${CMAKE_C_FLAGS}")

8
compile.sh Executable file
View File

@ -0,0 +1,8 @@
cd build
make
install fbcp /usr/local/bin/fbcp

2
main.c
View File

@ -107,7 +107,7 @@ int process_interlaced() {
} }
//not yet sure if needed, but zero out the rest //not yet sure if needed, but zero out the rest
for(int i= (row_offset + 1 % INTERLACE_NUM); i< vinfo.xres * vinfo.yres / 2; i += INTERLACE_NUM) { for(int i= ((row_offset + 1) % INTERLACE_NUM); i< vinfo.xres * vinfo.yres / 2; i += INTERLACE_NUM) {
p2[i] = 0; p2[i] = 0;
} }