MythTV  master
audiooutpututil.h
Go to the documentation of this file.
1 #ifndef AUDIOOUTPUTUTIL_H_
2 #define AUDIOOUTPUTUTIL_H_
3 
4 #include "audiooutputsettings.h"
5 
6 
13 {
14  public:
15  static bool has_hardware_fpu();
16  static void AdjustVolume(void *buffer, int len, int volume,
17  bool music, bool upmix);
18  static void MuteChannel(int obits, int channels, int ch,
19  void *buffer, int bytes);
20  static char *GeneratePinkFrames(char *frames, int channels,
21  int channel, int count, int bits = 16);
22  static int DecodeAudio(AVCodecContext *ctx,
23  uint8_t *buffer, int &data_size,
24  const AVPacket *pkt);
28  static const int MAX_SIZE_BUFFER = 192000;
29 
30  // Actually now in AudioConvert class, kept here for compatibility
31  static int toFloat(AudioFormat format, void *out, const void *in, int bytes);
32  static int fromFloat(AudioFormat format, void *out, const void *in, int bytes);
33  static void MonoToStereo(void *dst, const void *src, int samples);
34  static void DeinterleaveSamples(AudioFormat format, int channels,
35  uint8_t *output, const uint8_t *input,
36  int data_size);
37  static void InterleaveSamples(AudioFormat format, int channels,
38  uint8_t *output, const uint8_t * const *input,
39  int data_size);
40  static void InterleaveSamples(AudioFormat format, int channels,
41  uint8_t *output, const uint8_t *input,
42  int data_size);
43 };
44 
45 #endif
static uint64_t samples[4]
Definition: element.c:45
#define MPUBLIC
Definition: mythexp.h:10
All toFloat variants require 16 byte aligned input and output buffers on x86 for SSE optimised operat...
const char * frames[3]
Definition: element.c:46
#define output