diff options
author | Maarten Lankhorst <m.b.lankhorst@gmail.com> | 2011-10-31 18:32:05 +0100 |
---|---|---|
committer | Christian König <deathsimple@vodafone.de> | 2011-11-03 13:52:01 +0100 |
commit | 91d33b5c589a63f73212546825988cfa4f80b207 (patch) | |
tree | e2d4e9d9b025a0f87badba228ae702901b60f36f /src | |
parent | 12bf452945ae64da69f474298758f9a7c8b94af5 (diff) |
state_trackers/vdpau: Add mpeg4 part2 to PipeToProfile and ProfileToPipe
So it can actually be used when someone implements it. :)
Signed-off-by: Maarten Lankhorst <m.b.lankhorst@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/vdpau/vdpau_private.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/vdpau/vdpau_private.h b/src/gallium/state_trackers/vdpau/vdpau_private.h index b8b15aeed4c..04699a39ecc 100644 --- a/src/gallium/state_trackers/vdpau/vdpau_private.h +++ b/src/gallium/state_trackers/vdpau/vdpau_private.h @@ -220,6 +220,10 @@ ProfileToPipe(VdpDecoderProfile vdpau_profile) return PIPE_VIDEO_PROFILE_MPEG4_AVC_MAIN; case VDP_DECODER_PROFILE_H264_HIGH: return PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH; + case VDP_DECODER_PROFILE_MPEG4_PART2_SP: + return PIPE_VIDEO_PROFILE_MPEG4_SIMPLE; + case VDP_DECODER_PROFILE_MPEG4_PART2_ASP: + return PIPE_VIDEO_PROFILE_MPEG4_ADVANCED_SIMPLE; default: return PIPE_VIDEO_PROFILE_UNKNOWN; } @@ -241,6 +245,10 @@ PipeToProfile(enum pipe_video_profile p_profile) return VDP_DECODER_PROFILE_H264_MAIN; case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH: return VDP_DECODER_PROFILE_H264_HIGH; + case PIPE_VIDEO_PROFILE_MPEG4_SIMPLE: + return VDP_DECODER_PROFILE_MPEG4_PART2_SP; + case PIPE_VIDEO_PROFILE_MPEG4_ADVANCED_SIMPLE: + return VDP_DECODER_PROFILE_MPEG4_PART2_ASP; default: assert(0); return -1; |