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 181 debug messages

0.000018 - GLOBAL::include              -> config.php
0.000464 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.dotDatabase.php
0.000758 - dotDatabase::getInstance     -> connection: database
0.000770 - dotDatabase::__construct     -> connection: database
0.000784 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.page.php
0.001239 - page::getInstance            -> do
0.001260 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.dotSession.php
0.001628 - dotSession::getInstance      -> do
0.001642 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.user.php
0.002007 - dotSession::start            -> ---- init
0.002023 - dotSession::start            -> start php session managment
0.002064 - dotSession::start            -> finished php session management
0.002071 - dotSession::start            -> check for security options
0.002077 - dotSession::start            -> update current session online user infos
0.002084 - dotDatabase::connect         -> d030eee4@localhost
0.002435 - dotDatabase::select          -> database: d030eee4
0.002651 - dotDatabase::query           -> UPDATE session SET lastactivity = 1782213390, userid = 0, site = 'https://lanrena.christoph-raible.de/forum/thread/1237/', host = '216.73.217.60', dns = '216.73.217.60', countrycode = 'US', hits = hits + 1 WHERE hash = 'd8b6af97c4a9d81ad458220484b63f2f'
0.002860 - dotSession::start            -> session found in DB
0.002867 - dotSession::load_locales     -> do
0.002886 - dotSession::load_locales     -> chosing language for locales: de_DE.UTF-8
0.002892 - dotSession::start            -> ---- finished with session startup
0.002926 - dotSession::load_user        -> id: 0
0.002931 - user::get_user               -> id: >0<
0.002938 - dotDatabase::getInstance     -> connection: database
0.002967 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.styles.php
0.003210 - styles::load                 -> name: ><
0.003226 - styles::load                 -> include: /www/htdocs/w00f1046/html/styles/lanrenav3.php
0.003521 - styles::activate             -> style = lanrenav3
0.003616 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.admin.php
0.003783 - admin::getInstance           -> do
0.003790 - dotSession::getInstance      -> do
0.003796 - admin::__construct           -> user_id=0
0.003800 - user::load_settings          -> load current user settings to $global
0.003810 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.prvmsg.php
0.004013 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.event.php
0.004303 - EVENT::comming_event         -> return
0.004312 - dotDatabase::query           -> SELECT id FROM events WHERE UNIX_TIMESTAMP(end) > 1782213390 AND active=1 ORDER by begin ASC
0.004464 - dotDatabase::query           -> SELECT id FROM events WHERE UNIX_TIMESTAMP(end) < 1782213390 AND active=1 ORDER by begin DESC LIMIT 1
0.004565 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.sitzplan.php
0.004895 - GLOBAL::end global.php       -> ---------------------------------------------
0.005024 - dotDatabase::query           -> SELECT * FROM sponsoren WHERE group_id = '1' AND active = 1 ORDER BY display_order DESC
0.005122 - dotDatabase::query           -> SELECT * FROM sponsoren WHERE group_id = '1' AND active = 1 ORDER BY display_order DESC
0.005203 - dotDatabase::query           -> SELECT * FROM sponsoren WHERE group_id = '6' AND active = 1 ORDER BY display_order DESC
0.005304 - dotDatabase::query           -> SELECT * FROM sponsoren WHERE group_id = '6' AND active = 1 ORDER BY display_order DESC
0.005399 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.forum.php
0.006464 - FORUM::showthread            -> get common forum and thread infos
0.006472 - FORUM::thread_lastvisit      -> threadid: 1237
0.006495 - dotDatabase::query           -> SELECT postid FROM forum_post WHERE threadid=1237 AND dateline > '' ORDER by postid ASC LIMIT 1
0.006673 - dotDatabase::query           -> SELECT threadid, dateline FROM forum_post WHERE postid=13236
0.006742 - dotDatabase::query           -> SELECT (COUNT(*)+1) AS position FROM forum_post WHERE threadid=1237 AND dateline < '2011-11-19 20:53:42'
0.006868 - 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.006998 - FORUM::is_moderator          -> for forumid: 6
0.007004 - dotDatabase::query           -> SELECT moderators FROM forum_main WHERE forumid='6'
0.007036 - admin::getInstance           -> do
0.007048 - admin::hasRight              -> check for adminright: >0:0 & 32< FALSE
0.007066 - admin::getInstance           -> do
0.007090 - admin::hasRight              -> check for adminright: >0:0 & 16777216< FALSE
0.007094 - admin::getInstance           -> do
0.007101 - admin::hasRight              -> check for adminright: >0:0 & 64< FALSE
0.007105 - admin::getInstance           -> do
0.007112 - admin::hasRight              -> check for adminright: >0:0 & 32< FALSE
0.007116 - admin::getInstance           -> do
0.007123 - admin::hasRight              -> check for adminright: >0:0 & 16777216< FALSE
0.007127 - admin::getInstance           -> do
0.007134 - admin::hasRight              -> check for adminright: >0:0 & 64< FALSE
0.007143 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.html.php
0.007853 - dotDatabase::query           -> SELECT title FROM forum_cat WHERE catid=3
0.007906 - dotDatabase::query           -> UPDATE forum_thread SET hits=hits+1 WHERE threadid='1237'
0.008030 - dotDatabase::query           -> SELECT user_id FROM user_orga WHERE display_team=1
0.008137 - FORUM::showthread            -> query all postings
0.008146 - 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.008477 - HTML::encode                 -> __________________[color=#0040FF]#LANrena Neustetten e.V.[/c...
0.008499 - dotDatabase::query           -> SELECT `code`, `smily` FROM html_smilies ORDER by LENGTH(code) DESC
0.008835 - dotDatabase::query           -> SELECT codetag, codereplacement, twoparams FROM html_code
0.008887 - HTML::encode                 -> replace run 1
0.008941 - HTML::encode                 -> replace run 2
0.008987 - HTML::template               -> template: >forum_postingpart<
0.009049 - HTML::template               -> template: >forum_postingindex<
0.009092 - FORUM::showthread            -> check for moderator utils
0.009099 - FORUM::update_visit          -> forumid: 6 threadid: 1237 posttime: 2011-11-19 20:53:42
0.009120 - GLOBAL::end userspace        -> ---------------------------------------------
0.009124 - PAGE::render                 -> start rendering page layout
0.009128 - USER::check_for_new_messages -> return
0.009135 - dotSession::getInstance      -> do
0.009152 - PAGE::get_boxes              -> -------- side=left
0.009162 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.cbox.php
0.009849 - PAGE::get_boxes              -> -------- call: left::menu_main
0.009861 - CBOX::menu                   -> generate Menu Box >news<
0.009871 - HTML::template               -> template: >box_menu<
0.009921 - HTML::template_exists        -> search: >page_box_left< == 1
0.009937 - HTML::template               -> template: >page_box_left<
0.009971 - PAGE::get_boxes              -> -------- call: left::menu_site
0.009979 - CBOX::menu                   -> generate Menu Box >site<
0.009988 - HTML::template               -> template: >box_menu_bit<
0.010018 - HTML::template               -> template: >box_menu_bit<
0.010031 - HTML::template               -> template: >box_menu_bit<
0.010042 - HTML::template               -> template: >box_menu_bit<
0.010052 - HTML::template               -> template: >box_menu_bit<
0.010062 - HTML::template               -> template: >box_menu_bit<
0.010071 - HTML::template               -> template: >box_menu<
0.010089 - HTML::template_exists        -> search: >page_box_left< == 1
0.010102 - HTML::template               -> template: >page_box_left<
0.010115 - PAGE::get_boxes              -> -------- call: left::menu_verein
0.010121 - CBOX::menu                   -> generate Menu Box >verein<
0.010130 - HTML::template               -> template: >box_menu_bit<
0.010141 - HTML::template               -> template: >box_menu_bit<
0.010151 - HTML::template               -> template: >box_menu_bit<
0.010160 - HTML::template               -> template: >box_menu_bit<
0.010170 - HTML::template               -> template: >box_menu_bit<
0.010179 - HTML::template               -> template: >box_menu<
0.010195 - HTML::template_exists        -> search: >page_box_left< == 1
0.010207 - HTML::template               -> template: >page_box_left<
0.010220 - PAGE::get_boxes              -> -------- call: left::menu_event
0.010226 - CBOX::menu                   -> generate Menu Box >event<
0.010234 - HTML::template               -> template: >box_menu_bit<
0.010244 - HTML::template               -> template: >box_menu_bit<
0.010254 - HTML::template               -> template: >box_menu_bit<
0.010264 - HTML::template               -> template: >box_menu_bit<
0.010274 - HTML::template               -> template: >box_menu_bit<
0.010283 - HTML::template               -> template: >box_menu_bit<
0.010293 - HTML::template               -> template: >box_menu_bit<
0.010302 - HTML::template               -> template: >box_menu_bit<
0.010312 - HTML::template               -> template: >box_menu_bit<
0.010321 - HTML::template               -> template: >box_menu<
0.010337 - HTML::template_exists        -> search: >page_box_left< == 1
0.010348 - HTML::template               -> template: >page_box_left<
0.010361 - PAGE::get_boxes              -> -------- call: left::menu_login
0.010367 - CBOX::menu                   -> generate Menu Box >login<
0.010379 - HTML::template               -> template: >box_menu_bit<
0.010392 - HTML::template               -> template: >box_menu_bit<
0.010402 - HTML::template               -> template: >box_menu<
0.010418 - HTML::template_exists        -> search: >page_box_left< == 1
0.010429 - HTML::template               -> template: >page_box_left<
0.010445 - PAGE::get_boxes              -> -------- side=right
0.010455 - PAGE::get_boxes              -> -------- call: right::party
0.010460 - CBOX::party                  -> generate Box
0.010467 - EVENT::short_event           -> id >17<
0.010471 - EVENT::getevent              -> id >17<
0.010476 - 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.010584 - dotCommon::classload         -> require: /www/htdocs/w00f1046/includes/class.cache.php
0.010735 - CACHE::get                   -> cache: >event_17::stats< found
0.010767 - HTML::template               -> template: >box_event<
0.010832 - HTML::template_exists        -> search: >page_box_right< == 1
0.010848 - HTML::template               -> template: >page_box_right<
0.010888 - PAGE::get_boxes              -> -------- call: right::forum
0.010896 - CBOX::forum                  -> generate forum box
0.010900 - CBOX::forum_load_threads     -> load data
0.010910 - CACHE::get                   -> cache: >forum::topthreads< found
0.010969 - CBOX::forum_threads          -> list all threads in array
0.010978 - 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.010990 - admin::getInstance           -> do
0.011008 - HTML::template               -> template: >box_forum_bit<
0.011064 - HTML::template               -> template: >box_forum_bit<
0.011091 - HTML::template               -> template: >box_forum_bit<
0.011118 - HTML::template               -> template: >box_forum_bit<
0.011140 - HTML::template               -> template: >box_forum_bit<
0.011164 - HTML::template               -> template: >box_forum_bit<
0.011178 - HTML::template               -> template: >box_forum<
0.011222 - HTML::template_exists        -> search: >page_box_right< == 1
0.011236 - HTML::template               -> template: >page_box_right<
0.011253 - PAGE::get_boxes              -> -------- call: right::vote
0.011260 - CBOX::vote                   -> generate Box
0.011264 - 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.011416 - HTML::template               -> template: >box_vote_nocurrent<
0.011455 - HTML::template_exists        -> search: >page_box_right< == 1
0.011469 - HTML::template               -> template: >page_box_right<
0.011484 - PAGE::get_boxes              -> -------- call: right::banner
0.011497 - CACHE::get                   -> cache: >sponsoren_7::cbox_lanrenav3.de_DE< found
0.011522 - HTML::template_exists        -> search: >page_box_right< == 1
0.011535 - HTML::template               -> template: >page_box_right<
0.011551 - PAGE::get_boxes              -> -------- call: right::search
0.011557 - CBOX::template               -> generate Box with >box_suchen< as template
0.011561 - HTML::template               -> template: >box_suchen<
0.011596 - HTML::template_exists        -> search: >page_box_right< == 1
0.011608 - HTML::template               -> template: >page_box_right<
0.011626 - PAGE::render                 -> final
0.011631 - PAGE::renderTemplate         -> page
0.011636 - PAGE::getHead                -> return
0.011639 - dotSession::getInstance      -> do
0.011698 - HTML::template               -> template: >page<
0.011805 - PAGE::render_template        -> final

PHP Includes   : 19
DB Queries     : 20
Rendering Time : 0.012125

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