Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit 87b8910

Browse files
committed
renamed v4l2_to_png
1 parent ca3a959 commit 87b8910

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if (ENABLE_DISPMANX)
3636
endif (ENABLE_DISPMANX)
3737

3838
if (ENABLE_V4L2)
39-
add_subdirectory(v4l2png)
39+
add_subdirectory(v4l2_to_png)
4040
endif (ENABLE_V4L2)
4141

4242
add_executable(test_blackborderdetector

test/v4l2png/CMakeLists.txt renamed to test/v4l2_to_png/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ find_package(Qt4 REQUIRED QtCore QtGui)
44

55
include_directories(${QT_INCLUDES})
66

7-
add_executable(v4l_to_png
8-
v4l2png.cpp
7+
add_executable(v4l2_to_png
8+
v4l2_to_png.cpp
99
V4L2Grabber.h
1010
V4L2Grabber.cpp)
1111

12-
target_link_libraries(v4l_to_png
12+
target_link_libraries(v4l2_to_png
1313
getoptPlusPlus)
1414

15-
qt4_use_modules(v4l_to_png
15+
qt4_use_modules(v4l2_to_png
1616
Core
1717
Gui)

test/v4l2png/V4L2Grabber.cpp renamed to test/v4l2_to_png/V4L2Grabber.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ void V4L2Grabber::capture(int frameCount)
9696
}
9797

9898
if (read_frame())
99+
{
99100
break;
101+
}
102+
100103
/* EAGAIN - continue select loop. */
101104
}
102105
}
@@ -590,6 +593,7 @@ void V4L2Grabber::process_image(const uint8_t * data)
590593
int width = (_width + _pixelDecimation/2) / _pixelDecimation;
591594
int height = (_height + _pixelDecimation/2) / _pixelDecimation;
592595

596+
593597
QImage image(width, height, QImage::Format_RGB888);
594598

595599
for (int ySource = _pixelDecimation/2, yDest = 0; ySource < _height; ySource += _pixelDecimation, ++yDest)
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)