-
大小: 33.44MB文件类型: .zip金币: 2下载: 0 次发布日期: 2024-01-21
- 语言: Java
- 标签: ffmpeg-4.2.2
资源简介
ffmpeg-4.2.2-for-android(基于ffmpeg-4.2.2源码编译出的32位和64位动态库)
代码片段和文件信息
/*
* Copyright (c) 2014 Lukasz Marek
*
* Permission is hereby granted free of charge to any person obtaining a copy
* of this software and associated documentation files (the “Software“) to deal
* in the Software without restriction including without limitation the rights
* to use copy modify merge publish distribute sublicense and/or sell
* copies of the Software and to permit persons to whom the Software is
* furnished to do so subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
* IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER
* LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#include
#include
#include
static const char *type_string(int type)
{
switch (type) {
case AVIO_ENTRY_DIRECTORY:
return ““;
case AVIO_ENTRY_FILE:
return ““;
case AVIO_ENTRY_BLOCK_DEVICE:
return ““;
case AVIO_ENTRY_CHARACTER_DEVICE:
return ““;
case AVIO_ENTRY_NAMED_PIPE:
return ““;
case AVIO_ENTRY_SYMBOLIC_link:
return “nk>“;
case AVIO_ENTRY_SOCKET:
return ““;
case AVIO_ENTRY_SERVER:
return ““;
case AVIO_ENTRY_SHARE:
return ““;
case AVIO_ENTRY_WORKGROUP:
return ““;
case AVIO_ENTRY_UNKNOWN:
default:
break;
}
return ““;
}
static int list_op(const char *input_dir)
{
AVIODirEntry *entry = NULL;
AVIODirContext *ctx = NULL;
int cnt ret;
char filemode[4] uid_and_gid[20];
if ((ret = avio_open_dir(&ctx input_dir NULL)) < 0) {
av_log(NULL AV_LOG_ERROR “Cannot open directory: %s.\n“ av_err2str(ret));
goto fail;
}
cnt = 0;
for (;;) {
if ((ret = avio_read_dir(ctx &entry)) < 0) {
av_log(NULL AV_LOG_ERROR “Cannot list directory: %s.\n“ av_err2str(ret));
goto fail;
}
if (!entry)
break;
if (entry->filemode == -1) {
snprintf(filemode 4 “???“);
} else {
snprintf(filemode 4 “%3“PRIo64 entry->filemode);
}
snprintf(uid_and_gid 20 “%“PRId64“(%“PRId64“)“ entry->user_id entry->group_id);
if (cnt == 0)
av_log(NULL AV_LOG_INFO “%-9s %12s %30s %10s %s %16s %16s %16s\n“
“TYPE“ “SIZE“ “NAME“ “UID(GID)“ “UGO“ “MODIFIED“
“ACCE
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-01-17 01:33 ffmpeg-4.2.2-for-android\
目录 0 2020-01-17 01:33 ffmpeg-4.2.2-for-android\x86-64\
文件 6148 2020-01-17 01:33 ffmpeg-4.2.2-for-android\.DS_Store
文件 120 2020-01-17 01:33 __MACOSX\ffmpeg-4.2.2-for-android\._.DS_Store
目录 0 2020-01-15 09:33 ffmpeg-4.2.2-for-android\armv8-a\
目录 0 2020-01-15 11:00 ffmpeg-4.2.2-for-android\armv7-a\
目录 0 2020-01-17 01:15 ffmpeg-4.2.2-for-android\x86\
目录 0 2020-01-17 01:33 ffmpeg-4.2.2-for-android\x86-64\include\
目录 0 2020-01-17 01:33 ffmpeg-4.2.2-for-android\x86-64\lib\
目录 0 2020-01-17 01:33 ffmpeg-4.2.2-for-android\x86-64\share\
文件 6148 2020-01-15 11:00 ffmpeg-4.2.2-for-android\armv8-a\.DS_Store
文件 120 2020-01-15 11:00 __MACOSX\ffmpeg-4.2.2-for-android\armv8-a\._.DS_Store
目录 0 2020-01-15 09:31 ffmpeg-4.2.2-for-android\armv8-a\include\
目录 0 2020-01-15 09:31 ffmpeg-4.2.2-for-android\armv8-a\lib\
目录 0 2020-01-15 09:31 ffmpeg-4.2.2-for-android\armv8-a\share\
文件 6148 2020-01-16 06:31 ffmpeg-4.2.2-for-android\armv7-a\.DS_Store
文件 120 2020-01-16 06:31 __MACOSX\ffmpeg-4.2.2-for-android\armv7-a\._.DS_Store
目录 0 2020-01-15 09:47 ffmpeg-4.2.2-for-android\armv7-a\include\
目录 0 2020-01-15 09:47 ffmpeg-4.2.2-for-android\armv7-a\lib\
目录 0 2020-01-16 01:03 ffmpeg-4.2.2-for-android\armv7-a\share\
文件 6148 2020-01-17 01:20 ffmpeg-4.2.2-for-android\x86\.DS_Store
文件 120 2020-01-17 01:20 __MACOSX\ffmpeg-4.2.2-for-android\x86\._.DS_Store
目录 0 2020-01-17 01:11 ffmpeg-4.2.2-for-android\x86\include\
目录 0 2020-01-17 01:11 ffmpeg-4.2.2-for-android\x86\lib\
目录 0 2020-01-17 01:11 ffmpeg-4.2.2-for-android\x86\share\
目录 0 2020-01-17 01:33 ffmpeg-4.2.2-for-android\x86-64\include\libavfilter\
目录 0 2020-01-17 01:33 ffmpeg-4.2.2-for-android\x86-64\include\libavutil\
目录 0 2020-01-17 01:33 ffmpeg-4.2.2-for-android\x86-64\include\libavformat\
目录 0 2020-01-17 01:33 ffmpeg-4.2.2-for-android\x86-64\include\libswscale\
目录 0 2020-01-17 01:33 ffmpeg-4.2.2-for-android\x86-64\include\libavcodec\
目录 0 2020-01-17 01:33 ffmpeg-4.2.2-for-android\x86-64\include\libswresample\
............此处省略1168个文件信息
评论
共有 条评论