summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_ass.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs/vf_ass.c')
-rw-r--r--libmpcodecs/vf_ass.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/libmpcodecs/vf_ass.c b/libmpcodecs/vf_ass.c
index f33aba44b7..b88e7b37df 100644
--- a/libmpcodecs/vf_ass.c
+++ b/libmpcodecs/vf_ass.c
@@ -87,12 +87,12 @@ static int config(struct vf_instance_s* vf,
if(!opt_screen_size_x && !opt_screen_size_y){
d_width = d_width * vf->priv->outw / width;
d_height = d_height * vf->priv->outh / height;
- }
+ }
vf->priv->planes[1] = malloc(vf->priv->outw * vf->priv->outh);
vf->priv->planes[2] = malloc(vf->priv->outw * vf->priv->outh);
vf->priv->dirty_rows = malloc(vf->priv->outh);
-
+
if (vf->priv->ass_priv) {
ass_configure(vf->priv->ass_priv, vf->priv->outw, vf->priv->outh, 0);
ass_set_aspect_ratio(vf->priv->ass_priv, ((double)d_width) / d_height);
@@ -106,10 +106,10 @@ static void get_image(struct vf_instance_s* vf, mp_image_t *mpi)
if(mpi->type == MP_IMGTYPE_IPB) return;
if(mpi->flags & MP_IMGFLAG_PRESERVE) return;
if(mpi->imgfmt != vf->priv->outfmt) return; // colorspace differ
-
+
// width never changes, always try full DR
mpi->priv = vf->dmpi = vf_get_image(vf->next, mpi->imgfmt,
- mpi->type, mpi->flags | MP_IMGFLAG_READABLE,
+ mpi->type, mpi->flags | MP_IMGFLAG_READABLE,
vf->priv->outw,
vf->priv->outh);
@@ -222,7 +222,7 @@ static void copy_from_image(struct vf_instance_s* vf, int first_row, int last_ro
for (pl = 1; pl < 3; ++pl) {
int dst_stride = vf->priv->outw;
int src_stride = vf->dmpi->stride[pl];
-
+
unsigned char* src = vf->dmpi->planes[pl] + (first_row/2) * src_stride;
unsigned char* dst = vf->priv->planes[pl] + first_row * dst_stride;
unsigned char* dst_next = dst + dst_stride;
@@ -257,7 +257,7 @@ static void copy_to_image(struct vf_instance_s* vf)
for (pl = 1; pl < 3; ++pl) {
int dst_stride = vf->dmpi->stride[pl];
int src_stride = vf->priv->outw;
-
+
unsigned char* dst = vf->dmpi->planes[pl];
unsigned char* src = vf->priv->planes[pl];
unsigned char* src_next = vf->priv->planes[pl] + src_stride;
@@ -306,7 +306,7 @@ static void my_draw_bitmap(struct vf_instance_s* vf, unsigned char* bitmap, int
dsty += dmpi->stride[0];
dstu += vf->priv->outw;
dstv += vf->priv->outw;
- }
+ }
}
static int render_frame(struct vf_instance_s* vf, mp_image_t *mpi, const ass_image_t* img)
@@ -329,7 +329,7 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts)
ass_image_t* images = 0;
if (sub_visibility && vf->priv->ass_priv && ass_track && (pts != MP_NOPTS_VALUE))
images = ass_mp_render_frame(vf->priv->ass_priv, ass_track, (pts+sub_delay) * 1000 + .5, NULL);
-
+
prepare_image(vf, mpi);
if (images) render_frame(vf, mpi, images);
@@ -392,10 +392,10 @@ static int open(vf_instance_t *vf, char* args)
uninit(vf);
return 0;
}
-
+
if (vf->priv->auto_insert)
mp_msg(MSGT_ASS, MSGL_INFO, "[ass] auto-open\n");
-
+
vf->config = config;
vf->query_format = query_format;
vf->uninit = uninit;