mirror of https://github.com/mpv-player/mpv
cleanup: mark some vo_directfb2.c and vo_s3fb.c functions static
This commit is contained in:
parent
a77e5f07ed
commit
48891debe2
|
@ -122,7 +122,8 @@ static int field_parity = -1;
|
||||||
* implementation *
|
* implementation *
|
||||||
******************************/
|
******************************/
|
||||||
|
|
||||||
void unlock(void) {
|
static void unlock(void)
|
||||||
|
{
|
||||||
if (frame && framelocked) frame->Unlock(frame);
|
if (frame && framelocked) frame->Unlock(frame);
|
||||||
if (primary && primarylocked) primary->Unlock(primary);
|
if (primary && primarylocked) primary->Unlock(primary);
|
||||||
}
|
}
|
||||||
|
@ -288,7 +289,7 @@ static int preinit(const char *arg)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DFBSurfacePixelFormat convformat(uint32_t format)
|
static DFBSurfacePixelFormat convformat(uint32_t format)
|
||||||
{
|
{
|
||||||
// add more formats !!!
|
// add more formats !!!
|
||||||
switch (format) {
|
switch (format) {
|
||||||
|
@ -325,7 +326,7 @@ unsigned int height;
|
||||||
int setsize;
|
int setsize;
|
||||||
} enum1_t;
|
} enum1_t;
|
||||||
|
|
||||||
DFBEnumerationResult test_format_callback( unsigned int id,
|
static DFBEnumerationResult test_format_callback(unsigned int id,
|
||||||
DFBDisplayLayerDescription desc,
|
DFBDisplayLayerDescription desc,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
|
@ -423,7 +424,8 @@ int bpp;
|
||||||
} videomode_t;
|
} videomode_t;
|
||||||
|
|
||||||
|
|
||||||
DFBEnumerationResult video_modes_callback( int width,int height,int bpp, void *data)
|
static DFBEnumerationResult video_modes_callback(int width, int height,
|
||||||
|
int bpp, void *data)
|
||||||
{
|
{
|
||||||
videomode_t *params =(videomode_t *)data;
|
videomode_t *params =(videomode_t *)data;
|
||||||
|
|
||||||
|
|
|
@ -105,18 +105,21 @@ static void clear_screen(void);
|
||||||
|
|
||||||
#define OUTREG(mmreg, value) *(unsigned int *)(&v->mmio[mmreg]) = value
|
#define OUTREG(mmreg, value) *(unsigned int *)(&v->mmio[mmreg]) = value
|
||||||
|
|
||||||
int readcrtc(int reg) {
|
static int readcrtc(int reg)
|
||||||
|
{
|
||||||
outb(reg, 0x3d4);
|
outb(reg, 0x3d4);
|
||||||
return inb(0x3d5);
|
return inb(0x3d5);
|
||||||
}
|
}
|
||||||
|
|
||||||
void writecrtc(int reg, int value) {
|
static void writecrtc(int reg, int value)
|
||||||
|
{
|
||||||
outb(reg, 0x3d4);
|
outb(reg, 0x3d4);
|
||||||
outb(value, 0x3d5);
|
outb(value, 0x3d5);
|
||||||
}
|
}
|
||||||
|
|
||||||
// enable S3 registers
|
// enable S3 registers
|
||||||
int enable(void) {
|
static int enable(void)
|
||||||
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
if (v)
|
if (v)
|
||||||
|
@ -148,7 +151,8 @@ int enable(void) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void disable(void) {
|
static void disable(void)
|
||||||
|
{
|
||||||
if (v) {
|
if (v) {
|
||||||
writecrtc(0x53, v->cr53);
|
writecrtc(0x53, v->cr53);
|
||||||
writecrtc(0x39, v->cr39);
|
writecrtc(0x39, v->cr39);
|
||||||
|
@ -160,7 +164,10 @@ void disable(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int yuv_on(int format, int src_w, int src_h, int dst_x, int dst_y, int dst_w, int dst_h, int crop, int xres, int yres, int line_length, int offset) {
|
static int yuv_on(int format, int src_w, int src_h, int dst_x, int dst_y,
|
||||||
|
int dst_w, int dst_h, int crop, int xres, int yres,
|
||||||
|
int line_length, int offset)
|
||||||
|
{
|
||||||
int tmp, pitch, start, src_wc, src_hc, bpp;
|
int tmp, pitch, start, src_wc, src_hc, bpp;
|
||||||
|
|
||||||
if (format == 0 || format == 7)
|
if (format == 0 || format == 7)
|
||||||
|
@ -227,7 +234,8 @@ int yuv_on(int format, int src_w, int src_h, int dst_x, int dst_y, int dst_w, in
|
||||||
return offset;
|
return offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
void yuv_off(void) {
|
static void yuv_off(void)
|
||||||
|
{
|
||||||
writecrtc(0x67, readcrtc(0x67) & ~0xc);
|
writecrtc(0x67, readcrtc(0x67) & ~0xc);
|
||||||
memset(v->mmio + 0x8180, 0, 0x80);
|
memset(v->mmio + 0x8180, 0, 0x80);
|
||||||
OUTREG(0x81b8, 0x900);
|
OUTREG(0x81b8, 0x900);
|
||||||
|
|
Loading…
Reference in New Issue