[FFmpeg-devel] [PATCH] mjpegdec: parse JPS extension and save relevant stereo3d information
Michael Niedermayer
michaelni at gmx.at
Thu Jan 30 00:53:50 CET 2014
On Wed, Jan 29, 2014 at 09:30:50PM +0400, Kirill Gavrilov wrote:
> Parse JPS extension (specified by VRex) stored in JPEG files.
>
> Sample file:
> http://www.andrewwoods3d.com/gallery/curtin00.jps
>
> Specification:
> http://paulbourke.net/dataformats/stereoimage/spec.pdf
> -----------------------------------------------
> Kirill Gavrilov,
> <kirill at sview.ru>
> mjpegdec.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
> mjpegdec.h | 3 +++
> 2 files changed, 52 insertions(+)
> 9579850ca31d9c65dfaadc19f88cc37c21e49ae6 0001-mjpegdec-parse-JPS-extension-and-save-relevant-stere.patch
> From 73e3a6f55d15c21df5e3815e62878854d70d5ac1 Mon Sep 17 00:00:00 2001
> From: Kirill Gavrilov <kirill at sview.ru>
> Date: Wed, 29 Jan 2014 21:22:24 +0400
> Subject: [PATCH] mjpegdec: parse JPS extension and save relevant stereo3d
> information
applied
btw it seems ffprobe doesnt support showing avframe side data
heres a quick proof of concept patch, that prints something
maybe you (or someone else) wants t improve it ?
also a fate test for this wuld be welcome too
diff --git a/ffprobe.c b/ffprobe.c
index ef3bcc6..b1bea5d 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1712,6 +1712,7 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
{
AVBPrint pbuf;
const char *s;
+ int i;
av_bprint_init(&pbuf, 1, AV_BPRINT_SIZE_UNLIMITED);
@@ -1755,6 +1756,12 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream,
print_int("interlaced_frame", frame->interlaced_frame);
print_int("top_field_first", frame->top_field_first);
print_int("repeat_pict", frame->repeat_pict);
+ print_int("repeat_pict", frame->repeat_pict);
+ for (i = 0; i < frame->nb_side_data; i++) {
+ AVFrameSideData *sd = frame->side_data[i];
+ print_int("side_data_type", sd->type);
+ print_int("side_data_size", sd->size);
+ }
break;
case AVMEDIA_TYPE_AUDIO:
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140130/bd135266/attachment.asc>
More information about the ffmpeg-devel
mailing list