About 17,871 results: "php ceil"
Page 7 of 50
Filter Results
Sources
Languages
Filter Results
Try Search On
















write.id3v2.php in molinos-cms https://code.google.com/p/molinos-cms/ | 2053 lines | PHP
  1. 							$source_data_array['volumechange']['bass'] || $source_data_array['peakvolume']['bass']) {
  2. 								$framedata .= getid3_lib::BigEndian2String($source_data_array['volumechange']['rightrear'], ceil($source_data_array['bitsvolume']/8), false);
  3. 								$framedata .= getid3_lib::BigEndian2String($source_data_array['volumechange']['leftrear'],  ceil($source_data_array['bitsvolume']/8), false);
  4. 								$framedata .= getid3_lib::BigEndian2String($source_data_array['peakvolume']['rightrear'], ceil($source_data_array['bitsvolume']/8), false);
  5. 								$framedata .= getid3_lib::BigEndian2String($source_data_array['peakvolume']['leftrear'],  ceil($source_data_array['bitsvolume']/8), false);
  6. 						}
  7. 							$source_data_array['volumechange']['bass'] || $source_data_array['peakvolume']['bass']) {
  8. 								$framedata .= getid3_lib::BigEndian2String($source_data_array['volumechange']['center'], ceil($source_data_array['bitsvolume']/8), false);
  9. 								$framedata .= getid3_lib::BigEndian2String($source_data_array['peakvolume']['center'], ceil($source_data_array['bitsvolume']/8), false);
  10. 						}
  11. 						if ($source_data_array['volumechange']['bass'] || $source_data_array['peakvolume']['bass']) {
  12. 								$framedata .= getid3_lib::BigEndian2String($source_data_array['volumechange']['bass'], ceil($source_data_array['bitsvolume']/8), false);
  13. 								$framedata .= getid3_lib::BigEndian2String($source_data_array['peakvolume']['bass'], ceil($source_data_array['bitsvolume']/8), false);
  14. 						}
  15. 									$framedata .= getid3_lib::BigEndian2String($key, 2, false);
  16. 									$framedata .= getid3_lib::BigEndian2String($val, ceil($source_data_array['adjustmentbits'] / 8), false);

  1. 								if ($val['bitspeakvolume'] > 0) {
  2. 									$framedata .= getid3_lib::BigEndian2String($val['peakvolume'], ceil($val['bitspeakvolume'] / 8), false, false);
  3. 						$framedata .= chr($source_data_array['bitsvolume']);
  4. 						$framedata .= getid3_lib::BigEndian2String($source_data_array['volumechange']['right'], ceil($source_data_array['bitsvolume'] / 8), false);
  5. 						$framedata .= getid3_lib::BigEndian2String($source_data_array['volumechange']['left'],  ceil($source_data_array['bitsvolume'] / 8), false);
  6. 						$framedata .= getid3_lib::BigEndian2String($source_data_array['peakvolume']['right'], ceil($source_data_array['bitsvolume'] / 8), false);
  7. 						$framedata .= getid3_lib::BigEndian2String($source_data_array['peakvolume']['left'],  ceil($source_data_array['bitsvolume'] / 8), false);
  8. 						if ($source_data_array['volumechange']['bass'] || $source_data_array['peakvolume']['bass']) {
  9. 								$framedata .= getid3_lib::BigEndian2String($source_data_array['volumechange']['bass'], ceil($source_data_array['bitsvolume']/8), false);
  10. 								$framedata .= getid3_lib::BigEndian2String($source_data_array['peakvolume']['bass'], ceil($source_data_array['bitsvolume']/8), false);
  11. 						}
  12. 									$framedata .= getid3_lib::BigEndian2String($key, 2, false);
  13. 									$framedata .= getid3_lib::BigEndian2String($val, ceil($source_data_array['adjustmentbits'] / 8), false);
  14. 						foreach ($source_data_array['indexes'] as $key => $val) {
  15. 							$framedata .= getid3_lib::BigEndian2String($val, ceil($source_data_array['bitsperpoint'] / 8), false);

image.php in hppg http://hppg.googlecode.com/svn/trunk/ | 2243 lines | PHP
  1.         $imagesLeft = erLhcoreClassModelGalleryImage::getImages(array('ignore_fields' => $ignore_fields, 'smart_select' => true,'use_index' => $useIndexHint[$modeIndex],'disable_sql_cache' => true,'limit' => 5,'sort' => 'pid ASC','filter' => array('aid' => $Image->aid)+(array)$filterArray,'filtergt' => array('pid' => $Image->pid)));
  2.         $page = ceil((erLhcoreClassModelGalleryImage::getImageCount(array('use_index' => $useIndexHint[$modeIndex],'disable_sql_cache' => true, 'filter' => array('aid' => $Image->aid)+(array)$filterArray,'filtergt' => array('pid' => $Image->pid)))+1)/20);
  3.         $imagesLeft = erLhcoreClassModelGalleryImage::getImages(array('ignore_fields' => $ignore_fields, 'smart_select' => true,'use_index' => $useIndexHint[$modeIndex],'disable_sql_cache' => true,'limit' => 5,'sort' => 'pid DESC','filter' => array('aid' => $Image->aid)+(array)$filterArray,'filterlt' => array('pid' => $Image->pid)));
  4.         $page = ceil((erLhcoreClassModelGalleryImage::getImageCount(array('use_index' => $useIndexHint[$modeIndex],'disable_sql_cache' => true,'filter' => array('aid' => $Image->aid)+(array)$filterArray,'filterlt' => array('pid' => $Image->pid)))+1)/20);
  5.             $photos = $stmt->fetchColumn();         
  6.             $page = ceil(($photos+1)/20);
  7.             $photos = $stmt->fetchColumn();
  8.             $page = ceil(($photos+1)/20);
  9.             $photos = $stmt->fetchColumn();
  10.             $page = ceil(($photos+1)/20);
  11.             $photos = $stmt->fetchColumn();         
  12.             $page = ceil(($photos+1)/20);
  13.                               
  14.         $page = ceil(($totalPhotos['total_found']+1)/20);	
  15.                               
  16.         $page = ceil(($totalPhotos['total_found']+1)/20);	

write.id3v2.php in streeme http://streeme.googlecode.com/svn/trunk/ | 2051 lines | PHP
  1. 								if ($val['bitspeakvolume'] > 0) {
  2. 									$framedata .= getid3_lib::BigEndian2String($val['peakvolume'], ceil($val['bitspeakvolume'] / 8), false, false);
  3. 						$framedata .= chr($source_data_array['bitsvolume']);
  4. 						$framedata .= getid3_lib::BigEndian2String($source_data_array['volumechange']['right'], ceil($source_data_array['bitsvolume'] / 8), false);
  5. 						$framedata .= getid3_lib::BigEndian2String($source_data_array['volumechange']['left'],  ceil($source_data_array['bitsvolume'] / 8), false);
  6. 							$source_data_array['volumechange']['bass'] || $source_data_array['peakvolume']['bass']) {
  7. 								$framedata .= getid3_lib::BigEndian2String($source_data_array['volumechange']['center'], ceil($source_data_array['bitsvolume']/8), false);
  8. 								$framedata .= getid3_lib::BigEndian2String($source_data_array['peakvolume']['center'], ceil($source_data_array['bitsvolume']/8), false);
  9. 						}
  10. 						if ($source_data_array['volumechange']['bass'] || $source_data_array['peakvolume']['bass']) {
  11. 								$framedata .= getid3_lib::BigEndian2String($source_data_array['volumechange']['bass'], ceil($source_data_array['bitsvolume']/8), false);
  12. 								$framedata .= getid3_lib::BigEndian2String($source_data_array['peakvolume']['bass'], ceil($source_data_array['bitsvolume']/8), false);
  13. 						}
  14. 									$framedata .= getid3_lib::BigEndian2String($key, 2, false);
  15. 									$framedata .= getid3_lib::BigEndian2String($val, ceil($source_data_array['adjustmentbits'] / 8), false);
  16. 						foreach ($source_data_array['indexes'] as $key => $val) {
  17. 							$framedata .= getid3_lib::BigEndian2String($val, ceil($source_data_array['bitsperpoint'] / 8), false);

Back to Top