mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01:00
Remove variable arguments from vo control() functions
No voctrl uses them any more, and using them would not be a good idea because it makes forwarding arguments to other functions harder.
This commit is contained in:
parent
dbe080ec9f
commit
de56d2d9f5
@ -229,7 +229,7 @@ static void mga_fullscreen()
|
||||
}
|
||||
#endif
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -43,7 +43,7 @@ static uint8_t *lvo_mem = NULL;
|
||||
static uint8_t next_frame;
|
||||
static mga_vid_config_t mga_vid_config;
|
||||
static unsigned image_bpp,image_height,image_width,src_format;
|
||||
uint32_t vlvo_control(uint32_t request, void *data, ...);
|
||||
uint32_t vlvo_control(uint32_t request, void *data);
|
||||
|
||||
#define PIXEL_SIZE() ((video_mode_info.BitsPerPixel+7)/8)
|
||||
#define SCREEN_LINE_SIZE(pixel_size) (video_mode_info.XResolution*(pixel_size) )
|
||||
@ -303,7 +303,7 @@ uint32_t vlvo_query_info(uint32_t format)
|
||||
return VFCAP_CSP_SUPPORTED;
|
||||
}
|
||||
|
||||
uint32_t vlvo_control(uint32_t request, void *data, ...)
|
||||
uint32_t vlvo_control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -142,7 +142,7 @@ typedef struct vo_functions_s
|
||||
/*
|
||||
* Control interface
|
||||
*/
|
||||
int (*control)(uint32_t request, void *data, ...);
|
||||
int (*control)(uint32_t request, void *data);
|
||||
|
||||
/*
|
||||
* Display a new RGB/BGR frame of the video to the screen.
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include "libmpcodecs/mp_image.h"
|
||||
#include "geometry.h"
|
||||
|
||||
static int control(uint32_t request, void *data, ...);
|
||||
static int control(uint32_t request, void *data);
|
||||
static int config(uint32_t width, uint32_t height, uint32_t d_width,
|
||||
uint32_t d_height, uint32_t fullscreen, char *title,
|
||||
uint32_t format);
|
||||
|
@ -497,7 +497,7 @@ static int preinit(const char *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -718,7 +718,7 @@ static int preinit(const char *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -465,7 +465,7 @@ static int preinit(const char *arg) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...) {
|
||||
static int control(uint32_t request, void *data) {
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
return query_format(*((uint32_t*)data));
|
||||
|
@ -322,7 +322,7 @@ static int query_format(uint32_t format)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch(request)
|
||||
{
|
||||
|
@ -156,7 +156,7 @@ static int preinit(const char *arg){
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...){
|
||||
static int control(uint32_t request, void *data){
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
return query_format(*((uint32_t*)data));
|
||||
|
@ -1381,7 +1381,7 @@ get_equalizer( char *data, int *value )
|
||||
}
|
||||
|
||||
static int
|
||||
control( uint32_t request, void *data, ... )
|
||||
control( uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_GUISUPPORT:
|
||||
|
@ -984,7 +984,7 @@ static uint32_t get_image(mp_image_t * mpi)
|
||||
return (VO_FALSE);
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request)
|
||||
{
|
||||
|
@ -1411,7 +1411,7 @@ static uint32_t put_image(mp_image_t *mpi){
|
||||
|
||||
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -1472,7 +1472,7 @@ static uint32_t color_ctrl_get(char *what, int *value)
|
||||
return r;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
|
||||
|
@ -906,7 +906,7 @@ static int preinit(const char *arg) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -162,7 +162,7 @@ static overlay_t *overlay_data;
|
||||
/* Functions for working with the em8300's internal clock */
|
||||
/* End of internal clock functions */
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_GUISUPPORT:
|
||||
|
@ -1163,7 +1163,7 @@ static uint32_t get_image(mp_image_t *mpi)
|
||||
return(VO_TRUE);
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_GET_IMAGE:
|
||||
|
@ -398,7 +398,7 @@ static void uninit(void)
|
||||
fb_preinit(1); // so that later calls to preinit don't fail
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -452,7 +452,7 @@ static void uninit(void)
|
||||
ggiExit();
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -336,7 +336,7 @@ static int query_format(uint32_t format)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
if (request == VOCTRL_QUERY_FORMAT) {
|
||||
return query_format(*((uint32_t*)data));
|
||||
|
@ -887,7 +887,7 @@ static int preinit(const char *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_PAUSE: return (int_pause=1);
|
||||
|
@ -867,7 +867,7 @@ static int preinit(const char *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_PAUSE: return (int_pause=1);
|
||||
|
@ -282,7 +282,7 @@ query_format (uint32_t format)
|
||||
}
|
||||
|
||||
static int
|
||||
control (uint32_t request, void *data, ...)
|
||||
control (uint32_t request, void *data)
|
||||
{
|
||||
switch (request)
|
||||
{
|
||||
|
@ -405,7 +405,7 @@ static int preinit(const char *arg)
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -263,7 +263,7 @@ static int query_format(uint32_t format)
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -255,7 +255,7 @@ static void check_events(void)
|
||||
{
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -98,7 +98,7 @@ static int preinit(const char *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -223,7 +223,7 @@ static int preinit(const char *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_DRAW_IMAGE:
|
||||
|
@ -543,7 +543,7 @@ static int query_format(uint32_t format)
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -1232,7 +1232,7 @@ static uint32_t get_yuv_image(mp_image_t *mpi)
|
||||
return VO_FALSE;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request)
|
||||
{
|
||||
|
@ -504,7 +504,7 @@ static uint32_t get_image(mp_image_t *mpi)
|
||||
return VO_TRUE;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch(request) {
|
||||
case VOCTRL_GET_IMAGE:
|
||||
|
@ -1660,7 +1660,7 @@ static uint32_t get_image(mp_image_t *mpi)
|
||||
return VO_FALSE;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
struct sdl_priv_s *priv = &sdl_priv;
|
||||
switch (request) {
|
||||
|
@ -350,7 +350,7 @@ static int find_best_svga_mode(int req_w,int req_h, int req_bpp){
|
||||
return bestmode;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -646,7 +646,7 @@ static uint32_t set_colorkey(mp_colorkey_t* colork) {
|
||||
return VO_TRUE;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -478,7 +478,7 @@ static uint32_t get_image(mp_image_t *mpi)
|
||||
return VO_TRUE;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch(request) {
|
||||
case VOCTRL_GET_IMAGE:
|
||||
|
@ -242,7 +242,7 @@ static int preinit(const char *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_DRAW_IMAGE:
|
||||
|
@ -250,7 +250,7 @@ query_format (uint32_t format)
|
||||
}
|
||||
|
||||
static int
|
||||
control (uint32_t request, void *data, ...)
|
||||
control (uint32_t request, void *data)
|
||||
{
|
||||
switch (request)
|
||||
{
|
||||
|
@ -1090,7 +1090,7 @@ static int preinit(const char *arg)
|
||||
return pre_init_err;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -329,7 +329,7 @@ static int preinit(const char *arg){
|
||||
return(0);
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...){
|
||||
static int control(uint32_t request, void *data){
|
||||
switch (request) {
|
||||
case VOCTRL_FULLSCREEN:
|
||||
if(!vo_fs){vo_fs=1;ShowWindow(hWndFS,SW_SHOW);SetForegroundWindow(hWndFS);}
|
||||
|
@ -748,7 +748,7 @@ static int preinit(const char *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request)
|
||||
{
|
||||
|
@ -427,7 +427,7 @@ static int preinit(const char *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
if(!sub_vo) return VO_ERROR;
|
||||
switch (request) {
|
||||
@ -449,7 +449,6 @@ static int control(uint32_t request, void *data, ...)
|
||||
}
|
||||
return VO_TRUE;
|
||||
default:
|
||||
// Safe atm bcs nothing use more than 1 arg
|
||||
return sub_vo->control(request,data);
|
||||
}
|
||||
return VO_NOTIMPL;
|
||||
|
@ -839,7 +839,7 @@ static int preinit(const char *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request)
|
||||
{
|
||||
|
@ -470,7 +470,7 @@ static int preinit(const char *arg)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request)
|
||||
{
|
||||
|
@ -1355,7 +1355,7 @@ assert(rndr->next_free_data_block_num == 0);
|
||||
return VO_TRUE;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ... )
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request){
|
||||
case VOCTRL_GET_DEINTERLACE:
|
||||
|
@ -429,7 +429,7 @@ static int query_format(uint32_t format)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_GET_IMAGE:
|
||||
|
@ -538,7 +538,7 @@ static int preinit(const char *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -814,7 +814,7 @@ static int preinit(const char *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...)
|
||||
static int control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -433,7 +433,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int control(uint32_t request, void *data, ...) {
|
||||
static int control(uint32_t request, void *data) {
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
return query_format(*((uint32_t*)data));
|
||||
|
@ -533,7 +533,7 @@ static uint32_t vidix_get_image(mp_image_t *mpi)
|
||||
return VO_FALSE;
|
||||
}
|
||||
|
||||
uint32_t vidix_control(uint32_t request, void *data, ...)
|
||||
uint32_t vidix_control(uint32_t request, void *data)
|
||||
{
|
||||
switch (request) {
|
||||
case VOCTRL_QUERY_FORMAT:
|
||||
|
@ -24,7 +24,7 @@ int vidix_init(unsigned src_width,unsigned src_height,
|
||||
int vidix_start(void);
|
||||
int vidix_stop(void);
|
||||
void vidix_term( void );
|
||||
uint32_t vidix_control(uint32_t request, void *data, ...);
|
||||
uint32_t vidix_control(uint32_t request, void *data);
|
||||
uint32_t vidix_query_fourcc(uint32_t fourcc);
|
||||
|
||||
uint32_t vidix_draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int y);
|
||||
|
Loading…
Reference in New Issue
Block a user