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_optimized_SIMD();
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
MPUBLIC
#define MPUBLIC
Definition: mythexp.h:10
AudioOutputUtil
All toFloat variants require 16 byte aligned input and output buffers on x86 for SSE optimised operat...
Definition: audiooutpututil.h:12
musicbrainzngs.compat.bytes
bytes
Definition: compat.py:49
AudioFormat
AudioFormat
Definition: audiooutputsettings.h:24
audiooutputsettings.h
output
#define output
Definition: synaesthesia.cpp:223
samples
static const std::array< const uint64_t, 4 > samples
Definition: element.cpp:46