資源簡(jiǎn)介
Ubuntu交叉編譯OpenCV時(shí)需要安裝的ffmpeg庫(kù),親測(cè)可用。
代碼片段和文件信息
/*
?*?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?“l(fā)ibavformat/avformat.h“
#include?“l(fā)ibavfilter/avfilter.h“
#include?“l(fā)ibavdevice/avdevice.h“
#include?“l(fā)ibavresample/avresample.h“
#include?“l(fā)ibswscale/swscale.h“
#include?“l(fā)ibswresample/swresample.h“
#include?“l(fā)ibpostproc/postprocess.h“
#include?“l(fā)ibavutil/avassert.h“
#include?“l(fā)ibavutil/avstring.h“
#include?“l(fā)ibavutil/bprint.h“
#include?“l(fā)ibavutil/display.h“
#include?“l(fā)ibavutil/mathematics.h“
#include?“l(fā)ibavutil/imgutils.h“
#include?“l(fā)ibavutil/libm.h“
#include?“l(fā)ibavutil/parseutils.h“
#include?“l(fā)ibavutil/pixdesc.h“
#include?“l(fā)ibavutil/eval.h“
#include?“l(fā)ibavutil/dict.h“
#include?“l(fā)ibavutil/opt.h“
#include?“l(fā)ibavutil/cpu.h“
#include?“l(fā)ibavutil/ffversion.h“
#include?“cmdutils.h“
#if?CONFIG_NETWORK
#include?“l(fā)ibavformat/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
評(píng)論
共有 條評(píng)論