diff options
author | deva <deva> | 2005-04-19 19:25:33 +0000 |
---|---|---|
committer | deva <deva> | 2005-04-19 19:25:33 +0000 |
commit | 0510adee6dc4ff6cca8f1cddf947f9d301597896 (patch) | |
tree | fad32fd2596b94327faa742d2516f24efe3b2414 /src | |
parent | e135953b099687f39fc03557f901fdec00903d35 (diff) |
Added header stuff to dv decoder
Diffstat (limited to 'src')
-rw-r--r-- | src/player.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/player.cc b/src/player.cc index 5573b79..fe02b01 100644 --- a/src/player.cc +++ b/src/player.cc @@ -114,7 +114,13 @@ void Player::player() dv_decoder_t *decoder = dv_decoder_new(0/*this value is unused*/, FALSE, FALSE); decoder->quality = DV_QUALITY_BEST; - //decoder->system = e_dv_system_625_50; + // PAL/IEC 68134 + decoder->system = e_dv_system_625_50; + decoder->std = e_dv_std_iec_61834; + + // PAL/SMPTE 314M + // decoder->system = e_dv_system_625_50; + // decoder->std = e_dv_std_smpte_314m; while(*running) { // Wait for the semaphore to be free... then run @@ -141,7 +147,6 @@ void Player::player() if(!frame) break; fprintf(stderr, "[%d]", dv_is_PAL(decoder)); fflush(stderr); - SDL_LockYUVOverlay(overlay); // libdv img decode dv_decode_full_frame(decoder, @@ -150,8 +155,8 @@ void Player::player() pxs, pitches); - dv_report_video_error(decoder, frame->data); - // overlay->pixels = pxs; + SDL_LockYUVOverlay(overlay); + overlay->pixels = pxs; SDL_UnlockYUVOverlay(overlay); SDL_DisplayYUVOverlay(overlay, &rect); // delete frame; |