Here is another edition of the stereoscopic metadata.
This version follows most of the comments received: there is a bitfield for 
binary information like size (full/half), sampling and other data, and an enum 
for the most important part, the stereo type. Overall I used a struct so there 
could be space for implementing future things, like number of views and depth 
map presence.
For now this metadata applies only to frame metadata and it can carry over 
stereo information to/from h264 and mpeg2, but in the future it is possible to 
extend this to packets also, in order to wrap matroska and wmv stereo 
inforation too.

Cheers,
    Vittorio

Vittorio Giovara (5):
  avframe: add codec-independent stereoscopic metadata
  h264: parse frame packing arrangement SEI messages and save relevant
    stereo3d information
  libx264: set frame packing information when relevant metadata is
    found
  mpeg2dec: parse frame packing arrangment user_data and save relevant
    stereo3d information
  mpeg2enc: set frame packing information when relevant metadata is
    found

 Changelog               |    1 +
 libavcodec/avcodec.h    |   23 +++++++++
 libavcodec/h264.c       |   54 ++++++++++++++++++++
 libavcodec/h264.h       |   24 ++++++++-
 libavcodec/h264_sei.c   |   40 +++++++++++++++
 libavcodec/libx264.c    |   27 +++++++++-
 libavcodec/mpeg12dec.c  |   69 ++++++++++++++++++++-----
 libavcodec/mpeg12enc.c  |   39 ++++++++++++++
 libavutil/Makefile      |    1 +
 libavutil/frame.h       |    4 ++
 libavutil/stereoscopy.h |  130 +++++++++++++++++++++++++++++++++++++++++++++++
 11 files changed, 398 insertions(+), 14 deletions(-)
 create mode 100644 libavutil/stereoscopy.h

-- 
1.7.9.5

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to