For DM355 platform (dvsdk 3.1), I am trying to add Codec Engine functions to compress YUV data into a JPEG picture. Currently, my program generates a YUV data file (2048x1536x2 bytes). Could anybody suggest on how to modify my make file so I could use CE functions like IMGENC1_control() and CERuntime_init()?
My current Make file is shown below.
| KERNEL_DIR=../git CROSS_COMPILE=arm-none-linux-gnueabi- CMEMLIB=cmem.a470MV INSTALL_DIR=../ramdiskfs/opt/ INCLUDES += -I$(KERNEL_DIR)/include CC = $(CROSS_COMPILE)gcc $(INCLUDES) all: hirespicture hirespicture: hirespicture.o $(CC) -o hirespicture $^ $(CMEMLIB) install: cp hirespicture $(INSTALL_DIR) clean: rm -f *.o *~ rm -f hirespicture |
If it matters, I have added the following two #include lines to my code (taken from dvtb).
#include <ti/sdo/ce/image1/imgenc1.h> #include <ti/sdo/codecs/jpegenc/ijpegenc.h> |