Recherche avancée

Médias (91)

Autres articles (47)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • 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

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (5911)

  • Revision 5182befa49 : ads2armasm_ms : Add an ALIGN 4 after ENDP This makes sure that labels for data s

    19 mars 2014, par Martin Storsjo

    Changed Paths :
     Modify /build/make/ads2armasm_ms.pl



    ads2armasm_ms : Add an ALIGN 4 after ENDP

    This makes sure that labels for data symbols directly after
    functions get properly 4-byte-aligned (when the source is assembled
    in thumb mode).

    Previously, if declaring a data symbol directly after a function, the
    symbol could end up pointing to the unaligned address (if the total
    size of the thumb function didn't end up being a multiple of 4). The
    data in the symbol itself ended up aligned, but the symbol pointed to
    the preceding unaligned position.

    That is, a source file looking like this :
    — -
    ...
    ENDP

    symbol
    DCD 0x12345678
    — -

    could end up being assembled into
    symbol :
    xxxxx2 : 0000
    xxxxx4 : 5678
    xxxxx6 : 1234

    (This doesn't happen if the symbol label is on the same line as the
    DCD directive.)

    By adding an ALIGN 4 directly after the ENDP we make sure the symbol
    itself gets aligned properly.

    This isn't an issue with the original, untranslated arm source,
    since it only is built in arm mode where all instructions are 4 byte,
    and since the gnu assembler automatically adds the padding before the
    symbol even in thumb mode.

    Change-Id : Iadbeebd656b0197e423e79a12a7d3ef8859cf445

  • Access files in a directory and write the file paths to a text file in ascending order using PHP

    26 mars 2014, par SCC

    I have a list of video files in my server. I would like to list out all the video files in this directory and write it to a text file. These video files are all having the same name output-x.mp4, and x is the number from 0 to an unknown figure. The total number of video files is dynamic and therefore I don't get to know the number of the last video. I have the below code to access all the video files in this directory. It works fine with only one problem : The video files written to the text file are not sorted in ascending order.

    $directory = "video/myvideo";
    $fp = fopen($_SERVER['DOCUMENT_ROOT']."Path/to/text/file", "wb");
    $split_video_files = scandir($directory);
    foreach($split_video_files as $file)
    {
       $content = "file ".$directory.$file."\r\n";
       fwrite($fp, $content);
    }
    fclose($fp);

    What the text file gave me is this :

    video/myvideo/output-0.mp4
    video/myvideo/output-1.mp4
    video/myvideo/output-10.mp4
    video/myvideo/output-11.mp4
    video/myvideo/output-12.mp4
    video/myvideo/output-13.mp4
    video/myvideo/output-14.mp4
    video/myvideo/output-2.mp4
    video/myvideo/output-3.mp4
    video/myvideo/output-4.mp4
    video/myvideo/output-5.mp4
    video/myvideo/output-6.mp4
    video/myvideo/output-7.mp4
    video/myvideo/output-8.mp4
    video/myvideo/output-9.mp4

    It lists out all the filename that start with "1" first before proceed to "2" and so on. Any ways for me to sort it in ascending order so that it starts from 0, 1, 2,… ?

  • truehd : add hand-scheduled ARM asm version of ff_mlp_pack_output.

    20 mars 2014, par Ben Avison
    truehd : add hand-scheduled ARM asm version of ff_mlp_pack_output.
    

    Profiling results for overall decode and the output_data function in
    particular are as follows :

    Before After
    Mean StdDev Mean StdDev Confidence Change
    6:2 total 339.6 15.1 329.3 16.0 95.8% +3.1% (insignificant)
    6:2 function 24.6 6.0 9.9 3.1 100.0% +148.5%
    8:2 total 324.5 15.5 323.6 14.3 15.2% +0.3% (insignificant)
    8:2 function 20.4 3.9 9.9 3.4 100.0% +104.7%
    6:6 total 572.8 20.6 539.9 24.2 100.0% +6.1%
    6:6 function 54.5 5.6 16.0 3.8 100.0% +240.9%
    8:8 total 741.5 21.2 702.5 18.5 100.0% +5.6%
    8:8 function 63.9 7.6 18.4 4.8 100.0% +247.3%

    The assembly version has also been tested with a fuzz tester to ensure that
    any combinations of inputs not exercised by my available test streams still
    generate mathematically identical results to the C version.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] libavcodec/arm/Makefile
    • [DBH] libavcodec/arm/mlpdsp_armv6.S
    • [DBH] libavcodec/arm/mlpdsp_init_arm.c