mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-07 01:52:46 +08:00
[jpegd]: fix the compiler warnings and hide some symbols
The internal of the parser had better not be exported. Change-Id: I4c3d786ebc0424e90d135a43aaa027daac390291 Signed-off-by: Randy Li <randy.li@rock-chips.com>
This commit is contained in:
@@ -1024,7 +1024,7 @@ jpegd_handle_stream(RK_U8 *src, RK_U32 src_size,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
MPP_RET jpegd_prepare(void *ctx, MppPacket pkt, HalDecTask *task)
|
static MPP_RET jpegd_prepare(void *ctx, MppPacket pkt, HalDecTask *task)
|
||||||
{
|
{
|
||||||
jpegd_dbg_func("enter\n");
|
jpegd_dbg_func("enter\n");
|
||||||
MPP_RET ret = MPP_OK;
|
MPP_RET ret = MPP_OK;
|
||||||
@@ -1166,7 +1166,7 @@ static MPP_RET jpegd_allocate_frame(JpegdCtx *ctx)
|
|||||||
return MPP_OK;
|
return MPP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
MPP_RET jpegd_update_frame(JpegdCtx *ctx)
|
static MPP_RET jpegd_update_frame(JpegdCtx *ctx)
|
||||||
{
|
{
|
||||||
jpegd_dbg_func("enter\n");
|
jpegd_dbg_func("enter\n");
|
||||||
|
|
||||||
@@ -1178,7 +1178,7 @@ MPP_RET jpegd_update_frame(JpegdCtx *ctx)
|
|||||||
return MPP_OK;
|
return MPP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
MPP_RET jpegd_parse(void *ctx, HalDecTask *task)
|
static MPP_RET jpegd_parse(void *ctx, HalDecTask *task)
|
||||||
{
|
{
|
||||||
jpegd_dbg_func("enter\n");
|
jpegd_dbg_func("enter\n");
|
||||||
MPP_RET ret = MPP_OK;
|
MPP_RET ret = MPP_OK;
|
||||||
@@ -1204,7 +1204,7 @@ MPP_RET jpegd_parse(void *ctx, HalDecTask *task)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
MPP_RET jpegd_deinit(void *ctx)
|
static MPP_RET jpegd_deinit(void *ctx)
|
||||||
{
|
{
|
||||||
jpegd_dbg_func("enter\n");
|
jpegd_dbg_func("enter\n");
|
||||||
JpegdCtx *JpegCtx = (JpegdCtx *)ctx;
|
JpegdCtx *JpegCtx = (JpegdCtx *)ctx;
|
||||||
@@ -1245,7 +1245,7 @@ MPP_RET jpegd_deinit(void *ctx)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
MPP_RET jpegd_init(void *ctx, ParserCfg *parser_cfg)
|
static MPP_RET jpegd_init(void *ctx, ParserCfg *parser_cfg)
|
||||||
{
|
{
|
||||||
jpegd_dbg_func("enter\n");
|
jpegd_dbg_func("enter\n");
|
||||||
JpegdCtx *JpegCtx = (JpegdCtx *)ctx;
|
JpegdCtx *JpegCtx = (JpegdCtx *)ctx;
|
||||||
@@ -1313,7 +1313,7 @@ MPP_RET jpegd_init(void *ctx, ParserCfg *parser_cfg)
|
|||||||
return MPP_OK;
|
return MPP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
MPP_RET jpegd_flush(void *ctx)
|
static MPP_RET jpegd_flush(void *ctx)
|
||||||
{
|
{
|
||||||
jpegd_dbg_func("enter\n");
|
jpegd_dbg_func("enter\n");
|
||||||
JpegdCtx *JpegCtx = (JpegdCtx *)ctx;
|
JpegdCtx *JpegCtx = (JpegdCtx *)ctx;
|
||||||
@@ -1322,7 +1322,7 @@ MPP_RET jpegd_flush(void *ctx)
|
|||||||
return MPP_OK;
|
return MPP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
MPP_RET jpegd_reset(void *ctx)
|
static MPP_RET jpegd_reset(void *ctx)
|
||||||
{
|
{
|
||||||
jpegd_dbg_func("enter\n");
|
jpegd_dbg_func("enter\n");
|
||||||
JpegdCtx *JpegCtx = (JpegdCtx *)ctx;
|
JpegdCtx *JpegCtx = (JpegdCtx *)ctx;
|
||||||
@@ -1333,7 +1333,7 @@ MPP_RET jpegd_reset(void *ctx)
|
|||||||
return MPP_OK;
|
return MPP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
MPP_RET jpegd_control(void *ctx, RK_S32 cmd, void *param)
|
static MPP_RET jpegd_control(void *ctx, RK_S32 cmd, void *param)
|
||||||
{
|
{
|
||||||
jpegd_dbg_func("enter\n");
|
jpegd_dbg_func("enter\n");
|
||||||
MPP_RET ret = MPP_OK;
|
MPP_RET ret = MPP_OK;
|
||||||
@@ -1355,7 +1355,7 @@ MPP_RET jpegd_control(void *ctx, RK_S32 cmd, void *param)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
MPP_RET jpegd_callback(void *ctx, void *err_info)
|
static MPP_RET jpegd_callback(void *ctx, void *err_info)
|
||||||
{
|
{
|
||||||
jpegd_dbg_func("enter\n");
|
jpegd_dbg_func("enter\n");
|
||||||
(void) ctx;
|
(void) ctx;
|
||||||
@@ -1365,18 +1365,18 @@ MPP_RET jpegd_callback(void *ctx, void *err_info)
|
|||||||
}
|
}
|
||||||
|
|
||||||
const ParserApi api_jpegd_parser = {
|
const ParserApi api_jpegd_parser = {
|
||||||
"jpegd_parse",
|
.name = "jpegd_parse",
|
||||||
MPP_VIDEO_CodingMJPEG,
|
.coding = MPP_VIDEO_CodingMJPEG,
|
||||||
sizeof(JpegdCtx),
|
.ctx_size = sizeof(JpegdCtx),
|
||||||
0,
|
.flag = 0,
|
||||||
jpegd_init,
|
.init = jpegd_init,
|
||||||
jpegd_deinit,
|
.deinit = jpegd_deinit,
|
||||||
jpegd_prepare,
|
.prepare = jpegd_prepare,
|
||||||
jpegd_parse,
|
.parse = jpegd_parse,
|
||||||
jpegd_reset,
|
.reset = jpegd_reset,
|
||||||
jpegd_flush,
|
.flush = jpegd_flush,
|
||||||
jpegd_control,
|
.control = jpegd_control,
|
||||||
jpegd_callback,
|
.callback = jpegd_callback,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -24,16 +24,6 @@ extern "C" {
|
|||||||
|
|
||||||
extern const ParserApi api_jpegd_parser;
|
extern const ParserApi api_jpegd_parser;
|
||||||
|
|
||||||
|
|
||||||
MPP_RET jpegd_prepare(void *ctx, MppPacket pkt, HalDecTask *task);
|
|
||||||
MPP_RET jpegd_init(void *ctx, ParserCfg *parser_cfg);
|
|
||||||
MPP_RET jpegd_parse(void *ctx, HalDecTask *task);
|
|
||||||
MPP_RET jpegd_deinit(void *ctx);
|
|
||||||
MPP_RET jpegd_flush(void *ctx);
|
|
||||||
MPP_RET jpegd_reset(void *ctx);
|
|
||||||
MPP_RET jpegd_control(void *ctx, RK_S32 cmd, void *param);
|
|
||||||
MPP_RET jpegd_callback(void *ctx, void *err_info);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user