@@ -265,28 +265,15 @@ int sink_uc_impl::work(int noutput_items,
265
265
}
266
266
break ;
267
267
case 2 :
268
- if (1 ) { // if(pixel_interleaved_uv)
269
- // first channel=Y, second channel is alternating pixels U and V
270
- src_pixels_0 = (unsigned char *)input_items[0 ];
271
- src_pixels_1 = (unsigned char *)input_items[1 ];
272
- for (int i = 0 ; i < noutput_items; i += d_chunk_size) {
273
- copy_plane_to_surface (12 , d_chunk_size / 2 , src_pixels_1);
274
- noutput_items_produced +=
275
- copy_plane_to_surface (0 , d_chunk_size, src_pixels_0);
276
- src_pixels_0 += d_chunk_size;
277
- src_pixels_1 += d_chunk_size;
278
- }
279
- } else {
280
- // first channel=Y, second channel is alternating lines U and V
281
- src_pixels_0 = (unsigned char *)input_items[0 ];
282
- src_pixels_1 = (unsigned char *)input_items[1 ];
283
- for (int i = 0 ; i < noutput_items; i += d_chunk_size) {
284
- copy_plane_to_surface (1222 , d_chunk_size / 2 , src_pixels_1);
285
- noutput_items_produced +=
286
- copy_plane_to_surface (0 , d_chunk_size, src_pixels_0);
287
- src_pixels_0 += d_chunk_size;
288
- src_pixels_1 += d_chunk_size;
289
- }
268
+ // first channel=Y, second channel is alternating pixels U and V
269
+ src_pixels_0 = (unsigned char *)input_items[0 ];
270
+ src_pixels_1 = (unsigned char *)input_items[1 ];
271
+ for (int i = 0 ; i < noutput_items; i += d_chunk_size) {
272
+ copy_plane_to_surface (12 , d_chunk_size / 2 , src_pixels_1);
273
+ noutput_items_produced +=
274
+ copy_plane_to_surface (0 , d_chunk_size, src_pixels_0);
275
+ src_pixels_0 += d_chunk_size;
276
+ src_pixels_1 += d_chunk_size;
290
277
}
291
278
break ;
292
279
case 1 : // grey (Y) input
0 commit comments