summaryrefslogtreecommitdiffstats
path: root/libhb/detelecine.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-12-16 16:50:50 +0000
committerjstebbins <[email protected]>2014-12-16 16:50:50 +0000
commitf56efd7b52c89da8cac55b4d4a187f2c87fdfee6 (patch)
tree24eacb856704fa8e4b8b8f0edc76568916f70255 /libhb/detelecine.c
parentd0a975e42dcab93e1d2eead350fb1ba3951d977c (diff)
json: add json APIs
There are several changes to job and title structs that break current windows interop code. The interop code should be changed such that it only uses json APIs. So if there is any missing features (or bugs) in these APIs, please let me know. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6602 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/detelecine.c')
-rw-r--r--libhb/detelecine.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/libhb/detelecine.c b/libhb/detelecine.c
index a27c48e09..161149422 100644
--- a/libhb/detelecine.c
+++ b/libhb/detelecine.c
@@ -846,19 +846,20 @@ static int hb_detelecine_init( hb_filter_object_t * filter,
ctx->bpp[0] = ctx->bpp[1] = ctx->bpp[2] = 8;
ctx->background[1] = ctx->background[2] = 128;
- ctx->w[0] = init->width;
- ctx->h[0] = hb_image_height( init->pix_fmt, init->height, 0 );
- ctx->stride[0] = hb_image_stride( init->pix_fmt, init->width, 0 );
+ ctx->w[0] = init->geometry.width;
+ ctx->h[0] = hb_image_height( init->pix_fmt, init->geometry.height, 0 );
+ ctx->stride[0] = hb_image_stride( init->pix_fmt, init->geometry.width, 0 );
- ctx->w[1] = init->width >> 1;
- ctx->h[1] = hb_image_height( init->pix_fmt, init->height, 1 );
- ctx->stride[1] = hb_image_stride( init->pix_fmt, init->width, 1 );
+ ctx->w[1] = init->geometry.width >> 1;
+ ctx->h[1] = hb_image_height( init->pix_fmt, init->geometry.height, 1 );
+ ctx->stride[1] = hb_image_stride( init->pix_fmt, init->geometry.width, 1 );
- ctx->w[1] = init->width >> 1;
- ctx->h[2] = hb_image_height( init->pix_fmt, init->height, 2 );
- ctx->stride[2] = hb_image_stride( init->pix_fmt, init->width, 2 );
+ ctx->w[1] = init->geometry.width >> 1;
+ ctx->h[2] = hb_image_height( init->pix_fmt, init->geometry.height, 2 );
+ ctx->stride[2] = hb_image_stride( init->pix_fmt, init->geometry.width, 2 );
- ctx->w[3] = ((init->width+15)/16) * ((init->height+15)/16);
+ ctx->w[3] = ((init->geometry.width + 15) / 16) *
+ ((init->geometry.height + 15) / 16);
ctx->h[3] = 2;
ctx->stride[3] = ctx->w[3];