Lines 314-320
int readframe(int numframe,
Link Here
|
314 |
dv_parse_header(decoder, jpeg_data); |
314 |
dv_parse_header(decoder, jpeg_data); |
315 |
switch(decoder->sampling) { |
315 |
switch(decoder->sampling) { |
316 |
case e_dv_sample_420: |
316 |
case e_dv_sample_420: |
317 |
#ifdef LIBDV_PAL_YV12 |
|
|
318 |
/* libdv decodes PAL DV directly as planar YUV 420 |
317 |
/* libdv decodes PAL DV directly as planar YUV 420 |
319 |
* (YV12 or 4CC 0x32315659) if configured with the flag |
318 |
* (YV12 or 4CC 0x32315659) if configured with the flag |
320 |
* --with-pal-yuv=YV12 which is not (!) the default |
319 |
* --with-pal-yuv=YV12 which is not (!) the default |
Lines 335-341
int readframe(int numframe,
Link Here
|
335 |
frame[1] = frame_tmp; |
334 |
frame[1] = frame_tmp; |
336 |
} |
335 |
} |
337 |
break; |
336 |
break; |
338 |
#endif /* LIBDV_PAL_YV12 */ |
|
|
339 |
case e_dv_sample_411: |
337 |
case e_dv_sample_411: |
340 |
case e_dv_sample_422: |
338 |
case e_dv_sample_422: |
341 |
/* libdv decodes NTSC DV (native 411) and by default also PAL |
339 |
/* libdv decodes NTSC DV (native 411) and by default also PAL |
Lines 467-475
void writeoutYUV4MPEGheader(int out_fd,
Link Here
|
467 |
dv_parse_header(decoder, jpeg_data); |
465 |
dv_parse_header(decoder, jpeg_data); |
468 |
switch(decoder->sampling) { |
466 |
switch(decoder->sampling) { |
469 |
case e_dv_sample_420: |
467 |
case e_dv_sample_420: |
470 |
# ifndef LIBDV_PAL_YV12 |
|
|
471 |
mjpeg_error_exit1("DV PAL YV12 input was not configured at compile time"); |
472 |
# else |
473 |
switch (param->chroma) { |
468 |
switch (param->chroma) { |
474 |
case Y4M_UNKNOWN: |
469 |
case Y4M_UNKNOWN: |
475 |
mjpeg_info("set chroma '420paldv' from imput"); |
470 |
mjpeg_info("set chroma '420paldv' from imput"); |
Lines 486-492
void writeoutYUV4MPEGheader(int out_fd,
Link Here
|
486 |
break; |
481 |
break; |
487 |
} |
482 |
} |
488 |
break; |
483 |
break; |
489 |
# endif |
|
|
490 |
case e_dv_sample_411: |
484 |
case e_dv_sample_411: |
491 |
case e_dv_sample_422: |
485 |
case e_dv_sample_422: |
492 |
if (param->chroma != Y4M_CHROMA_422) |
486 |
if (param->chroma != Y4M_CHROMA_422) |