MythTV
master
|
#include <stdlib.h>
#include <getopt.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include "replex.h"
#include "pes.h"
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "mythlogging.h"
Go to the source code of this file.
Macros | |
#define | O_LARGEFILE 0 |
#define | S_IRGRP 0 |
#define | S_IWGRP 0 |
#define | S_IROTH 0 |
#define | S_IWOTH 0 |
#define | LIMIT 3 |
#define | IN_SIZE (1000*TS_SIZE) |
#define | MAXVPID 16 |
#define | MAXAPID 32 |
#define | MAXAC3PID 16 |
#define | MAX_TRIES 5 |
#define | AVI_S 1024 |
Functions | |
static int | replex_all_set (struct replex *rx) |
static int | replex_check_id (struct replex *rx, uint16_t id) |
static int | avcodec_encode_audio (AVCodecContext *avctx, uint8_t *buf, int buf_size, const short *samples) |
static int | encode_mp2_audio (audio_frame_t *aframe, uint8_t *buffer, int bufsize) |
static void | analyze_audio (pes_in_t *p, struct replex *rx, int len, int num, int type) |
static void | analyze_video (pes_in_t *p, struct replex *rx, int len) |
static void | es_out (pes_in_t *p) |
static void | pes_es_out (pes_in_t *p) |
static void | avi_es_out (pes_in_t *p) |
static int | replex_tsp (struct replex *rx, uint8_t *tsp) |
static ssize_t | save_read (struct replex *rx, void *buf, size_t count) |
static int | guess_fill (struct replex *rx) |
static void | find_pids_file (struct replex *rx) |
static void | find_all_pids_file (struct replex *rx) |
static void | find_pids_stdin (struct replex *rx, uint8_t *buf, int len) |
static void | pes_id_out (pes_in_t *p) |
static void | find_pes_ids (struct replex *rx) |
static void | replex_finish (struct replex *rx) |
static int | replex_fill_buffers (struct replex *rx, uint8_t *mbuf) |
static int | fill_buffers (void *r, int finish) |
void | init_index (index_unit *iu) |
static int | check_stream_type (struct replex *rx, uint8_t *buf, int len) |
static void | init_replex (struct replex *rx) |
static void | fix_audio (struct replex *rx, multiplex_t *mx) |
static int | get_next_video_unit (struct replex *rx, index_unit *viu) |
static int | get_next_audio_unit (struct replex *rx, index_unit *aiu, int i) |
static int | get_next_ac3_unit (struct replex *rx, index_unit *aiu, int i) |
static void | do_analyze (struct replex *rx) |
static void | do_scan (struct replex *rx) |
static void | do_demux (struct replex *rx) |
static void | do_replex (struct replex *rx) |
static void | usage (char *progname) |
int | main (int argc, char **argv) |
#define O_LARGEFILE 0 |
Definition at line 46 of file replex.cpp.
#define S_IRGRP 0 |
Definition at line 55 of file replex.cpp.
#define S_IWGRP 0 |
Definition at line 56 of file replex.cpp.
#define S_IROTH 0 |
Definition at line 57 of file replex.cpp.
#define S_IWOTH 0 |
Definition at line 58 of file replex.cpp.
#define LIMIT 3 |
#define IN_SIZE (1000*TS_SIZE) |
Definition at line 1291 of file replex.cpp.
#define MAXVPID 16 |
Definition at line 1344 of file replex.cpp.
#define MAXAPID 32 |
Definition at line 1345 of file replex.cpp.
#define MAXAC3PID 16 |
Definition at line 1346 of file replex.cpp.
#define MAX_TRIES 5 |
#define AVI_S 1024 |
|
static |
Definition at line 1851 of file replex.cpp.
Referenced by do_replex(), and replex_finish().
Definition at line 69 of file replex.cpp.
Referenced by replex_tsp().
|
static |
Definition at line 87 of file replex.cpp.
Referenced by encode_mp2_audio().
|
static |
Definition at line 174 of file replex.cpp.
Referenced by analyze_audio().
Definition at line 233 of file replex.cpp.
Referenced by avi_es_out(), es_out(), and pes_es_out().
Definition at line 509 of file replex.cpp.
Referenced by avi_es_out(), es_out(), and pes_es_out().
|
static |
Definition at line 912 of file replex.cpp.
Referenced by replex_tsp().
|
static |
Definition at line 982 of file replex.cpp.
Referenced by replex_fill_buffers().
|
static |
Definition at line 1094 of file replex.cpp.
Referenced by replex_fill_buffers().
|
static |
Definition at line 1163 of file replex.cpp.
Referenced by replex_fill_buffers().
|
static |
Definition at line 1212 of file replex.cpp.
Referenced by do_scan(), find_all_pids_file(), find_pes_ids(), find_pids_file(), init_replex(), and replex_fill_buffers().
|
static |
Definition at line 1247 of file replex.cpp.
Referenced by replex_fill_buffers().
|
static |
Definition at line 1292 of file replex.cpp.
Referenced by init_replex().
|
static |
Definition at line 1347 of file replex.cpp.
Referenced by do_scan().
|
static |
Definition at line 1439 of file replex.cpp.
Referenced by replex_fill_buffers().
|
static |
Definition at line 1502 of file replex.cpp.
Referenced by find_pes_ids().
|
static |
Definition at line 1564 of file replex.cpp.
Referenced by do_scan().
|
static |
Definition at line 1673 of file replex.cpp.
Referenced by replex_fill_buffers().
|
static |
Definition at line 1689 of file replex.cpp.
Referenced by do_analyze(), do_demux(), do_replex(), fill_buffers(), fix_audio(), and init_replex().
|
static |
Definition at line 1835 of file replex.cpp.
Referenced by do_replex(), and init_multiplex().
void init_index | ( | index_unit * | iu | ) |
Definition at line 1845 of file replex.cpp.
Referenced by analyze_audio(), analyze_video(), find_pids_stdin(), and init_replex().
|
static |
Definition at line 1869 of file replex.cpp.
Referenced by do_scan(), and init_replex().
|
static |
Definition at line 1918 of file replex.cpp.
Referenced by main().
|
static |
Definition at line 2068 of file replex.cpp.
Referenced by do_replex().
|
static |
Definition at line 2128 of file replex.cpp.
Referenced by do_analyze(), and do_demux().
|
static |
Definition at line 2138 of file replex.cpp.
Referenced by do_analyze(), and do_demux().
|
static |
Definition at line 2148 of file replex.cpp.
Referenced by do_analyze(), and do_demux().
|
static |
Definition at line 2160 of file replex.cpp.
Referenced by main().
|
static |
Definition at line 2273 of file replex.cpp.
Referenced by main(), and ScanWizard::Scan().
|
static |
Definition at line 2303 of file replex.cpp.
Referenced by main().
|
static |
Definition at line 2340 of file replex.cpp.
Referenced by main().
|
static |
Definition at line 2398 of file replex.cpp.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 2421 of file replex.cpp.