~medibuntu-maintainers/mplayer/medibuntu.precise

« back to all changes in this revision

Viewing changes to ffmpeg/libavcodec/mpegaudiodec_float.c

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-01-12 22:23:28 UTC
  • mfrom: (0.4.7 sid)
  • mto: This revision was merged to the branch mainline in revision 76.
  • Revision ID: package-import@ubuntu.com-20120112222328-8jqdyodym3p84ygu
Tags: 2:1.0~rc4.dfsg1+svn34540-1
* New upstream snapshot
* upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include "mpegaudiodec.c"
24
24
 
25
25
#if CONFIG_MP1FLOAT_DECODER
26
 
AVCodec ff_mp1float_decoder =
27
 
{
28
 
    "mp1float",
29
 
    AVMEDIA_TYPE_AUDIO,
30
 
    CODEC_ID_MP1,
31
 
    sizeof(MPADecodeContext),
32
 
    decode_init,
33
 
    NULL,
34
 
    .close = NULL,
35
 
    decode_frame,
36
 
    CODEC_CAP_PARSE_ONLY,
37
 
    .flush= flush,
38
 
    .long_name= NULL_IF_CONFIG_SMALL("MP1 (MPEG audio layer 1)"),
 
26
AVCodec ff_mp1float_decoder = {
 
27
    .name           = "mp1float",
 
28
    .type           = AVMEDIA_TYPE_AUDIO,
 
29
    .id             = CODEC_ID_MP1,
 
30
    .priv_data_size = sizeof(MPADecodeContext),
 
31
    .init           = decode_init,
 
32
    .decode         = decode_frame,
 
33
#if FF_API_PARSE_FRAME
 
34
    .capabilities   = CODEC_CAP_PARSE_ONLY | CODEC_CAP_DR1,
 
35
#else
 
36
    .capabilities   = CODEC_CAP_DR1,
 
37
#endif
 
38
    .flush          = flush,
 
39
    .long_name      = NULL_IF_CONFIG_SMALL("MP1 (MPEG audio layer 1)"),
39
40
};
40
41
#endif
41
42
#if CONFIG_MP2FLOAT_DECODER
42
 
AVCodec ff_mp2float_decoder =
43
 
{
44
 
    "mp2float",
45
 
    AVMEDIA_TYPE_AUDIO,
46
 
    CODEC_ID_MP2,
47
 
    sizeof(MPADecodeContext),
48
 
    decode_init,
49
 
    NULL,
50
 
    .close = NULL,
51
 
    decode_frame,
52
 
    CODEC_CAP_PARSE_ONLY,
53
 
    .flush= flush,
54
 
    .long_name= NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"),
 
43
AVCodec ff_mp2float_decoder = {
 
44
    .name           = "mp2float",
 
45
    .type           = AVMEDIA_TYPE_AUDIO,
 
46
    .id             = CODEC_ID_MP2,
 
47
    .priv_data_size = sizeof(MPADecodeContext),
 
48
    .init           = decode_init,
 
49
    .decode         = decode_frame,
 
50
#if FF_API_PARSE_FRAME
 
51
    .capabilities   = CODEC_CAP_PARSE_ONLY | CODEC_CAP_DR1,
 
52
#else
 
53
    .capabilities   = CODEC_CAP_DR1,
 
54
#endif
 
55
    .flush          = flush,
 
56
    .long_name      = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"),
55
57
};
56
58
#endif
57
59
#if CONFIG_MP3FLOAT_DECODER
58
 
AVCodec ff_mp3float_decoder =
59
 
{
60
 
    "mp3float",
61
 
    AVMEDIA_TYPE_AUDIO,
62
 
    CODEC_ID_MP3,
63
 
    sizeof(MPADecodeContext),
64
 
    decode_init,
65
 
    NULL,
66
 
    .close = NULL,
67
 
    decode_frame,
68
 
    CODEC_CAP_PARSE_ONLY,
69
 
    .flush= flush,
70
 
    .long_name= NULL_IF_CONFIG_SMALL("MP3 (MPEG audio layer 3)"),
 
60
AVCodec ff_mp3float_decoder = {
 
61
    .name           = "mp3float",
 
62
    .type           = AVMEDIA_TYPE_AUDIO,
 
63
    .id             = CODEC_ID_MP3,
 
64
    .priv_data_size = sizeof(MPADecodeContext),
 
65
    .init           = decode_init,
 
66
    .decode         = decode_frame,
 
67
#if FF_API_PARSE_FRAME
 
68
    .capabilities   = CODEC_CAP_PARSE_ONLY | CODEC_CAP_DR1,
 
69
#else
 
70
    .capabilities   = CODEC_CAP_DR1,
 
71
#endif
 
72
    .flush          = flush,
 
73
    .long_name      = NULL_IF_CONFIG_SMALL("MP3 (MPEG audio layer 3)"),
71
74
};
72
75
#endif
73
76
#if CONFIG_MP3ADUFLOAT_DECODER
74
 
AVCodec ff_mp3adufloat_decoder =
75
 
{
76
 
    "mp3adufloat",
77
 
    AVMEDIA_TYPE_AUDIO,
78
 
    CODEC_ID_MP3ADU,
79
 
    sizeof(MPADecodeContext),
80
 
    decode_init,
81
 
    NULL,
82
 
    .close = NULL,
83
 
    decode_frame_adu,
84
 
    CODEC_CAP_PARSE_ONLY,
85
 
    .flush= flush,
86
 
    .long_name= NULL_IF_CONFIG_SMALL("ADU (Application Data Unit) MP3 (MPEG audio layer 3)"),
 
77
AVCodec ff_mp3adufloat_decoder = {
 
78
    .name           = "mp3adufloat",
 
79
    .type           = AVMEDIA_TYPE_AUDIO,
 
80
    .id             = CODEC_ID_MP3ADU,
 
81
    .priv_data_size = sizeof(MPADecodeContext),
 
82
    .init           = decode_init,
 
83
    .decode         = decode_frame_adu,
 
84
#if FF_API_PARSE_FRAME
 
85
    .capabilities   = CODEC_CAP_PARSE_ONLY | CODEC_CAP_DR1,
 
86
#else
 
87
    .capabilities   = CODEC_CAP_DR1,
 
88
#endif
 
89
    .flush          = flush,
 
90
    .long_name      = NULL_IF_CONFIG_SMALL("ADU (Application Data Unit) MP3 (MPEG audio layer 3)"),
87
91
};
88
92
#endif
89
93
#if CONFIG_MP3ON4FLOAT_DECODER
90
 
AVCodec ff_mp3on4float_decoder =
91
 
{
92
 
    "mp3on4float",
93
 
    AVMEDIA_TYPE_AUDIO,
94
 
    CODEC_ID_MP3ON4,
95
 
    sizeof(MP3On4DecodeContext),
96
 
    decode_init_mp3on4,
97
 
    NULL,
98
 
    decode_close_mp3on4,
99
 
    decode_frame_mp3on4,
100
 
    .flush= flush,
101
 
    .long_name= NULL_IF_CONFIG_SMALL("MP3onMP4"),
 
94
AVCodec ff_mp3on4float_decoder = {
 
95
    .name           = "mp3on4float",
 
96
    .type           = AVMEDIA_TYPE_AUDIO,
 
97
    .id             = CODEC_ID_MP3ON4,
 
98
    .priv_data_size = sizeof(MP3On4DecodeContext),
 
99
    .init           = decode_init_mp3on4,
 
100
    .close          = decode_close_mp3on4,
 
101
    .decode         = decode_frame_mp3on4,
 
102
    .capabilities   = CODEC_CAP_DR1,
 
103
    .flush          = flush_mp3on4,
 
104
    .long_name      = NULL_IF_CONFIG_SMALL("MP3onMP4"),
102
105
};
103
106
#endif