Mercurial > mplayer.hg
annotate stream/http.h @ 24787:02535b3216c5
Avoid text deformation and subtitles moving outside the screen in pan-and-scan
mode.
For this, crop amounts are passed from vo_gl as negative margins sizes. They
are used to calculate aspect ratio. They are ignored when calculating subtitle
positions, so subtitles will stay on screen most of the time.
Based on a patch by Jindrich Makovicka [makovick gmail com].
author | eugeni |
---|---|
date | Fri, 19 Oct 2007 18:16:23 +0000 |
parents | 3f0d00abc073 |
children | 4129c8cfa742 |
rev | line source |
---|---|
902 | 1 /* |
2 * HTTP Helper | |
3 * by Bertrand Baudet <bertrand_baudet@yahoo.com> | |
4 * (C) 2001, MPlayer team. | |
5 */ | |
6 | |
23689
3f0d00abc073
Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents:
19271
diff
changeset
|
7 #ifndef HTTP_H |
3f0d00abc073
Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents:
19271
diff
changeset
|
8 #define HTTP_H |
870 | 9 |
3039 | 10 typedef struct HTTP_field_type { |
11 char *field_name; | |
12 struct HTTP_field_type *next; | |
13 } HTTP_field_t; | |
870 | 14 |
15 typedef struct { | |
16 char *protocol; | |
17 char *method; | |
18 char *uri; | |
7953 | 19 unsigned int status_code; |
870 | 20 char *reason_phrase; |
7953 | 21 unsigned int http_minor_version; |
3039 | 22 // Field variables |
23 HTTP_field_t *first_field; | |
24 HTTP_field_t *last_field; | |
7953 | 25 unsigned int field_nb; |
870 | 26 char *field_search; |
3039 | 27 HTTP_field_t *field_search_pos; |
6514 | 28 // Body variables |
870 | 29 char *body; |
7953 | 30 size_t body_size; |
902 | 31 char *buffer; |
7953 | 32 size_t buffer_size; |
33 unsigned int is_parsed; | |
870 | 34 } HTTP_header_t; |
35 | |
17566
f580a7755ac5
Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents:
7953
diff
changeset
|
36 HTTP_header_t* http_new_header(void); |
870 | 37 void http_free( HTTP_header_t *http_hdr ); |
902 | 38 int http_response_append( HTTP_header_t *http_hdr, char *data, int length ); |
39 int http_response_parse( HTTP_header_t *http_hdr ); | |
2489
0ecc1b4f7cf8
Added ASF http server streaming (Not mms streaming).
bertrand
parents:
2310
diff
changeset
|
40 int http_is_header_entire( HTTP_header_t *http_hdr ); |
902 | 41 char* http_build_request( HTTP_header_t *http_hdr ); |
870 | 42 char* http_get_field( HTTP_header_t *http_hdr, const char *field_name ); |
43 char* http_get_next_field( HTTP_header_t *http_hdr ); | |
3039 | 44 void http_set_field( HTTP_header_t *http_hdr, const char *field_name ); |
870 | 45 void http_set_method( HTTP_header_t *http_hdr, const char *method ); |
46 void http_set_uri( HTTP_header_t *http_hdr, const char *uri ); | |
6514 | 47 int http_add_basic_authentication( HTTP_header_t *http_hdr, const char *username, const char *password ); |
870 | 48 |
49 void http_debug_hdr( HTTP_header_t *http_hdr ); | |
50 | |
6514 | 51 int base64_encode(const void *enc, int encLen, char *out, int outMax); |
23689
3f0d00abc073
Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents:
19271
diff
changeset
|
52 #endif /* HTTP_H */ |