~ubuntu-branches/ubuntu/saucy/gst-libav1.0/saucy-proposed

« back to all changes in this revision

Viewing changes to gst-libs/ext/libav/libavcodec/msmpeg4data.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2013-07-30 09:00:15 UTC
  • mfrom: (1.1.16) (7.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20130730090015-sc1ou2yssu7q5w4e
Tags: 1.1.3-1
* New upstream development snapshot:
  + debian/control:
    - Build depend on GStreamer and gst-plugins-base >= 1.1.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
#include "msmpeg4data.h"
31
31
 
 
32
uint32_t ff_v2_dc_lum_table[512][2];
 
33
uint32_t ff_v2_dc_chroma_table[512][2];
 
34
uint8_t  ff_static_rl_table_store[NB_RL_TABLES][2][2 * MAX_RUN + MAX_LEVEL + 3];
 
35
 
32
36
VLC ff_msmp4_mb_i_vlc;
33
37
VLC ff_msmp4_dc_luma_vlc[2];
34
38
VLC ff_msmp4_dc_chroma_vlc[2];
54
58
};
55
59
 
56
60
/* non intra picture macroblock coded block pattern + mb type */
57
 
const uint32_t table_mb_non_intra[128][2] = {
 
61
const uint32_t ff_table_mb_non_intra[128][2] = {
58
62
{   0x40,  7 },{   0x13c9, 13 },{   0x9fd, 12 },{   0x1fc, 15 },
59
63
{  0x9fc, 12 },{    0xa83, 18 },{ 0x12d34, 17 },{  0x83bc, 16 },
60
64
{  0x83a, 12 },{    0x7f8, 17 },{   0x3fd, 16 },{   0x3ff, 16 },
600
604
extern const int8_t ff_mpeg4_intra_level[102];
601
605
extern const int8_t ff_mpeg4_intra_run[102];
602
606
 
603
 
RLTable rl_table[NB_RL_TABLES] = {
 
607
RLTable ff_rl_table[NB_RL_TABLES] = {
604
608
    /* intra luminance tables */
605
609
    /* low motion  */
606
610
    {
1784
1788
 34, 28, 21,
1785
1789
};
1786
1790
 
1787
 
MVTable mv_tables[2] = {
 
1791
MVTable ff_mv_tables[2] = {
1788
1792
    {
1789
1793
        1099,
1790
1794
        table0_mv_code,
1801
1805
    }
1802
1806
};
1803
1807
 
1804
 
const uint8_t v2_mb_type[8][2] = {
 
1808
const uint8_t ff_v2_mb_type[8][2] = {
1805
1809
 {1, 1}, {0   , 2}, {3   , 3}, {9   , 5},
1806
1810
 {5, 4}, {0x21, 7}, {0x20, 7}, {0x11, 6},
1807
1811
};
1808
1812
 
1809
 
const uint8_t v2_intra_cbpc[4][2] = {
 
1813
const uint8_t ff_v2_intra_cbpc[4][2] = {
1810
1814
 {1, 1}, {0, 3}, {1, 3}, {1, 2},
1811
1815
};
1812
1816
 
1813
 
const uint8_t wmv1_y_dc_scale_table[32]={
 
1817
const uint8_t ff_wmv1_y_dc_scale_table[32]={
1814
1818
//  0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
1815
1819
    0, 8, 8, 8, 8, 8, 9, 9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21
1816
1820
};
1817
 
const uint8_t wmv1_c_dc_scale_table[32]={
 
1821
const uint8_t ff_wmv1_c_dc_scale_table[32]={
1818
1822
//  0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31
1819
1823
    0, 8, 8, 8, 8, 9, 9,10,10,11,11,12,12,13,13,14,14,15,15,16,16,17,17,18,18,19,19,20,20,21,21,22
1820
1824
};
1821
1825
 
1822
 
const uint8_t old_ff_y_dc_scale_table[32]={
 
1826
const uint8_t ff_old_ff_y_dc_scale_table[32]={
1823
1827
//  0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
1824
1828
    0, 8, 8, 8, 8,10,12,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39
1825
1829
};
1826
1830
 
1827
 
const uint8_t wmv1_scantable[WMV1_SCANTABLE_COUNT][64]={
 
1831
const uint8_t ff_wmv1_scantable[WMV1_SCANTABLE_COUNT][64]={
1828
1832
  {
1829
1833
    0x00, 0x08, 0x01, 0x02, 0x09, 0x10, 0x18, 0x11,
1830
1834
    0x0A, 0x03, 0x04, 0x0B, 0x12, 0x19, 0x20, 0x28,
1867
1871
  }
1868
1872
};
1869
1873
 
1870
 
const uint8_t table_inter_intra[4][2]={
 
1874
const uint8_t ff_table_inter_intra[4][2]={
1871
1875
    {0,1} /*Luma-Left Chroma-Left*/,
1872
1876
    {2,2} /*Luma-Top  Chroma-Left*/,
1873
1877
    {6,3} /*luma-Left Chroma-Top */,
1979
1983
{0x000011,  5}, {0x0001AC,  9}, {0x0000F3,  8}, {0x000439, 11},
1980
1984
};
1981
1985
 
1982
 
const uint32_t (* const wmv2_inter_table[WMV2_INTER_CBP_TABLE_COUNT])[2]={
 
1986
const uint32_t (* const ff_wmv2_inter_table[WMV2_INTER_CBP_TABLE_COUNT])[2]={
1983
1987
    table_mb_non_intra2,
1984
1988
    table_mb_non_intra3,
1985
1989
    table_mb_non_intra4,
1986
 
    table_mb_non_intra,
 
1990
    ff_table_mb_non_intra,
1987
1991
};
1988
1992
 
1989
 
const uint8_t wmv2_scantableA[64]={
 
1993
const uint8_t ff_wmv2_scantableA[64]={
1990
1994
0x00, 0x01, 0x02, 0x08, 0x03, 0x09, 0x0A, 0x10,
1991
1995
0x04, 0x0B, 0x11, 0x18, 0x12, 0x0C, 0x05, 0x13,
1992
1996
0x19, 0x0D, 0x14, 0x1A, 0x1B, 0x06, 0x15, 0x1C,
1993
1997
0x0E, 0x16, 0x1D, 0x07, 0x1E, 0x0F, 0x17, 0x1F,
1994
1998
};
1995
1999
 
1996
 
const uint8_t wmv2_scantableB[64]={
 
2000
const uint8_t ff_wmv2_scantableB[64]={
1997
2001
0x00, 0x08, 0x01, 0x10, 0x09, 0x18, 0x11, 0x02,
1998
2002
0x20, 0x0A, 0x19, 0x28, 0x12, 0x30, 0x21, 0x1A,
1999
2003
0x38, 0x29, 0x22, 0x03, 0x31, 0x39, 0x0B, 0x2A,