r1006: configure: Use libx264_pic instead of libx264 if available.
[cinelerra_cv/mob.git] / cinelerra / dvbtune.h
blob1a6dcf64ce7f052074ac8c4de06d40355e4787d2
1 #ifndef DVBTUNE_H
2 #define DVBTUNE_H
7 /**
8 * Interface for digital tuners using DVB.
9 **/
11 #include "condition.inc"
12 #include "dvbtune.inc"
13 #include "mutex.inc"
14 #include "renderfarmclient.inc"
15 #include "thread.h"
16 #include "tunerserver.h"
23 class DVBTune : public TunerServer
25 public:
26 DVBTune(RenderFarmClientThread *client);
27 ~DVBTune();
29 void reset();
31 int open_tuner();
32 int close_tuner();
33 int get_signal_strength(int *current_power, int *current_lock);
34 int read_data(unsigned char *data, int size);
39 int frontend_fd;
40 int audio_fd;
41 int video_fd;
42 int dvr_fd;
44 Mutex *buffer_lock;
45 unsigned char *buffer;
46 int buffer_size;
47 int buffer_allocated;
48 DVBTuneThread *thread;
49 DVBTuneStatus *status;
50 int has_lock;
53 // Read asynchronously in case the network was too slow.
54 // Turns out the status was the thing slowing it down.
56 class DVBTuneThread : public Thread
58 public:
59 DVBTuneThread(DVBTune *server);
60 ~DVBTuneThread();
61 void run();
62 DVBTune *server;
63 unsigned char *temp;
66 // Need to get tuner status separately because it's real slow.
68 class DVBTuneStatus : public Thread
70 public:
71 DVBTuneStatus(DVBTune *server);
72 ~DVBTuneStatus();
73 void run();
74 DVBTune *server;
85 #endif