Recherche avancée

Médias (2)

Mot : - Tags -/rotation

Autres articles (107)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (13621)

  • ffplay : toggle full screen when double-clicking the video window with the left mouse...

    19 janvier 2016, par Vittorio Gambaletta (VittGam)
    ffplay : toggle full screen when double-clicking the video window with the left mouse button
    

    Now that the seek only happens with the right mouse button, it makes
    sense to toggle full screen when double-clicking with the left mouse
    button, like other video players do.

    Signed-off-by : Vittorio Gambaletta <ffmpeg-dev@vittgam.net>
    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] Changelog
    • [DH] ffplay.c
  • How to call a Rust function that expects a double pointer to buffer

    7 octobre 2020, par Guerlando OCs

    I'm trying to map the following ffmpeg function : http://ffmpeg.org/doxygen/4.0/group__lavc__parsing.html#ga0dd9af605377fcbb49fffd982672d377 to Rust code

    &#xA;

    int av_parser_parse2    (   AVCodecParserContext *      s,&#xA;        AVCodecContext *    avctx,&#xA;        uint8_t **      poutbuf,&#xA;        int *   poutbuf_size,&#xA;        const uint8_t *     buf,&#xA;        int     buf_size,&#xA;        int64_t     pts,&#xA;        int64_t     dts,&#xA;        int64_t     pos &#xA;    )   &#xA;

    &#xA;

    Here's my Rust code sketch :

    &#xA;

    fn parse2(&#xA;    &amp;self, &#xA;    av_codec_context: CodecContext,&#xA;    poutbuf: &amp;mut [u8],&#xA;    poutbuf_size: &amp;mut i32,&#xA;    buf: &amp;[u8],&#xA;    pts: i64,&#xA;    dts: i64,&#xA;    pos: i64,&#xA;) -> Result {&#xA;    unsafe {// ptr::null(), ptr::null_mut()&#xA;        match av_parser_parse2(self.as_mut_ptr(),&#xA;        av_codec_context.as_mut_ptr(),&#xA;        poutbuf.as_mut_ptr(),&#xA;        poutbuf_size.as_mut_ptr(),&#xA;        buf.as_mut_ptr(),&#xA;        buf.len() as i32,&#xA;        pts,&#xA;        dts,&#xA;        pos&#xA;) {&#xA;        }&#xA;    }&#xA;}&#xA;

    &#xA;

    Here's the av_parser_parse2 generated by Rust's C bindings :

    &#xA;

    pub fn av_parser_parse2(&#xA;    s: *mut AVCodecParserContext,&#xA;    avctx: *mut AVCodecContext,&#xA;    poutbuf: *mut *mut u8,&#xA;    poutbuf_size: *mut libc::c_int,&#xA;    buf: *const u8,&#xA;    buf_size: libc::c_int,&#xA;    pts: i64,&#xA;    dts: i64,&#xA;    pos: i64,&#xA;) -> libc::c_int&#xA;

    &#xA;

    I'm having problems in 2 arguments :

    &#xA;

            poutbuf.as_mut_ptr(),&#xA;        poutbuf_size.as_mut_ptr(),&#xA;

    &#xA;

    How can I make a double pointer ? In ffmpeg the user would provide a pointer to an empty buffer and to a size, which would be ovewritten by the function av_parser_parse2. I think I don't want the poutbuf: &amp;mut [u8], poutbuf_size: &amp;mut i32, arguments. Maybe I need to return a fresh new Vec for every parse2 call ? So the return value for parse2 would be the tuple Vec, i32.

    &#xA;

    So I think I should take off poutbuf and poutbuf_size from the arguments, and call av_parser_parse2 with something that will become the Vec to return. However, I cannot pass a Vec as a double pointer, because I do not know the size of the returned packet.

    &#xA;

    How can I deal with the returned buffer ?

    &#xA;

  • avcodec/mpegaudiodec_template : use double to build csa tables

    17 avril 2015, par Michael Niedermayer
    avcodec/mpegaudiodec_template : use double to build csa tables
    

    Fixes rounding difference between 32bit x86 and 64bit
    Fixes fate failure with gapless mp3

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/mpegaudiodec_template.c
    • [DH] tests/ref/fate/gapless-mp3