diff options
author | Peter Schlaile <peter@schlaile.de> | 2008-01-31 18:28:16 +0300 |
---|---|---|
committer | Peter Schlaile <peter@schlaile.de> | 2008-01-31 18:28:16 +0300 |
commit | 134fdd6d5a2ef07025a58325bc10efe62a87b269 (patch) | |
tree | 23ee9fa008591e8cf0d216adaa8a3691bdd1dde8 /source/blender/src/header_seq.c | |
parent | b7e6ef04f8b02aaec51beedb95f09153a4a81ab9 (diff) |
== Sequencer ==
Updated image preview a lot:
* Added a histogram-scope
* Added optional title-safe margins
* Re-arranged header, so that only usefull buttons are shown in image
preview mode
* Added zebra-mode for visual feedback of over-exposure regions
(helps in before and especially after color correction :)
* Added color-seperation-mode for waveform-display
* Show 10%, 70% and 90% hints in waveform-display
Diffstat (limited to 'source/blender/src/header_seq.c')
-rw-r--r-- | source/blender/src/header_seq.c | 92 |
1 files changed, 62 insertions, 30 deletions
diff --git a/source/blender/src/header_seq.c b/source/blender/src/header_seq.c index 1880484a09f..a937960036c 100644 --- a/source/blender/src/header_seq.c +++ b/source/blender/src/header_seq.c @@ -658,22 +658,23 @@ void seq_buttons() xmax= GetButStringLength("View"); uiDefPulldownBut(block,seq_viewmenu, NULL, "View", xco, -2, xmax-3, 24, ""); xco+=xmax; - - xmax= GetButStringLength("Select"); - uiDefPulldownBut(block,seq_selectmenu, NULL, "Select", xco, -2, xmax-3, 24, ""); - xco+=xmax; - - xmax= GetButStringLength("Marker"); - uiDefPulldownBut(block,seq_markermenu, NULL, "Marker", xco, -2, xmax-3, 24, ""); - xco+=xmax; + if (sseq->mainb == 0) { + xmax= GetButStringLength("Select"); + uiDefPulldownBut(block,seq_selectmenu, NULL, "Select", xco, -2, xmax-3, 24, ""); + xco+=xmax; + + xmax= GetButStringLength("Marker"); + uiDefPulldownBut(block,seq_markermenu, NULL, "Marker", xco, -2, xmax-3, 24, ""); + xco+=xmax; - xmax= GetButStringLength("Add"); - uiDefPulldownBut(block, seq_addmenu, NULL, "Add", xco, -2, xmax-3, 24, ""); - xco+= xmax; + xmax= GetButStringLength("Add"); + uiDefPulldownBut(block, seq_addmenu, NULL, "Add", xco, -2, xmax-3, 24, ""); + xco+= xmax; - xmax= GetButStringLength("Strip"); - uiDefPulldownBut(block, seq_editmenu, NULL, "Strip", xco, -2, xmax-3, 24, ""); - xco+= xmax; + xmax= GetButStringLength("Strip"); + uiDefPulldownBut(block, seq_editmenu, NULL, "Strip", xco, -2, xmax-3, 24, ""); + xco+= xmax; + } /* end of pull down menus */ uiBlockSetEmboss(block, UI_EMBOSS); @@ -685,17 +686,19 @@ void seq_buttons() "|Sequence %x0" "|Image Preview %x1" "|Luma Waveform %x2" - "|Chroma Vectorscope %x3", + "|Chroma Vectorscope %x3" + "|Histogram %x4", xco,0,XIC+10,YIC, &sseq->mainb, 0.0, 3.0, 0, 0, "Shows the sequence output image preview"); xco+= 8 + XIC+10; - /* CHANNEL shown in 3D preview */ if(sseq->mainb) { int minchan = 0; + /* CHANNEL shown in image preview */ + if (G.scene->ed && ((Editing*)G.scene->ed)->metastack.first) minchan = -BLI_countlist(&((Editing*)G.scene->ed)->metastack); @@ -705,22 +708,51 @@ void seq_buttons() "The channel number shown in the image preview. 0 is the result of all strips combined."); xco+= 8 + XIC*3.5; + + if (sseq->mainb == SEQ_DRAW_IMG_IMBUF) { + uiDefButS(block, MENU, B_REDR, + "Show zebra: %t" + "|Z 110 %x110" + "|Z 100 %x100" + "|Z 95 %x95" + "|Z 90 %x90" + "|Z 70 %x70" + "|Z Off %x0", + xco,0,3.0 * XIC, YIC, &sseq->zebra, + 0,0,0,0, + "Show overexposed " + "areas with zebra stripes"); + + xco+= 8 + XIC*3.0; + + uiDefButBitI(block, TOG, SEQ_DRAW_SAFE_MARGINS, + B_REDR, "T", + xco,0,XIC,YIC, &sseq->flag, + 0, 0, 0, 0, + "Draw title safe margins in preview"); + xco+= 8 + XIC; + } + + if (sseq->mainb == SEQ_DRAW_IMG_WAVEFORM) { + uiDefButBitI(block, TOG, SEQ_DRAW_COLOR_SEPERATED, + B_REDR, "CS", + xco,0,XIC,YIC, &sseq->flag, + 0, 0, 0, 0, + "Seperate color channels in preview"); + xco+= 8 + XIC; + } + } else { + /* ZOOM and BORDER */ + xco+= 8; + uiBlockBeginAlign(block); + uiDefIconButI(block, TOG, B_VIEW2DZOOM, ICON_VIEWZOOM, xco,0,XIC,YIC, &viewmovetemp, 0, 0, 0, 0, "Zooms view in and out (Ctrl MiddleMouse)"); + uiDefIconBut(block, BUT, B_IPOBORDER, ICON_BORDERMOVE, xco+=XIC,0,XIC,YIC, 0, 0, 0, 0, 0, "Zooms view to fit area"); + uiBlockEndAlign(block); + + xco+= 16; } - - /* ZOOM and BORDER */ - xco+= 8; - uiBlockBeginAlign(block); - uiDefIconButI(block, TOG, B_VIEW2DZOOM, ICON_VIEWZOOM, xco,0,XIC,YIC, &viewmovetemp, 0, 0, 0, 0, "Zooms view in and out (Ctrl MiddleMouse)"); - uiDefIconBut(block, BUT, B_IPOBORDER, ICON_BORDERMOVE, xco+=XIC,0,XIC,YIC, 0, 0, 0, 0, 0, "Zooms view to fit area"); - uiBlockEndAlign(block); - - /* CLEAR MEM */ - xco+= 8; - - /* CLEAR MEM */ - xco+= 8; - uiDefBut(block, BUT, B_SEQCLEAR, "Refresh", xco+=XIC,0,3*XIC,YIC, 0, 0, 0, 0, 0, "Clears all buffered images in memory"); + uiDefBut(block, BUT, B_SEQCLEAR, "Refresh", xco,0,3*XIC,YIC, 0, 0, 0, 0, 0, "Clears all buffered images in memory"); uiDrawBlock(block); } |