Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(480040)

Side by Side Diff: examples/analyzer.cc

Issue 1398: Forward and backward data analyzer
Patch Set: Created 2 years, 5 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /*Daala video codec 1 /*Daala video codec
2 Copyright (c) 2002-2015 Daala project contributors. All rights reserved. 2 Copyright (c) 2002-2015 Daala project contributors. All rights reserved.
3 3
4 Redistribution and use in source and binary forms, with or without 4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions are met: 5 modification, are permitted provided that the following conditions are met:
6 6
7 - Redistributions of source code must retain the above copyright notice, this 7 - Redistributions of source code must retain the above copyright notice, this
8 list of conditions and the following disclaimer. 8 list of conditions and the following disclaimer.
9 9
10 - Redistributions in binary form must reproduce the above copyright notice, 10 - Redistributions in binary form must reproduce the above copyright notice,
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 DaalaDecoder dd; 433 DaalaDecoder dd;
434 434
435 int zoom; 435 int zoom;
436 unsigned char *pixels; 436 unsigned char *pixels;
437 437
438 unsigned char *bsize; 438 unsigned char *bsize;
439 unsigned int bsize_len; 439 unsigned int bsize_len;
440 int bstride; 440 int bstride;
441 bool show_blocks; 441 bool show_blocks;
442 bool show_motion; 442 bool show_motion;
443 bool show_forward;
443 444
444 unsigned int *flags; 445 unsigned int *flags;
445 unsigned int flags_len; 446 unsigned int flags_len;
446 int fstride; 447 int fstride;
447 bool show_skip; 448 bool show_skip;
448 bool show_noref; 449 bool show_noref;
449 bool show_padding; 450 bool show_padding;
450 bool show_dering; 451 bool show_dering;
451 int nhsb; 452 int nhsb;
452 int nhdr; 453 int nhdr;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 bool setZoom(int zoom); 500 bool setZoom(int zoom);
500 501
501 void setShowBlocks(bool show_blocks); 502 void setShowBlocks(bool show_blocks);
502 void setShowMotion(bool show_motion); 503 void setShowMotion(bool show_motion);
503 void setShowSkip(bool show_skip); 504 void setShowSkip(bool show_skip);
504 void setShowNoRef(bool show_noref); 505 void setShowNoRef(bool show_noref);
505 void setShowPadding(bool show_padding); 506 void setShowPadding(bool show_padding);
506 void setShowBits(bool show_bits); 507 void setShowBits(bool show_bits);
507 void setShowDering(bool show_dering); 508 void setShowDering(bool show_dering);
508 void setShowPlane(bool show_plane, int mask); 509 void setShowPlane(bool show_plane, int mask);
510 void setShowForward(bool show_forward);
509 511
510 bool hasPadding(); 512 bool hasPadding();
511 513
512 void onPaint(wxPaintEvent &event); 514 void onPaint(wxPaintEvent &event);
513 void onIdle(wxIdleEvent &event); 515 void onIdle(wxIdleEvent &event);
514 void onMouseMotion(wxMouseEvent &event); 516 void onMouseMotion(wxMouseEvent &event);
515 void onMouseLeaveWindow(wxMouseEvent &event); 517 void onMouseLeaveWindow(wxMouseEvent &event);
516 }; 518 };
517 519
518 BEGIN_EVENT_TABLE(TestPanel, wxPanel) 520 BEGIN_EVENT_TABLE(TestPanel, wxPanel)
(...skipping 30 matching lines...) Expand all
549 void onRestart(wxCommandEvent &event); 551 void onRestart(wxCommandEvent &event);
550 void onAbout(wxCommandEvent &event); 552 void onAbout(wxCommandEvent &event);
551 553
552 bool open(const wxString &path); 554 bool open(const wxString &path);
553 bool setZoom(int zoom); 555 bool setZoom(int zoom);
554 void updateViewMenu(); 556 void updateViewMenu();
555 }; 557 };
556 558
557 enum { 559 enum {
558 wxID_SHOW_BLOCKS = 6000, 560 wxID_SHOW_BLOCKS = 6000,
559 wxID_SHOW_MOTION, 561 wxID_SHOW_FORWARD,
562 wxID_SHOW_BACKWARD,
560 wxID_SHOW_SKIP, 563 wxID_SHOW_SKIP,
561 wxID_SHOW_NOREF, 564 wxID_SHOW_NOREF,
562 wxID_SHOW_PADDING, 565 wxID_SHOW_PADDING,
563 wxID_SHOW_BITS, 566 wxID_SHOW_BITS,
564 wxID_FILTER_BITS, 567 wxID_FILTER_BITS,
565 wxID_SHOW_DERING, 568 wxID_SHOW_DERING,
566 wxID_SHOW_Y, 569 wxID_SHOW_Y,
567 wxID_SHOW_U, 570 wxID_SHOW_U,
568 wxID_SHOW_V, 571 wxID_SHOW_V,
569 wxID_VIEW_RESET, 572 wxID_VIEW_RESET,
570 wxID_NEXT_FRAME, 573 wxID_NEXT_FRAME,
571 wxID_GOTO_FRAME, 574 wxID_GOTO_FRAME,
572 wxID_RESTART, 575 wxID_RESTART,
573 wxID_ACTUAL_SIZE 576 wxID_ACTUAL_SIZE
574 }; 577 };
575 578
576 BEGIN_EVENT_TABLE(TestFrame, wxFrame) 579 BEGIN_EVENT_TABLE(TestFrame, wxFrame)
577 EVT_MENU(wxID_OPEN, TestFrame::onOpen) 580 EVT_MENU(wxID_OPEN, TestFrame::onOpen)
578 EVT_MENU(wxID_CLOSE, TestFrame::onClose) 581 EVT_MENU(wxID_CLOSE, TestFrame::onClose)
579 EVT_MENU(wxID_EXIT, TestFrame::onQuit) 582 EVT_MENU(wxID_EXIT, TestFrame::onQuit)
580 EVT_MENU(wxID_ZOOM_IN, TestFrame::onZoomIn) 583 EVT_MENU(wxID_ZOOM_IN, TestFrame::onZoomIn)
581 EVT_MENU(wxID_ZOOM_OUT, TestFrame::onZoomOut) 584 EVT_MENU(wxID_ZOOM_OUT, TestFrame::onZoomOut)
582 EVT_MENU(wxID_ACTUAL_SIZE, TestFrame::onActualSize) 585 EVT_MENU(wxID_ACTUAL_SIZE, TestFrame::onActualSize)
583 EVT_MENU(wxID_SHOW_BLOCKS, TestFrame::onToggleBlocks) 586 EVT_MENU(wxID_SHOW_BLOCKS, TestFrame::onToggleBlocks)
584 EVT_MENU(wxID_SHOW_MOTION, TestFrame::onToggleBlocks) 587 EVT_MENU(wxID_SHOW_FORWARD, TestFrame::onToggleBlocks)
588 EVT_MENU(wxID_SHOW_BACKWARD, TestFrame::onToggleBlocks)
585 EVT_MENU(wxID_SHOW_SKIP, TestFrame::onResetAndToggleViewMenuCheckBox) 589 EVT_MENU(wxID_SHOW_SKIP, TestFrame::onResetAndToggleViewMenuCheckBox)
586 EVT_MENU(wxID_SHOW_NOREF, TestFrame::onResetAndToggleViewMenuCheckBox) 590 EVT_MENU(wxID_SHOW_NOREF, TestFrame::onResetAndToggleViewMenuCheckBox)
587 EVT_MENU(wxID_SHOW_PADDING, TestFrame::onToggleViewMenuCheckBox) 591 EVT_MENU(wxID_SHOW_PADDING, TestFrame::onToggleViewMenuCheckBox)
588 EVT_MENU(wxID_SHOW_BITS, TestFrame::onResetAndToggleViewMenuCheckBox) 592 EVT_MENU(wxID_SHOW_BITS, TestFrame::onResetAndToggleViewMenuCheckBox)
589 EVT_MENU(wxID_FILTER_BITS, TestFrame::onFilterBits) 593 EVT_MENU(wxID_FILTER_BITS, TestFrame::onFilterBits)
590 EVT_MENU(wxID_SHOW_DERING, TestFrame::onResetAndToggleViewMenuCheckBox) 594 EVT_MENU(wxID_SHOW_DERING, TestFrame::onResetAndToggleViewMenuCheckBox)
591 EVT_MENU(wxID_SHOW_Y, TestFrame::onResetAndToggleViewMenuCheckBox) 595 EVT_MENU(wxID_SHOW_Y, TestFrame::onResetAndToggleViewMenuCheckBox)
592 EVT_MENU(wxID_SHOW_U, TestFrame::onResetAndToggleViewMenuCheckBox) 596 EVT_MENU(wxID_SHOW_U, TestFrame::onResetAndToggleViewMenuCheckBox)
593 EVT_MENU(wxID_SHOW_V, TestFrame::onResetAndToggleViewMenuCheckBox) 597 EVT_MENU(wxID_SHOW_V, TestFrame::onResetAndToggleViewMenuCheckBox)
594 EVT_MENU(wxID_VIEW_RESET, TestFrame::onViewReset) 598 EVT_MENU(wxID_VIEW_RESET, TestFrame::onViewReset)
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 } 781 }
778 if (show_motion) { 782 if (show_motion) {
779 memset(mv_mask, 0, sizeof(char) * dd.getFrameWidth() * dd.getFrameHeight()); 783 memset(mv_mask, 0, sizeof(char) * dd.getFrameWidth() * dd.getFrameHeight());
780 unsigned char *mv_pel = mv_mask; 784 unsigned char *mv_pel = mv_mask;
781 for (int sby = 0; sby < dd.getNVMVBS() + 1; sby++) { 785 for (int sby = 0; sby < dd.getNVMVBS() + 1; sby++) {
782 int y = sby << OD_LOG_MVBSIZE_MIN; 786 int y = sby << OD_LOG_MVBSIZE_MIN;
783 for (int sbx = 0; sbx < dd.getNHMVBS() + 1; sbx++) { 787 for (int sbx = 0; sbx < dd.getNHMVBS() + 1; sbx++) {
784 int x = sbx << OD_LOG_MVBSIZE_MIN; 788 int x = sbx << OD_LOG_MVBSIZE_MIN;
785 if(x < getDecodeWidth() && y < getDecodeHeight()) { 789 if(x < getDecodeWidth() && y < getDecodeHeight()) {
786 od_mv_grid_pt cur = mv[sby * (dd.getNHMVBS()+1) + sbx]; 790 od_mv_grid_pt cur = mv[sby * (dd.getNHMVBS()+1) + sbx];
787 int mv_x = cur.mv[0] >> OD_LOG_MVBSIZE_MIN; 791 int mv_x;
788 int mv_y = cur.mv[1] >> OD_LOG_MVBSIZE_MIN; 792 int mv_y;
793 if (show_forward) {
794 » » mv_x = cur.mv[0] >> OD_LOG_MVBSIZE_MIN;
795 » » mv_y = cur.mv[1] >> OD_LOG_MVBSIZE_MIN;
796 » » }
797 » » else {
798 » » mv_x = cur.mv1[0] >> OD_LOG_MVBSIZE_MIN;
799 » » mv_y = cur.mv1[1] >> OD_LOG_MVBSIZE_MIN;
800 » » }
789 int xx = x + mv_x; 801 int xx = x + mv_x;
790 int yy = y + mv_y; 802 int yy = y + mv_y;
791 if(xx < 0) { 803 if(xx < 0) {
792 mv_x += xx; 804 mv_x += xx;
793 } 805 }
794 else if(xx > getDecodeWidth()) { 806 else if(xx > getDecodeWidth()) {
795 mv_x += getDecodeWidth() - xx; 807 mv_x += getDecodeWidth() - xx;
796 } 808 }
797 if(yy < 0) { 809 if(yy < 0) {
798 mv_y += yy; 810 mv_y += yy;
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 } 1058 }
1047 } 1059 }
1048 1060
1049 void TestPanel::setShowPlane(bool show_plane, int mask) { 1061 void TestPanel::setShowPlane(bool show_plane, int mask) {
1050 if (show_plane) { 1062 if (show_plane) {
1051 plane_mask |= mask; 1063 plane_mask |= mask;
1052 } 1064 }
1053 else { 1065 else {
1054 plane_mask &= ~mask; 1066 plane_mask &= ~mask;
1055 } 1067 }
1068 }
1069
1070 void TestPanel::setShowForward(bool show_forward) {
1071 this->show_forward = show_forward;
1056 } 1072 }
1057 1073
1058 bool TestPanel::hasPadding() { 1074 bool TestPanel::hasPadding() {
1059 return dd.getFrameWidth() > dd.getWidth() || 1075 return dd.getFrameWidth() > dd.getWidth() ||
1060 dd.getFrameHeight() > dd.getHeight(); 1076 dd.getFrameHeight() > dd.getHeight();
1061 } 1077 }
1062 1078
1063 void TestPanel::setShowNoRef(bool show_noref) { 1079 void TestPanel::setShowNoRef(bool show_noref) {
1064 this->show_noref = show_noref; 1080 this->show_noref = show_noref;
1065 } 1081 }
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 mb->Append(fileMenu, _("&File")); 1400 mb->Append(fileMenu, _("&File"));
1385 1401
1386 viewMenu = new wxMenu(); 1402 viewMenu = new wxMenu();
1387 viewMenu->Append(wxID_ZOOM_IN, _("Zoom-In\tCtrl-+"), 1403 viewMenu->Append(wxID_ZOOM_IN, _("Zoom-In\tCtrl-+"),
1388 _("Double image size")); 1404 _("Double image size"));
1389 viewMenu->Append(wxID_ZOOM_OUT, _("Zoom-Out\tCtrl--"), 1405 viewMenu->Append(wxID_ZOOM_OUT, _("Zoom-Out\tCtrl--"),
1390 _("Half image size")); 1406 _("Half image size"));
1391 viewMenu->Append(wxID_ACTUAL_SIZE, _("Actual size\tCtrl-0"), 1407 viewMenu->Append(wxID_ACTUAL_SIZE, _("Actual size\tCtrl-0"),
1392 _("Actual size of the frame")); 1408 _("Actual size of the frame"));
1393 viewMenu->AppendSeparator(); 1409 viewMenu->AppendSeparator();
1394 viewMenu->AppendCheckItem(wxID_SHOW_MOTION, 1410
1395 _("&MC Blocks\tCtrl-M"), 1411 wxMenu *motionMenu = new wxMenu();
1412 motionMenu->AppendCheckItem(wxID_SHOW_FORWARD, _("Forward Prediction\tCtrl-F") ,
1413 _("&Show Forward Prediction"));
1414 motionMenu->AppendCheckItem(wxID_SHOW_BACKWARD, _("Backward Prediction\tCtrl-M "),
1415 _("&Show Backward Prediction"));
1416 viewMenu->AppendSubMenu(motionMenu, _("&MC Blocks\tCtrl-M"),
1396 _("Show motion-compensation block sizes")); 1417 _("Show motion-compensation block sizes"));
1418
1397 viewMenu->AppendCheckItem(wxID_SHOW_BLOCKS, _("&Transform Blocks\tCtrl-B"), 1419 viewMenu->AppendCheckItem(wxID_SHOW_BLOCKS, _("&Transform Blocks\tCtrl-B"),
1398 _("Show transform block sizes")); 1420 _("Show transform block sizes"));
1399 viewMenu->AppendSeparator(); 1421 viewMenu->AppendSeparator();
1400 viewMenu->AppendCheckItem(wxID_SHOW_PADDING, _("&Padding\tCtrl-P"), 1422 viewMenu->AppendCheckItem(wxID_SHOW_PADDING, _("&Padding\tCtrl-P"),
1401 _("Show padding area")); 1423 _("Show padding area"));
1402 viewMenu->AppendCheckItem(wxID_SHOW_SKIP, _("&Skip\tCtrl-S"), 1424 viewMenu->AppendCheckItem(wxID_SHOW_SKIP, _("&Skip\tCtrl-S"),
1403 _("Show skip bands overlay")); 1425 _("Show skip bands overlay"));
1404 viewMenu->AppendCheckItem(wxID_SHOW_NOREF, _("&No-Ref\tCtrl-N"), 1426 viewMenu->AppendCheckItem(wxID_SHOW_NOREF, _("&No-Ref\tCtrl-N"),
1405 _("Show no-ref bands overlay")); 1427 _("Show no-ref bands overlay"));
1406 viewMenu->AppendSeparator(); 1428 viewMenu->AppendSeparator();
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 SetClientSize(panel->GetSize()); 1512 SetClientSize(panel->GetSize());
1491 panel->render(); 1513 panel->render();
1492 panel->Refresh(); 1514 panel->Refresh();
1493 return true; 1515 return true;
1494 } 1516 }
1495 return false; 1517 return false;
1496 } 1518 }
1497 1519
1498 void TestFrame::onToggleBlocks(wxCommandEvent &event) { 1520 void TestFrame::onToggleBlocks(wxCommandEvent &event) {
1499 GetMenuBar()->Check(wxID_SHOW_BLOCKS, false); 1521 GetMenuBar()->Check(wxID_SHOW_BLOCKS, false);
1500 GetMenuBar()->Check(wxID_SHOW_MOTION, false); 1522 GetMenuBar()->Check(wxID_SHOW_FORWARD, false);
1523 GetMenuBar()->Check(wxID_SHOW_BACKWARD, false);
1501 onToggleViewMenuCheckBox(event); 1524 onToggleViewMenuCheckBox(event);
1525 panel->setShowForward(event.GetId() == wxID_SHOW_FORWARD);
1502 } 1526 }
1503 1527
1504 void TestFrame::onToggleViewMenuCheckBox(wxCommandEvent &event) { 1528 void TestFrame::onToggleViewMenuCheckBox(wxCommandEvent &event) {
1505 GetMenuBar()->Check(event.GetId(), event.IsChecked()); 1529 GetMenuBar()->Check(event.GetId(), event.IsChecked());
1506 updateViewMenu(); 1530 updateViewMenu();
1507 } 1531 }
1508 1532
1509 void TestFrame::onResetAndToggleViewMenuCheckBox(wxCommandEvent &event) { 1533 void TestFrame::onResetAndToggleViewMenuCheckBox(wxCommandEvent &event) {
1510 GetMenuBar()->Check(wxID_SHOW_BITS, false); 1534 GetMenuBar()->Check(wxID_SHOW_BITS, false);
1511 GetMenuBar()->Check(wxID_SHOW_DERING, false); 1535 GetMenuBar()->Check(wxID_SHOW_DERING, false);
1512 int id = event.GetId(); 1536 int id = event.GetId();
1513 if (id != wxID_SHOW_NOREF && id != wxID_SHOW_SKIP) { 1537 if (id != wxID_SHOW_NOREF && id != wxID_SHOW_SKIP) {
1514 GetMenuBar()->Check(wxID_SHOW_NOREF, false); 1538 GetMenuBar()->Check(wxID_SHOW_NOREF, false);
1515 GetMenuBar()->Check(wxID_SHOW_SKIP, false); 1539 GetMenuBar()->Check(wxID_SHOW_SKIP, false);
1516 } 1540 }
1517 if (id != wxID_SHOW_Y && id != wxID_SHOW_U && id != wxID_SHOW_V) { 1541 if (id != wxID_SHOW_Y && id != wxID_SHOW_U && id != wxID_SHOW_V) {
1518 GetMenuBar()->Check(wxID_SHOW_Y, true); 1542 GetMenuBar()->Check(wxID_SHOW_Y, true);
1519 GetMenuBar()->Check(wxID_SHOW_U, true); 1543 GetMenuBar()->Check(wxID_SHOW_U, true);
1520 GetMenuBar()->Check(wxID_SHOW_V, true); 1544 GetMenuBar()->Check(wxID_SHOW_V, true);
1521 } 1545 }
1522 onToggleViewMenuCheckBox(event); 1546 onToggleViewMenuCheckBox(event);
1523 } 1547 }
1524 1548
1525 void TestFrame::updateViewMenu() { 1549 void TestFrame::updateViewMenu() {
1526 panel->setShowBlocks(GetMenuBar()->IsChecked(wxID_SHOW_BLOCKS)); 1550 panel->setShowBlocks(GetMenuBar()->IsChecked(wxID_SHOW_BLOCKS));
1527 panel->setShowMotion(GetMenuBar()->IsChecked(wxID_SHOW_MOTION)); 1551 panel->setShowMotion(GetMenuBar()->IsChecked(wxID_SHOW_FORWARD)
1552 || GetMenuBar()->IsChecked(wxID_SHOW_BACKWARD));
1528 panel->setShowSkip(GetMenuBar()->IsChecked(wxID_SHOW_SKIP)); 1553 panel->setShowSkip(GetMenuBar()->IsChecked(wxID_SHOW_SKIP));
1529 panel->setShowNoRef(GetMenuBar()->IsChecked(wxID_SHOW_NOREF)); 1554 panel->setShowNoRef(GetMenuBar()->IsChecked(wxID_SHOW_NOREF));
1530 panel->setShowPadding(GetMenuBar()->IsChecked(wxID_SHOW_PADDING)); 1555 panel->setShowPadding(GetMenuBar()->IsChecked(wxID_SHOW_PADDING));
1531 panel->setShowBits(GetMenuBar()->IsChecked(wxID_SHOW_BITS)); 1556 panel->setShowBits(GetMenuBar()->IsChecked(wxID_SHOW_BITS));
1532 panel->setShowDering(GetMenuBar()->IsChecked(wxID_SHOW_DERING)); 1557 panel->setShowDering(GetMenuBar()->IsChecked(wxID_SHOW_DERING));
1533 panel->setShowPlane(GetMenuBar()->IsChecked(wxID_SHOW_Y), OD_LUMA_MASK); 1558 panel->setShowPlane(GetMenuBar()->IsChecked(wxID_SHOW_Y), OD_LUMA_MASK);
1534 panel->setShowPlane(GetMenuBar()->IsChecked(wxID_SHOW_U), OD_CB_MASK); 1559 panel->setShowPlane(GetMenuBar()->IsChecked(wxID_SHOW_U), OD_CB_MASK);
1535 panel->setShowPlane(GetMenuBar()->IsChecked(wxID_SHOW_V), OD_CR_MASK); 1560 panel->setShowPlane(GetMenuBar()->IsChecked(wxID_SHOW_V), OD_CR_MASK);
1536 SetClientSize(panel->GetSize()); 1561 SetClientSize(panel->GetSize());
1537 panel->render(); 1562 panel->render();
1538 panel->Refresh(false); 1563 panel->Refresh(false);
1539 } 1564 }
1540 1565
1541 void TestFrame::onViewReset(wxCommandEvent &WXUNUSED(event)) { 1566 void TestFrame::onViewReset(wxCommandEvent &WXUNUSED(event)) {
1542 GetMenuBar()->Check(wxID_SHOW_BITS, false); 1567 GetMenuBar()->Check(wxID_SHOW_BITS, false);
1543 GetMenuBar()->Check(wxID_SHOW_DERING, false); 1568 GetMenuBar()->Check(wxID_SHOW_DERING, false);
1544 GetMenuBar()->Check(wxID_SHOW_BLOCKS, false); 1569 GetMenuBar()->Check(wxID_SHOW_BLOCKS, false);
1545 GetMenuBar()->Check(wxID_SHOW_MOTION, false); 1570 GetMenuBar()->Check(wxID_SHOW_FORWARD, false);
1571 GetMenuBar()->Check(wxID_SHOW_BACKWARD, false);
1546 GetMenuBar()->Check(wxID_SHOW_PADDING, false); 1572 GetMenuBar()->Check(wxID_SHOW_PADDING, false);
1547 GetMenuBar()->Check(wxID_SHOW_NOREF, false); 1573 GetMenuBar()->Check(wxID_SHOW_NOREF, false);
1548 GetMenuBar()->Check(wxID_SHOW_SKIP, false); 1574 GetMenuBar()->Check(wxID_SHOW_SKIP, false);
1549 GetMenuBar()->Check(wxID_SHOW_Y, true); 1575 GetMenuBar()->Check(wxID_SHOW_Y, true);
1550 GetMenuBar()->Check(wxID_SHOW_U, true); 1576 GetMenuBar()->Check(wxID_SHOW_U, true);
1551 GetMenuBar()->Check(wxID_SHOW_V, true); 1577 GetMenuBar()->Check(wxID_SHOW_V, true);
1552 panel->resetFilterBits(); 1578 panel->resetFilterBits();
1553 updateViewMenu(); 1579 updateViewMenu();
1554 } 1580 }
1555 1581
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 bool TestApp::OnCmdLineParsed(wxCmdLineParser &parser) { 1655 bool TestApp::OnCmdLineParsed(wxCmdLineParser &parser) {
1630 frame = new TestFrame(parser.Found(_(OD_BIT_ACCOUNTING_SWITCH))); 1656 frame = new TestFrame(parser.Found(_(OD_BIT_ACCOUNTING_SWITCH)));
1631 frame->Show(); 1657 frame->Show();
1632 if (parser.GetParamCount() > 0) { 1658 if (parser.GetParamCount() > 0) {
1633 return frame->open(parser.GetParam(0)); 1659 return frame->open(parser.GetParam(0));
1634 } 1660 }
1635 return true; 1661 return true;
1636 } 1662 }
1637 1663
1638 IMPLEMENT_APP(TestApp) 1664 IMPLEMENT_APP(TestApp)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld