资源简介
android ffmpeg4.2.1-lib库,支持libx264、lamemp3、fdk-aac、android硬解码
代码片段和文件信息
/*
* 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
I.A.... 169612 2019-11-28 13:57 android-lib\bin\ffmpeg
I.A.... 955128 2019-11-27 19:31 android-lib\bin\lame
I.A.... 56819 2019-11-28 08:50 android-lib\include\fdk-aac\aacdecoder_lib.h
I.A.... 89147 2019-11-28 08:50 android-lib\include\fdk-aac\aacenc_lib.h
I.A.... 33885 2019-11-28 08:50 android-lib\include\fdk-aac\FDK_audio.h
I.A.... 25420 2019-11-28 08:50 android-lib\include\fdk-aac\genericStds.h
I.A.... 14123 2019-11-28 08:50 android-lib\include\fdk-aac\machine_type.h
I.A.... 8413 2019-11-28 08:50 android-lib\include\fdk-aac\syslib_channelMapDescr.h
I.A.... 48851 2019-11-27 19:31 android-lib\include\lame\lame.h
I.A.... 1207 2019-11-28 13:57 android-lib\include\libavcodec\ac3_parser.h
I.A.... 1354 2019-11-28 13:57 android-lib\include\libavcodec\adts_parser.h
I.A.... 214339 2019-11-28 13:57 android-lib\include\libavcodec\avcodec.h
I.A.... 2570 2019-11-28 13:57 android-lib\include\libavcodec\avdct.h
I.A.... 3111 2019-11-28 13:57 android-lib\include\libavcodec\avfft.h
I.A.... 2853 2019-11-28 13:57 android-lib\include\libavcodec\d3d11va.h
I.A.... 4044 2019-11-28 13:57 android-lib\include\libavcodec\dirac.h
I.A.... 3715 2019-11-28 13:57 android-lib\include\libavcodec\dv_profile.h
I.A.... 2361 2019-11-28 13:57 android-lib\include\libavcodec\dxva2.h
I.A.... 1650 2019-11-28 13:57 android-lib\include\libavcodec\jni.h
I.A.... 3450 2019-11-28 13:57 android-lib\include\libavcodec\mediacodec.h
I.A.... 3763 2019-11-28 13:57 android-lib\include\libavcodec\qsv.h
I.A.... 2297 2019-11-28 13:57 android-lib\include\libavcodec\vaapi.h
I.A.... 5796 2019-11-28 13:57 android-lib\include\libavcodec\vdpau.h
I.A.... 4896 2019-11-28 13:57 android-lib\include\libavcodec\version.h
I.A.... 4029 2019-11-28 13:57 android-lib\include\libavcodec\videotoolbox.h
I.A.... 2285 2019-11-28 13:57 android-lib\include\libavcodec\vorbis_parser.h
I.A.... 6062 2019-11-28 13:57 android-lib\include\libavcodec\xvmc.h
I.A.... 17918 2019-11-28 13:57 android-lib\include\libavdevice\avdevice.h
I.A.... 1861 2019-11-28 13:57 android-lib\include\libavdevice\version.h
I.A.... 42263 2019-11-28 13:57 android-lib\include\libavfilter\avfilter.h
............此处省略191个文件信息
评论
共有 条评论