summaryrefslogtreecommitdiffstats
path: root/libvo/vo_zr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_zr.c')
-rw-r--r--libvo/vo_zr.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/libvo/vo_zr.c b/libvo/vo_zr.c
index e8d1f23e11..95b12eb243 100644
--- a/libvo/vo_zr.c
+++ b/libvo/vo_zr.c
@@ -121,7 +121,8 @@ static zr_info_t zr_info[ZR_MAX_DEVICES] = {
#define MJPEG_SIZE 1024*256
-int zoran_getcap(zr_info_t *zr) {
+static int zoran_getcap(zr_info_t *zr)
+{
char* dev = NULL;
if (zr->device)
@@ -196,7 +197,8 @@ int zoran_getcap(zr_info_t *zr) {
return 0;
}
-int init_zoran(zr_info_t *zr, int stretchx, int stretchy) {
+static int init_zoran(zr_info_t *zr, int stretchx, int stretchy)
+{
/* center the image, and stretch it as far as possible (try to keep
* aspect) and check if it fits */
if (zr->image_width > zr->vc.maxwidth) {
@@ -264,7 +266,8 @@ int init_zoran(zr_info_t *zr, int stretchx, int stretchy) {
return 0;
}
-void uninit_zoran(zr_info_t *zr) {
+static void uninit_zoran(zr_info_t *zr)
+{
if (zr->image) {
free(zr->image);
zr->image=NULL;
@@ -283,7 +286,8 @@ void uninit_zoran(zr_info_t *zr) {
close(zr->vdes);
}
-int zr_geometry_sane(geo_t *g, unsigned int width, unsigned int height) {
+static int zr_geometry_sane(geo_t *g, unsigned int width, unsigned int height)
+{
if (g->set) {
if (g->width%2 != 0 || g->height%2 != 0 ||
g->xoff%2 != 0 || g->yoff%2 != 0) {