4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 15:53:32 +08:00

fix external library path.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1310 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com 2011-03-06 02:40:16 +00:00
parent 1090e48f01
commit 062f3ad035
2 changed files with 18 additions and 2 deletions

View File

@ -4,12 +4,16 @@
#ifdef RTGUI_IMAGE_JPEG
#include <stdio.h>
#include <stdlib.h>
#include "jpeg/jpeglib.h"
#include "jpeglib.h"
#include <rtgui/rtgui_system.h>
#include <rtgui/filerw.h>
#include <rtgui/image_jpeg.h>
#ifdef RTGUI_USING_DFS_FILERW
#include <dfs_posix.h>
#endif
static rt_bool_t rtgui_image_jpeg_check(struct rtgui_filerw* file);
static rt_bool_t rtgui_image_jpeg_load(struct rtgui_image* image, struct rtgui_filerw* file, rt_bool_t load);
static void rtgui_image_jpeg_unload(struct rtgui_image* image);
@ -44,6 +48,16 @@ struct rtgui_image_engine rtgui_image_jpeg_engine =
rtgui_image_jpeg_blit
};
struct rtgui_image_engine rtgui_image_jpg_engine =
{
"jpg",
{RT_NULL},
rtgui_image_jpeg_check,
rtgui_image_jpeg_load,
rtgui_image_jpeg_unload,
rtgui_image_jpeg_blit
};
#define INPUT_BUFFER_SIZE 4096
typedef struct {
struct jpeg_source_mgr pub;
@ -271,6 +285,8 @@ void rtgui_image_jpeg_init()
{
/* register jpeg on image system */
rtgui_image_register_engine(&rtgui_image_jpeg_engine);
/* register jpg on image system */
rtgui_image_register_engine(&rtgui_image_jpg_engine);
}
static void my_error_exit(j_common_ptr cinfo)

View File

@ -2,7 +2,7 @@
#include <rtgui/rtgui_system.h>
#ifdef RTGUI_IMAGE_PNG
#include "libpng/png.h"
#include "png.h"
#include <rtgui/image_png.h>
#define PNG_MAGIC_LEN 8