annotate stream/pnm.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 4566261f75de
children 324dd17d4aaa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8570
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
1 /*
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
2 * Copyright (C) 2002 the xine project
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
3 *
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
4 * This file is part of xine, a free video player.
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
5 *
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
6 * xine is free software; you can redistribute it and/or modify
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
7 * it under the terms of the GNU General Public License as published by
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
8 * the Free Software Foundation; either version 2 of the License, or
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
9 * (at your option) any later version.
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
10 *
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
11 * xine is distributed in the hope that it will be useful,
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
14 * GNU General Public License for more details.
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
15 *
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
16 * You should have received a copy of the GNU General Public License
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
17 * along with this program; if not, write to the Free Software
19614
36589811e5d0 The FSF changed postal address.
diego
parents: 19311
diff changeset
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
8570
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
19 *
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
20 * $Id$
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
21 *
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
22 * pnm util functions header by joschka
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
23 */
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
24
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
25 #ifndef HAVE_PNM_H
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
26 #define HAVE_PNM_H
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
27
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
28 #include <inttypes.h>
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
29 /*#include "xine_internal.h" */
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
30
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
31 typedef struct pnm_s pnm_t;
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
32
15585
281d155fb37f ported all network streams to the new API
nicodvb
parents: 8570
diff changeset
33 //pnm_t* pnm_connect (int fd,char *url);
8570
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
34
15585
281d155fb37f ported all network streams to the new API
nicodvb
parents: 8570
diff changeset
35 //int pnm_read (pnm_t *this, char *data, int len);
281d155fb37f ported all network streams to the new API
nicodvb
parents: 8570
diff changeset
36 //void pnm_close (pnm_t *this);
8570
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
37
15585
281d155fb37f ported all network streams to the new API
nicodvb
parents: 8570
diff changeset
38 //int pnm_peek_header (pnm_t *this, char *data);
8570
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
39
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
40 #endif
16af93c01dbf pnm:// support (ported from xine)
arpi
parents:
diff changeset
41