Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-09-30 15:38:15 +0300
committerJames Almer <jamrial@gmail.com>2018-09-30 16:19:20 +0300
commit331d88d3ae1263251e234bbc219ebd129e91b55d (patch)
tree2efa76c9803e5a6beee4d171eeca3c68e5882d81 /include
parent3d7920e6ff7c8e8f032a8e685595bcd38e4a3028 (diff)
api: add a frame type field to Dav1dPictureParameters
Diffstat (limited to 'include')
-rw-r--r--include/dav1d/picture.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/dav1d/picture.h b/include/dav1d/picture.h
index 1b3da29..5813fcb 100644
--- a/include/dav1d/picture.h
+++ b/include/dav1d/picture.h
@@ -40,6 +40,13 @@ enum Dav1dPixelLayout {
DAV1D_PIXEL_LAYOUT_I444, ///< 4:4:4 planar
};
+enum Dav1dFrameType {
+ DAV1D_FRAME_TYPE_KEY = 0, ///< Key Intra frame
+ DAV1D_FRAME_TYPE_INTER = 1, ///< Inter frame
+ DAV1D_FRAME_TYPE_INTRA = 2, ///< Non key Intra frame
+ DAV1D_FRAME_TYPE_SWITCH = 3, ///< Switch Inter frame
+};
+
enum Dav1dColorPrimaries {
DAV1D_COLOR_PRI_BT709 = 1,
DAV1D_COLOR_PRI_UNKNOWN = 2,
@@ -103,6 +110,7 @@ typedef struct Dav1dPictureParameters {
int w; ///< width (in pixels)
int h; ///< height (in pixels)
enum Dav1dPixelLayout layout; ///< format of the picture
+ enum Dav1dFrameType type; ///< type of the picture
int bpc; ///< bits per pixel component (8 or 10)
enum Dav1dColorPrimaries pri; ///< color primaries (av1)