24 #include <vdpau/vdpau.h>
37 VdpPictureInfoMPEG1Or2 *info = &pic_ctx->info.mpeg;
42 info->forward_reference = VDP_INVALID_HANDLE;
43 info->backward_reference = VDP_INVALID_HANDLE;
48 assert(ref != VDP_INVALID_HANDLE);
49 info->backward_reference = ref;
53 info->forward_reference = ref;
56 info->slice_count = 0;
67 info->full_pel_forward_vector = s->
full_pel[0];
68 info->full_pel_backward_vector = s->
full_pel[1];
74 for (i = 0; i < 64; ++i) {
76 info->non_intra_quantizer_matrix[i] = s->
inter_matrix[i];
94 pic_ctx->info.mpeg.slice_count++;
98 #if CONFIG_MPEG1_VDPAU_HWACCEL
102 VDP_DECODER_LEVEL_MPEG1_NA);
106 .
name =
"mpeg1_vdpau",
113 .frame_priv_data_size =
sizeof(
struct vdpau_picture_context),
114 .
init = vdpau_mpeg1_init,
120 #if CONFIG_MPEG2_VDPAU_HWACCEL
127 profile = VDP_DECODER_PROFILE_MPEG2_MAIN;
130 profile = VDP_DECODER_PROFILE_MPEG2_SIMPLE;
140 .
name =
"mpeg2_vdpau",
147 .frame_priv_data_size =
sizeof(
struct vdpau_picture_context),
148 .init = vdpau_mpeg2_init,