diff options
| author | Julian Scheel <julian@jusst.de> | 2008-12-15 08:14:02 +0000 |
|---|---|---|
| committer | Julian Scheel <julian@jusst.de> | 2008-12-15 08:14:02 +0000 |
| commit | 4ad3c69c9557f7a4385c549556ef3f1bf08740b5 (patch) | |
| tree | 5597c88563eef3f652c881577f24cea3e0761d00 /src/libvdpau/nal.h | |
| parent | 28ed70dae3b5736d904d704e76b64e039a459f81 (diff) | |
| download | xine-lib-4ad3c69c9557f7a4385c549556ef3f1bf08740b5.tar.gz xine-lib-4ad3c69c9557f7a4385c549556ef3f1bf08740b5.tar.bz2 | |
Testing.
Diffstat (limited to 'src/libvdpau/nal.h')
| -rw-r--r-- | src/libvdpau/nal.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/libvdpau/nal.h b/src/libvdpau/nal.h index 20c1c32dc..30a38bf7c 100644 --- a/src/libvdpau/nal.h +++ b/src/libvdpau/nal.h @@ -63,6 +63,29 @@ static inline uint32_t slice_type(uint32_t slice_type) return (slice_type < 10 ? slice_type % 5 : slice_type); } +static inline void print_slice_type(uint32_t slice_type) +{ + switch(slice_type) { + case SLICE_P: + printf("SLICE_P\n"); + break; + case SLICE_B: + printf("SLICE_B\n"); + break; + case SLICE_I: + printf("SLICE_I\n"); + break; + case SLICE_SP: + printf("SLICE_SP\n"); + break; + case SLICE_SI: + printf("SLICE_SI\n"); + break; + default: + printf("Unknown SLICE\n"); + } +} + struct hrd_parameters { uint32_t cpb_cnt_minus1; |
