Mercurial > libavcodec.hg
diff h264.h @ 7407:6288bc103b9f libavcodec
chroma_format_idc=0 aka grayscale support.
Can be disabled by removing #define ALLOW_NOCHROMA in case the extra if()
slow the code down measurably.
Fixes at least
FRExt/HPCAMOLQ_BRCM_B.264
FRExt/HPCVMOLQ_BRCM_B.264
author | michael |
---|---|
date | Sat, 26 Jul 2008 02:27:14 +0000 |
parents | 612a78c3b128 |
children | 3749f13a0d02 |
line wrap: on
line diff
--- a/h264.h Sat Jul 26 01:57:10 2008 +0000 +++ b/h264.h Sat Jul 26 02:27:14 2008 +0000 @@ -57,6 +57,8 @@ * of progressive decoding by about 2%. */ #define ALLOW_INTERLACE +#define ALLOW_NOCHROMA + #ifdef ALLOW_INTERLACE #define MB_MBAFF h->mb_mbaff #define MB_FIELD h->mb_field_decoding_flag @@ -72,6 +74,12 @@ #endif #define FIELD_OR_MBAFF_PICTURE (FRAME_MBAFF || FIELD_PICTURE) +#ifdef ALLOW_NOCHROMA +#define CHROMA h->sps.chroma_format_idc +#else +#define CHROMA 1 +#endif + #ifndef ENABLE_H264_ENCODER #define ENABLE_H264_ENCODER 0 #endif @@ -83,6 +91,7 @@ int profile_idc; int level_idc; + int chroma_format_idc; int transform_bypass; ///< qpprime_y_zero_transform_bypass_flag int log2_max_frame_num; ///< log2_max_frame_num_minus4 + 4 int poc_type; ///< pic_order_cnt_type