diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-08-12 16:55:22 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-08-17 16:11:02 +0200 |
commit | 304089aca7d238ae184e09993b5c737aa22e2c2c (patch) | |
tree | 5378e47ddcecee8e77b9f3e654a754fe271af0dd /libavformat/mxf.h | |
parent | 11db644a8e54f02e54d2eaad343a87fcb697c15e (diff) | |
download | ffmpeg-304089aca7d238ae184e09993b5c737aa22e2c2c.tar.gz |
mxf: Add UID print helpers
And use it to print non-parsed ULs.
Diffstat (limited to 'libavformat/mxf.h')
-rw-r--r-- | libavformat/mxf.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavformat/mxf.h b/libavformat/mxf.h index a2d919aa0c..24432071ee 100644 --- a/libavformat/mxf.h +++ b/libavformat/mxf.h @@ -79,6 +79,18 @@ extern const MXFCodecUL ff_mxf_pixel_format_uls[]; int ff_mxf_decode_pixel_layout(const char pixel_layout[16], enum AVPixelFormat *pix_fmt); const MXFSamplesPerFrame *ff_mxf_get_samples_per_frame(AVFormatContext *s, AVRational time_base); +#define PRIxUID \ + "%02x.%02x.%02x.%02x." \ + "%02x.%02x.%02x.%02x." \ + "%02x.%02x.%02x.%02x." \ + "%02x.%02x.%02x.%02x" + +#define UID_ARG(x) \ + (x)[0], (x)[1], (x)[2], (x)[3], \ + (x)[4], (x)[5], (x)[6], (x)[7], \ + (x)[8], (x)[9], (x)[10], (x)[11], \ + (x)[12], (x)[13], (x)[14], (x)[15] \ + #ifdef DEBUG #define PRINT_KEY(pc, s, x) \ av_log(pc, AV_LOG_VERBOSE, \ |