mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-15 19:08:54 +00:00
V1.0.6
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2023 ArtInChip Technology Co. Ltd
|
||||
*
|
||||
* author: <jun.ma@artinchip.com>
|
||||
* Desc: aic_parser
|
||||
*/
|
||||
* Copyright (C) 2020-2024 ArtInChip Technology Co. Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Author: <jun.ma@artinchip.com>
|
||||
* Desc: aic parser
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2024 Artinchip Technology Co. Ltd
|
||||
*
|
||||
* author: <che.jiang@artinchip.com>
|
||||
* Desc: aic_avi_parser
|
||||
*/
|
||||
* Copyright (C) 2020-2024 ArtInChip Technology Co. Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Author: <che.jiang@artinchip.com>
|
||||
* Desc: aic avi parser
|
||||
*/
|
||||
|
||||
#define LOG_TAG "avi_parse"
|
||||
|
||||
#include <malloc.h>
|
||||
@@ -149,7 +152,7 @@ s32 aic_avi_parser_create(unsigned char *uri, struct aic_parser **parser)
|
||||
}
|
||||
memset(avi_parser, 0, sizeof(struct aic_avi_parser));
|
||||
|
||||
if (aic_stream_open((char *)uri, &avi_parser->stream) < 0) {
|
||||
if (aic_stream_open((char *)uri, &avi_parser->stream, O_RDONLY) < 0) {
|
||||
loge("stream open fail");
|
||||
ret = -1;
|
||||
goto exit;
|
||||
|
||||
@@ -1,13 +1,16 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2023 ArtInChip Technology Co. Ltd
|
||||
*
|
||||
* author: <jun.ma@artinchip.com>
|
||||
* Desc: aic_mov_parser
|
||||
*/
|
||||
* Copyright (C) 2020-2024 ArtInChip Technology Co. Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Author: <jun.ma@artinchip.com>
|
||||
* Desc: aic mov parser
|
||||
*/
|
||||
|
||||
#include <malloc.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
#include <fcntl.h>
|
||||
#include "aic_mov_parser.h"
|
||||
#include "mpp_log.h"
|
||||
#include "mpp_mem.h"
|
||||
@@ -138,7 +141,7 @@ s32 aic_mov_parser_create(unsigned char *uri, struct aic_parser **parser)
|
||||
}
|
||||
memset(mov_parser, 0, sizeof(struct aic_mov_parser));
|
||||
|
||||
if (aic_stream_open((char *)uri, &mov_parser->stream) < 0) {
|
||||
if (aic_stream_open((char *)uri, &mov_parser->stream, O_RDONLY) < 0) {
|
||||
loge("stream open fail");
|
||||
ret = -1;
|
||||
goto exit;
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2023 ArtInChip Technology Co. Ltd
|
||||
*
|
||||
* author: <jun.ma@artinchip.com>
|
||||
* Desc: aic_mp3_parser
|
||||
*/
|
||||
* Copyright (C) 2020-2024 ArtInChip Technology Co. Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Author: <jun.ma@artinchip.com>
|
||||
* Desc: aic mp3 parser
|
||||
*/
|
||||
|
||||
#include <malloc.h>
|
||||
#include <string.h>
|
||||
@@ -86,7 +88,7 @@ s32 aic_mp3_parser_create(unsigned char *uri, struct aic_parser **parser)
|
||||
}
|
||||
memset(mp3_parser, 0, sizeof(struct aic_mp3_parser));
|
||||
|
||||
if (aic_stream_open((char *)uri, &mp3_parser->stream) < 0) {
|
||||
if (aic_stream_open((char *)uri, &mp3_parser->stream, O_RDONLY) < 0) {
|
||||
loge("stream open fail");
|
||||
ret = -1;
|
||||
goto exit;
|
||||
|
||||
@@ -1,14 +1,17 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2023 ArtInChip Technology Co. Ltd
|
||||
*
|
||||
* author: <qi.xu@artinchip.com>
|
||||
* Desc: parser for H.264/H.265 raw data
|
||||
*/
|
||||
* Copyright (C) 2020-2024 ArtInChip Technology Co. Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Author: <jun.ma@artinchip.com>
|
||||
* Desc: aic raw parser
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "aic_raw_parser.h"
|
||||
#include "mpp_log.h"
|
||||
@@ -235,7 +238,7 @@ s32 aic_raw_parser_create(unsigned char *uri, struct aic_parser **parser)
|
||||
}
|
||||
impl->buf_len = STEAM_BUF_LEN;
|
||||
|
||||
if (aic_stream_open((char *)uri, &impl->stream) < 0) {
|
||||
if (aic_stream_open((char *)uri, &impl->stream, O_RDONLY) < 0) {
|
||||
loge("stream open fail");
|
||||
goto exit;
|
||||
}
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2023 ArtInChip Technology Co. Ltd
|
||||
*
|
||||
* author: <jun.ma@artinchip.com>
|
||||
* Desc: aic_wav_parser
|
||||
*/
|
||||
* Copyright (C) 2020-2024 ArtInChip Technology Co. Ltd
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Author: <jun.ma@artinchip.com>
|
||||
* Desc: aic wav parser
|
||||
*/
|
||||
|
||||
#include <malloc.h>
|
||||
#include <string.h>
|
||||
@@ -86,7 +88,7 @@ s32 aic_wav_parser_create(unsigned char *uri, struct aic_parser **parser)
|
||||
}
|
||||
memset(wav_parser, 0, sizeof(struct aic_wav_parser));
|
||||
|
||||
if (aic_stream_open((char *)uri, &wav_parser->stream) < 0) {
|
||||
if (aic_stream_open((char *)uri, &wav_parser->stream, O_RDONLY) < 0) {
|
||||
loge("stream open fail");
|
||||
ret = -1;
|
||||
goto exit;
|
||||
|
||||
Reference in New Issue
Block a user