assert(layer < VL_COMPOSITOR_MAX_LAYERS);
+ s->interlaced = buffer->interlaced;
s->used_layers |= 1 << layer;
sampler_views = buffer->get_sampler_view_components(buffer);
for (i = 0; i < 3; ++i) {
unsigned i, j;
assert(s);
-
+ s->interlaced = false;
s->used_layers = 0;
for ( i = 0; i < VL_COMPOSITOR_MAX_LAYERS; ++i) {
struct vertex4f v_one = { 1.0f, 1.0f, 1.0f, 1.0f };
assert(layer < VL_COMPOSITOR_MAX_LAYERS);
+ s->interlaced = buffer->interlaced;
s->used_layers |= 1 << layer;
sampler_views = buffer->get_sampler_view_components(buffer);
for (i = 0; i < 3; ++i) {
drawn.scale_x = layer->viewport.scale[0] /
(float)layer->sampler_views[0]->texture->width0;
drawn.scale_y = layer->viewport.scale[1] /
- (float)layer->sampler_views[0]->texture->height0;
+ ((float)layer->sampler_views[0]->texture->height0 *
+ (s->interlaced ? 2.0 : 1.0));
+
drawn.translate_x = (int)layer->viewport.translate[0];
drawn.translate_y = (int)layer->viewport.translate[1];
drawn.sampler0_w = (float)layer->sampler_views[0]->texture->width0;