comparison libmpdemux/stream.h @ 3043:02a43ca97b52

Added a new struct to stream_t to handle, network streaming.
author bertrand
date Tue, 20 Nov 2001 22:21:20 +0000
parents bc6cb25ad067
children b01551d725d4
comparison
equal deleted inserted replaced
3042:6b6fa2be9b97 3043:02a43ca97b52
11 #define STREAMTYPE_TV 5 11 #define STREAMTYPE_TV 5
12 12
13 #define VCD_SECTOR_SIZE 2352 13 #define VCD_SECTOR_SIZE 2352
14 #define VCD_SECTOR_OFFS 24 14 #define VCD_SECTOR_OFFS 24
15 #define VCD_SECTOR_DATA 2324 15 #define VCD_SECTOR_DATA 2324
16
17 #ifdef STREAMING
18 #include "network.h"
19 #endif
16 20
17 int vcd_seek_to_track(int fd,int track); 21 int vcd_seek_to_track(int fd,int track);
18 void vcd_read_toc(int fd); 22 void vcd_read_toc(int fd);
19 23
20 #ifdef VCD_CACHE 24 #ifdef VCD_CACHE
30 off_t start_pos,end_pos; 34 off_t start_pos,end_pos;
31 unsigned int cache_pid; 35 unsigned int cache_pid;
32 void* cache_data; 36 void* cache_data;
33 void* priv; // used for DVD 37 void* priv; // used for DVD
34 unsigned char buffer[STREAM_BUFFER_SIZE>VCD_SECTOR_SIZE?STREAM_BUFFER_SIZE:VCD_SECTOR_SIZE]; 38 unsigned char buffer[STREAM_BUFFER_SIZE>VCD_SECTOR_SIZE?STREAM_BUFFER_SIZE:VCD_SECTOR_SIZE];
39 #ifdef STREAMING
40 streaming_ctrl_t *streaming_ctrl;
41 #endif
35 } stream_t; 42 } stream_t;
36 43
37 #ifdef USE_STREAM_CACHE 44 #ifdef USE_STREAM_CACHE
38 void stream_enable_cache(stream_t *s,int size); 45 void stream_enable_cache(stream_t *s,int size);
39 #else 46 #else