#include <H264Parser.h>
Definition at line 51 of file H264Parser.h.
| anonymous enum |
Definition at line 54 of file H264Parser.h.
| UNKNOWN | |
| SLICE | |
| SLICE_DPA | |
| SLICE_DPB | |
| SLICE_DPC | |
| SLICE_IDR | |
| SEI | |
| SPS | |
| PPS | |
| AU_DELIMITER | |
| END_SEQUENCE | |
| END_STREAM | |
| FILLER_DATA | |
| SPS_EXT | |
| AUXILIARY_SLICE |
Definition at line 59 of file H264Parser.h.
| enum H264Parser::SEI_type |
Definition at line 77 of file H264Parser.h.
| SLICE_P | |
| SLICE_B | |
| SLICE_I | |
| SLICE_SP | |
| SLICE_SI | |
| SLICE_P_a | |
| SLICE_B_a | |
| SLICE_I_a | |
| SLICE_SP_a | |
| SLICE_SI_a | |
| SLICE_UNDEF |
Definition at line 90 of file H264Parser.h.
Definition at line 104 of file H264Parser.h.
enum H264Parser::constants [private] |
Definition at line 171 of file H264Parser.h.
| H264Parser::H264Parser | ( | void | ) |
Definition at line 92 of file H264Parser.cpp.
| H264Parser::~H264Parser | ( | void | ) | [inline] |
Definition at line 111 of file H264Parser.h.
| uint32_t H264Parser::addBytes | ( | const uint8_t * | bytes, | |
| const uint32_t | byte_count, | |||
| const uint64_t | stream_offset | |||
| ) |
Definition at line 395 of file H264Parser.cpp.
Referenced by DTVRecorder::FindH264Keyframes(), and AvFormatDecoder::H264PreProcessPkt().
| void H264Parser::Reset | ( | void | ) |
Definition at line 104 of file H264Parser.cpp.
Referenced by AvFormatDecoder::CloseContext(), H264Parser(), MpegRecorder::PauseAndWait(), AvFormatDecoder::ScanStreams(), and MpegRecorder::StartEncoding().
| QString H264Parser::NAL_type_str | ( | uint8_t | type | ) |
Definition at line 156 of file H264Parser.cpp.
| bool H264Parser::stateChanged | ( | void | ) | const [inline] |
Definition at line 120 of file H264Parser.h.
Referenced by DTVRecorder::FindH264Keyframes(), and AvFormatDecoder::H264PreProcessPkt().
| uint8_t H264Parser::lastNALtype | ( | void | ) | const [inline] |
Definition at line 122 of file H264Parser.h.
| frame_type H264Parser::FieldType | ( | void | ) | const [inline] |
Definition at line 124 of file H264Parser.h.
Referenced by DTVRecorder::FindH264Keyframes(), and AvFormatDecoder::H264PreProcessPkt().
| bool H264Parser::onFrameStart | ( | void | ) | const [inline] |
Definition at line 132 of file H264Parser.h.
Referenced by DTVRecorder::FindH264Keyframes(), and AvFormatDecoder::H264PreProcessPkt().
| bool H264Parser::onKeyFrameStart | ( | void | ) | const [inline] |
Definition at line 133 of file H264Parser.h.
Referenced by DTVRecorder::FindH264Keyframes(), and AvFormatDecoder::H264PreProcessPkt().
| uint H264Parser::pictureWidth | ( | void | ) | const [inline] |
Definition at line 135 of file H264Parser.h.
Referenced by DTVRecorder::FindH264Keyframes().
| uint H264Parser::pictureHeight | ( | void | ) | const [inline] |
Definition at line 136 of file H264Parser.h.
Referenced by DTVRecorder::FindH264Keyframes().
| uint H264Parser::aspectRatio | ( | void | ) | const |
Computes aspect ratio from picture size and sample aspect ratio.
Definition at line 1232 of file H264Parser.cpp.
Referenced by DTVRecorder::FindH264Keyframes().
| uint H264Parser::frameRate | ( | void | ) | const |
Definition at line 1221 of file H264Parser.cpp.
Referenced by DTVRecorder::FindH264Keyframes().
| uint64_t H264Parser::frameAUstreamOffset | ( | void | ) | const [inline] |
Definition at line 143 of file H264Parser.h.
| uint64_t H264Parser::keyframeAUstreamOffset | ( | void | ) | const [inline] |
Definition at line 144 of file H264Parser.h.
Referenced by DTVRecorder::HandleH264Keyframe().
| static int H264Parser::isKeySlice | ( | uint | slice_type | ) | [inline, static] |
Definition at line 146 of file H264Parser.h.
Referenced by decode_Header().
Definition at line 154 of file H264Parser.h.
Referenced by addBytes(), and processRBSP().
| void H264Parser::use_I_forKeyframes | ( | bool | val | ) | [inline] |
Definition at line 161 of file H264Parser.h.
Referenced by MpegRecorder::OpenV4L2DeviceAsInput().
| uint32_t H264Parser::GetTimeScale | ( | void | ) | const [inline] |
Definition at line 163 of file H264Parser.h.
Referenced by DTVRecorder::FindH264Keyframes().
| uint32_t H264Parser::GetUnitsInTick | ( | void | ) | const [inline] |
Definition at line 165 of file H264Parser.h.
Referenced by DTVRecorder::FindH264Keyframes().
| void H264Parser::parse_SPS | ( | uint8_t * | sps, | |
| uint32_t | sps_size, | |||
| bool & | interlaced, | |||
| int32_t & | max_ref_frames | |||
| ) |
Definition at line 950 of file H264Parser.cpp.
Referenced by PrivateDecoderVDA::Init().
| void H264Parser::set_AU_pending | ( | void | ) | [inline, private] |
Definition at line 173 of file H264Parser.h.
Referenced by addBytes(), and processRBSP().
| bool H264Parser::new_AU | ( | void | ) | [private] |
Definition at line 192 of file H264Parser.cpp.
Referenced by processRBSP().
| void H264Parser::resetRBSP | ( | void | ) | [private] |
Definition at line 312 of file H264Parser.cpp.
Referenced by addBytes(), and Reset().
| bool H264Parser::fillRBSP | ( | const uint8_t * | byteP, | |
| uint32_t | byte_count, | |||
| bool | found_start_code | |||
| ) | [private] |
Definition at line 319 of file H264Parser.cpp.
Referenced by addBytes().
| void H264Parser::processRBSP | ( | bool | rbsp_complete | ) | [private] |
Definition at line 498 of file H264Parser.cpp.
Referenced by addBytes().
| bool H264Parser::decode_Header | ( | GetBitContext * | gb | ) | [private] |
Definition at line 575 of file H264Parser.cpp.
Referenced by processRBSP().
| void H264Parser::decode_SPS | ( | GetBitContext * | gb | ) | [private] |
Definition at line 759 of file H264Parser.cpp.
Referenced by parse_SPS(), and processRBSP().
| void H264Parser::decode_PPS | ( | GetBitContext * | gb | ) | [private] |
Definition at line 960 of file H264Parser.cpp.
Referenced by processRBSP().
| void H264Parser::decode_SEI | ( | GetBitContext * | gb | ) | [private] |
Definition at line 1033 of file H264Parser.cpp.
Referenced by processRBSP().
| void H264Parser::vui_parameters | ( | GetBitContext * | gb | ) | [private] |
Definition at line 1072 of file H264Parser.cpp.
Referenced by decode_SPS().
bool H264Parser::AU_pending [private] |
Definition at line 194 of file H264Parser.h.
Referenced by processRBSP(), Reset(), and set_AU_pending().
bool H264Parser::state_changed [private] |
Definition at line 195 of file H264Parser.h.
Referenced by addBytes(), processRBSP(), Reset(), and stateChanged().
bool H264Parser::seen_sps [private] |
Definition at line 196 of file H264Parser.h.
Referenced by decode_SPS(), and Reset().
bool H264Parser::au_contains_keyframe_message [private] |
Definition at line 197 of file H264Parser.h.
Referenced by decode_SEI(), H264Parser(), processRBSP(), and set_AU_pending().
bool H264Parser::is_keyframe [private] |
Definition at line 198 of file H264Parser.h.
Referenced by decode_Header(), processRBSP(), and Reset().
bool H264Parser::I_is_keyframe [private] |
Definition at line 199 of file H264Parser.h.
Referenced by decode_Header(), H264Parser(), and use_I_forKeyframes().
uint32_t H264Parser::sync_accumulator [private] |
Definition at line 201 of file H264Parser.h.
Referenced by addBytes(), and Reset().
uint8_t* H264Parser::rbsp_buffer [private] |
Definition at line 202 of file H264Parser.h.
Referenced by fillRBSP(), H264Parser(), processRBSP(), and ~H264Parser().
uint32_t H264Parser::rbsp_buffer_size [private] |
Definition at line 203 of file H264Parser.h.
Referenced by fillRBSP(), and H264Parser().
uint32_t H264Parser::rbsp_index [private] |
Definition at line 204 of file H264Parser.h.
Referenced by fillRBSP(), processRBSP(), and resetRBSP().
uint32_t H264Parser::consecutive_zeros [private] |
Definition at line 205 of file H264Parser.h.
Referenced by fillRBSP(), and resetRBSP().
bool H264Parser::have_unfinished_NAL [private] |
Definition at line 206 of file H264Parser.h.
Referenced by addBytes(), processRBSP(), and resetRBSP().
int H264Parser::prev_frame_num [private] |
Definition at line 208 of file H264Parser.h.
int H264Parser::frame_num [private] |
Definition at line 208 of file H264Parser.h.
Referenced by decode_Header(), new_AU(), and Reset().
uint H264Parser::slice_type [private] |
Definition at line 209 of file H264Parser.h.
Referenced by decode_Header(), and Reset().
int H264Parser::prev_pic_parameter_set_id [private] |
Definition at line 210 of file H264Parser.h.
int H264Parser::pic_parameter_set_id [private] |
Definition at line 210 of file H264Parser.h.
Referenced by decode_Header(), decode_PPS(), new_AU(), and Reset().
int8_t H264Parser::prev_field_pic_flag [private] |
Definition at line 211 of file H264Parser.h.
int8_t H264Parser::field_pic_flag [private] |
Definition at line 211 of file H264Parser.h.
Referenced by decode_Header(), new_AU(), and Reset().
int8_t H264Parser::prev_bottom_field_flag [private] |
Definition at line 212 of file H264Parser.h.
int8_t H264Parser::bottom_field_flag [private] |
Definition at line 212 of file H264Parser.h.
Referenced by decode_Header(), FieldType(), new_AU(), and Reset().
uint8_t H264Parser::prev_nal_ref_idc [private] |
Definition at line 213 of file H264Parser.h.
uint8_t H264Parser::nal_ref_idc [private] |
Definition at line 213 of file H264Parser.h.
Referenced by addBytes(), new_AU(), and Reset().
uint8_t H264Parser::prev_pic_order_cnt_type [private] |
Definition at line 214 of file H264Parser.h.
uint8_t H264Parser::pic_order_cnt_type [private] |
Definition at line 214 of file H264Parser.h.
Referenced by decode_Header(), decode_SPS(), new_AU(), and Reset().
int H264Parser::prev_pic_order_cnt_lsb [private] |
Definition at line 215 of file H264Parser.h.
int H264Parser::pic_order_cnt_lsb [private] |
Definition at line 215 of file H264Parser.h.
Referenced by decode_Header(), new_AU(), and Reset().
int H264Parser::prev_delta_pic_order_cnt_bottom [private] |
Definition at line 216 of file H264Parser.h.
int H264Parser::delta_pic_order_cnt_bottom [private] |
Definition at line 216 of file H264Parser.h.
Referenced by decode_Header(), new_AU(), and Reset().
int H264Parser::prev_delta_pic_order_cnt[2] [private] |
Definition at line 217 of file H264Parser.h.
int H264Parser::delta_pic_order_cnt[2] [private] |
Definition at line 217 of file H264Parser.h.
Referenced by decode_Header(), new_AU(), and Reset().
uint8_t H264Parser::prev_nal_unit_type [private] |
Definition at line 218 of file H264Parser.h.
uint8_t H264Parser::nal_unit_type [private] |
Definition at line 218 of file H264Parser.h.
Referenced by addBytes(), decode_Header(), lastNALtype(), new_AU(), processRBSP(), and Reset().
uint H264Parser::prev_idr_pic_id [private] |
Definition at line 219 of file H264Parser.h.
uint H264Parser::idr_pic_id [private] |
Definition at line 219 of file H264Parser.h.
Referenced by decode_Header(), new_AU(), and Reset().
uint H264Parser::log2_max_frame_num [private] |
Definition at line 221 of file H264Parser.h.
Referenced by decode_Header(), decode_SPS(), and Reset().
uint H264Parser::log2_max_pic_order_cnt_lsb [private] |
Definition at line 221 of file H264Parser.h.
Referenced by decode_Header(), decode_SPS(), and Reset().
uint H264Parser::seq_parameter_set_id [private] |
Definition at line 222 of file H264Parser.h.
Referenced by decode_PPS(), and Reset().
Definition at line 224 of file H264Parser.h.
Referenced by decode_Header(), decode_SPS(), and Reset().
Definition at line 225 of file H264Parser.h.
Referenced by decode_Header(), decode_SPS(), and Reset().
int8_t H264Parser::frame_mbs_only_flag [private] |
Definition at line 226 of file H264Parser.h.
Referenced by decode_Header(), decode_SPS(), parse_SPS(), and Reset().
int8_t H264Parser::pic_order_present_flag [private] |
Definition at line 227 of file H264Parser.h.
Referenced by decode_Header(), decode_PPS(), and Reset().
Definition at line 228 of file H264Parser.h.
Referenced by decode_Header(), decode_PPS(), and Reset().
uint H264Parser::num_ref_frames [private] |
Definition at line 230 of file H264Parser.h.
Referenced by decode_SPS(), parse_SPS(), and Reset().
uint H264Parser::redundant_pic_cnt [private] |
Definition at line 231 of file H264Parser.h.
Referenced by decode_Header(), and Reset().
uint H264Parser::pic_width [private] |
Definition at line 233 of file H264Parser.h.
Referenced by aspectRatio(), decode_SPS(), pictureWidth(), and Reset().
uint H264Parser::pic_height [private] |
Definition at line 233 of file H264Parser.h.
Referenced by aspectRatio(), decode_SPS(), pictureHeight(), and Reset().
uint H264Parser::frame_crop_left_offset [private] |
Definition at line 234 of file H264Parser.h.
Referenced by decode_SPS(), and Reset().
uint H264Parser::frame_crop_right_offset [private] |
Definition at line 235 of file H264Parser.h.
Referenced by decode_SPS(), and Reset().
uint H264Parser::frame_crop_top_offset [private] |
Definition at line 236 of file H264Parser.h.
Referenced by decode_SPS(), and Reset().
uint H264Parser::frame_crop_bottom_offset [private] |
Definition at line 237 of file H264Parser.h.
Referenced by decode_SPS(), and Reset().
uint8_t H264Parser::aspect_ratio_idc [private] |
Definition at line 238 of file H264Parser.h.
Referenced by aspectRatio(), Reset(), and vui_parameters().
uint H264Parser::sar_width [private] |
Definition at line 239 of file H264Parser.h.
Referenced by aspectRatio(), Reset(), and vui_parameters().
uint H264Parser::sar_height [private] |
Definition at line 239 of file H264Parser.h.
Referenced by aspectRatio(), Reset(), and vui_parameters().
uint32_t H264Parser::unitsInTick [private] |
Definition at line 240 of file H264Parser.h.
Referenced by frameRate(), GetUnitsInTick(), Reset(), and vui_parameters().
uint32_t H264Parser::timeScale [private] |
Definition at line 240 of file H264Parser.h.
Referenced by frameRate(), GetTimeScale(), Reset(), and vui_parameters().
bool H264Parser::fixedRate [private] |
Definition at line 241 of file H264Parser.h.
Referenced by Reset(), and vui_parameters().
uint64_t H264Parser::pkt_offset [private] |
Definition at line 243 of file H264Parser.h.
Referenced by addBytes(), and set_AU_pending().
uint64_t H264Parser::AU_offset [private] |
Definition at line 243 of file H264Parser.h.
Referenced by processRBSP(), Reset(), and set_AU_pending().
uint64_t H264Parser::frame_start_offset [private] |
Definition at line 243 of file H264Parser.h.
Referenced by frameAUstreamOffset(), processRBSP(), and Reset().
uint64_t H264Parser::keyframe_start_offset [private] |
Definition at line 243 of file H264Parser.h.
Referenced by keyframeAUstreamOffset(), processRBSP(), and Reset().
bool H264Parser::on_frame [private] |
Definition at line 244 of file H264Parser.h.
Referenced by addBytes(), onFrameStart(), processRBSP(), and Reset().
bool H264Parser::on_key_frame [private] |
Definition at line 244 of file H264Parser.h.
Referenced by addBytes(), onKeyFrameStart(), processRBSP(), and Reset().
1.6.3