TODO: add some planning comments

This commit is contained in:
Stefan Sauer 2014-07-07 16:12:22 +02:00
parent b96abd86c2
commit 6dcf0b865a
2 changed files with 12 additions and 1 deletions

View file

@ -59,7 +59,11 @@ http://www.headbands.com/gspot/v26x/index.htm
- encoded_size = duration * bitrate;
- bitrate = encoded_size / duration;
- needed in: quicktime, ogg/theora
- we'd like to have some transport-info (from sources)
- http-source can post a taglist of http-header fields (e.g. mime-type)
- we can have wiki-links for the protocol
- we can get the file-size for remote content
== deep scan mode ==
- could be done in gst_devtools/validate
- play the file by using fakesinks and gather statistics:

View file

@ -66,6 +66,7 @@ public class MediaInfo.Info : Box
set_orientation (Gtk.Orientation.VERTICAL);
// setup lookup tables
// TODO(ensonic); move to a data class
// video resolutions: http://upload.wikimedia.org/wikipedia/mediainfo/commons/e/e5/Vector_Video_Standards2.svg
// FIXME: these are only for PAR = 1:1
// we could have another list for CIF (http://en.wikipedia.org/wiki/Common_Intermediate_Format)
@ -175,6 +176,11 @@ public class MediaInfo.Info : Box
table = new Table (8, 3, false);
info_area.add_with_viewport (table);
/* TODO(ensonic): add a 'Source' box ? maybe only for streams?
Transport: {file, http, rtsp, ....} as wikilink
Size: (in bytes)
*/
label = new Label (null);
label.set_markup("<b>Container</b>");
@ -312,6 +318,7 @@ public class MediaInfo.Info : Box
album_art = null;
try {
// TODO(ensonic): this does not work for streams
FileInfo finfo = file.query_info ("standard::*", FileQueryInfoFlags.NONE, null);
mime_type.set_text (finfo.get_attribute_string (FileAttribute.STANDARD_CONTENT_TYPE));
icon_image.set_from_gicon ((Icon) finfo.get_attribute_object (FileAttribute.STANDARD_ICON), IconSize.DIALOG);