Go to the source code of this file.
 | 
| static int  | adx_decode_header (AVCodecContext *avctx, const uint8_t *buf, int bufsize, int *header_size, int *coeff) | 
|   | Decode ADX stream header.  More...
  | 
|   | 
| static av_cold int  | adx_decode_init (AVCodecContext *avctx) | 
|   | 
| static int  | adx_decode (ADXContext *c, int16_t *out, int offset, const uint8_t *in, int ch) | 
|   | Decode 32 samples from 18 bytes.  More...
  | 
|   | 
| static int  | adx_decode_frame (AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt) | 
|   | 
| static av_cold void  | adx_decode_flush (AVCodecContext *avctx) | 
|   | 
◆ adx_decode_header()
  
  
      
        
          | static int adx_decode_header  | 
          ( | 
          AVCodecContext *  | 
          avctx,  | 
         
        
           | 
           | 
          const uint8_t *  | 
          buf,  | 
         
        
           | 
           | 
          int  | 
          bufsize,  | 
         
        
           | 
           | 
          int *  | 
          header_size,  | 
         
        
           | 
           | 
          int *  | 
          coeff  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Decode ADX stream header. 
Sets avctx->channels and avctx->sample_rate.
- Parameters
 - 
  
     | avctx | codec context  | 
     | buf | header data  | 
     | bufsize | data size, should be at least 24 bytes  | 
    | [out] | header_size | size of ADX header  | 
    | [out] | coeff | 2 LPC coefficients, can be NULL  | 
  
   
- Returns
 - data offset or negative error code if header is invalid 
 
Definition at line 50 of file adxdec.c.
Referenced by adx_decode_frame(), and adx_decode_init().
 
 
◆ adx_decode_init()
◆ adx_decode()
  
  
      
        
          | static int adx_decode  | 
          ( | 
          ADXContext *  | 
          c,  | 
         
        
           | 
           | 
          int16_t *  | 
          out,  | 
         
        
           | 
           | 
          int  | 
          offset,  | 
         
        
           | 
           | 
          const uint8_t *  | 
          in,  | 
         
        
           | 
           | 
          int  | 
          ch  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
Decode 32 samples from 18 bytes. 
A 16-bit scalar value is applied to 32 residuals, which then have a 2nd-order LPC filter applied to it to form the output signal for a single channel. 
Definition at line 130 of file adxdec.c.
Referenced by adx_decode_frame().
 
 
◆ adx_decode_frame()
◆ adx_decode_flush()
◆ ff_adpcm_adx_decoder
Initial value:= {
    .p.name         = "adpcm_adx",
}
 
Definition at line 257 of file adxdec.c.