summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-09-19 19:07:11 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-09-19 19:07:11 +0200
commitdb951c89d367d62eccb646ce9eb1c5bf6a9b110e (patch)
tree56c348d502ea7065dfd795631d53fe5d7ee64716 /src
parente82aabb64e8ce02ef350eb324b0034b25239ae85 (diff)
Add sub project code and linker arguments for libaudioin and lrtp.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am1
-rw-r--r--src/v4l.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 197647c..e407edc 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,7 @@
bin_PROGRAMS = simplertp
simplertp_LDADD = $(QT_LIBS) $(AO_LIBS) $(V4LC_LIBS) -ljpeg \
+ $(top_srcdir)/lrtp/src/liblrtp.la $(top_srcdir)/libaudioin/src/libaudioin.la \
$(shell ../tools/MocList o ) qrc_simplertp.o
simplertp_CXXFLAGS = $(QT_CFLAGS) $(AO_CFLAGS) $(V4LC_CFLAGS)
diff --git a/src/v4l.cc b/src/v4l.cc
index f220403..38f53b7 100644
--- a/src/v4l.cc
+++ b/src/v4l.cc
@@ -95,6 +95,7 @@ static int xioctl(int fh, int request, void *arg)
/*
* In typical computer APIs, "YUV" actually means YCbCr, and "YUYV" means
* "YCbCr 4:2:2" stored as Y0, Cb01, Y1, Cr01, Y2 ...
+ * From: http://stackoverflow.com/questions/16390783/how-to-save-yuyv-raw-data-to-jpeg-using-libjpeg
*/
static void toJpeg(int quality, unsigned char *yuyv,
int image_width, int image_height,