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);
25 
26  // Actually now in AudioConvert class, kept here for compatibility
27  static int toFloat(AudioFormat format, void *out, const void *in, int bytes);
28  static int fromFloat(AudioFormat format, void *out, const void *in, int bytes);
29  static void MonoToStereo(void *dst, const void *src, int samples);
30  static void DeinterleaveSamples(AudioFormat format, int channels,
31  uint8_t *output, const uint8_t *input,
32  int data_size);
33  static void InterleaveSamples(AudioFormat format, int channels,
34  uint8_t *output, const uint8_t * const *input,
35  int data_size);
36  static void InterleaveSamples(AudioFormat format, int channels,
37  uint8_t *output, const uint8_t *input,
38  int data_size);
39 };
40 
41 #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