|LR|Cooper
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
Frei: 8
Angemeldet: 18
Bezahlt: 16 / 24
Sitzplatz :
Umfragen
Derzeit gibt es keine aktuellen Umfragen.
-------------------
found 185 debug messages
0.000045 - GLOBAL::include -> config.php
0.003836 - dotCommon::classload -> require: /www/htdocs/w00f1046/includes/class.dotDatabase.php
0.004535 - dotDatabase::getInstance -> connection: database
0.004563 - dotDatabase::__construct -> connection: database
0.004599 - dotCommon::classload -> require: /www/htdocs/w00f1046/includes/class.page.php
0.005627 - page::getInstance -> do
0.005684 - dotCommon::classload -> require: /www/htdocs/w00f1046/includes/class.dotSession.php
0.006632 - dotSession::getInstance -> do
0.006667 - dotCommon::classload -> require: /www/htdocs/w00f1046/includes/class.user.php
0.007471 - dotSession::start -> ---- init
0.007507 - dotSession::start -> start php session managment
0.007659 - dotSession::start -> finished php session management
0.007673 - dotSession::start -> save user and host information to new session_array
0.007687 - dotSession::start -> check for security options
0.135654 - dotSession::start -> lookup ip2country
0.135683 - dotDatabase::connect -> d030eee4@localhost
0.135972 - dotDatabase::select -> database: d030eee4
0.136060 - dotDatabase::query -> SELECT `code` FROM `country_ip2code` WHERE 221988192 BETWEEN ip_from AND ip_to
0.137320 - dotSession::start -> update current session online user infos
0.137344 - dotDatabase::query -> UPDATE session SET lastactivity = 1744935648, userid = 0, site = 'https://lanrena.christoph-raible.de/forum/thread/1237', host = '13.59.69.96', dns = 'ec2-13-59-69-96.us-east-2.compute.amazonaws.com', countrycode = 'US', hits = hits + 1 WHERE hash = '2c9dbb49ec2139bafc07f44d1ac982fc'
0.137492 - dotSession::start -> no session found in db == insert new db sesssion
0.137513 - dotDatabase::query -> INSERT INTO `session`SET hash = '2c9dbb49ec2139bafc07f44d1ac982fc', lastactivity = 1744935648, 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 = '13.59.69.96', dns = 'ec2-13-59-69-96.us-east-2.compute.amazonaws.com', countrycode = 'US', hits = 1
0.137628 - dotSession::load_locales -> do
0.137675 - dotSession::load_locales -> chosing language for locales: de_DE.UTF-8
0.137681 - dotSession::start -> ---- finished with session startup
0.137700 - dotSession::load_user -> id: 0
0.137705 - user::get_user -> id: >0<
0.137713 - dotDatabase::getInstance -> connection: database
0.137733 - dotCommon::classload -> require: /www/htdocs/w00f1046/includes/class.styles.php
0.138049 - styles::load -> name: ><
0.138075 - styles::load -> include: /www/htdocs/w00f1046/html/styles/lanrenav3.php
0.138451 - styles::activate -> style = lanrenav3
0.138554 - dotCommon::classload -> require: /www/htdocs/w00f1046/includes/class.admin.php
0.138739 - admin::getInstance -> do
0.138746 - dotSession::getInstance -> do
0.138752 - admin::__construct -> user_id=0
0.138756 - user::load_settings -> load current user settings to $global
0.138765 - dotCommon::classload -> require: /www/htdocs/w00f1046/includes/class.prvmsg.php
0.138945 - dotCommon::classload -> require: /www/htdocs/w00f1046/includes/class.event.php
0.139321 - EVENT::comming_event -> return
0.139331 - dotDatabase::query -> SELECT id FROM events WHERE UNIX_TIMESTAMP(end) > 1744935648 AND active=1 ORDER by begin ASC
0.139561 - dotDatabase::query -> SELECT id FROM events WHERE UNIX_TIMESTAMP(end) < 1744935648 AND active=1 ORDER by begin DESC LIMIT 1
0.139742 - dotCommon::classload -> require: /www/htdocs/w00f1046/includes/class.sitzplan.php
0.140173 - GLOBAL::end global.php -> ---------------------------------------------
0.140277 - dotDatabase::query -> SELECT * FROM sponsoren WHERE group_id = '1' AND active = 1 ORDER BY display_order DESC
0.140408 - dotDatabase::query -> SELECT * FROM sponsoren WHERE group_id = '1' AND active = 1 ORDER BY display_order DESC
0.140534 - dotDatabase::query -> SELECT * FROM sponsoren WHERE group_id = '6' AND active = 1 ORDER BY display_order DESC
0.140675 - dotDatabase::query -> SELECT * FROM sponsoren WHERE group_id = '6' AND active = 1 ORDER BY display_order DESC
0.140775 - dotCommon::classload -> require: /www/htdocs/w00f1046/includes/class.forum.php
0.142000 - FORUM::showthread -> get common forum and thread infos
0.142009 - FORUM::thread_lastvisit -> threadid: 1237
0.142022 - dotDatabase::query -> SELECT postid FROM forum_post WHERE threadid=1237 AND dateline > '' ORDER by postid ASC LIMIT 1
0.142576 - dotDatabase::query -> SELECT threadid, dateline FROM forum_post WHERE postid=13236
0.142807 - dotDatabase::query -> SELECT (COUNT(*)+1) AS position FROM forum_post WHERE threadid=1237 AND dateline < '2011-11-19 20:53:42'
0.143100 - 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.143308 - FORUM::is_moderator -> for forumid: 6
0.143318 - dotDatabase::query -> SELECT moderators FROM forum_main WHERE forumid='6'
0.143463 - admin::getInstance -> do
0.143479 - admin::hasRight -> check for adminright: >0:0 & 32< FALSE
0.143485 - admin::getInstance -> do
0.143492 - admin::hasRight -> check for adminright: >0:0 & 16777216< FALSE
0.143496 - admin::getInstance -> do
0.143503 - admin::hasRight -> check for adminright: >0:0 & 64< FALSE
0.143507 - admin::getInstance -> do
0.143514 - admin::hasRight -> check for adminright: >0:0 & 32< FALSE
0.143520 - admin::getInstance -> do
0.143527 - admin::hasRight -> check for adminright: >0:0 & 16777216< FALSE
0.143531 - admin::getInstance -> do
0.143538 - admin::hasRight -> check for adminright: >0:0 & 64< FALSE
0.143551 - dotCommon::classload -> require: /www/htdocs/w00f1046/includes/class.html.php
0.144246 - dotDatabase::query -> SELECT title FROM forum_cat WHERE catid=3
0.144413 - dotDatabase::query -> UPDATE forum_thread SET hits=hits+1 WHERE threadid='1237'
0.144574 - dotDatabase::query -> SELECT user_id FROM user_orga WHERE display_team=1
0.144701 - FORUM::showthread -> query all postings
0.144711 - 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.145039 - HTML::encode -> __________________[color=#0040FF]#LANrena Neustetten e.V.[/c...
0.145068 - dotDatabase::query -> SELECT `code`, `smily` FROM html_smilies ORDER by LENGTH(code) DESC
0.145948 - dotDatabase::query -> SELECT codetag, codereplacement, twoparams FROM html_code
0.146108 - HTML::encode -> replace run 1
0.146226 - HTML::encode -> replace run 2
0.146284 - HTML::template -> template: >forum_postingpart<
0.146369 - HTML::template -> template: >forum_postingindex<
0.146416 - FORUM::showthread -> check for moderator utils
0.146423 - FORUM::update_visit -> forumid: 6 threadid: 1237 posttime: 2011-11-19 20:53:42
0.146444 - GLOBAL::end userspace -> ---------------------------------------------
0.146448 - PAGE::render -> start rendering page layout
0.146453 - USER::check_for_new_messages -> return
0.146460 - dotSession::getInstance -> do
0.146481 - PAGE::get_boxes -> -------- side=left
0.146494 - dotCommon::classload -> require: /www/htdocs/w00f1046/includes/class.cbox.php
0.147285 - PAGE::get_boxes -> -------- call: left::menu_main
0.147297 - CBOX::menu -> generate Menu Box >news<
0.147311 - HTML::template -> template: >box_menu<
0.147367 - HTML::template_exists -> search: >page_box_left< == 1
0.147384 - HTML::template -> template: >page_box_left<
0.147422 - PAGE::get_boxes -> -------- call: left::menu_site
0.147429 - CBOX::menu -> generate Menu Box >site<
0.147439 - HTML::template -> template: >box_menu_bit<
0.147471 - HTML::template -> template: >box_menu_bit<
0.147483 - HTML::template -> template: >box_menu_bit<
0.147493 - HTML::template -> template: >box_menu_bit<
0.147503 - HTML::template -> template: >box_menu_bit<
0.147513 - HTML::template -> template: >box_menu_bit<
0.147522 - HTML::template -> template: >box_menu<
0.147539 - HTML::template_exists -> search: >page_box_left< == 1
0.147551 - HTML::template -> template: >page_box_left<
0.147565 - PAGE::get_boxes -> -------- call: left::menu_verein
0.147571 - CBOX::menu -> generate Menu Box >verein<
0.147579 - HTML::template -> template: >box_menu_bit<
0.147589 - HTML::template -> template: >box_menu_bit<
0.147599 - HTML::template -> template: >box_menu_bit<
0.147609 - HTML::template -> template: >box_menu_bit<
0.147618 - HTML::template -> template: >box_menu_bit<
0.147627 - HTML::template -> template: >box_menu<
0.147643 - HTML::template_exists -> search: >page_box_left< == 1
0.147654 - HTML::template -> template: >page_box_left<
0.147667 - PAGE::get_boxes -> -------- call: left::menu_event
0.147672 - CBOX::menu -> generate Menu Box >event<
0.147681 - HTML::template -> template: >box_menu_bit<
0.147691 - HTML::template -> template: >box_menu_bit<
0.147700 - HTML::template -> template: >box_menu_bit<
0.147710 - HTML::template -> template: >box_menu_bit<
0.147719 - HTML::template -> template: >box_menu_bit<
0.147728 - HTML::template -> template: >box_menu_bit<
0.147738 - HTML::template -> template: >box_menu_bit<
0.147747 - HTML::template -> template: >box_menu_bit<
0.147756 - HTML::template -> template: >box_menu_bit<
0.147766 - HTML::template -> template: >box_menu<
0.147785 - HTML::template_exists -> search: >page_box_left< == 1
0.147799 - HTML::template -> template: >page_box_left<
0.147814 - PAGE::get_boxes -> -------- call: left::menu_login
0.147820 - CBOX::menu -> generate Menu Box >login<
0.147832 - HTML::template -> template: >box_menu_bit<
0.147843 - HTML::template -> template: >box_menu_bit<
0.147855 - HTML::template -> template: >box_menu<
0.147871 - HTML::template_exists -> search: >page_box_left< == 1
0.147882 - HTML::template -> template: >page_box_left<
0.147898 - PAGE::get_boxes -> -------- side=right
0.147907 - PAGE::get_boxes -> -------- call: right::party
0.147913 - CBOX::party -> generate Box
0.147920 - EVENT::short_event -> id >17<
0.147924 - EVENT::getevent -> id >17<
0.147929 - 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.148044 - dotCommon::classload -> require: /www/htdocs/w00f1046/includes/class.cache.php
0.148254 - CACHE::get -> cache: >event_17::stats< found
0.148294 - HTML::template -> template: >box_event<
0.148364 - HTML::template_exists -> search: >page_box_right< == 1
0.148379 - HTML::template -> template: >page_box_right<
0.148420 - PAGE::get_boxes -> -------- call: right::forum
0.148427 - CBOX::forum -> generate forum box
0.148431 - CBOX::forum_load_threads -> load data
0.148441 - CACHE::get -> cache: >forum::topthreads< found
0.148517 - CBOX::forum_threads -> list all threads in array
0.148526 - 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.148538 - admin::getInstance -> do
0.148557 - HTML::template -> template: >box_forum_bit<
0.148615 - HTML::template -> template: >box_forum_bit<
0.148642 - HTML::template -> template: >box_forum_bit<
0.148667 - HTML::template -> template: >box_forum_bit<
0.148688 - HTML::template -> template: >box_forum_bit<
0.148711 - HTML::template -> template: >box_forum_bit<
0.148724 - HTML::template -> template: >box_forum<
0.148774 - HTML::template_exists -> search: >page_box_right< == 1
0.148788 - HTML::template -> template: >page_box_right<
0.148807 - PAGE::get_boxes -> -------- call: right::vote
0.148813 - CBOX::vote -> generate Box
0.148818 - 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.148995 - HTML::template -> template: >box_vote_nocurrent<
0.149042 - HTML::template_exists -> search: >page_box_right< == 1
0.149059 - HTML::template -> template: >page_box_right<
0.149074 - PAGE::get_boxes -> -------- call: right::banner
0.149108 - CACHE::get -> cache: >sponsoren_7::cbox_lanrenav3.de_DE< found
0.149148 - HTML::template_exists -> search: >page_box_right< == 1
0.149161 - HTML::template -> template: >page_box_right<
0.149175 - PAGE::get_boxes -> -------- call: right::search
0.149181 - CBOX::template -> generate Box with >box_suchen< as template
0.149185 - HTML::template -> template: >box_suchen<
0.149225 - HTML::template_exists -> search: >page_box_right< == 1
0.149236 - HTML::template -> template: >page_box_right<
0.149253 - PAGE::render -> final
0.149258 - PAGE::renderTemplate -> page
0.149263 - PAGE::getHead -> return
0.149266 - dotSession::getInstance -> do
0.149333 - HTML::template -> template: >page<
0.149457 - PAGE::render_template -> final
PHP Includes : 19
DB Queries : 22
Rendering Time : 0.149783
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