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.000052 - GLOBAL::include              -> config.php
0.003921 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.dotDatabase.php
0.004533 - dotDatabase::getInstance     -> connection: database
0.004558 - dotDatabase::__construct     -> connection: database
0.004589 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.page.php
0.005474 - page::getInstance            -> do
0.005523 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.dotSession.php
0.006264 - dotSession::getInstance      -> do
0.006289 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.user.php
0.006863 - dotSession::start            -> ---- init
0.006889 - dotSession::start            -> start php session managment
0.007002 - dotSession::start            -> finished php session management
0.007012 - dotSession::start            -> save user and host information to new session_array
0.007026 - dotSession::start            -> check for security options
0.032889 - dotSession::start            -> lookup ip2country
0.032914 - dotDatabase::connect         -> d030eee4@localhost
0.033357 - dotDatabase::select          -> database: d030eee4
0.033636 - dotDatabase::query           -> SELECT `code` FROM `country_ip2code` WHERE 3628718236 BETWEEN ip_from AND ip_to
0.047415 - dotSession::start            -> update current session online user infos
0.047461 - dotDatabase::query           -> UPDATE session SET lastactivity = 1774349878, userid = 0, site = 'https://lanrena.christoph-raible.de/forum/thread/1237', host = '216.73.216.156', dns = '216.73.216.156', countrycode = 'US', hits = hits + 1 WHERE hash = '3c5d71ad1b25e0c0231cea8e789ee43d'
0.047901 - dotSession::start            -> no session found in db == insert new db sesssion
0.047945 - dotDatabase::query           -> INSERT INTO `session`SET hash = '3c5d71ad1b25e0c0231cea8e789ee43d', lastactivity = 1774349878, 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.156', dns = '216.73.216.156', countrycode = 'US', hits = 1
0.048149 - dotSession::load_locales     -> do
0.048215 - dotSession::load_locales     -> chosing language for locales: de_DE.UTF-8
0.048227 - dotSession::start            -> ---- finished with session startup
0.048264 - dotSession::load_user        -> id: 0
0.048276 - user::get_user               -> id: >0<
0.048291 - dotDatabase::getInstance     -> connection: database
0.048324 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.styles.php
0.048856 - styles::load                 -> name: ><
0.048895 - styles::load                 -> include: /www/htdocs/w00f1046/html/styles/lanrenav3.php
0.049491 - styles::activate             -> style = lanrenav3
0.049670 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.admin.php
0.049999 - admin::getInstance           -> do
0.050013 - dotSession::getInstance      -> do
0.050024 - admin::__construct           -> user_id=0
0.050032 - user::load_settings          -> load current user settings to $global
0.050048 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.prvmsg.php
0.050381 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.event.php
0.050976 - EVENT::comming_event         -> return
0.050994 - dotDatabase::query           -> SELECT id FROM events WHERE UNIX_TIMESTAMP(end) > 1774349878 AND active=1 ORDER by begin ASC
0.051319 - dotDatabase::query           -> SELECT id FROM events WHERE UNIX_TIMESTAMP(end) < 1774349878 AND active=1 ORDER by begin DESC LIMIT 1
0.051610 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.sitzplan.php
0.052323 - GLOBAL::end global.php       -> ---------------------------------------------
0.052528 - dotDatabase::query           -> SELECT * FROM sponsoren WHERE group_id = '1' AND active = 1 ORDER BY display_order DESC
0.052729 - dotDatabase::query           -> SELECT * FROM sponsoren WHERE group_id = '1' AND active = 1 ORDER BY display_order DESC
0.052918 - dotDatabase::query           -> SELECT * FROM sponsoren WHERE group_id = '6' AND active = 1 ORDER BY display_order DESC
0.053131 - dotDatabase::query           -> SELECT * FROM sponsoren WHERE group_id = '6' AND active = 1 ORDER BY display_order DESC
0.053314 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.forum.php
0.055615 - FORUM::showthread            -> get common forum and thread infos
0.055632 - FORUM::thread_lastvisit      -> threadid: 1237
0.055651 - dotDatabase::query           -> SELECT postid FROM forum_post WHERE threadid=1237 AND dateline > '' ORDER by postid ASC LIMIT 1
0.057228 - dotDatabase::query           -> SELECT threadid, dateline FROM forum_post WHERE postid=13236
0.057815 - dotDatabase::query           -> SELECT (COUNT(*)+1) AS position FROM forum_post WHERE threadid=1237 AND dateline < '2011-11-19 20:53:42'
0.058607 - 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.059615 - FORUM::is_moderator          -> for forumid: 6
0.059634 - dotDatabase::query           -> SELECT moderators FROM forum_main WHERE forumid='6'
0.059863 - admin::getInstance           -> do
0.059892 - admin::hasRight              -> check for adminright: >0:0 & 32< FALSE
0.059901 - admin::getInstance           -> do
0.059914 - admin::hasRight              -> check for adminright: >0:0 & 16777216< FALSE
0.059921 - admin::getInstance           -> do
0.059932 - admin::hasRight              -> check for adminright: >0:0 & 64< FALSE
0.059939 - admin::getInstance           -> do
0.059951 - admin::hasRight              -> check for adminright: >0:0 & 32< FALSE
0.059964 - admin::getInstance           -> do
0.059976 - admin::hasRight              -> check for adminright: >0:0 & 16777216< FALSE
0.059983 - admin::getInstance           -> do
0.059995 - admin::hasRight              -> check for adminright: >0:0 & 64< FALSE
0.060016 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.html.php
0.061171 - dotDatabase::query           -> SELECT title FROM forum_cat WHERE catid=3
0.061759 - dotDatabase::query           -> UPDATE forum_thread SET hits=hits+1 WHERE threadid='1237'
0.062004 - dotDatabase::query           -> SELECT user_id FROM user_orga WHERE display_team=1
0.062634 - FORUM::showthread            -> query all postings
0.062655 - 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.063497 - HTML::encode                 -> __________________[color=#0040FF]#LANrena Neustetten e.V.[/c...
0.063552 - dotDatabase::query           -> SELECT `code`, `smily` FROM html_smilies ORDER by LENGTH(code) DESC
0.065136 - dotDatabase::query           -> SELECT codetag, codereplacement, twoparams FROM html_code
0.065511 - HTML::encode                 -> replace run 1
0.065710 - HTML::encode                 -> replace run 2
0.065833 - HTML::template               -> template: >forum_postingpart<
0.065956 - HTML::template               -> template: >forum_postingindex<
0.066031 - FORUM::showthread            -> check for moderator utils
0.066043 - FORUM::update_visit          -> forumid: 6 threadid: 1237 posttime: 2011-11-19 20:53:42
0.066076 - GLOBAL::end userspace        -> ---------------------------------------------
0.066083 - PAGE::render                 -> start rendering page layout
0.066089 - USER::check_for_new_messages -> return
0.066100 - dotSession::getInstance      -> do
0.066131 - PAGE::get_boxes              -> -------- side=left
0.066149 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.cbox.php
0.067317 - PAGE::get_boxes              -> -------- call: left::menu_main
0.067335 - CBOX::menu                   -> generate Menu Box >news<
0.067351 - HTML::template               -> template: >box_menu<
0.067438 - HTML::template_exists        -> search: >page_box_left< == 1
0.067463 - HTML::template               -> template: >page_box_left<
0.067522 - PAGE::get_boxes              -> -------- call: left::menu_site
0.067534 - CBOX::menu                   -> generate Menu Box >site<
0.067548 - HTML::template               -> template: >box_menu_bit<
0.067598 - HTML::template               -> template: >box_menu_bit<
0.067616 - HTML::template               -> template: >box_menu_bit<
0.067632 - HTML::template               -> template: >box_menu_bit<
0.067647 - HTML::template               -> template: >box_menu_bit<
0.067661 - HTML::template               -> template: >box_menu_bit<
0.067676 - HTML::template               -> template: >box_menu<
0.067702 - HTML::template_exists        -> search: >page_box_left< == 1
0.067721 - HTML::template               -> template: >page_box_left<
0.067741 - PAGE::get_boxes              -> -------- call: left::menu_verein
0.067750 - CBOX::menu                   -> generate Menu Box >verein<
0.067762 - HTML::template               -> template: >box_menu_bit<
0.067779 - HTML::template               -> template: >box_menu_bit<
0.067793 - HTML::template               -> template: >box_menu_bit<
0.067807 - HTML::template               -> template: >box_menu_bit<
0.067822 - HTML::template               -> template: >box_menu_bit<
0.067836 - HTML::template               -> template: >box_menu<
0.067860 - HTML::template_exists        -> search: >page_box_left< == 1
0.067878 - HTML::template               -> template: >page_box_left<
0.067898 - PAGE::get_boxes              -> -------- call: left::menu_event
0.067906 - CBOX::menu                   -> generate Menu Box >event<
0.067918 - HTML::template               -> template: >box_menu_bit<
0.067934 - HTML::template               -> template: >box_menu_bit<
0.067948 - HTML::template               -> template: >box_menu_bit<
0.067963 - HTML::template               -> template: >box_menu_bit<
0.067977 - HTML::template               -> template: >box_menu_bit<
0.067991 - HTML::template               -> template: >box_menu_bit<
0.068006 - HTML::template               -> template: >box_menu_bit<
0.068024 - HTML::template               -> template: >box_menu_bit<
0.068039 - HTML::template               -> template: >box_menu_bit<
0.068054 - HTML::template               -> template: >box_menu<
0.068078 - HTML::template_exists        -> search: >page_box_left< == 1
0.068100 - HTML::template               -> template: >page_box_left<
0.068120 - PAGE::get_boxes              -> -------- call: left::menu_login
0.068128 - CBOX::menu                   -> generate Menu Box >login<
0.068146 - HTML::template               -> template: >box_menu_bit<
0.068163 - HTML::template               -> template: >box_menu_bit<
0.068177 - HTML::template               -> template: >box_menu<
0.068202 - HTML::template_exists        -> search: >page_box_left< == 1
0.068218 - HTML::template               -> template: >page_box_left<
0.068241 - PAGE::get_boxes              -> -------- side=right
0.068265 - PAGE::get_boxes              -> -------- call: right::party
0.068275 - CBOX::party                  -> generate Box
0.068285 - EVENT::short_event           -> id >17<
0.068291 - EVENT::getevent              -> id >17<
0.068299 - 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.068502 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.cache.php
0.068780 - CACHE::get                   -> cache: >event_17::stats< found
0.068845 - HTML::template               -> template: >box_event<
0.068955 - HTML::template_exists        -> search: >page_box_right< == 1
0.068980 - HTML::template               -> template: >page_box_right<
0.069038 - PAGE::get_boxes              -> -------- call: right::forum
0.069051 - CBOX::forum                  -> generate forum box
0.069057 - CBOX::forum_load_threads     -> load data
0.069071 - CACHE::get                   -> cache: >forum::topthreads< found
0.069181 - CBOX::forum_threads          -> list all threads in array
0.069195 - 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.069214 - admin::getInstance           -> do
0.069242 - HTML::template               -> template: >box_forum_bit<
0.069340 - HTML::template               -> template: >box_forum_bit<
0.069382 - HTML::template               -> template: >box_forum_bit<
0.069423 - HTML::template               -> template: >box_forum_bit<
0.069457 - HTML::template               -> template: >box_forum_bit<
0.069493 - HTML::template               -> template: >box_forum_bit<
0.069515 - HTML::template               -> template: >box_forum<
0.069592 - HTML::template_exists        -> search: >page_box_right< == 1
0.069614 - HTML::template               -> template: >page_box_right<
0.069643 - PAGE::get_boxes              -> -------- call: right::vote
0.069654 - CBOX::vote                   -> generate Box
0.069660 - 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.069919 - HTML::template               -> template: >box_vote_nocurrent<
0.070015 - HTML::template_exists        -> search: >page_box_right< == 1
0.070040 - HTML::template               -> template: >page_box_right<
0.070070 - PAGE::get_boxes              -> -------- call: right::banner
0.070092 - CACHE::get                   -> cache: >sponsoren_7::cbox_lanrenav3.de_DE< found
0.070138 - HTML::template_exists        -> search: >page_box_right< == 1
0.070159 - HTML::template               -> template: >page_box_right<
0.070185 - PAGE::get_boxes              -> -------- call: right::search
0.070195 - CBOX::template               -> generate Box with >box_suchen< as template
0.070201 - HTML::template               -> template: >box_suchen<
0.070270 - HTML::template_exists        -> search: >page_box_right< == 1
0.070289 - HTML::template               -> template: >page_box_right<
0.070317 - PAGE::render                 -> final
0.070324 - PAGE::renderTemplate         -> page
0.070331 - PAGE::getHead                -> return
0.070336 - dotSession::getInstance      -> do
0.070439 - HTML::template               -> template: >page<
0.070624 - PAGE::render_template        -> final

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

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