|
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 "libmythbase/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 AVI_S 1024 |
| #define IN_SIZE (1000*TS_SIZE) |
Definition at line 1305 of file replex.cpp.
| #define LIMIT 3 |
| #define MAX_TRIES 5 |
| #define MAXAC3PID 16 |
Definition at line 1360 of file replex.cpp.
| #define MAXAPID 32 |
Definition at line 1359 of file replex.cpp.
| #define MAXVPID 16 |
Definition at line 1358 of file replex.cpp.
| #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_IROTH 0 |
Definition at line 57 of file replex.cpp.
| #define S_IWGRP 0 |
Definition at line 56 of file replex.cpp.
| #define S_IWOTH 0 |
Definition at line 58 of file replex.cpp.
Definition at line 247 of file replex.cpp.
Referenced by avi_es_out(), es_out(), and pes_es_out().
Definition at line 523 of file replex.cpp.
Referenced by avi_es_out(), es_out(), and pes_es_out().
|
static |
Definition at line 87 of file replex.cpp.
Referenced by encode_mp2_audio().
|
static |
Definition at line 1108 of file replex.cpp.
Referenced by replex_fill_buffers().
|
static |
Definition at line 1883 of file replex.cpp.
Referenced by do_scan(), and init_replex().
|
static |
Definition at line 2174 of file replex.cpp.
Referenced by main().
|
static |
Definition at line 2317 of file replex.cpp.
Referenced by main().
|
static |
Definition at line 2354 of file replex.cpp.
Referenced by main().
|
static |
Definition at line 2287 of file replex.cpp.
Referenced by main(), and ScanWizard::Scan().
|
static |
Definition at line 188 of file replex.cpp.
Referenced by analyze_audio().
|
static |
Definition at line 926 of file replex.cpp.
Referenced by replex_tsp().
|
static |
Definition at line 1849 of file replex.cpp.
Referenced by do_replex(), and init_multiplex().
|
static |
Definition at line 1361 of file replex.cpp.
Referenced by do_scan().
|
static |
Definition at line 1578 of file replex.cpp.
Referenced by do_scan().
|
static |
Definition at line 1306 of file replex.cpp.
Referenced by init_replex().
|
static |
Definition at line 1453 of file replex.cpp.
Referenced by replex_fill_buffers().
|
static |
Definition at line 2082 of file replex.cpp.
Referenced by do_replex().
|
static |
Definition at line 2162 of file replex.cpp.
Referenced by do_analyze(), and do_demux().
|
static |
Definition at line 2152 of file replex.cpp.
Referenced by do_analyze(), and do_demux().
|
static |
Definition at line 2142 of file replex.cpp.
Referenced by do_analyze(), and do_demux().
|
static |
Definition at line 1261 of file replex.cpp.
Referenced by replex_fill_buffers().
| void init_index | ( | index_unit * | iu | ) |
Definition at line 1859 of file replex.cpp.
Referenced by analyze_audio(), analyze_video(), find_pids_stdin(), and init_replex().
|
static |
Definition at line 1932 of file replex.cpp.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 2438 of file replex.cpp.
|
static |
Definition at line 996 of file replex.cpp.
Referenced by replex_fill_buffers().
|
static |
Definition at line 1516 of file replex.cpp.
Referenced by find_pes_ids().
|
static |
Definition at line 1865 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 1703 of file replex.cpp.
Referenced by do_analyze(), do_demux(), do_replex(), fill_buffers(), fix_audio(), and init_replex().
|
static |
Definition at line 1687 of file replex.cpp.
Referenced by replex_fill_buffers().
|
static |
Definition at line 1177 of file replex.cpp.
Referenced by replex_fill_buffers().
|
static |
Definition at line 1226 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 2415 of file replex.cpp.
Referenced by main().