summaryrefslogtreecommitdiff
path: root/libavcodec/mpeg12data.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-12-06 16:04:30 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-12-06 16:04:30 +0000
commit945f15b740a09477f93511a21790863efd24abd6 (patch)
tree12a3930f87511bcb49aa5e82a06c0d92fd2c2f74 /libavcodec/mpeg12data.h
parent706fc4dea67a0d54eb26ce5024b603cf9bf5afa1 (diff)
mpeg1&2 aspect decoding
Originally committed as revision 1318 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12data.h')
-rw-r--r--libavcodec/mpeg12data.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/libavcodec/mpeg12data.h b/libavcodec/mpeg12data.h
index a1a7166beb..8bf063ec1b 100644
--- a/libavcodec/mpeg12data.h
+++ b/libavcodec/mpeg12data.h
@@ -411,4 +411,32 @@ UINT8 ff_mpeg1_dc_scale_table[128]={ // MN: mpeg2 really can have such large qsc
8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8,
};
+static const float mpeg1_aspect[16]={
+ 0.0000,
+ 1.0000,
+ 0.6735,
+ 0.7031,
+
+ 0.7615,
+ 0.8055,
+ 0.8437,
+ 0.8935,
+
+ 0.9157,
+ 0.9815,
+ 1.0255,
+ 1.0695,
+
+ 1.0950,
+ 1.1575,
+ 1.2015,
+};
+
+static const float mpeg2_aspect[16]={
+ 0,
+ 1.0,
+ -3.0/4.0,
+ -9.0/16.0,
+ -1.0/2.21,
+};