gstreamer/ext/metadata
Edgard Lima 8152bfe972 Added some tags to exif parser.
Original commit message from CVS:
Added some tags to exif parser.
2007-12-05 17:00:59 +00:00
..
.gitignore Changed kclass to "Parser/Extracter/Metadata", changed caps to "image/jpeg, tags-extract=true/false" and changed prio... 2007-10-30 18:21:22 +00:00
gstmetadata.c Small fixes in get_range and better structure for generic muxer and demuxer. 2007-11-28 08:13:52 +00:00
gstmetadatamux.c Fixed element properties and now muxer writes to png also. 2007-12-04 16:42:25 +00:00
gstmetadatamux.h Fixed element properties and now muxer writes to png also. 2007-12-04 16:42:25 +00:00
gstmetadataparse.c Fixed element properties and now muxer writes to png also. 2007-12-04 16:42:25 +00:00
gstmetadataparse.h Fixed element properties and now muxer writes to png also. 2007-12-04 16:42:25 +00:00
Makefile.am Fixed get_range bug when injecting and stripping. And mux is almost done now. 2007-11-30 12:53:13 +00:00
metadata.c Fixed element properties and now muxer writes to png also. 2007-12-04 16:42:25 +00:00
metadata.h Fixed element properties and now muxer writes to png also. 2007-12-04 16:42:25 +00:00
metadataexif.c Added some tags to exif parser. 2007-12-05 17:00:59 +00:00
metadataexif.h Muxer writes (in jpeg only) whole IPTC chunk sent as tag. Muxer implemets GstTagSetter interface. 2007-12-03 16:14:01 +00:00
metadataiptc.c Added some tags to exif parser. 2007-12-05 17:00:59 +00:00
metadataiptc.h Muxer writes (in jpeg only) whole IPTC chunk sent as tag. Muxer implemets GstTagSetter interface. 2007-12-03 16:14:01 +00:00
metadatamuxjpeg.c Now compiles even when libiptc is missing. 2007-12-04 17:20:25 +00:00
metadatamuxjpeg.h Fixed element properties and now muxer writes to png also. 2007-12-04 16:42:25 +00:00
metadatamuxpng.c Fixed element properties and now muxer writes to png also. 2007-12-04 16:42:25 +00:00
metadatamuxpng.h Fixed element properties and now muxer writes to png also. 2007-12-04 16:42:25 +00:00
metadataparsejpeg.c Now compiles even when libiptc is missing. 2007-12-04 17:20:25 +00:00
metadataparsejpeg.h Fixed get_range bug when injecting and stripping. And mux is almost done now. 2007-11-30 12:53:13 +00:00
metadataparsepng.c Muxer writes (in jpeg only) whole EXIF and XMP chunks sent as tags. 2007-11-30 18:30:12 +00:00
metadataparsepng.h Fixed get_range bug when injecting and stripping. And mux is almost done now. 2007-11-30 12:53:13 +00:00
metadataparseutil.c Added support for PNG/XMP. Indentation. And fixed pull mode to parse the file. 2007-11-02 16:50:42 +00:00
metadataparseutil.h Added support for PNG/XMP. Indentation. And fixed pull mode to parse the file. 2007-11-02 16:50:42 +00:00
metadatatags.c Added some tags to exif parser. 2007-12-05 17:00:59 +00:00
metadatatags.h Added some tags to exif parser. 2007-12-05 17:00:59 +00:00
metadatatypes.c Fixed get_range bug when injecting and stripping. And mux is almost done now. 2007-11-30 12:53:13 +00:00
metadatatypes.h Fixed get_range bug when injecting and stripping. And mux is almost done now. 2007-11-30 12:53:13 +00:00
metadataxmp.c Added some tags to exif parser. 2007-12-05 17:00:59 +00:00
metadataxmp.h Muxer writes (in jpeg only) whole IPTC chunk sent as tag. Muxer implemets GstTagSetter interface. 2007-12-03 16:14:01 +00:00
README Added a design proposal from metadata parse and mux. 2007-11-12 17:27:03 +00:00

### design proposal for metadata mux and parser ###

## use cases ##

1- Create metadata

[ App send tag events to the pipeline ]
  ||               /\
  ||               ||
  ||          jpegenc send tag messages like (width, height and compression info)
  ||               ||
  \/               ||
+---------+    +---------+    +-------------+    +----------+
| v4l2src | -> | jpegenc | -> | metadatamux | -> | filesink |
+---------+    +---------+    +-------------+    +----------+

* elements like videoscale should also send (width and height tags)
* should metadatamux get info from caps (width and height) and use if not receive a event with such tags?


2- View metadata

+---------+    +---------------+    +---------+    +-------------+
| filesrc | -> | metadataparse | -> | jpegdec | -> | xvimagesink |
+---------+    +---------------+    +---------+    +-------------+

or

                    +--> whole chunk send as event to next element
                    |
+---------+    +---------------+    +----------+
| filesrc | -> | metadataparse | -> | fakesink |
+---------+    +---------------+    +----------+
                    ||
                    \/
               1- individual tags send as messages (what about not mapped tags??)
               2- whole chunk send as message (probably the application will ignore this)

* in any case metadataparse strips out metadata chunks (different from current implementation)

3- Modify (add, change, delete tags)


                    +--> whole chunk send as event to next element -- ... --+
                    |                                                       |
                    |                                                       V
+---------+    +---------------+                                     +-------------+    +----------+
| filesrc | -> | metadataparse | --------------- ... --------------> | metadatamux | -> | filesink |
+---------+    +---------------+                                     +-------------+    +----------+
  /\                ||
  ||                \/
  ||           1- individual tags send as messages (what about not mapped tags??) ==============\\
  ||           2- whole chunk send as message (probably the application will ignore this)       ||
  ||                                                                                            ||
[ App send tag events to the pipeline ] <=======================================================//

* metadataparse strips out metadata chunks (different from current implementation)
* application receives individual tag messages (what about not mapped ones?)
  * the application only send events back to the pipeline for the tags the application wants to modify or keep.
    The tags not sent will not be included in metadata chunks
* the metadatamux modify the whole chunk event received before to just keep the individual tags sent by application
* the metadatamux could have a property to say if it should remove or keep tags not sent by application. 

Obs: By looking at the proposed design (1- view and 2- modify) seems that the metadataparse and metadatamux should not know about mapped tags.
     Only the application map the tags to/from metadata specific format. This is because, if you notice, only tags sent by application will be keep
     on new file.

4- Convert (for example from jpeg to png)

                      +--> whole chunk send as event to next element -- ... --+
                      |                                                       |
                      |                                                       V
+---------+    +---------------+                                        +-------------+    +----------+
| filesrc | -> | metadataparse | -> | jpegdec | -> ... -> | pngenc | -> | metadatamux | -> | filesink |
+---------+    +---------------+                                        +-------------+    +----------+
  /\                ||
  ||                \/
  ||           1- individual tags send as messages (what about not mapped tags??) ==============\\
  ||           2- whole chunk send as message (probably the application will ignore this)       ||
  ||                                                                                            ||
[ App send tag events to the pipeline ] <=======================================================//

* in this case the application set the metadatamux property to always keep the tags by default (application don't not need to send tag events)
* metadatamux needs additional smartness to check what tags still does make sense (some from original jpeg may not make sense anymore)
* if the image is resized, the videoscale should send messages to the application with new width (in the same way pngenc should also) and the
  application could send width and height tag events to the pipeline
* should metadatamux get info from caps (width and height) and use if not receive a event with such tags?