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

« back to all changes in this revision

Viewing changes to gst-libs/ext/libav/libavcodec/amrwbdata.h

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2013-09-24 17:07:00 UTC
  • mfrom: (1.1.17) (7.1.9 experimental)
  • Revision ID: package-import@ubuntu.com-20130924170700-4dg62s3pwl0pdakz
Tags: 1.2.0-1
* New upstream stable release:
  + debian/control:
    - Build depend on GStreamer and gst-plugins-base >= 1.2.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
 
67
67
/* All decoded parameters in these structs must be 2 bytes long
68
68
 * because of the direct indexing at the frame parsing */
69
 
typedef struct {
 
69
typedef struct AMRWBSubFrame {
70
70
    uint16_t adap;                         ///< adaptive codebook index
71
71
    uint16_t ltp;                          ///< ltp-filtering flag
72
72
    uint16_t vq_gain;                      ///< VQ adaptive and innovative gains
75
75
    uint16_t pul_il[4];                    ///< LSBs part of codebook index
76
76
} AMRWBSubFrame;
77
77
 
78
 
typedef struct {
 
78
typedef struct AMRWBFrame {
79
79
    uint16_t vad;                          ///< voice activity detection flag
80
80
    uint16_t isp_id[7];                    ///< index of ISP subvectors
81
81
    AMRWBSubFrame subframe[4];             ///< data for subframes
82
82
} AMRWBFrame;
83
83
 
84
84
/** The index of a frame parameter */
85
 
#define AMR_BIT(field)                  (offsetof(AMRWBFrame, field) >> 1)
 
85
#define AMR_BIT(field)                  (offsetof(AMRWBFrame, field))
86
86
/** The index of a subframe-specific parameter */
87
87
#define AMR_OF(frame_num, variable)     AMR_BIT(subframe[frame_num].variable)
88
88