mirror of
https://github.com/Relintai/rpi-fbcp.git
synced 2024-11-12 20:47:25 +01:00
Added a compile script. Aslo small changes to main.
This commit is contained in:
parent
bd99035701
commit
0b95f6696f
@ -14,6 +14,8 @@ add_executable(fbcp main.c)
|
||||
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}")
|
8
compile.sh
Executable file
8
compile.sh
Executable file
@ -0,0 +1,8 @@
|
||||
|
||||
cd build
|
||||
make
|
||||
install fbcp /usr/local/bin/fbcp
|
||||
|
||||
|
||||
|
||||
|
2
main.c
2
main.c
@ -107,7 +107,7 @@ int process_interlaced() {
|
||||
}
|
||||
|
||||
//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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user