xine-lib  1.2.10
pnm.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2009 the xine project
3  *
4  * This file is part of xine, a free video player.
5  *
6  * xine is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * xine is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19  *
20  * pnm util functions header by joschka
21  */
22 
23 #ifndef HAVE_PNM_H
24 #define HAVE_PNM_H
25 
26 #ifndef __CYGWIN__
27 #include <inttypes.h>
28 #endif
29 #include <xine/xine_internal.h>
30 
31 typedef struct pnm_s pnm_t;
32 
33 pnm_t* pnm_connect (xine_stream_t *stream, const char *url);
34 
35 int pnm_read (pnm_t *this, char *data, int len);
36 void pnm_close (pnm_t *this);
37 
38 int pnm_peek_header (pnm_t *this, char *data, int maxsize);
39 
40 #endif
41 
pnm_close
void pnm_close(pnm_t *this)
Definition: pnm.c:848
pnm_send_response
static int pnm_send_response(pnm_t *p, const char *response)
Definition: pnm.c:428
xine_stream_s::xine
xine_t * xine
Definition: xine_internal.h:126
RMF_TAG
#define RMF_TAG
Definition: rmff.h:61
pnm_client_caps
static const unsigned char pnm_client_caps[]
Definition: pnm.c:140
xine_stream_s
Definition: xine_internal.h:123
_x_io_tcp_write
off_t _x_io_tcp_write(xine_stream_t *stream, int s, const void *wbuf_gen, off_t todo)
Definition: io_helper.c:607
pnm_s::recv_read
int recv_read
Definition: pnm.c:68
xineutils.h
PNM_CLIENT_CAPS_SIZE
#define PNM_CLIENT_CAPS_SIZE
Definition: pnm.c:139
CONT_TAG
#define CONT_TAG
Definition: demux_real.c:70
pnm_s::path
char * path
Definition: pnm.c:59
PNA_CLIENT_STRING
#define PNA_CLIENT_STRING
Definition: pnm.c:122
pnm_s::port
int port
Definition: pnm.c:58
PNA_TWENTYFOUR
#define PNA_TWENTYFOUR
Definition: pnm.c:120
PNA_TAG
#define PNA_TAG
Definition: rmff.h:67
pnm_guid
static const char pnm_guid[]
Definition: pnm.c:127
pnm_s::header_len
int header_len
Definition: pnm.c:71
pnm_s::stream
xine_stream_t * stream
Definition: pnm.c:53
be2me_32
#define be2me_32(x)
Definition: ffmpeg_bswap.h:168
RM_HEADER_SIZE
#define RM_HEADER_SIZE
Definition: pnm.c:90
pnm_connect
pnm_t * pnm_connect(xine_stream_t *stream, const char *url)
Definition: pnm.c:725
be2me_16
#define be2me_16(x)
Definition: ffmpeg_bswap.h:167
io_helper.h
pnm_response
static const char pnm_response[]
Definition: pnm.c:128
pnm_s::ts_last
uint32_t ts_last[2]
Definition: pnm.c:76
after_chunks_length
static const int after_chunks_length
Definition: pnm.c:173
pnm_s
Definition: pnm.c:51
pnm_s::seq_num
unsigned int seq_num[4]
Definition: pnm.c:73
lprintf
#define lprintf(...)
Definition: xineutils.h:620
pnm_challenge
static const char pnm_challenge[]
Definition: pnm.c:125
client_string
static const char client_string[]
Definition: pnm.c:129
_X_BE_16
#define _X_BE_16(x)
Definition: bswap.h:40
pnm_s::host
char * host
Definition: pnm.c:57
pnm_s::buffer
char buffer[4096]
Definition: pnm.c:63
pnm_s::s
int s
Definition: pnm.c:55
NULL
NULL
Definition: xine_plugin.c:78
pnm_s::ts_current
uint32_t ts_current
Definition: pnm.c:75
PNA_PATH_REQUEST
#define PNA_PATH_REQUEST
Definition: pnm.c:123
XINE_VERBOSITY_LOG
#define XINE_VERBOSITY_LOG
Definition: xine.h:425
CHECKSUM_SIZE
#define CHECKSUM_SIZE
Definition: pnm.c:83
pnm_s::recv
uint8_t recv[4096]
Definition: pnm.c:66
rm_header
static const unsigned char rm_header[]
Definition: pnm.c:91
pnm_peek_header
int pnm_peek_header(pnm_t *this, char *data, int maxsize)
Definition: pnm.c:838
PNA_BANDWIDTH
#define PNA_BANDWIDTH
Definition: pnm.c:117
_
#define _(String)
Definition: vcdplayer.h:39
xine_hexdump
void xine_hexdump(const void *buf_gen, int length)
Definition: utils.c:576
pnm.h
pnm_get_stream_chunk
static int pnm_get_stream_chunk(pnm_t *p)
Definition: pnm.c:594
pnm_header
static const unsigned char pnm_header[]
Definition: pnm.c:132
pnm_calc_stream
static int pnm_calc_stream(pnm_t *p)
Definition: pnm.c:525
pnm_s::url
char * url
Definition: pnm.c:60
XINE_VERBOSITY_DEBUG
#define XINE_VERBOSITY_DEBUG
Definition: xine.h:426
PNM_HEADER_SIZE
#define PNM_HEADER_SIZE
Definition: pnm.c:131
pnm_peek_header
int pnm_peek_header(pnm_t *this, char *data, int maxsize)
Definition: pnm.c:838
DATA_TAG
#define DATA_TAG
Definition: demux_ac3.c:57
PREAMBLE_SIZE
#define PREAMBLE_SIZE
Definition: pnm.c:82
pnm_connect
pnm_t * pnm_connect(xine_stream_t *stream, const char *mrl)
Definition: pnm.c:725
PNM_DATA_HEADER_SIZE
#define PNM_DATA_HEADER_SIZE
Definition: pnm.c:100
MDPR_TAG
#define MDPR_TAG
Definition: demux_real.c:69
PNA_CLIENT_CAPS
#define PNA_CLIENT_CAPS
Definition: pnm.c:115
PNM_TWENTYFOUR_SIZE
#define PNM_TWENTYFOUR_SIZE
Definition: pnm.c:167
pnm_close
void pnm_close(pnm_t *p)
Definition: pnm.c:848
pnm_write_chunk
static int pnm_write_chunk(uint16_t chunk_id, uint16_t length, const char *chunk, char *data)
Definition: pnm.c:344
pnm_get_chunk
static unsigned int pnm_get_chunk(pnm_t *p, unsigned int max, unsigned int *chunk_type, char *data, int *need_response)
Definition: pnm.c:198
HEADER_SIZE
#define HEADER_SIZE
Definition: pnm.c:49
PNA_TIMESTAMP
#define PNA_TIMESTAMP
Definition: pnm.c:119
after_chunks
static const unsigned char after_chunks[]
Definition: pnm.c:174
pnm_data_header
static const unsigned char pnm_data_header[]
Definition: pnm.c:101
pnm_timestamp
static const char pnm_timestamp[]
Definition: pnm.c:126
pnm_s::header_read
int header_read
Definition: pnm.c:72
BUF_SIZE
#define BUF_SIZE
Definition: pnm.c:48
bswap.h
pnm_read
int pnm_read(pnm_t *this, char *data, int len)
Definition: pnm.c:806
_X_BE_32
#define _X_BE_32(x)
Definition: bswap.h:45
xine_internal.h
pnm_send_request
static int pnm_send_request(pnm_t *p, uint32_t bandwidth)
Definition: pnm.c:363
PNA_GUID
#define PNA_GUID
Definition: pnm.c:118
pnm_read
int pnm_read(pnm_t *this, char *data, int len)
Definition: pnm.c:806
config.h
_x_io_tcp_connect
int _x_io_tcp_connect(xine_stream_t *stream, const char *host, int port)
Definition: io_helper.c:159
pnm_s::packet
unsigned int packet
Definition: pnm.c:77
PROP_TAG
#define PROP_TAG
Definition: demux_real.c:68
pnm_get_headers
static int pnm_get_headers(pnm_t *p, int *need_response)
Definition: pnm.c:451
pnm_default_bandwidth
static const uint32_t pnm_default_bandwidth
Definition: pnm.c:163
pnm_s::recv_size
int recv_size
Definition: pnm.c:67
_x_io_tcp_close
int _x_io_tcp_close(xine_stream_t *stream, int fd)
Definition: io_helper.c:740
rmff.h
PNA_CLIENT_CHALLANGE
#define PNA_CLIENT_CHALLANGE
Definition: pnm.c:116
pnm_available_bandwidths
static const uint32_t pnm_available_bandwidths[]
Definition: pnm.c:164
pnm_s::seq_current
unsigned int seq_current[2]
Definition: pnm.c:74
pnm_twentyfour
static const unsigned char pnm_twentyfour[]
Definition: pnm.c:168
xprintf
#define xprintf(xine, verbose,...)
Definition: xineutils.h:664
_x_io_tcp_read
off_t _x_io_tcp_read(xine_stream_t *stream, int s, void *buf_gen, off_t todo)
Definition: io_helper.c:524
pnm_s::header
uint8_t header[4096]
Definition: pnm.c:70