diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-11-16 04:18:13 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-11-16 04:18:13 +0200 |
commit | 507f4fe6c7811558b1367e4b64855ae7f9bc8da8 (patch) | |
tree | 416b70358bf4b13871cda60fd8e8f64c5e9a2392 /libmpcodecs | |
parent | 8bbb79c03a594e452fb9109dd6fda781d390a798 (diff) | |
parent | b8861ce8e28080b151467827f65bdc3707a74511 (diff) | |
download | mpv-507f4fe6c7811558b1367e4b64855ae7f9bc8da8.tar.bz2 mpv-507f4fe6c7811558b1367e4b64855ae7f9bc8da8.tar.xz |
Merge branch 'vdpau'
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/img_format.c | 1 | ||||
-rw-r--r-- | libmpcodecs/img_format.h | 1 | ||||
-rw-r--r-- | libmpcodecs/vf.h | 3 | ||||
-rw-r--r-- | libmpcodecs/vf_tfields.c | 6 | ||||
-rw-r--r-- | libmpcodecs/vf_vo.c | 10 | ||||
-rw-r--r-- | libmpcodecs/vf_yadif.c | 2 |
6 files changed, 8 insertions, 15 deletions
diff --git a/libmpcodecs/img_format.c b/libmpcodecs/img_format.c index 4704cf2f6a..7d20a77cc7 100644 --- a/libmpcodecs/img_format.c +++ b/libmpcodecs/img_format.c @@ -72,6 +72,7 @@ const char *vo_format_name(int format) case IMGFMT_VDPAU_MPEG1: return "MPEG1 VDPAU acceleration"; case IMGFMT_VDPAU_MPEG2: return "MPEG2 VDPAU acceleration"; case IMGFMT_VDPAU_H264: return "H.264 VDPAU acceleration"; + case IMGFMT_VDPAU_MPEG4: return "MPEG-4 Part 2 VDPAU acceleration"; case IMGFMT_VDPAU_WMV3: return "WMV3 VDPAU acceleration"; case IMGFMT_VDPAU_VC1: return "VC1 VDPAU acceleration"; } diff --git a/libmpcodecs/img_format.h b/libmpcodecs/img_format.h index 89efb1d6cb..752629175d 100644 --- a/libmpcodecs/img_format.h +++ b/libmpcodecs/img_format.h @@ -118,6 +118,7 @@ #define IMGFMT_VDPAU_H264 (IMGFMT_VDPAU|0x03) #define IMGFMT_VDPAU_WMV3 (IMGFMT_VDPAU|0x04) #define IMGFMT_VDPAU_VC1 (IMGFMT_VDPAU|0x05) +#define IMGFMT_VDPAU_MPEG4 (IMGFMT_VDPAU|0x06) typedef struct { void* data; diff --git a/libmpcodecs/vf.h b/libmpcodecs/vf.h index 099135c5da..f9dbb8b4fb 100644 --- a/libmpcodecs/vf.h +++ b/libmpcodecs/vf.h @@ -81,7 +81,6 @@ typedef struct vf_seteq_s #define VFCTRL_GET_EQUALIZER 8 /* gset color options (brightness,contrast etc) */ #define VFCTRL_DRAW_OSD 7 #define VFCTRL_CHANGE_RECTANGLE 9 /* Change the rectangle boundaries */ -#define VFCTRL_FLIP_PAGE 10 /* Tell the vo to flip pages */ #define VFCTRL_DUPLICATE_FRAME 11 /* For encoding - encode zero-change frame */ #define VFCTRL_SKIP_NEXT_FRAME 12 /* For encoding - drop the next frame that passes thru */ #define VFCTRL_FLUSH_FRAMES 13 /* For encoding - flush delayed frames */ @@ -94,6 +93,8 @@ typedef struct vf_seteq_s * the OSD state outside of normal OSD draw time. */ #define VFCTRL_SET_OSD_OBJ 20 #define VFCTRL_REDRAW_OSD 21 /* Change user-visible OSD immediately */ +#define VFCTRL_SET_YUV_COLORSPACE 22 +#define VFCTRL_GET_YUV_COLORSPACE 23 #include "vfcap.h" diff --git a/libmpcodecs/vf_tfields.c b/libmpcodecs/vf_tfields.c index 395e55a323..28529d319b 100644 --- a/libmpcodecs/vf_tfields.c +++ b/libmpcodecs/vf_tfields.c @@ -368,8 +368,6 @@ static int continue_buffered_image(struct vf_instance *vf) ret |= vf_next_put_image(vf, dmpi, pts); if (!under_mencoder) break; - else - if (!i) vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL); } break; case 1: @@ -398,8 +396,6 @@ static int continue_buffered_image(struct vf_instance *vf) ret |= vf_next_put_image(vf, dmpi, pts); if (!under_mencoder) break; - else - if (!i) vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL); } break; case 2: @@ -424,8 +420,6 @@ static int continue_buffered_image(struct vf_instance *vf) ret |= vf_next_put_image(vf, dmpi, pts); if (!under_mencoder) break; - else - if (!i) vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL); } break; } diff --git a/libmpcodecs/vf_vo.c b/libmpcodecs/vf_vo.c index c782a5517b..7026ac93fc 100644 --- a/libmpcodecs/vf_vo.c +++ b/libmpcodecs/vf_vo.c @@ -88,18 +88,16 @@ static int control(struct vf_instance* vf, int request, void* data) if(!video_out) return CONTROL_FALSE; // vo not configured? return vo_control(video_out, VOCTRL_SET_DEINTERLACE, data) == VO_TRUE; } + case VFCTRL_GET_YUV_COLORSPACE: + return vo_control(video_out, VOCTRL_GET_YUV_COLORSPACE, data) == true; + case VFCTRL_SET_YUV_COLORSPACE: + return vo_control(video_out, VOCTRL_SET_YUV_COLORSPACE, data) == true; case VFCTRL_DRAW_OSD: if(!video_out->config_ok) return CONTROL_FALSE; // vo not configured? vo_draw_osd(video_out, data); return CONTROL_TRUE; case VFCTRL_REDRAW_OSD: return vo_control(video_out, VOCTRL_REDRAW_OSD, data) == true; - case VFCTRL_FLIP_PAGE: - { - if(!video_out->config_ok) return CONTROL_FALSE; // vo not configured? - vo_flip_page(video_out); - return CONTROL_TRUE; - } case VFCTRL_SET_EQUALIZER: { vf_equalizer_t *eq=data; diff --git a/libmpcodecs/vf_yadif.c b/libmpcodecs/vf_yadif.c index 8c73ebacef..477ea03c9b 100644 --- a/libmpcodecs/vf_yadif.c +++ b/libmpcodecs/vf_yadif.c @@ -436,8 +436,6 @@ static int continue_buffered_image(struct vf_instance *vf) ret |= vf_next_put_image(vf, dmpi, pts /*FIXME*/); if (!under_mencoder) break; - if(i<(vf->priv->mode&1)) - vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL); } vf->priv->buffered_i = 1; return ret; |