diff options
author | wm4 <wm4@nowhere> | 2012-08-01 17:07:35 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-01 17:07:35 +0200 |
commit | c92538dfaa5eb7e9b2773f158cbb310545116abe (patch) | |
tree | 4b1ab99a17cbead6ff1b7bf9714642540cd66ce4 /libmpcodecs | |
parent | 7175f178de72bb4f31cacd79b395a14beaf2f65a (diff) | |
download | mpv-c92538dfaa5eb7e9b2773f158cbb310545116abe.tar.bz2 mpv-c92538dfaa5eb7e9b2773f158cbb310545116abe.tar.xz |
Remove dead code
This was done with the help of callcatcher [1]. Only functions which
are statically known to be unused are removed.
Some unused functions are not removed yet, because they might be needed
in the near future (such as open_output_stream for the encode branch).
There is one user visible change: the --subcc option did nothing, and is
removed with this commit.
[1] http://www.skynet.ie/~caolan/Packages/callcatcher.html
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/dec_video.c | 13 | ||||
-rw-r--r-- | libmpcodecs/dec_video.h | 1 | ||||
-rw-r--r-- | libmpcodecs/pullup.c | 15 | ||||
-rw-r--r-- | libmpcodecs/pullup.h | 1 | ||||
-rw-r--r-- | libmpcodecs/vfcap.h | 2 |
5 files changed, 0 insertions, 32 deletions
diff --git a/libmpcodecs/dec_video.c b/libmpcodecs/dec_video.c index 804b4d60b4..148514db95 100644 --- a/libmpcodecs/dec_video.c +++ b/libmpcodecs/dec_video.c @@ -72,19 +72,6 @@ int get_video_quality_max(sh_video_t *sh_video) return 0; } -void set_video_quality(sh_video_t *sh_video, int quality) -{ - vf_instance_t *vf = sh_video->vfilter; - if (vf) { - int ret = vf->control(vf, VFCTRL_SET_PP_LEVEL, (void *) (&quality)); - if (ret == CONTROL_TRUE) - return; // success - } - const struct vd_functions *vd = sh_video->vd_driver; - if (vd) - vd->control(sh_video, VDCTRL_SET_PP_LEVEL, (void *) (&quality)); -} - int set_video_colors(sh_video_t *sh_video, const char *item, int value) { vf_instance_t *vf = sh_video->vfilter; diff --git a/libmpcodecs/dec_video.h b/libmpcodecs/dec_video.h index ab4b55bef7..878744396c 100644 --- a/libmpcodecs/dec_video.h +++ b/libmpcodecs/dec_video.h @@ -36,7 +36,6 @@ void *decode_video(sh_video_t *sh_video, struct demux_packet *packet, int filter_video(sh_video_t *sh_video, void *frame, double pts); int get_video_quality_max(sh_video_t *sh_video); -void set_video_quality(sh_video_t *sh_video, int quality); int get_video_colors(sh_video_t *sh_video, const char *item, int *value); int set_video_colors(sh_video_t *sh_video, const char *item, int value); diff --git a/libmpcodecs/pullup.c b/libmpcodecs/pullup.c index b70aa9b56f..bd25c187d6 100644 --- a/libmpcodecs/pullup.c +++ b/libmpcodecs/pullup.c @@ -442,21 +442,6 @@ void pullup_submit_field(struct pullup_context *c, struct pullup_buffer *b, c->head = c->head->next; } -void pullup_flush_fields(struct pullup_context *c) -{ - struct pullup_field *f; - - for (f = c->first; f && f != c->head; f = f->next) { - pullup_release_buffer(f->buffer, f->parity); - f->buffer = 0; - } - c->first = c->last = 0; -} - - - - - diff --git a/libmpcodecs/pullup.h b/libmpcodecs/pullup.h index 99aaa45dc2..0948737919 100644 --- a/libmpcodecs/pullup.h +++ b/libmpcodecs/pullup.h @@ -89,7 +89,6 @@ struct pullup_buffer *pullup_get_buffer(struct pullup_context *c, int parity); void pullup_submit_field(struct pullup_context *c, struct pullup_buffer *b, int parity, double pts); -void pullup_flush_fields(struct pullup_context *c); struct pullup_frame *pullup_get_frame(struct pullup_context *c); void pullup_pack_frame(struct pullup_context *c, struct pullup_frame *fr); diff --git a/libmpcodecs/vfcap.h b/libmpcodecs/vfcap.h index c9b943177d..eca9b5ef7f 100644 --- a/libmpcodecs/vfcap.h +++ b/libmpcodecs/vfcap.h @@ -26,8 +26,6 @@ #define VFCAP_CSP_SUPPORTED_BY_HW 0x2 // set if the driver/filter can draw OSD #define VFCAP_OSD 0x4 -// set if the driver/filter can handle compressed SPU stream -#define VFCAP_SPU 0x8 // scaling up/down by hardware, or software: #define VFCAP_HWSCALE_UP 0x10 #define VFCAP_HWSCALE_DOWN 0x20 |