
Recherche avancée
Médias (1)
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (109)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (11456)
-
swscale : organize and better document flags
10 octobre 2024, par Niklas Haasswscale : organize and better document flags
Group them into an enum rather than random #defines, and document their
behavior a bit more obviously.Of particular note, I discovered that SWS_DIRECT_BGR is not referenced
anywhere else in the code base. As such, I have moved it to the deprecated
section, alongside SWS_ERROR_DIFFUSION.Sponsored-by : Sovereign Tech Fund
Signed-off-by : Niklas Haas <git@haasn.dev> -
mfenc : Avoid including codecapi.h, fix building in UWP mode with clang
25 mai 2020, par Martin Storsjömfenc : Avoid including codecapi.h, fix building in UWP mode with clang
Including codecapi.h and uuids.h in UWP mode doesn't define all defines
properly, ending up with constructs that MSVC silently tolerates, but
that clang errors out on, like this :
DEFINE_GUIDEX(CODECAPI_AVEncCommonFormatConstraint) ;Just avoid including codecapi.h completely and hardcode the last few
enum values we use from there. We already use local versions of most
enums from there, due to older mingw-w64 headers being incomplete.Signed-off-by : Martin Storsjö <martin@martin.st>
-
Build native-lib_arm64-v8a : error : no matching function for call to 'av_rescale_q_rnd'
12 septembre 2020, par yejafotI'm trying to compile my native-lib.cpp, but I keep getting this error. The issue here is for the parameter


pkt.pts = av_rescale_q_rnd(pkt.pts, in_stream->time_base, out_stream->time_base, (AVRounding)(AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX));
 pkt.dts = av_rescale_q_rnd(pkt.dts, in_stream->time_base, out_stream->time_base, (AVRounding)(AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX));
 pkt.duration = av_rescale_q(pkt.duration, in_stream->time_base, out_stream->time_base);



the error which i got


> Task :app:externalNativeBuildRelease
Build native-lib_armeabi-v7a
ninja: Entering directory `\app\.cxx\cmake\release\armeabi-v7a'
[1/2] Building CXX object CMakeFiles/native-lib.dir/native-lib.cpp.o
[2/2] Linking CXX shared library \app\build\intermediates\cmake\release\obj\armeabi-v7a\libnative-lib.so
Build native-lib_arm64-v8a
ninja: Entering directory `\app\.cxx\cmake\release\arm64-v8a'
[1/2] Building CXX object CMakeFiles/native-lib.dir/native-lib.cpp.o
FAILED: CMakeFiles/native-lib.dir/native-lib.cpp.o 
\AppData\Local\Android\Sdk\ndk\21.0.6113669\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=aarch64-none-linux-android23 --gcc-toolchain=/Local/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/windows-x86_64 --sysroot=/Local/Android/Sdk/ndk/21.0.6113669/toolchains/llvm/prebuilt/windows-x86_64/sysroot -Dnative_lib_EXPORTS -I/app/src/main/libs/arm64-v8a/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -frtti -fexceptions -O2 -DNDEBUG -fPIC -MD -MT CMakeFiles/native-lib.dir/native-lib.cpp.o -MF CMakeFiles\native-lib.dir\native-lib.cpp.o.d -o CMakeFiles/native-lib.dir/native-lib.cpp.o -c /app/src/main/cpp/native-lib.cpp
/app/src/main/cpp/native-lib.cpp:716:19: error: no matching function for call to 'av_rescale_q_rnd'
 pkt.pts = av_rescale_q_rnd(pkt.pts, in_stream->time_base, out_stream->time_base, (enum AVRounding)(AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX));
 ^~~~~~~~~~~~~~~~
/app/src/main/libs/arm64-v8a/include\libavutil/mathematics.h:160:9: note: candidate function not viable: no known conversion from 'AVRational *' to 'AVRational' for 2nd argument; dereference the argument with *
int64_t av_rescale_q_rnd(int64_t a, AVRational bq, AVRational cq,
 ^
/app/src/main/cpp/native-lib.cpp:717:19: error: no matching function for call to 'av_rescale_q_rnd'
 pkt.dts = av_rescale_q_rnd(pkt.dts, in_stream->time_base, out_stream->time_base, (enum AVRounding)(AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX));
 ^~~~~~~~~~~~~~~~
/app/src/main/libs/arm64-v8a/include\libavutil/mathematics.h:160:9: note: candidate function not viable: no known conversion from 'AVRational *' to 'AVRational' for 2nd argument; dereference the argument with *
int64_t av_rescale_q_rnd(int64_t a, AVRational bq, AVRational cq,
 ^
/app/src/main/cpp/native-lib.cpp:718:24: error: no matching function for call to 'av_rescale_q'
 pkt.duration = av_rescale_q(pkt.duration, in_stream->time_base, out_stream->time_base);
 ^~~~~~~~~~~~
/app/src/main/libs/arm64-v8a/include\libavutil/mathematics.h:151:9: note: candidate function not viable: no known conversion from 'AVRational *' to 'AVRational' for 2nd argument; dereference the argument with *
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) av_const;
 ^
3 errors generated.
ninja: build stopped: subcommand failed.

> Task :app:externalNativeBuildRelease FAILED



from above error i think it throws only for arm64-v8 itseems


app\src\main\libs\arm64-v8a\include\libavutil\mathematics.h:151:9: note: candidate function not viable: no known conversion from 'AVRational *' to 'AVRational' for 2nd argument; dereference the argument with *





As it is an ffmpeg example code block and i didnt change anything. Android Studio throws error only when i try to generate signed apk and i can run this in my Android 6 device without error.


I tried replacing
in_stream->time_base, out_stream->time_base
into*in_stream->time_base, *out_stream->time_base
it throws other type of error

app\src\main\cpp\native-lib.cpp:716:45: error: indirection requires pointer operand ('AVRational' invalid)