Definition at line 630 of file module.audio-video.flv.php.
◆ __construct()
AVCSequenceParameterSetReader::__construct |
( |
|
$sps | ) |
|
◆ expGolombSe()
AVCSequenceParameterSetReader::expGolombSe |
( |
| ) |
|
◆ expGolombUe()
AVCSequenceParameterSetReader::expGolombUe |
( |
| ) |
|
Definition at line 714 of file module.audio-video.flv.php.
715 $significantBits = 0;
721 if ($significantBits > 31) {
726 return (1 << $significantBits) + $this->
getBits($significantBits) - 1;
◆ getBit()
AVCSequenceParameterSetReader::getBit |
( |
| ) |
|
◆ getBits()
AVCSequenceParameterSetReader::getBits |
( |
|
$bits | ) |
|
◆ getHeight()
AVCSequenceParameterSetReader::getHeight |
( |
| ) |
|
◆ getWidth()
AVCSequenceParameterSetReader::getWidth |
( |
| ) |
|
◆ readData()
AVCSequenceParameterSetReader::readData |
( |
| ) |
|
Definition at line 642 of file module.audio-video.flv.php.
648 $level_idc = $this->
getBits(8);
652 if ($picOrderType == 0) {
654 } elseif ($picOrderType == 1) {
658 $num_ref_frames_in_pic_order_cnt_cycle = $this->
expGolombUe();
659 for ($i = 0; $i < $num_ref_frames_in_pic_order_cnt_cycle; $i++) {
666 $pic_height_in_map_units_minus1 = $this->
expGolombUe();
668 $frame_mbs_only_flag = $this->
getBits(1);
669 if ($frame_mbs_only_flag == 0) {
673 $frame_cropping_flag = $this->
getBits(1);
675 $frame_crop_left_offset = 0;
676 $frame_crop_right_offset = 0;
677 $frame_crop_top_offset = 0;
678 $frame_crop_bottom_offset = 0;
680 if ($frame_cropping_flag) {
689 $this->width = (($pic_width_in_mbs_minus1 + 1) * 16) - ($frame_crop_left_offset * 2) - ($frame_crop_right_offset * 2);
690 $this->height = ((2 - $frame_mbs_only_flag) * ($pic_height_in_map_units_minus1 + 1) * 16) - ($frame_crop_top_offset * 2) - ($frame_crop_bottom_offset * 2);
◆ skipBits()
AVCSequenceParameterSetReader::skipBits |
( |
|
$bits | ) |
|
Definition at line 694 of file module.audio-video.flv.php.
695 $newBits = $this->currentBits + $bits;
696 $this->currentBytes += (int)floor($newBits / 8);
697 $this->currentBits = $newBits % 8;
◆ $currentBits
AVCSequenceParameterSetReader::$currentBits = 0 |
◆ $currentBytes
AVCSequenceParameterSetReader::$currentBytes = 0 |
◆ $height
AVCSequenceParameterSetReader::$height |
◆ $sps
AVCSequenceParameterSetReader::$sps |
◆ $start
AVCSequenceParameterSetReader::$start = 0 |
◆ $width
AVCSequenceParameterSetReader::$width |
The documentation for this class was generated from the following file: