24 #include <vdpau/vdpau.h>
36 VdpPictureInfoMPEG1Or2 *info = &pic_ctx->info.mpeg;
41 info->forward_reference = VDP_INVALID_HANDLE;
42 info->backward_reference = VDP_INVALID_HANDLE;
47 assert(ref != VDP_INVALID_HANDLE);
48 info->backward_reference = ref;
52 info->forward_reference = ref;
55 info->slice_count = 0;
66 info->full_pel_forward_vector = s->
full_pel[0];
67 info->full_pel_backward_vector = s->
full_pel[1];
73 for (i = 0; i < 64; ++i) {
75 info->non_intra_quantizer_matrix[i] = s->
inter_matrix[i];
93 pic_ctx->info.mpeg.slice_count++;
97 #if CONFIG_MPEG1_VDPAU_HWACCEL
101 VDP_DECODER_LEVEL_MPEG1_NA);
105 .
name =
"mpeg1_vdpau",
112 .frame_priv_data_size =
sizeof(
struct vdpau_picture_context),
113 .
init = vdpau_mpeg1_init,
119 #if CONFIG_MPEG2_VDPAU_HWACCEL
126 profile = VDP_DECODER_PROFILE_MPEG2_MAIN;
129 profile = VDP_DECODER_PROFILE_MPEG2_SIMPLE;
139 .
name =
"mpeg2_vdpau",
146 .frame_priv_data_size =
sizeof(
struct vdpau_picture_context),
147 .init = vdpau_mpeg2_init,