From b7552e4d2409d1f2615caf418d4d0ac8d8bff981 Mon Sep 17 00:00:00 2001 From: saintdev Date: Sun, 17 Jun 2007 00:51:17 +0000 Subject: Switch buf->key to buf->frametype which is a bitmask telling us what type of frame we are dealing with. This doesn't change any functionality, but I need to be able to distinguish between x264 IDR and I frames for the upcoming matroska muxer. This also has the side effect of making the code a little easier to read and maintain. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@623 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/internal.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'libhb/internal.h') diff --git a/libhb/internal.h b/libhb/internal.h index 0f0262e7c..34bca3d65 100644 --- a/libhb/internal.h +++ b/libhb/internal.h @@ -38,7 +38,16 @@ struct hb_buffer_s int64_t start; int64_t stop; int new_chap; - int key; + +#define HB_FRAME_IDR 0x01 +#define HB_FRAME_I 0x02 +#define HB_FRAME_AUDIO 0x04 +#define HB_FRAME_P 0x10 +#define HB_FRAME_B 0x20 +#define HB_FRAME_BREF 0x40 +#define HB_FRAME_KEY 0x0F +#define HB_FRAME_REF 0xF0 + uint8_t frametype; /* Holds the output PTS from x264, for use by b-frame offsets in muxmp4.c */ int64_t renderOffset; -- cgit v1.2.3