[vlc-devel] [PATCH] -- still image (hopefully, a clean solution)

brezhoneg1 brezhoneg1 at yahoo.fr
Sun Jul 12 00:37:33 CEST 2009


The Problem
-----------

Still images can now be displayed in vlc1.0, but a few issues still
exist.
Only the following mrls are regarded as still images :
   - vlc file.ext
   - vlc fake:///path/image.ext
(with ext being bmp, png, jpg, tiff, ... listed in src/misc/image.c)

Not detecting the more and more prevalent "file:///path/image.ext"
format is a real problem.
As of today, this format ends up either in error (png, bmp, ...) or with
a fleeting image (jpg decoded with avformat).
In addition, everything related to xspf forces the "file://" prefix, and
images can then no longer be displayed.

 
A possible solution
-------------------

At the vlc core level, the algorithm first does a search for a "file"
access_demux, then only does a search for a "file" access.

By just adding "file" to the list of shortcuts of the fake access_demux,
it then has the opportunity to detect these mrls in a clean way, before
the regular "file" access can do it.

A patch is provided in attachment

Among other things, this small patch solves :
  - image directories that cannot be imported (vlc dir://.... or via qt4
interface)
  - images saved in xspf playlists that cannot be read later on
  - use of explorers with vlc (filenames are now passed as in a URI
format)

In the past, this topic has been a bit controversial. So discussion is
open ...

Regards
Erwan10 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-still-images-support-for-file-path-image.ext.patch
Type: application/octet-stream
Size: 1665 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20090712/876d33a9/attachment.obj>


More information about the vlc-devel mailing list