diff options
author | Christophe Thommeret <hftom@free.fr> | 2008-12-20 17:43:16 +0000 |
---|---|---|
committer | Christophe Thommeret <hftom@free.fr> | 2008-12-20 17:43:16 +0000 |
commit | 534d98199010e116bdcfd6c27068e93246f43a06 (patch) | |
tree | 759a9755851fa8112adb3bb52d697dda06238697 | |
parent | 00fa8c11404ed364edab49ebf7001bd9de4cca3d (diff) | |
download | xine-lib-534d98199010e116bdcfd6c27068e93246f43a06.tar.gz xine-lib-534d98199010e116bdcfd6c27068e93246f43a06.tar.bz2 |
Reset fixups.
-rw-r--r-- | src/libvdpau/vdpau_h264.c | 4 | ||||
-rw-r--r-- | src/libvdpau/vdpau_mpeg12.c | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/libvdpau/vdpau_h264.c b/src/libvdpau/vdpau_h264.c index 9d461063b..008c3630e 100644 --- a/src/libvdpau/vdpau_h264.c +++ b/src/libvdpau/vdpau_h264.c @@ -283,7 +283,7 @@ static void vdpau_h264_decode_data (video_decoder_t *this_gen, } /* get the vdpau context from vo */ - (this->stream->video_out->open) (this->stream->video_out, this->stream); + //(this->stream->video_out->open) (this->stream->video_out, this->stream); img = this->stream->video_out->get_frame (this->stream->video_out, this->width, this->height, this->ratio, @@ -602,7 +602,7 @@ static video_decoder_t *open_plugin (video_decoder_class_t *class_gen, xine_stre this->last_pts = 0; this->tmp_pts = 0; - (stream->video_out->open)(stream->video_out, stream); + (this->stream->video_out->open) (this->stream->video_out, this->stream); return &this->video_decoder; } diff --git a/src/libvdpau/vdpau_mpeg12.c b/src/libvdpau/vdpau_mpeg12.c index 1ac6e398d..5406bcf5a 100644 --- a/src/libvdpau/vdpau_mpeg12.c +++ b/src/libvdpau/vdpau_mpeg12.c @@ -176,7 +176,7 @@ typedef struct vdpau_mpeg12_decoder_s { static void reset_picture( picture_t *pic ) { - printf( "reset_picture\n" ); + lprintf( "reset_picture\n" ); pic->vdp_infos.picture_structure = 0; pic->vdp_infos2.intra_dc_precision = pic->vdp_infos.intra_dc_precision = 0; pic->vdp_infos2.frame_pred_frame_dct = pic->vdp_infos.frame_pred_frame_dct = 1; @@ -353,11 +353,11 @@ static void picture_header( sequence_t *sequence, uint8_t *buf, int len ) lprintf( "picture_coding_type: %d\n", get_bits( buf,10,3 ) ); infos->forward_reference = VDP_INVALID_HANDLE; infos->backward_reference = VDP_INVALID_HANDLE; - if ( infos->picture_coding_type>1 ) { + if ( infos->picture_coding_type > I_FRAME ) { infos->full_pel_forward_vector = get_bits( buf+2,13,1 ); infos->f_code[0][0] = infos->f_code[0][1] = get_bits( buf+2,14,3 ); - if ( infos->picture_coding_type==3 ) { - infos->full_pel_forward_vector = get_bits( buf+2,17,1 ); + if ( infos->picture_coding_type==B_FRAME ) { + infos->full_pel_backward_vector = get_bits( buf+2,17,1 ); infos->f_code[1][0] = infos->f_code[1][1] = get_bits( buf+2,18,3 ); } } @@ -571,10 +571,10 @@ static void decode_render( vdpau_mpeg12_decoder_t *vd, vdpau_accel_t *accel ) if ( st!=VDP_STATUS_OK ) lprintf( "decoder failed : %d!! %s\n", st, accel->vdp_get_error_string( st ) ); else { - printf( "DECODER SUCCESS : frame_type:%d, slices=%d, slices_bytes=%d, current=%d, forwref:%d, backref:%d, pts:%lld\n", + lprintf( "DECODER SUCCESS : frame_type:%d, slices=%d, slices_bytes=%d, current=%d, forwref:%d, backref:%d, pts:%lld\n", pic->vdp_infos.picture_coding_type, pic->vdp_infos.slice_count, vbit.bitstream_bytes, accel->surface, pic->vdp_infos.forward_reference, pic->vdp_infos.backward_reference, seq->seq_pts ); VdpPictureInfoMPEG1Or2 *info = &pic->vdp_infos; - printf("%d %d %d %d %d %d %d %d %d %d %d %d %d\n", info->intra_dc_precision, info->frame_pred_frame_dct, info->concealment_motion_vectors, info->intra_vlc_format, info->alternate_scan, info->q_scale_type, info->top_field_first, info->full_pel_forward_vector, info->full_pel_backward_vector, info->f_code[0][0], info->f_code[0][1], info->f_code[1][0], info->f_code[1][1] ); + lprintf("%d %d %d %d %d %d %d %d %d %d %d %d %d\n", info->intra_dc_precision, info->frame_pred_frame_dct, info->concealment_motion_vectors, info->intra_vlc_format, info->alternate_scan, info->q_scale_type, info->top_field_first, info->full_pel_forward_vector, info->full_pel_backward_vector, info->f_code[0][0], info->f_code[0][1], info->f_code[1][0], info->f_code[1][1] ); } if ( pic->vdp_infos.picture_structure != PICTURE_FRAME ) { @@ -759,7 +759,7 @@ static void vdpau_mpeg12_flush (video_decoder_t *this_gen) { vdpau_mpeg12_decoder_t *this = (vdpau_mpeg12_decoder_t *) this_gen; printf( "vdpau_mpeg12: vdpau_mpeg12_flush\n" ); - //reset_sequence( &this->sequence ); + reset_sequence( &this->sequence ); } /* @@ -781,7 +781,7 @@ static void vdpau_mpeg12_discontinuity (video_decoder_t *this_gen) { vdpau_mpeg12_decoder_t *this = (vdpau_mpeg12_decoder_t *) this_gen; printf( "vdpau_mpeg12: vdpau_mpeg12_discontinuity\n" ); - //reset_sequence( &this->sequence ); + reset_sequence( &this->sequence ); } |