Recherche avancée

Médias (1)

Mot : - Tags -/embed

Autres articles (60)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • 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 (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (8691)

  • SDL save screenshot on iOS

    12 avril 2018, par Law Gimenez

    I am trying to save a screen or frame from the SDL’s "window" into a PNG file and so I’m using SDL_image library. My code is below

    IMG_Init(Int32(IMG_INIT_PNG.rawValue))
    let screenShot = SDL_CreateRGBSurface(0, 640, 480, 32, 0, 0, 0, 0)
    SDL_SetRenderTarget(renderer, texture)
    SDL_RenderReadPixels(renderer, nil, Uint32(SDL_PIXELFORMAT_ARGB8888), screenShot?.pointee.pixels, (screenShot?.pointee.pitch)!)
    let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0] as String
    IMG_SavePNG(screenShot, "\(documentsPath)/image.png")
    SDL_FreeSurface(screenShot)

    But the image.png was not saved. If anyone can lead or help me. Thank you !

    Additional code, the image saved is just black

    IMG_Init(Int32(IMG_INIT_PNG.rawValue))
    let screenShot = SDL_CreateRGBSurface(Uint32(SDL_SWSURFACE), 640, 480, 32, 0, 0, 0, 0)
    // SDL_SetRenderTarget(renderer, texture)
    SDL_RenderReadPixels(renderer, nil, Uint32(SDL_PIXELFORMAT_ARGB8888), screenShot?.pointee.pixels, (screenShot?.pointee.pitch)!)
    // Save to documents directory
    let fileManager = FileManager.default
    do {
       let documentDirectory = try fileManager.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: true)
       let fileUrl = documentDirectory.appendingPathComponent("imageLOL.png")
       if !fileManager.fileExists(atPath: fileUrl.path) {
           print("File NO exists")
           // Create file at path
           let data = Data()
           let createFile = fileManager.createFile(atPath: fileUrl.path, contents: data, attributes: nil)
           if createFile {
               print("Create file success")
           } else {
               print("Create file failed")
           }
       } else {
           print("File exists")

       }
       let result = IMG_SavePNG(screenShot, fileUrl.path)
       print("result = \(result)")
       // After saving screenshot
       let image = UIImage(contentsOfFile: fileUrl.path)
       let imageData = UIImagePNGRepresentation(image!)
       print("image length = \(String(describing: imageData?.count))")
       UIImageWriteToSavedPhotosAlbum(image!, nil, nil, nil)
       SDL_FreeSurface(screenShot)
    } catch {
       print("Error docs = \(error)")
    }
  • Use "this" instead of a closure variable as data parameter inside of the data.submit() method - Fixes #847.

    6 décembre 2011, par Sebastian Tschan

    m jquery.fileupload-ui.js m jquery.fileupload.js Use "this" instead of a closure variable as data parameter inside of the data.submit() method - Fixes #847. Store the jqXHR object returned by data.submit() as property of the data (...)

  • swscale/graph : add color mapping pass

    29 novembre 2024, par Niklas Haas
    swscale/graph : add color mapping pass
    

    This leverages the previously introduced color management subsystem in order
    to adapt between transfer functions and color spaces, as well as for HDR tone
    mapping.

    Take special care to handle grayscale formats without a colorspace
    gracefully.

    • [DH] libswscale/graph.c