#include "libavutil/mathematics.h"#include "libavutil/opt.h"#include "avformat.h"#include "internal.h"Go to the source code of this file.
| Data Structures | |
| struct | GSMDemuxerContext | 
| Defines | |
| #define | GSM_BLOCK_SIZE 33 | 
| #define | GSM_BLOCK_SAMPLES 160 | 
| #define | GSM_SAMPLE_RATE 8000 | 
| Functions | |
| static int | gsm_read_packet (AVFormatContext *s, AVPacket *pkt) | 
| static int | gsm_read_header (AVFormatContext *s, AVFormatParameters *ap) | 
| static int | gsm_read_seek2 (AVFormatContext *s, int stream_index, int64_t min_ts, int64_t ts, int64_t max_ts, int flags) | 
| Variables | |
| static const AVOption | options [] | 
| class { | |
| class_name = "gsm demuxer" | |
| item_name = av_default_item_name | |
| option = options | |
| version = LIBAVUTIL_VERSION_INT | |
| }; | |
| AVInputFormat | ff_gsm_demuxer | 
| #define GSM_BLOCK_SAMPLES 160 | 
| #define GSM_SAMPLE_RATE 8000 | 
| static int gsm_read_header | ( | AVFormatContext * | s, | |
| AVFormatParameters * | ap | |||
| ) |  [static] | 
| static int gsm_read_packet | ( | AVFormatContext * | s, | |
| AVPacket * | pkt | |||
| ) |  [static] | 
| static int gsm_read_seek2 | ( | AVFormatContext * | s, | |
| int | stream_index, | |||
| int64_t | min_ts, | |||
| int64_t | ts, | |||
| int64_t | max_ts, | |||
| int | flags | |||
| ) |  [static] | 
| const { ... }  [static] | 
| class_name = "gsm demuxer" | 
Initial value:
 {
    .name           = "gsm",
    .long_name      = NULL_IF_CONFIG_SMALL("raw GSM"),
    .priv_data_size = sizeof(GSMDemuxerContext),
    .read_header    = gsm_read_header,
    .read_packet    = gsm_read_packet,
    .read_seek2     = gsm_read_seek2,
    .extensions     = "gsm",
    .value          = CODEC_ID_GSM,
    .priv_class     = &class,
}
Initial value:
 {
    { "sample_rate", "", 0x42,
       AV_OPT_TYPE_INT, {.dbl = GSM_SAMPLE_RATE}, 1, INT_MAX / GSM_BLOCK_SIZE,
       AV_OPT_FLAG_DECODING_PARAM },
    { NULL },
}
 1.5.8
 1.5.8