comparison src/tssplitter_lite.h @ 144:bf96eac4dbb1

Changed to a variable length buffer of splitbuf_t
author Naoya OYAMA <naoya.oyama@gmail.com>
date Wed, 01 Aug 2012 23:23:24 +0900
parents 20442921bff5
children 066f33b2213a
comparison
equal deleted inserted replaced
143:e72dd5e8d53f 144:bf96eac4dbb1
105 PES_EXTENSION_FLAG2 = 0x01 105 PES_EXTENSION_FLAG2 = 0x01
106 }; 106 };
107 107
108 /* 108 /*
109 * PCR¤«¤éSTC¤òÀ¸À®¤¹¤ë½èÍýÊý¼°(°Æ) 109 * PCR¤«¤éSTC¤òÀ¸À®¤¹¤ë½èÍýÊý¼°(°Æ)
110 * 1. PCR¤òÆó¤Ä¼èÆÀ¤¹¤ë¤Þ¤Ç¥ë¡¼¥×(1.¢²4.¤Þ¤Ç¤Ï½é´ü½èÍý¤Ç¼Â»Ü¤¹¤ë¤³¤È) 110 * 1. PCR¤òÆó¤Ä¼èÆÀ¤¹¤ë¤Þ¤Ç¥ë¡¼¥×(1.¤«¤é4.¤Þ¤Ç¤Ï½é´ü½èÍý¤Ç¼Â»Ü¤¹¤ë¤³¤È)
111 * 2. ¥ë¡¼¥×³«»Ï»þ¹ï(PCR)¤È¡¢¥ë¡¼¥×È´¤±¤¿»þ¹ï(PCR)¤Îº¹Ê¬¤ò¼è¤ë 111 * 2. ¥ë¡¼¥×³«»Ï»þ¹ï(PCR)¤È¡¢¥ë¡¼¥×È´¤±¤¿»þ¹ï(PCR)¤Îº¹Ê¬¤ò¼è¤ë
112 * 3. ¥ë¡¼¥×³«»Ï¡Á½ªÎ»¤Î´Ö¤Ë½èÍý¤·¤¿¥Ñ¥±¥Ã¥È¿ô¤ò¿ô¤¨¤ë 112 * 3. ¥ë¡¼¥×³«»Ï¡Á½ªÎ»¤Î´Ö¤Ë½èÍý¤·¤¿¥Ñ¥±¥Ã¥È¿ô¤ò¿ô¤¨¤ë
113 * 4. (2.¤ÎPCR¤Î¿Ê¤ó¤À»þ´Ö/3.¤Î¥Ñ¥±¥Ã¥È¿ô)¡¡¤Î·×»»¤Ë¤è¤Ã¤Æ¡¢1¥Ñ¥±¥Ã¥È¤Ë¤è¤Ã¤Æ¿Ê¤àPCR¤òÁÛÄꤹ¤ë 113 * 4. (2.¤ÎPCR¤Î¿Ê¤ó¤À»þ´Ö/3.¤Î¥Ñ¥±¥Ã¥È¿ô)¡¡¤Î·×»»¤Ë¤è¤Ã¤Æ¡¢1¥Ñ¥±¥Ã¥È¤Ë¤è¤Ã¤Æ¿Ê¤àPCR¤òÁÛÄꤹ¤ë
114 * 5. TS¼õ¿®»þ¤Ë¡¢1¤Ä¤Î¥Ñ¥±¥Ã¥È¤ò½èÍý¤¹¤ëÅÙ¤Ë4.¤ÎÁÛÄꤹ¤ë·Ð²á»þ¹ï¤òPCR¤Ë­¤·¹þ¤ó¤ÇSTC¤È¤¹¤ë 114 * 5. TS¼õ¿®»þ¤Ë¡¢1¤Ä¤Î¥Ñ¥±¥Ã¥È¤ò½èÍý¤¹¤ëÅÙ¤Ë4.¤ÎÁÛÄꤹ¤ë·Ð²á»þ¹ï¤òPCR¤Ë­¤·¹þ¤ó¤ÇSTC¤È¤¹¤ë
115 * 6. PCR¤ò¿·µ¬¤Ë¼èÆÀ¤·¤¿¤é¡¢STC¤òÊäÀµ(¤½¤Î¤Þ¤ÞÂåÆþ)¤¹¤ë 115 * 6. PCR¤ò¿·µ¬¤Ë¼èÆÀ¤·¤¿¤é¡¢STC¤òÊäÀµ(¤½¤Î¤Þ¤ÞÂåÆþ)¤¹¤ë
203 203
204 /* b25 decoder would hoard up large chank */ 204 /* b25 decoder would hoard up large chank */
205 typedef struct _splitbuf_t 205 typedef struct _splitbuf_t
206 { 206 {
207 int size; 207 int size;
208 u_char buffer[1024*1024]; 208 int buffer_length;
209 u_char *buffer;
209 } splitbuf_t; 210 } splitbuf_t;
210 211
211 splitter* split_startup(char *sid, char *filename, char *cue_time); 212 splitter* split_startup(char *sid, char *filename, char *cue_time);
212 int split_select(splitter *sp, ARIB_STD_B25_BUFFER *sbuf); 213 int split_select(splitter *sp, ARIB_STD_B25_BUFFER *sbuf);
213 void split_shutdown(splitter *sp); 214 void split_shutdown(splitter *sp);