xine-lib 1.2.13-20230125hg15249
|
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include <xine/demux.h>
#include <xine/buffer.h>
#include "bswap.h"
#include "group_audio.h"
#include "id3.h"
Data Structures | |
struct | demux_aac_t |
Macros | |
#define | LOG_MODULE "demux_aac" |
#define | LOG_VERBOSE |
Enumerations | |
enum | demux_aac_mode_t { DEMUX_AAC_ADTS = 0 , DEMUX_AAC_ADIF } |
Functions | |
static int | probe_aac_file (xine_stream_t *stream, input_plugin_t *input, demux_aac_mode_t *mode) |
static uint32_t | demux_aac_samples_per_frame (uint32_t object_type) |
static void | demux_aac_apply_adts (demux_aac_t *this, const uint8_t *buf) |
static uint32_t | demux_aac_get_bits (const uint8_t *buf, uint32_t bitpos, uint32_t bits) |
static void | demux_aac_apply_adif (demux_aac_t *this, const uint8_t *buf) |
static int | demux_aac_next (demux_aac_t *this, uint8_t *buf) |
static int | demux_aac_send_chunk (demux_plugin_t *this_gen) |
static void | demux_aac_send_headers (demux_plugin_t *this_gen) |
static int | demux_aac_seek (demux_plugin_t *this_gen, off_t start_pos, int start_time, int playing) |
static int | demux_aac_get_status (demux_plugin_t *this_gen) |
static int | demux_aac_get_stream_length (demux_plugin_t *this_gen) |
static uint32_t | demux_aac_get_capabilities (demux_plugin_t *this_gen) |
static int | demux_aac_get_optional_data (demux_plugin_t *this_gen, void *data, int data_type) |
static demux_plugin_t * | open_plugin (demux_class_t *class_gen, xine_stream_t *stream, input_plugin_t *input) |
void * | demux_aac_init_plugin (xine_t *xine, const void *data) |
Variables | |
static const uint32_t | demux_aac_sample_rates [16] |
#define LOG_MODULE "demux_aac" |
Referenced by demux_aac_apply_adif(), and demux_aac_apply_adts().
#define LOG_VERBOSE |
enum demux_aac_mode_t |
|
static |
References demux_aac_get_bits(), demux_aac_sample_rates, demux_aac_samples_per_frame(), LOG_MODULE, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by demux_aac_next().
|
static |
References _X_BE_32, demux_aac_sample_rates, demux_aac_samples_per_frame(), LOG_MODULE, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by demux_aac_next().
|
static |
References _X_BE_32, and bits.
Referenced by demux_aac_apply_adif().
|
static |
References DEMUX_CAP_NOCAP.
Referenced by open_plugin().
|
static |
References DEMUX_OPTIONAL_UNSUPPORTED.
Referenced by open_plugin().
|
static |
Referenced by open_plugin().
|
static |
Referenced by open_plugin().
void * demux_aac_init_plugin | ( | xine_t * | xine, |
const void * | data ) |
References demux_plugin_s::dispose, N_, NULL, open_plugin(), and demux_class_s::open_plugin.
|
static |
References _X_BE_32, DEMUX_AAC_ADTS, demux_aac_apply_adif(), demux_aac_apply_adts(), input(), and mode().
Referenced by demux_aac_send_chunk().
|
static |
Referenced by demux_aac_apply_adif(), and demux_aac_apply_adts().
|
static |
|
static |
References _x_demux_control_newpts(), _x_stream_info_get(), BUF_AUDIO_AAC, BUF_FLAG_FRAME_END, BUF_FLAG_SEEK, buf_element_s::content, buf_element_s::decoder_flags, demux_aac_next(), DEMUX_FINISHED, buf_element_s::extra_info, buf_element_s::free_buffer, input(), extra_info_s::input_normpos, extra_info_s::input_time, buf_element_s::pts, buf_element_s::size, buf_element_s::type, and XINE_STREAM_INFO_AUDIO_BITRATE.
Referenced by open_plugin().
|
static |
|
static |
References _x_stream_info_set(), xine_stream_s::content_detection_method, default_demux_plugin_dispose, demux_aac_get_capabilities(), demux_aac_get_optional_data(), demux_aac_get_status(), demux_aac_get_stream_length(), demux_aac_seek(), demux_aac_send_chunk(), demux_aac_send_headers(), DEMUX_FINISHED, input(), METHOD_BY_CONTENT, METHOD_BY_MRL, METHOD_EXPLICIT, mode(), NULL, probe_aac_file(), input_plugin_s::seek, and XINE_STREAM_INFO_HAS_AUDIO.
Referenced by demux_aac_init_plugin().
|
static |
References _X_BE_32, _x_demux_read_stream_header(), _x_is_fourcc(), DEMUX_AAC_ADIF, DEMUX_AAC_ADTS, input(), lprintf, MAX_PREVIEW_SIZE, mode(), and xine_parse_id3v2_tag().
Referenced by open_plugin().
|
static |
Referenced by demux_aac_apply_adif(), and demux_aac_apply_adts().