lrschriftzug

LANrena Neustetten e.V.

 
 
Sonstiges >> Off Topic > phyton??? o.0
Antwort erstellen
|LR|Cooper
19.11.2011 um 20:53 AntwortBenutzerprofilNachricht senden

NEW

Clan: Dumme Dorfbauern
Postings: 885

Mal ne Frage an die Cracks hier im Verein oder auch sonst wo... kann jemand von euch Phyton programmieren? Hab hier folgende Aufgabe und kein Plan:

Video-Konverter haben die Aufgabe, Einzelbilder eines Videodatenstroms einzulesen und in ein anderes
Format zu transportieren. Beispielsweise kann ein unkomprimiertes Video als Quelle dienen welches
dann in ein MPG-Video gewandelt wird. Zu Beginn m¨ussen diese Konverter-Programme oftmals eine
Farbraumtransformation vornehmen. In dieser Aufgabe sollen RGB-Einzelbilder in den YUV-Farbraum
konvertiert werden.
Schreiben Sie hierzu ein Python-Programm welches ein BMP-Bild (im RGB-Modus) einlesen kann und
zeilenweise die Farbwerte der einzelnen Pixel in RGB ausgibt. Berechnen Sie nun f¨ur die einzelnen Pixel
die YUV-Werte und geben Sie diese ebenfalls aus.
Benutzen Sie dazu folgende N¨aherung:
y = r * 0:299000 + g * 0:587000 + b * 0:114000
u = r * -0:168736 + g * -0:331264 + b * 0:500000 + 128
v = r * 0:500000 + g * -0:418688 + b * -0:081312 + 128
Was bewirkt der Summand 128?

Jemand der sich auskennt und helfen kann?
__________________
#LANrena Neustetten e.V. - Mitglied
#LANrena - Pixelschubbser
#LANrena 9 - Teamleiter Media
 
Antwort erstellen

LAN-Party

27. Sep 2019 - 29. Sep 2019
18 16 / 24
Frei:
8
Angemeldet:
18
Bezahlt:
16 / 24

Forum

Umfragen

Derzeit gibt es keine aktuellen Umfragen.

Partner

Inexio
JFZ Sindelfingen

 ------------------- 

found 185 debug messages

0.000026 - GLOBAL::include              -> config.php
0.002144 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.dotDatabase.php
0.002455 - dotDatabase::getInstance     -> connection: database
0.002468 - dotDatabase::__construct     -> connection: database
0.002484 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.page.php
0.002999 - page::getInstance            -> do
0.003024 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.dotSession.php
0.003436 - dotSession::getInstance      -> do
0.003451 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.user.php
0.003861 - dotSession::start            -> ---- init
0.003877 - dotSession::start            -> start php session managment
0.003947 - dotSession::start            -> finished php session management
0.003955 - dotSession::start            -> save user and host information to new session_array
0.003961 - dotSession::start            -> check for security options
0.004165 - dotSession::start            -> lookup ip2country
0.004176 - dotDatabase::connect         -> d030eee4@localhost
0.004608 - dotDatabase::select          -> database: d030eee4
0.004715 - dotDatabase::query           -> SELECT `code` FROM `country_ip2code` WHERE 3628718136 BETWEEN ip_from AND ip_to
0.004849 - dotSession::start            -> update current session online user infos
0.004864 - dotDatabase::query           -> UPDATE session SET lastactivity = 1766023268, userid = 0, site = 'https://lanrena.christoph-raible.de/forum/thread/1237', host = '216.73.216.56', dns = '216.73.216.56', countrycode = 'US', hits = hits + 1 WHERE hash = '1c997746e3fd81ea58849762b34b9ace'
0.005000 - dotSession::start            -> no session found in db == insert new db sesssion
0.005015 - dotDatabase::query           -> INSERT INTO `session`SET hash = '1c997746e3fd81ea58849762b34b9ace', lastactivity = 1766023268, userid = 0, site = 'https://lanrena.christoph-raible.de/forum/thread/1237', referer = '', useragent = 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', host = '216.73.216.56', dns = '216.73.216.56', countrycode = 'US', hits = 1
0.005907 - dotSession::load_locales     -> do
0.005948 - dotSession::load_locales     -> chosing language for locales: de_DE.UTF-8
0.005954 - dotSession::start            -> ---- finished with session startup
0.005968 - dotSession::load_user        -> id: 0
0.005973 - user::get_user               -> id: >0<
0.005980 - dotDatabase::getInstance     -> connection: database
0.005994 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.styles.php
0.006263 - styles::load                 -> name: ><
0.006282 - styles::load                 -> include: /www/htdocs/w00f1046/html/styles/lanrenav3.php
0.006590 - styles::activate             -> style = lanrenav3
0.006686 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.admin.php
0.006899 - admin::getInstance           -> do
0.006907 - dotSession::getInstance      -> do
0.006913 - admin::__construct           -> user_id=0
0.006917 - user::load_settings          -> load current user settings to $global
0.006925 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.prvmsg.php
0.007102 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.event.php
0.007422 - EVENT::comming_event         -> return
0.007432 - dotDatabase::query           -> SELECT id FROM events WHERE UNIX_TIMESTAMP(end) > 1766023268 AND active=1 ORDER by begin ASC
0.007602 - dotDatabase::query           -> SELECT id FROM events WHERE UNIX_TIMESTAMP(end) < 1766023268 AND active=1 ORDER by begin DESC LIMIT 1
0.007705 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.sitzplan.php
0.008119 - GLOBAL::end global.php       -> ---------------------------------------------
0.008249 - dotDatabase::query           -> SELECT * FROM sponsoren WHERE group_id = '1' AND active = 1 ORDER BY display_order DESC
0.008397 - dotDatabase::query           -> SELECT * FROM sponsoren WHERE group_id = '1' AND active = 1 ORDER BY display_order DESC
0.008534 - dotDatabase::query           -> SELECT * FROM sponsoren WHERE group_id = '6' AND active = 1 ORDER BY display_order DESC
0.008637 - dotDatabase::query           -> SELECT * FROM sponsoren WHERE group_id = '6' AND active = 1 ORDER BY display_order DESC
0.008707 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.forum.php
0.009904 - FORUM::showthread            -> get common forum and thread infos
0.009912 - FORUM::thread_lastvisit      -> threadid: 1237
0.009920 - dotDatabase::query           -> SELECT postid FROM forum_post WHERE threadid=1237 AND dateline > '' ORDER by postid ASC LIMIT 1
0.010980 - dotDatabase::query           -> SELECT threadid, dateline FROM forum_post WHERE postid=13236
0.011399 - dotDatabase::query           -> SELECT (COUNT(*)+1) AS position FROM forum_post WHERE threadid=1237 AND dateline < '2011-11-19 20:53:42'
0.011582 - dotDatabase::query           -> SELECT f.title AS forumname, f.catid, f.closed AS forum_closed, f.moderators, t.forumid, t.title, t.closed AS thread_closed, t.invisible AS thread_invisible, t.fv_id, f.priv_access, f.private, t.replies, t.ext, t.ext_id, t.show_latest, t.sticky, t.lastposttime FROM forum_thread AS t LEFT JOIN forum_main AS f ON t.forumid=f.forumid WHERE t.threadid='1237'
0.011712 - FORUM::is_moderator          -> for forumid: 6
0.011719 - dotDatabase::query           -> SELECT moderators FROM forum_main WHERE forumid='6'
0.011753 - admin::getInstance           -> do
0.011765 - admin::hasRight              -> check for adminright: >0:0 & 32< FALSE
0.011789 - admin::getInstance           -> do
0.011797 - admin::hasRight              -> check for adminright: >0:0 & 16777216< FALSE
0.011801 - admin::getInstance           -> do
0.011808 - admin::hasRight              -> check for adminright: >0:0 & 64< FALSE
0.011825 - admin::getInstance           -> do
0.011832 - admin::hasRight              -> check for adminright: >0:0 & 32< FALSE
0.011837 - admin::getInstance           -> do
0.011843 - admin::hasRight              -> check for adminright: >0:0 & 16777216< FALSE
0.011847 - admin::getInstance           -> do
0.011854 - admin::hasRight              -> check for adminright: >0:0 & 64< FALSE
0.011864 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.html.php
0.012473 - dotDatabase::query           -> SELECT title FROM forum_cat WHERE catid=3
0.012530 - dotDatabase::query           -> UPDATE forum_thread SET hits=hits+1 WHERE threadid='1237'
0.012607 - dotDatabase::query           -> SELECT user_id FROM user_orga WHERE display_team=1
0.012673 - FORUM::showthread            -> query all postings
0.012682 - dotDatabase::query           -> SELECT postid, threadid, userid, pagetext, htmltext, locked, invisible, remoteip, locked, forum_post.dateline, UNIX_TIMESTAMP(forum_post.dateline) AS stamp, user.id AS user_id, user.nick AS user_nick, user.clan AS user_clan, user.clantag, user.stats_postings AS user_postings, user.motto AS user_motto, user.female, user.countrycode, user.avatar,user.avatar_name, edit_user_id, UNIX_TIMESTAMP(edited) AS edit_unixtime, edit.nick AS edit_nick, IF(edit_user_id > 0,0,1) AS history, attachment_id, filename, filesize FROM forum_post LEFT JOIN user ON user.id = forum_post.userid LEFT JOIN user AS edit ON edit.id = forum_post.edit_user_id LEFT JOIN forum_files ON forum_post.attachment_id = forum_files.id WHERE threadid = 1237 AND forum_post.invisible=0 ORDER by postid ASC LIMIT 0,30
0.013020 - HTML::encode                 -> __________________[color=#0040FF]#LANrena Neustetten e.V.[/c...
0.013046 - dotDatabase::query           -> SELECT `code`, `smily` FROM html_smilies ORDER by LENGTH(code) DESC
0.013707 - dotDatabase::query           -> SELECT codetag, codereplacement, twoparams FROM html_code
0.013766 - HTML::encode                 -> replace run 1
0.013907 - HTML::encode                 -> replace run 2
0.013961 - HTML::template               -> template: >forum_postingpart<
0.014036 - HTML::template               -> template: >forum_postingindex<
0.014086 - FORUM::showthread            -> check for moderator utils
0.014093 - FORUM::update_visit          -> forumid: 6 threadid: 1237 posttime: 2011-11-19 20:53:42
0.014112 - GLOBAL::end userspace        -> ---------------------------------------------
0.014116 - PAGE::render                 -> start rendering page layout
0.014120 - USER::check_for_new_messages -> return
0.014126 - dotSession::getInstance      -> do
0.014146 - PAGE::get_boxes              -> -------- side=left
0.014157 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.cbox.php
0.014921 - PAGE::get_boxes              -> -------- call: left::menu_main
0.014932 - CBOX::menu                   -> generate Menu Box >news<
0.014942 - HTML::template               -> template: >box_menu<
0.014995 - HTML::template_exists        -> search: >page_box_left< == 1
0.015011 - HTML::template               -> template: >page_box_left<
0.015049 - PAGE::get_boxes              -> -------- call: left::menu_site
0.015057 - CBOX::menu                   -> generate Menu Box >site<
0.015066 - HTML::template               -> template: >box_menu_bit<
0.015098 - HTML::template               -> template: >box_menu_bit<
0.015110 - HTML::template               -> template: >box_menu_bit<
0.015121 - HTML::template               -> template: >box_menu_bit<
0.015131 - HTML::template               -> template: >box_menu_bit<
0.015141 - HTML::template               -> template: >box_menu_bit<
0.015150 - HTML::template               -> template: >box_menu<
0.015167 - HTML::template_exists        -> search: >page_box_left< == 1
0.015180 - HTML::template               -> template: >page_box_left<
0.015194 - PAGE::get_boxes              -> -------- call: left::menu_verein
0.015199 - CBOX::menu                   -> generate Menu Box >verein<
0.015207 - HTML::template               -> template: >box_menu_bit<
0.015218 - HTML::template               -> template: >box_menu_bit<
0.015228 - HTML::template               -> template: >box_menu_bit<
0.015237 - HTML::template               -> template: >box_menu_bit<
0.015247 - HTML::template               -> template: >box_menu_bit<
0.015256 - HTML::template               -> template: >box_menu<
0.015272 - HTML::template_exists        -> search: >page_box_left< == 1
0.015284 - HTML::template               -> template: >page_box_left<
0.015296 - PAGE::get_boxes              -> -------- call: left::menu_event
0.015302 - CBOX::menu                   -> generate Menu Box >event<
0.015310 - HTML::template               -> template: >box_menu_bit<
0.015320 - HTML::template               -> template: >box_menu_bit<
0.015329 - HTML::template               -> template: >box_menu_bit<
0.015339 - HTML::template               -> template: >box_menu_bit<
0.015348 - HTML::template               -> template: >box_menu_bit<
0.015357 - HTML::template               -> template: >box_menu_bit<
0.015367 - HTML::template               -> template: >box_menu_bit<
0.015376 - HTML::template               -> template: >box_menu_bit<
0.015385 - HTML::template               -> template: >box_menu_bit<
0.015395 - HTML::template               -> template: >box_menu<
0.015410 - HTML::template_exists        -> search: >page_box_left< == 1
0.015423 - HTML::template               -> template: >page_box_left<
0.015439 - PAGE::get_boxes              -> -------- call: left::menu_login
0.015445 - CBOX::menu                   -> generate Menu Box >login<
0.015457 - HTML::template               -> template: >box_menu_bit<
0.015468 - HTML::template               -> template: >box_menu_bit<
0.015477 - HTML::template               -> template: >box_menu<
0.015494 - HTML::template_exists        -> search: >page_box_left< == 1
0.015504 - HTML::template               -> template: >page_box_left<
0.015520 - PAGE::get_boxes              -> -------- side=right
0.015529 - PAGE::get_boxes              -> -------- call: right::party
0.015535 - CBOX::party                  -> generate Box
0.015541 - EVENT::short_event           -> id >17<
0.015544 - EVENT::getevent              -> id >17<
0.015549 - dotDatabase::query           -> SELECT events.id, active, invite, password, events.name, anzahl, preis, konto, kontocheck, UNIX_TIMESTAMP(kontocheck) AS kontocheck_unix, event_location.name AS location, event_location.zip AS plz, event_location.city AS ort, event_location.street AS strasse, event_location.countrycode, location_id, map_template, allow_signoff, voraussetzung, minalter, turnier, netzwerk, weiteres, banner, UNIX_TIMESTAMP(begin) AS begin, UNIX_TIMESTAMP(end) AS end, UNIX_TIMESTAMP(signupbegin) AS sgbegin, UNIX_TIMESTAMP(signupend) AS sgend, UNIX_TIMESTAMP(seatreservebegin) AS seatbegin, UNIX_TIMESTAMP(seatreserveend) AS seatend, seatimage, UNIX_TIMESTAMP(canceled) AS canceled, archiv_gallery, archiv_media FROM events LEFT JOIN event_location ON event_location.id=location_id WHERE events.id=17 AND active=1
0.015661 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.cache.php
0.015866 - CACHE::get                   -> cache: >event_17::stats< found
0.015906 - HTML::template               -> template: >box_event<
0.015974 - HTML::template_exists        -> search: >page_box_right< == 1
0.015990 - HTML::template               -> template: >page_box_right<
0.016027 - PAGE::get_boxes              -> -------- call: right::forum
0.016035 - CBOX::forum                  -> generate forum box
0.016039 - CBOX::forum_load_threads     -> load data
0.016048 - CACHE::get                   -> cache: >forum::topthreads< found
0.016121 - CBOX::forum_threads          -> list all threads in array
0.016130 - FORUM::thread_lastvisit      -> threadid: array ( 0 => 2510, 1 => 2509, 2 => 2499, 3 => 2502, 4 => 2508, 5 => 2507, 6 => 2506, 7 => 1919, 8 => 2505, 9 => 2485, 10 => 2503, 11 => 2501, 12 => 2500, 13 => 2496, 14 => 2498, 15 => 2497, 16 => 2495, 17 => 2493, 18 => 2494, 19 => 2445, )
0.016142 - admin::getInstance           -> do
0.016159 - HTML::template               -> template: >box_forum_bit<
0.016215 - HTML::template               -> template: >box_forum_bit<
0.016241 - HTML::template               -> template: >box_forum_bit<
0.016267 - HTML::template               -> template: >box_forum_bit<
0.016289 - HTML::template               -> template: >box_forum_bit<
0.016312 - HTML::template               -> template: >box_forum_bit<
0.016325 - HTML::template               -> template: >box_forum<
0.016377 - HTML::template_exists        -> search: >page_box_right< == 1
0.016391 - HTML::template               -> template: >page_box_right<
0.016407 - PAGE::get_boxes              -> -------- call: right::vote
0.016414 - CBOX::vote                   -> generate Box
0.016418 - dotDatabase::query           -> SELECT v_id, UNIX_TIMESTAMP(v_ende) AS v_ende FROM vote_main WHERE v_start < NOW() AND v_ende > NOW() AND v_active=1 AND v_top=1 ORDER by v_start DESC
0.016564 - HTML::template               -> template: >box_vote_nocurrent<
0.016609 - HTML::template_exists        -> search: >page_box_right< == 1
0.016622 - HTML::template               -> template: >page_box_right<
0.016638 - PAGE::get_boxes              -> -------- call: right::banner
0.016650 - CACHE::get                   -> cache: >sponsoren_7::cbox_lanrenav3.de_DE< found
0.016679 - HTML::template_exists        -> search: >page_box_right< == 1
0.016691 - HTML::template               -> template: >page_box_right<
0.016706 - PAGE::get_boxes              -> -------- call: right::search
0.016712 - CBOX::template               -> generate Box with >box_suchen< as template
0.016717 - HTML::template               -> template: >box_suchen<
0.016761 - HTML::template_exists        -> search: >page_box_right< == 1
0.016773 - HTML::template               -> template: >page_box_right<
0.016816 - PAGE::render                 -> final
0.016834 - PAGE::renderTemplate         -> page
0.016838 - PAGE::getHead                -> return
0.016841 - dotSession::getInstance      -> do
0.016908 - HTML::template               -> template: >page<
0.017025 - PAGE::render_template        -> final

PHP Includes   : 19
DB Queries     : 22
Rendering Time : 0.017349

Includes PHP Files: 
 - /www/htdocs/w00f1046/forum/index.php
 - /www/htdocs/w00f1046/global.php
 - /www/htdocs/w00f1046/includes/class.dotCommon.php
 - /www/htdocs/w00f1046/config.php
 - /www/htdocs/w00f1046/includes/class.dotDatabase.php
 - /www/htdocs/w00f1046/includes/class.page.php
 - /www/htdocs/w00f1046/includes/class.dotSession.php
 - /www/htdocs/w00f1046/includes/class.user.php
 - /www/htdocs/w00f1046/includes/class.styles.php
 - /www/htdocs/w00f1046/html/styles/lanrenav3.php
 - /www/htdocs/w00f1046/includes/class.admin.php
 - /www/htdocs/w00f1046/includes/class.prvmsg.php
 - /www/htdocs/w00f1046/includes/class.event.php
 - /www/htdocs/w00f1046/includes/class.sitzplan.php
 - /www/htdocs/w00f1046/html/styles/lr.inc.php
 - /www/htdocs/w00f1046/includes/class.forum.php
 - /www/htdocs/w00f1046/includes/class.html.php
 - /www/htdocs/w00f1046/includes/class.cbox.php
 - /www/htdocs/w00f1046/includes/class.cache.php