Mercurial > pt1.oyama
diff recpt1/tssplitter_lite.h @ 121:e915d31c5bd9
add --es option
author | Naoya OYAMA <naoya.oyama@gmail.com> |
---|---|
date | Thu, 29 Apr 2010 02:02:42 +0900 |
parents | 8e438d2a1529 |
children | 4009737ea899 |
line wrap: on
line diff
--- a/recpt1/tssplitter_lite.h Sun Apr 25 18:26:32 2010 +0900 +++ b/recpt1/tssplitter_lite.h Thu Apr 29 02:02:42 2010 +0900 @@ -23,6 +23,7 @@ #define __STDC_FORMAT_MACROS #include <inttypes.h> #include <unistd.h> +#include <limits.h> #define LENGTH_PACKET (188) #define MAX_PID (8192) @@ -36,6 +37,7 @@ #define TSS_NULL (-2) #define LENGTH_PAT_HEADER (12) #define C_CHAR_COMMA ',' +#define C_CHAR_DOT '.' #define LENGTH_TS_HEADER (4) #define LENGTH_PES_HEADER (9) #define LENGTH_PTS (5) @@ -158,6 +160,7 @@ int64_t dts; int started; /* 該当ESが蓄積開始しているか */ int random_access_indicator; /* TS の random_access_indicator */ + int fd; /* 該当ESのfd */ int size; u_char buffer[3*1024*1024]; } splitesbuf_t; @@ -184,6 +187,8 @@ splitesbuf_t *esbuf[MAX_PID]; program_t *program; int pid_sid_table[MAX_PID]; /* pid to sid の変換を行うためのテーブル */ + char *filename; /* ファイル名を上位からもらってくるためのポインタ */ + int esout; /* ES出力する? */ } splitter; /* b25 decoder would hoard up large chank */ @@ -193,7 +198,7 @@ u_char buffer[1024*1024]; } splitbuf_t; -splitter* split_startup(char *sid); +splitter* split_startup(char *sid, char *filename); int split_select(splitter *sp, ARIB_STD_B25_BUFFER *sbuf); void split_shutdown(splitter *sp); int split_ts(splitter *splitter, ARIB_STD_B25_BUFFER *sbuf, splitbuf_t *dbuf);