diff options
author | Christian König <[email protected]> | 2011-07-12 00:12:12 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2011-07-12 00:12:12 +0200 |
commit | efc7fda4627919b5355952d955ee4a2c98505e56 (patch) | |
tree | 4398a353d70746f9d04016316bf6b6e30ebf8171 /src/gallium/auxiliary/vl/vl_decoder.c | |
parent | df5e0b9435c869f88234a69db9bfe97342b027d4 (diff) |
[g3dvl] add some more PIPE_VIDEO_CAPs
Diffstat (limited to 'src/gallium/auxiliary/vl/vl_decoder.c')
-rw-r--r-- | src/gallium/auxiliary/vl/vl_decoder.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/vl/vl_decoder.c b/src/gallium/auxiliary/vl/vl_decoder.c index 2be5c17ed3e..fac03359a0f 100644 --- a/src/gallium/auxiliary/vl/vl_decoder.c +++ b/src/gallium/auxiliary/vl/vl_decoder.c @@ -32,6 +32,18 @@ #include "vl_decoder.h" #include "vl_mpeg12_decoder.h" +bool +vl_profile_supported(struct pipe_screen *screen, enum pipe_video_profile profile) +{ + assert(screen); + switch (u_reduce_video_profile(profile)) { + case PIPE_VIDEO_CODEC_MPEG12: + return true; + default: + return false; + } +} + struct pipe_video_decoder * vl_create_decoder(struct pipe_context *pipe, enum pipe_video_profile profile, |