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.000060 - GLOBAL::include              -> config.php
0.004818 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.dotDatabase.php
0.005591 - dotDatabase::getInstance     -> connection: database
0.005621 - dotDatabase::__construct     -> connection: database
0.005660 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.page.php
0.006909 - page::getInstance            -> do
0.006972 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.dotSession.php
0.008014 - dotSession::getInstance      -> do
0.008053 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.user.php
0.008927 - dotSession::start            -> ---- init
0.008965 - dotSession::start            -> start php session managment
0.009121 - dotSession::start            -> finished php session management
0.009136 - dotSession::start            -> save user and host information to new session_array
0.009156 - dotSession::start            -> check for security options
0.009507 - dotSession::start            -> lookup ip2country
0.009536 - dotDatabase::connect         -> d030eee4@localhost
0.010093 - dotDatabase::select          -> database: d030eee4
0.010279 - dotDatabase::query           -> SELECT `code` FROM `country_ip2code` WHERE 3628718158 BETWEEN ip_from AND ip_to
0.010397 - dotSession::start            -> update current session online user infos
0.010434 - dotDatabase::query           -> UPDATE session SET lastactivity = 1778301350, userid = 0, site = 'https://lanrena.christoph-raible.de/forum/thread/1237/', host = '216.73.216.78', dns = '216.73.216.78', countrycode = 'US', hits = hits + 1 WHERE hash = 'c08b84f9512050dfb82e80902f2cfb8c'
0.010949 - dotSession::start            -> no session found in db == insert new db sesssion
0.011006 - dotDatabase::query           -> INSERT INTO `session`SET hash = 'c08b84f9512050dfb82e80902f2cfb8c', lastactivity = 1778301350, 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.78', dns = '216.73.216.78', countrycode = 'US', hits = 1
0.011508 - dotSession::load_locales     -> do
0.011582 - dotSession::load_locales     -> chosing language for locales: de_DE.UTF-8
0.011599 - dotSession::start            -> ---- finished with session startup
0.011636 - dotSession::load_user        -> id: 0
0.011650 - user::get_user               -> id: >0<
0.011666 - dotDatabase::getInstance     -> connection: database
0.011702 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.styles.php
0.012355 - styles::load                 -> name: ><
0.012402 - styles::load                 -> include: /www/htdocs/w00f1046/html/styles/lanrenav3.php
0.013164 - styles::activate             -> style = lanrenav3
0.013406 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.admin.php
0.013846 - admin::getInstance           -> do
0.013865 - dotSession::getInstance      -> do
0.013879 - admin::__construct           -> user_id=0
0.013889 - user::load_settings          -> load current user settings to $global
0.013911 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.prvmsg.php
0.014369 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.event.php
0.015159 - EVENT::comming_event         -> return
0.015182 - dotDatabase::query           -> SELECT id FROM events WHERE UNIX_TIMESTAMP(end) > 1778301350 AND active=1 ORDER by begin ASC
0.015604 - dotDatabase::query           -> SELECT id FROM events WHERE UNIX_TIMESTAMP(end) < 1778301350 AND active=1 ORDER by begin DESC LIMIT 1
0.015977 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.sitzplan.php
0.016930 - GLOBAL::end global.php       -> ---------------------------------------------
0.017190 - dotDatabase::query           -> SELECT * FROM sponsoren WHERE group_id = '1' AND active = 1 ORDER BY display_order DESC
0.017398 - dotDatabase::query           -> SELECT * FROM sponsoren WHERE group_id = '1' AND active = 1 ORDER BY display_order DESC
0.017626 - dotDatabase::query           -> SELECT * FROM sponsoren WHERE group_id = '6' AND active = 1 ORDER BY display_order DESC
0.017931 - dotDatabase::query           -> SELECT * FROM sponsoren WHERE group_id = '6' AND active = 1 ORDER BY display_order DESC
0.018193 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.forum.php
0.020928 - FORUM::showthread            -> get common forum and thread infos
0.020949 - FORUM::thread_lastvisit      -> threadid: 1237
0.020970 - dotDatabase::query           -> SELECT postid FROM forum_post WHERE threadid=1237 AND dateline > '' ORDER by postid ASC LIMIT 1
0.021933 - dotDatabase::query           -> SELECT threadid, dateline FROM forum_post WHERE postid=13236
0.022739 - dotDatabase::query           -> SELECT (COUNT(*)+1) AS position FROM forum_post WHERE threadid=1237 AND dateline < '2011-11-19 20:53:42'
0.023506 - 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.023991 - FORUM::is_moderator          -> for forumid: 6
0.024016 - dotDatabase::query           -> SELECT moderators FROM forum_main WHERE forumid='6'
0.024173 - admin::getInstance           -> do
0.024203 - admin::hasRight              -> check for adminright: >0:0 & 32< FALSE
0.024214 - admin::getInstance           -> do
0.024231 - admin::hasRight              -> check for adminright: >0:0 & 16777216< FALSE
0.024241 - admin::getInstance           -> do
0.024257 - admin::hasRight              -> check for adminright: >0:0 & 64< FALSE
0.024266 - admin::getInstance           -> do
0.024282 - admin::hasRight              -> check for adminright: >0:0 & 32< FALSE
0.024293 - admin::getInstance           -> do
0.024309 - admin::hasRight              -> check for adminright: >0:0 & 16777216< FALSE
0.024318 - admin::getInstance           -> do
0.024342 - admin::hasRight              -> check for adminright: >0:0 & 64< FALSE
0.024370 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.html.php
0.025870 - dotDatabase::query           -> SELECT title FROM forum_cat WHERE catid=3
0.026072 - dotDatabase::query           -> UPDATE forum_thread SET hits=hits+1 WHERE threadid='1237'
0.026310 - dotDatabase::query           -> SELECT user_id FROM user_orga WHERE display_team=1
0.026581 - FORUM::showthread            -> query all postings
0.026611 - 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.027497 - HTML::encode                 -> __________________[color=#0040FF]#LANrena Neustetten e.V.[/c...
0.027570 - dotDatabase::query           -> SELECT `code`, `smily` FROM html_smilies ORDER by LENGTH(code) DESC
0.029179 - dotDatabase::query           -> SELECT codetag, codereplacement, twoparams FROM html_code
0.029348 - HTML::encode                 -> replace run 1
0.029599 - HTML::encode                 -> replace run 2
0.029733 - HTML::template               -> template: >forum_postingpart<
0.029919 - HTML::template               -> template: >forum_postingindex<
0.030037 - FORUM::showthread            -> check for moderator utils
0.030056 - FORUM::update_visit          -> forumid: 6 threadid: 1237 posttime: 2011-11-19 20:53:42
0.030102 - GLOBAL::end userspace        -> ---------------------------------------------
0.030111 - PAGE::render                 -> start rendering page layout
0.030121 - USER::check_for_new_messages -> return
0.030136 - dotSession::getInstance      -> do
0.030180 - PAGE::get_boxes              -> -------- side=left
0.030208 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.cbox.php
0.032011 - PAGE::get_boxes              -> -------- call: left::menu_main
0.032038 - CBOX::menu                   -> generate Menu Box >news<
0.032068 - HTML::template               -> template: >box_menu<
0.032198 - HTML::template_exists        -> search: >page_box_left< == 1
0.032238 - HTML::template               -> template: >page_box_left<
0.032337 - PAGE::get_boxes              -> -------- call: left::menu_site
0.032356 - CBOX::menu                   -> generate Menu Box >site<
0.032378 - HTML::template               -> template: >box_menu_bit<
0.032458 - HTML::template               -> template: >box_menu_bit<
0.032488 - HTML::template               -> template: >box_menu_bit<
0.032512 - HTML::template               -> template: >box_menu_bit<
0.032535 - HTML::template               -> template: >box_menu_bit<
0.032558 - HTML::template               -> template: >box_menu_bit<
0.032588 - HTML::template               -> template: >box_menu<
0.032630 - HTML::template_exists        -> search: >page_box_left< == 1
0.032661 - HTML::template               -> template: >page_box_left<
0.032694 - PAGE::get_boxes              -> -------- call: left::menu_verein
0.032708 - CBOX::menu                   -> generate Menu Box >verein<
0.032727 - HTML::template               -> template: >box_menu_bit<
0.032751 - HTML::template               -> template: >box_menu_bit<
0.032775 - HTML::template               -> template: >box_menu_bit<
0.032797 - HTML::template               -> template: >box_menu_bit<
0.032819 - HTML::template               -> template: >box_menu_bit<
0.032842 - HTML::template               -> template: >box_menu<
0.032880 - HTML::template_exists        -> search: >page_box_left< == 1
0.032907 - HTML::template               -> template: >page_box_left<
0.032938 - PAGE::get_boxes              -> -------- call: left::menu_event
0.032951 - CBOX::menu                   -> generate Menu Box >event<
0.032970 - HTML::template               -> template: >box_menu_bit<
0.032995 - HTML::template               -> template: >box_menu_bit<
0.033017 - HTML::template               -> template: >box_menu_bit<
0.033040 - HTML::template               -> template: >box_menu_bit<
0.033061 - HTML::template               -> template: >box_menu_bit<
0.033083 - HTML::template               -> template: >box_menu_bit<
0.033106 - HTML::template               -> template: >box_menu_bit<
0.033128 - HTML::template               -> template: >box_menu_bit<
0.033150 - HTML::template               -> template: >box_menu_bit<
0.033173 - HTML::template               -> template: >box_menu<
0.033211 - HTML::template_exists        -> search: >page_box_left< == 1
0.033243 - HTML::template               -> template: >page_box_left<
0.033279 - PAGE::get_boxes              -> -------- call: left::menu_login
0.033293 - CBOX::menu                   -> generate Menu Box >login<
0.033321 - HTML::template               -> template: >box_menu_bit<
0.033356 - HTML::template               -> template: >box_menu_bit<
0.033380 - HTML::template               -> template: >box_menu<
0.033420 - HTML::template_exists        -> search: >page_box_left< == 1
0.033446 - HTML::template               -> template: >page_box_left<
0.033488 - PAGE::get_boxes              -> -------- side=right
0.033511 - PAGE::get_boxes              -> -------- call: right::party
0.033525 - CBOX::party                  -> generate Box
0.033539 - EVENT::short_event           -> id >17<
0.033547 - EVENT::getevent              -> id >17<
0.033558 - 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.033805 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.cache.php
0.034227 - CACHE::get                   -> cache: >event_17::stats< found
0.034340 - HTML::template               -> template: >box_event<
0.034509 - HTML::template_exists        -> search: >page_box_right< == 1
0.034540 - HTML::template               -> template: >page_box_right<
0.034618 - PAGE::get_boxes              -> -------- call: right::forum
0.034635 - CBOX::forum                  -> generate forum box
0.034642 - CBOX::forum_load_threads     -> load data
0.034661 - CACHE::get                   -> cache: >forum::topthreads< found
0.034810 - CBOX::forum_threads          -> list all threads in array
0.034828 - 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.034852 - admin::getInstance           -> do
0.034886 - HTML::template               -> template: >box_forum_bit<
0.034999 - HTML::template               -> template: >box_forum_bit<
0.035052 - HTML::template               -> template: >box_forum_bit<
0.035102 - HTML::template               -> template: >box_forum_bit<
0.035144 - HTML::template               -> template: >box_forum_bit<
0.035190 - HTML::template               -> template: >box_forum_bit<
0.035218 - HTML::template               -> template: >box_forum<
0.035318 - HTML::template_exists        -> search: >page_box_right< == 1
0.035353 - HTML::template               -> template: >page_box_right<
0.035390 - PAGE::get_boxes              -> -------- call: right::vote
0.035404 - CBOX::vote                   -> generate Box
0.035412 - 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.035664 - HTML::template               -> template: >box_vote_nocurrent<
0.035762 - HTML::template_exists        -> search: >page_box_right< == 1
0.035789 - HTML::template               -> template: >page_box_right<
0.035819 - PAGE::get_boxes              -> -------- call: right::banner
0.035844 - CACHE::get                   -> cache: >sponsoren_7::cbox_lanrenav3.de_DE< found
0.035897 - HTML::template_exists        -> search: >page_box_right< == 1
0.035921 - HTML::template               -> template: >page_box_right<
0.035950 - PAGE::get_boxes              -> -------- call: right::search
0.035963 - CBOX::template               -> generate Box with >box_suchen< as template
0.035971 - HTML::template               -> template: >box_suchen<
0.036044 - HTML::template_exists        -> search: >page_box_right< == 1
0.036066 - HTML::template               -> template: >page_box_right<
0.036100 - PAGE::render                 -> final
0.036109 - PAGE::renderTemplate         -> page
0.036118 - PAGE::getHead                -> return
0.036123 - dotSession::getInstance      -> do
0.036251 - HTML::template               -> template: >page<
0.036494 - PAGE::render_template        -> final

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

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