use AUX_* macros in hdstation instead of selfish aux interpretation

This commit is contained in:
Lukas Hejtmanek
2010-02-17 17:24:00 +01:00
parent ca871d6ea0
commit eae3da7929
2 changed files with 8 additions and 2 deletions

View File

@@ -245,7 +245,10 @@ void *vidcap_hdstation_init(char *fmt)
s->frame.width = s->mode->width;
s->frame.height = s->mode->height;
s->frame.aux = s->mode->interlaced;
if(s->mode->interlaced)
s->frame.aux = AUX_INTERLACED;
else
s->frame.aux = AUX_PROGRESSIVE;
aligned_x = s->frame.width;
if (h_align) {

View File

@@ -230,7 +230,10 @@ reconfigure_screen(void *state, unsigned int width, unsigned int height,
s->frame.dst_bpp = get_bpp(color_spec);
s->frame.fps = fps;
s->frame.aux = aux;
s->interlaced = aux;
if(aux & AUX_INTERLACED)
s->interlaced = 1;
else
s->interlaced = 0;
s->hd_video_mode = SV_MODE_COLOR_YUV422 | SV_MODE_ACTIVE_STREAMER;