~siretart/libav/merge.raring.libav-0.8.6

« back to all changes in this revision

Viewing changes to libavcodec/mpeg4audio.h

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-01-12 22:30:00 UTC
  • mfrom: (1.4.1)
  • mto: (1.3.11 sid) (26.1.1 quantal-security)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20120112223000-s1reiy1e28hnix42
Tags: upstream-0.8~beta2
ImportĀ upstreamĀ versionĀ 0.8~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    int sampling_index;
32
32
    int sample_rate;
33
33
    int chan_config;
34
 
    int sbr; //< -1 implicit, 1 presence
 
34
    int sbr; ///< -1 implicit, 1 presence
35
35
    int ext_object_type;
36
36
    int ext_sampling_index;
37
37
    int ext_sample_rate;
38
38
    int ext_chan_config;
39
39
    int channels;
40
 
    int ps;  //< -1 implicit, 1 presence
 
40
    int ps;  ///< -1 implicit, 1 presence
41
41
} MPEG4AudioConfig;
42
42
 
43
 
extern const int ff_mpeg4audio_sample_rates[16];
 
43
extern const int avpriv_mpeg4audio_sample_rates[16];
44
44
extern const uint8_t ff_mpeg4audio_channels[8];
 
45
 
45
46
/**
46
47
 * Parse MPEG-4 systems extradata to retrieve audio configuration.
47
48
 * @param[in] c        MPEG4AudioConfig structure to fill.
48
49
 * @param[in] buf      Extradata from container.
49
 
 * @param[in] buf_size Extradata size.
 
50
 * @param[in] bit_size Extradata size in bits.
 
51
 * @param[in] sync_extension look for a sync extension after config if true.
50
52
 * @return On error -1 is returned, on success AudioSpecificConfig bit index in extradata.
51
53
 */
52
 
int ff_mpeg4audio_get_config(MPEG4AudioConfig *c, const uint8_t *buf, int buf_size);
 
54
int avpriv_mpeg4audio_get_config(MPEG4AudioConfig *c, const uint8_t *buf,
 
55
                                 int bit_size, int sync_extension);
53
56
 
54
57
enum AudioObjectType {
55
58
    AOT_NULL,
101
104
#define MAX_PCE_SIZE 304 ///<Maximum size of a PCE including the 3-bit ID_PCE
102
105
                         ///<marker and the comment
103
106
 
104
 
int ff_copy_pce_data(PutBitContext *pb, GetBitContext *gb);
 
107
int avpriv_copy_pce_data(PutBitContext *pb, GetBitContext *gb);
105
108
 
106
109
#endif /* AVCODEC_MPEG4AUDIO_H */