資源簡介
Ubuntu交叉編譯OpenCV時需要安裝的ffmpeg庫,親測可用。
代碼片段和文件信息
/*
?*?Various?utilities?for?command?line?tools
?*?Copyright?(c)?2000-2003?Fabrice?Bellard
?*
?*?This?file?is?part?of?FFmpeg.
?*
?*?FFmpeg?is?free?software;?you?can?redistribute?it?and/or
?*?modify?it?under?the?terms?of?the?GNU?Lesser?General?Public
?*?License?as?published?by?the?Free?Software?Foundation;?either
?*?version?2.1?of?the?License?or?(at?your?option)?any?later?version.
?*
?*?FFmpeg?is?distributed?in?the?hope?that?it?will?be?useful
?*?but?WITHOUT?ANY?WARRANTY;?without?even?the?implied?warranty?of
?*?MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.??See?the?GNU
?*?Lesser?General?Public?License?for?more?details.
?*
?*?You?should?have?received?a?copy?of?the?GNU?Lesser?General?Public
?*?License?along?with?FFmpeg;?if?not?write?to?the?Free?Software
?*?Foundation?Inc.?51?Franklin?Street?Fifth?Floor?Boston?MA?02110-1301?USA
?*/
#include?
#include?
#include?
#include?
#include?
/*?Include?only?the?enabled?headers?since?some?compilers?(namely?Sun
???Studio)?will?not?omit?unused?inline?functions?and?create?undefined
???references?to?libraries?that?are?not?being?built.?*/
#include?“config.h“
#include?“compat/va_copy.h“
#include?“libavformat/avformat.h“
#include?“libavfilter/avfilter.h“
#include?“libavdevice/avdevice.h“
#include?“libavresample/avresample.h“
#include?“libswscale/swscale.h“
#include?“libswresample/swresample.h“
#include?“libpostproc/postprocess.h“
#include?“libavutil/avassert.h“
#include?“libavutil/avstring.h“
#include?“libavutil/bprint.h“
#include?“libavutil/display.h“
#include?“libavutil/mathematics.h“
#include?“libavutil/imgutils.h“
#include?“libavutil/libm.h“
#include?“libavutil/parseutils.h“
#include?“libavutil/pixdesc.h“
#include?“libavutil/eval.h“
#include?“libavutil/dict.h“
#include?“libavutil/opt.h“
#include?“libavutil/cpu.h“
#include?“libavutil/ffversion.h“
#include?“cmdutils.h“
#if?CONFIG_NETWORK
#include?“libavformat/network.h“
#endif
#if?HAVE_SYS_RESOURCE_H
#include?
#include?
#endif
#if?HAVE_SETDLLDIRECTORY
#include?
#endif
static?int?init_report(const?char?*env);
AVDictionary?*sws_dict;
AVDictionary?*swr_opts;
AVDictionary?*format_opts?*codec_opts?*resample_opts;
static?FILE?*report_file;
static?int?report_file_level?=?AV_LOG_DEBUG;
int?hide_banner?=?0;
void?init_opts(void)
{
????av_dict_set(&sws_dict?“flags“?“bicubic“?0);
}
void?uninit_opts(void)
{
????av_dict_free(&swr_opts);
????av_dict_free(&sws_dict);
????av_dict_free(&format_opts);
????av_dict_free(&codec_opts);
????av_dict_free(&resample_opts);
}
void?log_callback_help(void?*ptr?int?level?const?char?*fmt?va_list?vl)
{
????vfprintf(stdout?fmt?vl);
}
static?void?log_callback_report(void?*ptr?int?level?const?char?*fmt?va_list?vl)
{
????va_list?vl2;
????char?line[1024];
????static?int?print_prefix?=?1;
????va_copy(vl2?vl);
????av_log_default_callback(ptr?level?fmt?vl);
????av_log_format_line(ptr?level?fmt?vl2?line?sizeof(line)?&print_pre
- 上一篇:u014702195_7189731.zip
- 下一篇:食堂網上訂餐系統解決方案
評論
共有 條評論