libobs: Add function to determine AVC keyframes

Added obs_avc_keyframe that returns whether an avc packet is a keyframe
or not.  This function is particularly useful for when writing custom
encoder plugins.
This commit is contained in:
jp9000
2014-12-18 11:58:25 -08:00
parent f8e56a4e1e
commit 9f97b02c32
2 changed files with 25 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ enum {
/* Helpers for parsing AVC NAL units. */
EXPORT bool obs_avc_keyframe(const uint8_t *data, size_t size);
EXPORT const uint8_t *obs_avc_find_startcode(const uint8_t *p,
const uint8_t *end);
EXPORT void obs_parse_avc_packet(struct encoder_packet *avc_packet,