From db951c89d367d62eccb646ce9eb1c5bf6a9b110e Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 19 Sep 2014 19:07:11 +0200 Subject: Add sub project code and linker arguments for libaudioin and lrtp. --- src/Makefile.am | 1 + src/v4l.cc | 1 + 2 files changed, 2 insertions(+) (limited to 'src') 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, -- cgit v1.2.3