Mercurial > libavcodec.hg
comparison h264.h @ 5231:07a97575d0c4 libavcodec
Add support for streams with different chroma_qp_index_offset
for Cr and Cb
Patch by Andreas ªÓman % andreas A olebyn P nu %
Original thread:
Date: Jun 26, 2007 8:48 PM
subject: [FFmpeg-devel] Color corruption and seeking errors with H264 disc sources
author | gpoirier |
---|---|
date | Fri, 06 Jul 2007 14:21:37 +0000 |
parents | 65bffcc5571a |
children | 4a26dc4ca11d |
comparison
equal
deleted
inserted
replaced
5230:2a340aea762d | 5231:07a97575d0c4 |
---|---|
119 unsigned int ref_count[2]; ///< num_ref_idx_l0/1_active_minus1 + 1 | 119 unsigned int ref_count[2]; ///< num_ref_idx_l0/1_active_minus1 + 1 |
120 int weighted_pred; ///< weighted_pred_flag | 120 int weighted_pred; ///< weighted_pred_flag |
121 int weighted_bipred_idc; | 121 int weighted_bipred_idc; |
122 int init_qp; ///< pic_init_qp_minus26 + 26 | 122 int init_qp; ///< pic_init_qp_minus26 + 26 |
123 int init_qs; ///< pic_init_qs_minus26 + 26 | 123 int init_qs; ///< pic_init_qs_minus26 + 26 |
124 int chroma_qp_index_offset; | 124 int chroma_qp_index_offset[2]; |
125 int deblocking_filter_parameters_present; ///< deblocking_filter_parameters_present_flag | 125 int deblocking_filter_parameters_present; ///< deblocking_filter_parameters_present_flag |
126 int constrained_intra_pred; ///< constrained_intra_pred_flag | 126 int constrained_intra_pred; ///< constrained_intra_pred_flag |
127 int redundant_pic_cnt_present; ///< redundant_pic_cnt_present_flag | 127 int redundant_pic_cnt_present; ///< redundant_pic_cnt_present_flag |
128 int transform_8x8_mode; ///< transform_8x8_mode_flag | 128 int transform_8x8_mode; ///< transform_8x8_mode_flag |
129 uint8_t scaling_matrix4[6][16]; | 129 uint8_t scaling_matrix4[6][16]; |
130 uint8_t scaling_matrix8[2][64]; | 130 uint8_t scaling_matrix8[2][64]; |
131 uint8_t chroma_qp_table[256]; ///< pre-scaled (with chroma_qp_index_offset) version of qp_table | 131 uint8_t chroma_qp_table[2][256]; ///< pre-scaled (with chroma_qp_index_offset) version of qp_table |
132 int chroma_qp_diff; | |
132 }PPS; | 133 }PPS; |
133 | 134 |
134 /** | 135 /** |
135 * Memory management control operation opcode. | 136 * Memory management control operation opcode. |
136 */ | 137 */ |
168 */ | 169 */ |
169 int is_avc; ///< this flag is != 0 if codec is avc1 | 170 int is_avc; ///< this flag is != 0 if codec is avc1 |
170 int got_avcC; ///< flag used to parse avcC data only once | 171 int got_avcC; ///< flag used to parse avcC data only once |
171 int nal_length_size; ///< Number of bytes used for nal length (1, 2 or 4) | 172 int nal_length_size; ///< Number of bytes used for nal length (1, 2 or 4) |
172 | 173 |
173 int chroma_qp; //QPc | 174 int chroma_qp[2]; //QPc |
174 | 175 |
175 int prev_mb_skipped; | 176 int prev_mb_skipped; |
176 int next_mb_skipped; | 177 int next_mb_skipped; |
177 | 178 |
178 //prediction stuff | 179 //prediction stuff |