diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstvp8parser.h b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstvp8parser.h index 2e56e6fb29..6d3621a14b 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstvp8parser.h +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstvp8parser.h @@ -34,6 +34,8 @@ G_BEGIN_DECLS +#define GST_VP8_MAX_REF_FRAMES 3 + typedef struct _GstVp8FrameHdr GstVp8FrameHdr; typedef struct _GstVp8QuantIndices GstVp8QuantIndices; typedef struct _GstVp8Segmentation GstVp8Segmentation; @@ -57,6 +59,40 @@ typedef enum { GST_VP8_PARSER_ERROR, } GstVp8ParserResult; +/** + * GstVp8FrameType: + * @GST_VP8_KEY_FRAME: Key frame, only have intra blocks + * @GST_VP8_INTER_FRAME: Inter frame, both intra and inter blocks + * + * VP8 frame types + * + * Since: 1.26 + */ +typedef enum { + GST_VP8_KEY_FRAME = 0, + GST_VP8_INTER_FRAME = 1 +} GstVp8FrameType; + +/** + * GstVp8RefFrameType: + * @GST_VP8_REF_FRAME_INTRA: Intra reference frame + * @GST_VP8_REF_FRAME_LAST: Last Reference frame + * @GST_VP8_REF_FRAME_GOLDEN: Golden Reference frame + * @GST_VP8_REF_FRAME_ALTREF: Alternate Reference frame + * @GST_VP8_REF_FRAME_MAX: + * + * Reference Frame types + * + * Since: 1.26 + */ +typedef enum { + GST_VP8_REF_FRAME_INTRA, + GST_VP8_REF_FRAME_LAST, + GST_VP8_REF_FRAME_GOLDEN, + GST_VP8_REF_FRAME_ALTREF, + GST_VP8_REF_FRAME_MAX, +} GstVp8RefFrameType; + /** * GstVpQuantIndices: * @y_ac_qi: indicates the dequantization table index used for the