Skip to content

Commit

Permalink
Added support for reading video data from file (libavformat/avutil/av…
Browse files Browse the repository at this point in the history
…codec).

Added support for streaming H.264 (framebased+extradata).
  • Loading branch information
wdl83 committed Nov 23, 2022
1 parent 74522b2 commit 1a31a06
Show file tree
Hide file tree
Showing 2 changed files with 623 additions and 263 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ CROSS_COMPILE ?=
ARCH ?= x86
KERNEL_DIR ?= /usr/src/linux

LIBAV=`pkg-config --libs libavformat libavutil libavcodec`

CC := $(CROSS_COMPILE)gcc
KERNEL_INCLUDE := -I$(KERNEL_DIR)/include -I$(KERNEL_DIR)/arch/$(ARCH)/include
CFLAGS := -W -Wall -g $(KERNEL_INCLUDE)
LDFLAGS := -g
CFLAGS := -std=gnu99 -Wall -Wextra -g $(KERNEL_INCLUDE) -O2
LDFLAGS := -g $(LIBAV)

all: uvc-gadget

uvc-gadget: uvc-gadget.o
$(CC) $(LDFLAGS) -o $@ $^
$(CC) -o $@ $^ $(LDFLAGS)

clean:
rm -f *.o
Expand Down
Loading

0 comments on commit 1a31a06

Please sign in to comment.