diff options
author | deva <deva> | 2005-04-19 11:35:41 +0000 |
---|---|---|
committer | deva <deva> | 2005-04-19 11:35:41 +0000 |
commit | 7d7ee51b2d4284f936a40b0edce760fbf226b93a (patch) | |
tree | f87be3fe8ac8a0b49ded2ebe3b88f0c8483d9a22 /src/player.cc | |
parent | 9ea1160395b119536ba2ee74a99a4aba73c55711 (diff) |
*** empty log message ***
Diffstat (limited to 'src/player.cc')
-rw-r--r-- | src/player.cc | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/src/player.cc b/src/player.cc index 085f4df..df9668e 100644 --- a/src/player.cc +++ b/src/player.cc @@ -91,16 +91,10 @@ void Player::player() SDL_Rect rect; Frame *frame; // AVPicture pict; - unsigned char pixel_buffer[720 * 576 * 3]; + // unsigned char pixel_buffer[720 * 576 * 3]; unsigned char *pxs[3]; int pitches[3]; - pitches[0] = 720 * 2; - pxs[0] = pixel_buffer; - pxs[1] = pixel_buffer; - pxs[2] = pixel_buffer; - - int i; struct timespec ts; @@ -111,14 +105,14 @@ void Player::player() rect.y = 0; rect.w = DISPLAYWIDTH; rect.h = DISPLAYHEIGHT; - /* + //+++++Reference to the overlay pixels/pitches, only after creating a new overlay+++++ // ????????? for(i = 0; i < 3; i++) { - pict.data[i] = overlay->pixels[i]; - pict.linesize[i] = overlay->pitches[i]; + pxs[i] = overlay->pixels[i]; + pitches[i] = overlay->pitches[i]; } - */ + dv_decoder_t *decoder = NULL; decoder = dv_decoder_new(FALSE, FALSE, TRUE); decoder->quality = DV_QUALITY_BEST; @@ -147,10 +141,6 @@ void Player::player() pthread_mutex_unlock(mutex); if(!frame) break; - // img_convert(&pict, PIX_FMT_YUV420P, (AVPicture *)f->frame, - // PIX_FMT_YUV420P, DISPLAYWIDTH, DISPLAYHEIGHT); - - // libdv img decode dv_decode_full_frame(decoder, (const uint8_t*)frame->data, @@ -159,9 +149,6 @@ void Player::player() pitches); SDL_LockYUVOverlay(overlay); - overlay->pitches[0] = pitches[0]; - overlay->pitches[1] = pitches[1]; - overlay->pitches[2] = pitches[2]; overlay->pixels = pxs; SDL_UnlockYUVOverlay(overlay); SDL_DisplayYUVOverlay(overlay, &rect); |