From 330b2c6b7c865454ab50d28151617236420e9a84 Mon Sep 17 00:00:00 2001 From: Aaron Boxer Date: Thu, 16 Apr 2020 10:06:29 -0400 Subject: [PATCH] openjpegenc: store stripe offset when encoding image The decoder can simply read this offset after decoding to know where to blit the stripe to the full frame Part-of: --- ext/openjpeg/gstopenjpegenc.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/ext/openjpeg/gstopenjpegenc.c b/ext/openjpeg/gstopenjpegenc.c index 40c6ce3..250129b 100644 --- a/ext/openjpeg/gstopenjpegenc.c +++ b/ext/openjpeg/gstopenjpegenc.c @@ -415,8 +415,6 @@ fill_image_packed16_4 (opj_image_t * image, GstVideoFrame * frame) } data_in += sstride; } - image->y1 -= image->y0; - image->y0 = 0; } static void @@ -455,8 +453,6 @@ fill_image_packed8_4 (opj_image_t * image, GstVideoFrame * frame) } data_in += sstride; } - image->y1 -= image->y0; - image->y0 = 0; } static void @@ -492,8 +488,6 @@ fill_image_packed8_3 (opj_image_t * image, GstVideoFrame * frame) } data_in += sstride; } - image->y1 -= image->y0; - image->y0 = 0; } static void @@ -525,8 +519,6 @@ fill_image_planar16_3 (opj_image_t * image, GstVideoFrame * frame) data_in += sstride; } } - image->y1 -= image->y0; - image->y0 = 0; } static void @@ -558,8 +550,6 @@ fill_image_planar8_3 (opj_image_t * image, GstVideoFrame * frame) data_in += sstride; } } - image->y1 -= image->y0; - image->y0 = 0; } static void @@ -588,8 +578,6 @@ fill_image_planar8_1 (opj_image_t * image, GstVideoFrame * frame) } data_in += sstride; } - image->y1 -= image->y0; - image->y0 = 0; } static void @@ -618,8 +606,6 @@ fill_image_planar16_1 (opj_image_t * image, GstVideoFrame * frame) } data_in += sstride; } - image->y1 -= image->y0; - image->y0 = 0; } static gboolean -- 2.7.4