diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-03-19 12:58:24 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-05-01 12:13:56 +0200 |
commit | 97036161f78b336d9778460335d8fedb42259e5f (patch) | |
tree | 85f295d940ddb8d1a205c4fd3fc84ecb62fbddc9 /Makefile | |
parent | cecf2f690a16ad8a99d739f42b3bdb6745fafc07 (diff) |
snapshot: Add JPEG compression support
Specifying the -j flag results in captured images being saved in JPEG
format instead of raw YUYV. JPEG compression implies YUYV capture,
software demosaicing isn't supported.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -9,6 +9,13 @@ LIBS := -lomap3isp -lrt OBJ_LIVE := live.o events.o iq.o videoout.o OBJ_SNAP := snapshot.o events.o iq.o +ifneq (x$(LIBJPEG), x) +CFLAGS += -I$(LIBJPEG)/include -DUSE_LIBJPEG=1 +SNAP_LDFLAGS = -L$(LIBJPEG)/lib +SNAP_LIBS = -ljpeg +OBJ_SNAP += jpeg.o +endif + %.o : %.c $(CC) $(CFLAGS) -c -o $@ $< @@ -18,7 +25,7 @@ live: $(OBJ_LIVE) isp/libomap3isp.so $(CC) $(LDFLAGS) -o $@ $(OBJ_LIVE) $(LIBS) snapshot: $(OBJ_SNAP) isp/libomap3isp.so - $(CC) $(LDFLAGS) -o $@ $(OBJ_SNAP) $(LIBS) + $(CC) $(LDFLAGS) $(SNAP_LDFLAGS) -o $@ $(OBJ_SNAP) $(LIBS) $(SNAP_LIBS) __isp: $(MAKE) -C isp CROSS_COMPILE=$(CROSS_COMPILE) KDIR=$(KDIR) |