-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I3378253ef824c976ad560b8b3ae12ffb8cf7ffcc
- Loading branch information
Varun Colbert
committed
Jul 15, 2010
1 parent
202d437
commit 3789b3d
Showing
14 changed files
with
232 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
all: | ||
@echo "invoking vidc/vdec make" | ||
$(MAKE) -f $(SRCDIR)/vidc/vdec/vdec.mk | ||
mv $(SYSROOTLIB_DIR)/mm-vdec-omx-test $(SYSROOTBIN_DIR) | ||
mv $(SYSROOTLIB_DIR)/mm-video-driver-test $(SYSROOTBIN_DIR) | ||
@echo "invoking vidc/enc make" | ||
$(MAKE) -f $(SRCDIR)/vidc/venc/venc.mk | ||
mv $(SYSROOTLIB_DIR)/mm-venc-omx-test720p $(SYSROOTBIN_DIR) | ||
mv $(SYSROOTLIB_DIR)/mm-video-encdrv-test $(SYSROOTBIN_DIR) |
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# --------------------------------------------------------------------------------- | ||
# MM-CORE-OSS-OMXCORE | ||
# --------------------------------------------------------------------------------- | ||
|
||
# Source Path | ||
VDEC_SRC := $(SRCDIR)/vidc/vdec | ||
|
||
# cross-compiler flags | ||
CFLAGS := -Wall | ||
CFLAGS += -Wundef | ||
CFLAGS += -Wstrict-prototypes | ||
CFLAGS += -Wno-trigraphs | ||
|
||
# cross-compile flags specific to shared objects | ||
CFLAGS_SO := $(QCT_CFLAGS_SO) | ||
|
||
# Preproc flags | ||
CPPFLAGS := $(QCT_CPPFLAGS) | ||
|
||
# linker flags for shared objects | ||
LDFLAGS_SO += -shared | ||
|
||
# linker flags | ||
LDFLAGS := -L$(SYSROOTLIB_DIR) | ||
|
||
# hard coding target for 7630 | ||
TARGET := 7630 | ||
|
||
# --------------------------------------------------------------------------------- | ||
# BUILD | ||
# --------------------------------------------------------------------------------- | ||
|
||
all: libOmxVdec.so mm-vdec-omx-test mm-video-driver-test | ||
|
||
# --------------------------------------------------------------------------------- | ||
# COMPILE LIBRARY | ||
# --------------------------------------------------------------------------------- | ||
|
||
SRCS := $(VDEC_SRC)/src/frameparser.cpp | ||
SRCS += $(VDEC_SRC)/src/h264_utils.cpp | ||
SRCS += $(VDEC_SRC)/src/omx_vdec.cpp | ||
|
||
CPPFLAGS += -I$(VDEC_SRC)/inc | ||
CPPFLAGS += -I$(SYSROOTINC_DIR)/mm-core | ||
CPPFLAGS += -I$(KERNEL_DIR)/include | ||
CPPFLAGS += -I$(KERNEL_DIR)/arch/arm/include | ||
|
||
CPPFLAGS += -UENABLE_DEBUG_LOW | ||
CPPFLAGS += -DENABLE_DEBUG_HIGH | ||
CPPFLAGS += -DENABLE_DEBUG_ERROR | ||
CPPFLAGS += -UMULTI_DEC_INST | ||
CPPFLAGS += -UINPUT_BUFFER_LOG | ||
CPPFLAGS += -UOUTPUT_BUFFER_LOG | ||
CPPFLAGS += -DMAX_RES_720P | ||
|
||
LDLIBS := -lrt | ||
LDLIBS += -lpthread | ||
|
||
libOmxVdec.so:$(SRCS) | ||
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_SO) $(LDFLAGS_SO) -Wl,-soname,libOmxVdec.so -o $@ $^ $(LDLIBS) | ||
|
||
# --------------------------------------------------------------------------------- | ||
# COMPILE TEST APP | ||
# --------------------------------------------------------------------------------- | ||
|
||
TEST_LDLIBS := -lpthread | ||
TEST_LDLIBS += -ldl | ||
TEST_LDLIBS += -lstdc++ | ||
TEST_LDLIBS += -lOmxCore | ||
|
||
SRCS := $(VDEC_SRC)/src/queue.c | ||
SRCS += $(VDEC_SRC)/test/omx_vdec_test.cpp | ||
|
||
mm-vdec-omx-test: libOmxVdec.so $(SRCS) | ||
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(TEST_LDLIBS) | ||
|
||
# --------------------------------------------------------------------------------- | ||
# COMPILE TEST APP | ||
# --------------------------------------------------------------------------------- | ||
|
||
TEST_LDLIBS := -lpthread | ||
TEST_LDLIBS += -ldl | ||
TEST_LDLIBS += -lstdc++ | ||
TEST_LDLIBS += -lOmxCore | ||
|
||
SRCS := $(VDEC_SRC)/src/message_queue.c | ||
SRCS += $(VDEC_SRC)/test/decoder_driver_test.c | ||
|
||
mm-video-driver-test: libOmxVdec.so $(SRCS) | ||
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(TEST_LDLIBS) | ||
|
||
# --------------------------------------------------------------------------------- | ||
# END | ||
# --------------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# --------------------------------------------------------------------------------- | ||
# MM-CORE-OSS-OMXCORE | ||
# --------------------------------------------------------------------------------- | ||
|
||
# Source Path | ||
VENC_SRC := $(SRCDIR)/vidc/venc | ||
|
||
# cross-compiler flags | ||
CFLAGS := -Wall | ||
CFLAGS += -Wundef | ||
CFLAGS += -Wstrict-prototypes | ||
CFLAGS += -Wno-trigraphs | ||
|
||
# cross-compile flags specific to shared objects | ||
CFLAGS_SO := $(QCT_CFLAGS_SO) | ||
|
||
# Preproc flags | ||
CPPFLAGS := $(QCT_CPPFLAGS) | ||
|
||
# linker flags for shared objects | ||
LDFLAGS_SO += -shared | ||
|
||
# linker flags | ||
LDFLAGS := -L$(SYSROOTLIB_DIR) | ||
|
||
# hard coding target for 7630 | ||
TARGET := 7630 | ||
|
||
# --------------------------------------------------------------------------------- | ||
# BUILD | ||
# --------------------------------------------------------------------------------- | ||
|
||
all: libOmxVenc.so mm-venc-omx-test720p mm-video-encdrv-test | ||
|
||
# --------------------------------------------------------------------------------- | ||
# COMPILE LIBRARY | ||
# --------------------------------------------------------------------------------- | ||
|
||
SRCS := $(VENC_SRC)/src/omx_video_base.cpp | ||
SRCS += $(VENC_SRC)/src/omx_video_encoder.cpp | ||
SRCS += $(VENC_SRC)/src/video_encoder_device.cpp | ||
|
||
CPPFLAGS += -I$(VENC_SRC)/inc | ||
CPPFLAGS += -I$(SYSROOTINC_DIR)/mm-core | ||
CPPFLAGS += -I$(KERNEL_DIR)/include | ||
CPPFLAGS += -I$(KERNEL_DIR)/arch/arm/include | ||
|
||
CPPFLAGS += -UENABLE_DEBUG_LOW | ||
CPPFLAGS += -DENABLE_DEBUG_HIGH | ||
CPPFLAGS += -DENABLE_DEBUG_ERROR | ||
CPPFLAGS += -UINPUT_BUFFER_LOG | ||
CPPFLAGS += -UOUTPUT_BUFFER_LOG | ||
|
||
LDLIBS := -lrt | ||
LDLIBS += -lpthread | ||
|
||
libOmxVenc.so:$(SRCS) | ||
$(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_SO) $(LDFLAGS_SO) -Wl,-soname,libOmxVenc.so -o $@ $^ $(LDLIBS) | ||
|
||
# --------------------------------------------------------------------------------- | ||
# COMPILE TEST APP | ||
# --------------------------------------------------------------------------------- | ||
|
||
TEST_LDLIBS := -lpthread | ||
TEST_LDLIBS += -ldl | ||
TEST_LDLIBS += -lstdc++ | ||
TEST_LDLIBS += -lOmxCore | ||
|
||
SRCS := $(VENC_SRC)/test/venc_test.cpp | ||
SRCS += $(VENC_SRC)/test/camera_test.cpp | ||
SRCS += $(VENC_SRC)/test/venc_util.c | ||
SRCS += $(VENC_SRC)/test/fb_test.c | ||
|
||
mm-venc-omx-test720p: libOmxVenc.so $(SRCS) | ||
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(TEST_LDLIBS) | ||
|
||
# --------------------------------------------------------------------------------- | ||
# COMPILE TEST APP | ||
# --------------------------------------------------------------------------------- | ||
|
||
TEST_LDLIBS := -lpthread | ||
TEST_LDLIBS += -ldl | ||
TEST_LDLIBS += -lstdc++ | ||
TEST_LDLIBS += -lOmxCore | ||
|
||
SRCS := $(VENC_SRC)/test/video_encoder_test.c | ||
SRCS += $(VENC_SRC)/test/queue.c | ||
|
||
mm-video-encdrv-test: libOmxVenc.so $(SRCS) | ||
$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $^ $(TEST_LDLIBS) | ||
|
||
# --------------------------------------------------------------------------------- | ||
# END | ||
# --------------------------------------------------------------------------------- |