Revision 9d9b9d32 libavcodec/avcodec.h

View differences:

libavcodec/avcodec.h
347 347
};
348 348

  
349 349
/* Audio channel masks */
350
#define CHANNEL_FRONT_LEFT             0x00000001
351
#define CHANNEL_FRONT_RIGHT            0x00000002
352
#define CHANNEL_FRONT_CENTER           0x00000004
353
#define CHANNEL_LOW_FREQUENCY          0x00000008
354
#define CHANNEL_BACK_LEFT              0x00000010
355
#define CHANNEL_BACK_RIGHT             0x00000020
356
#define CHANNEL_FRONT_LEFT_OF_CENTER   0x00000040
357
#define CHANNEL_FRONT_RIGHT_OF_CENTER  0x00000080
358
#define CHANNEL_BACK_CENTER            0x00000100
359
#define CHANNEL_SIDE_LEFT              0x00000200
360
#define CHANNEL_SIDE_RIGHT             0x00000400
361
#define CHANNEL_TOP_CENTER             0x00000800
362
#define CHANNEL_TOP_FRONT_LEFT         0x00001000
363
#define CHANNEL_TOP_FRONT_CENTER       0x00002000
364
#define CHANNEL_TOP_FRONT_RIGHT        0x00004000
365
#define CHANNEL_TOP_BACK_LEFT          0x00008000
366
#define CHANNEL_TOP_BACK_CENTER        0x00010000
367
#define CHANNEL_TOP_BACK_RIGHT         0x00020000
368
#define CHANNEL_STEREO_LEFT            0x20000000  ///< Stereo downmix.
369
#define CHANNEL_STEREO_RIGHT           0x40000000  ///< See CHANNEL_STEREO_LEFT.
350
#define CH_FRONT_LEFT             0x00000001
351
#define CH_FRONT_RIGHT            0x00000002
352
#define CH_FRONT_CENTER           0x00000004
353
#define CH_LOW_FREQUENCY          0x00000008
354
#define CH_BACK_LEFT              0x00000010
355
#define CH_BACK_RIGHT             0x00000020
356
#define CH_FRONT_LEFT_OF_CENTER   0x00000040
357
#define CH_FRONT_RIGHT_OF_CENTER  0x00000080
358
#define CH_BACK_CENTER            0x00000100
359
#define CH_SIDE_LEFT              0x00000200
360
#define CH_SIDE_RIGHT             0x00000400
361
#define CH_TOP_CENTER             0x00000800
362
#define CH_TOP_FRONT_LEFT         0x00001000
363
#define CH_TOP_FRONT_CENTER       0x00002000
364
#define CH_TOP_FRONT_RIGHT        0x00004000
365
#define CH_TOP_BACK_LEFT          0x00008000
366
#define CH_TOP_BACK_CENTER        0x00010000
367
#define CH_TOP_BACK_RIGHT         0x00020000
368
#define CH_STEREO_LEFT            0x20000000  ///< Stereo downmix.
369
#define CH_STEREO_RIGHT           0x40000000  ///< See CH_STEREO_LEFT.
370 370

  
371 371
/* Audio channel convenience macros */
372
#define CHANNEL_LAYOUT_MONO              (CHANNEL_FRONT_CENTER)
373
#define CHANNEL_LAYOUT_STEREO            (CHANNEL_FRONT_LEFT|CHANNEL_FRONT_RIGHT)
374
#define CHANNEL_LAYOUT_SURROUND          (CHANNEL_LAYOUT_STEREO|CHANNEL_FRONT_CENTER)
375
#define CHANNEL_LAYOUT_QUAD              (CHANNEL_LAYOUT_STEREO|CHANNEL_BACK_LEFT|CHANNEL_BACK_RIGHT)
376
#define CHANNEL_LAYOUT_5POINT0           (CHANNEL_LAYOUT_SURROUND|CHANNEL_SIDE_LEFT|CHANNEL_SIDE_RIGHT)
377
#define CHANNEL_LAYOUT_5POINT1           (CHANNEL_LAYOUT_5POINT0|CHANNEL_LOW_FREQUENCY)
378
#define CHANNEL_LAYOUT_7POINT1           (CHANNEL_LAYOUT_5POINT1|CHANNEL_BACK_LEFT|CHANNEL_BACK_RIGHT)
379
#define CHANNEL_LAYOUT_7POINT1_WIDE      (CHANNEL_LAYOUT_SURROUND|CHANNEL_LOW_FREQUENCY|\
380
                                          CHANNEL_BACK_LEFT|CHANNEL_BACK_RIGHT|\
381
                                          CHANNEL_FRONT_LEFT_OF_CENTER|CHANNEL_FRONT_RIGHT_OF_CENTER)
382
#define CHANNEL_LAYOUT_STEREO_DOWNMIX    (CHANNEL_STEREO_LEFT|CHANNEL_STEREO_RIGHT)
372
#define CH_LAYOUT_MONO              (CH_FRONT_CENTER)
373
#define CH_LAYOUT_STEREO            (CH_FRONT_LEFT|CH_FRONT_RIGHT)
374
#define CH_LAYOUT_SURROUND          (CH_LAYOUT_STEREO|CH_FRONT_CENTER)
375
#define CH_LAYOUT_QUAD              (CH_LAYOUT_STEREO|CH_BACK_LEFT|CH_BACK_RIGHT)
376
#define CH_LAYOUT_5POINT0           (CH_LAYOUT_SURROUND|CH_SIDE_LEFT|CH_SIDE_RIGHT)
377
#define CH_LAYOUT_5POINT1           (CH_LAYOUT_5POINT0|CH_LOW_FREQUENCY)
378
#define CH_LAYOUT_7POINT1           (CH_LAYOUT_5POINT1|CH_BACK_LEFT|CH_BACK_RIGHT)
379
#define CH_LAYOUT_7POINT1_WIDE      (CH_LAYOUT_SURROUND|CH_LOW_FREQUENCY|\
380
                                          CH_BACK_LEFT|CH_BACK_RIGHT|\
381
                                          CH_FRONT_LEFT_OF_CENTER|CH_FRONT_RIGHT_OF_CENTER)
382
#define CH_LAYOUT_STEREO_DOWNMIX    (CH_STEREO_LEFT|CH_STEREO_RIGHT)
383 383

  
384 384
/* in bytes */
385 385
#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio

Also available in: Unified diff