summaryrefslogtreecommitdiffstats
path: root/libhb/qsv_common.h
diff options
context:
space:
mode:
authorRodeo <[email protected]>2015-06-27 22:04:16 +0000
committerRodeo <[email protected]>2015-06-27 22:04:16 +0000
commit28766d686195854538de63620209c04c9533d26f (patch)
tree340689b7f9ff4fd518eebc8e159e53eb0dadd530 /libhb/qsv_common.h
parent41fb0a2658824e99b534dcde867c59413c0108b7 (diff)
QSV: parse and print profile & level in a codec-agnostic way.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7325 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/qsv_common.h')
-rw-r--r--libhb/qsv_common.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/libhb/qsv_common.h b/libhb/qsv_common.h
index 602f3be67..9ac2085ec 100644
--- a/libhb/qsv_common.h
+++ b/libhb/qsv_common.h
@@ -153,7 +153,24 @@ float hb_qsv_atof (const char *str, int *err);
int hb_qsv_param_default_preset(hb_qsv_param_t *param, mfxVideoParam *videoParam, hb_qsv_info_t *info, const char *preset);
int hb_qsv_param_default (hb_qsv_param_t *param, mfxVideoParam *videoParam, hb_qsv_info_t *info);
int hb_qsv_param_parse (hb_qsv_param_t *param, hb_qsv_info_t *info, const char *key, const char *value);
+int hb_qsv_profile_parse (hb_qsv_param_t *param, hb_qsv_info_t *info, const char *profile_key);
+int hb_qsv_level_parse (hb_qsv_param_t *param, hb_qsv_info_t *info, const char *level_key);
+typedef struct
+{
+ const char *name;
+ const char *key;
+ const int value;
+}
+hb_triplet_t;
+
+hb_triplet_t* hb_triplet4value(hb_triplet_t *triplets, const int value);
+hb_triplet_t* hb_triplet4name (hb_triplet_t *triplets, const char *name);
+hb_triplet_t* hb_triplet4key (hb_triplet_t *triplets, const char *key);
+
+const char* hb_qsv_codec_name (uint32_t codec_id);
+const char* hb_qsv_profile_name (uint32_t codec_id, uint16_t profile_id);
+const char* hb_qsv_level_name (uint32_t codec_id, uint16_t level_id);
const char* hb_qsv_frametype_name(uint16_t qsv_frametype);
uint8_t hb_qsv_frametype_xlat(uint16_t qsv_frametype, uint16_t *out_flags);