Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (101)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

Sur d’autres sites (6337)

  • Memory leaks while doing memcpy

    27 octobre 2013, par Zoellick

    I'm trying to write an utility dealing with ffmpeg. Once i need to copy image plane from one pointer to another. From AVPicture structure to my own.
    Here is some sources.

    My own frame structe. Memory allocated in constructor, deallocated in destructor

    template <class>
    struct Frame
    {
       DataType* data; //!&lt; Pointer to image data
       int f_type; //!&lt; Type of color space (ex. RGB, HSV, YUV)
       int timestamp; //!&lt; Like ID of frame. Time of this frame in the video file
       int height; //!&lt; Height of frame
       int width; //!&lt; Width of frame

       Frame(int _height, int _width, int _f_type=0):
           height(_height),width(_width),f_type(_f_type)
       {
           data = new DataType[_width*_height*3];
       }

       ~Frame()
       {
           delete[] data;
       }
    };
    </class>

    Here is the main loop performing conversion. If the line with memcpy is commented, there are no memory leaks at all. But if I uncomment it, the memory leak are present.

    for(int i = begin; i &lt; end; i++)
    {
       AVPicture pict;
       avpicture_alloc(&amp;pict, PIX_FMT_BGR24, _width, _height);
       std::shared_ptr> frame(new Frame<char>(_height, _width, (int)PIX_FMT_BGR24));

       sws_scale(ctx, frame_list[i]->data, frame_list[i]->linesize, 0, frame_list[i]->height, pict.data, pict.linesize);

       memcpy(frame->data,pict.data[0],_width*_height*3);

       //temp_to_add->push_back(std::shared_ptr>(frame));

       avpicture_free(&amp;pict);
    }
    </char>

    I've been trying lot of things such as : allocating memory via malloc and deallocating via free, copying memory from pict to frame by hands (in for loop), using std::copy and avpicture_layout that is ffmpeg helper function. Nothing helps.
    So the question : do I forget about something important ?

    I will be grateful for every answer.

  • Linker error with ffmpeg

    2 octobre 2013, par Martin Delille

    I'm trying to build a really simple Qt program using FFMpeg library.

    Currently I just want to open and close a video file.

    Here is my project file :

    QT    += core gui
    TARGET = avtest01
    TEMPLATE = app
    INCLUDEPATH += /usr/local/include
    LIBS += -L/usr/local/lib -lavformat
    SOURCES += main.cpp

    And my code :

    #include <qdebug>

    extern "C" {
    #include <libavformat></libavformat>avformat.h>
    }

    int main(int argc, char *argv[])
    {
       if(argc > 1)
       {
           AVFormatContext *format_context;
           qDebug() &lt;&lt; argv[1];
           if(avformat_open_input(&amp;format_context, argv[1], NULL, NULL) == 0)
           {
               qDebug() &lt;&lt; "open";
               avformat_close_input(&amp;format_context);
           }
           else
               qDebug() &lt;&lt; "error opening " &lt;&lt; argv[1];
       }    
       return 0;
    }
    </qdebug>

    Unfortunately, the linker fails :

    Undefined symbols for architecture x86_64:
     "avformat_open_input(AVFormatContext**, char const*, AVInputFormat*, AVDictionary**)", referenced from:
       _main in main.o
     "avformat_close_input(AVFormatContext**)", referenced from:
       _main in main.o

    I'm using Qt 5.1.0 on MacOS.

  • x86 : hpeldsp : Move avg_pixels8_x2_mmx() out of hpeldsp_rnd_template.c

    23 avril 2013, par Diego Biurrun
    x86 : hpeldsp : Move avg_pixels8_x2_mmx() out of hpeldsp_rnd_template.c
    

    The function is only instantiated once, so there is no point
    in keeping it in a template file.

    • [DBH] libavcodec/x86/Makefile
    • [DBH] libavcodec/x86/dsputil_mmx.h
    • [DBH] libavcodec/x86/hpeldsp_init.c
    • [DBH] libavcodec/x86/hpeldsp_mmx.c
    • [DBH] libavcodec/x86/hpeldsp_rnd_template.c