summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-11 11:07:18 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-12 09:14:05 +0100
commit73654117144c6de0ec4efe39ddc88485df546cc9 (patch)
tree4402a65c2988ba6e678c4cf51f6e2d48cad424e5 /src/wx
parentb1dc9c3a2f7e55c9afc5bf2d5b465371b048e14f (diff)
Move raw_convert into libdcp.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/audio_mapping_view.cc3
-rw-r--r--src/wx/colour_conversion_editor.cc3
-rw-r--r--src/wx/config_dialog.cc4
-rw-r--r--src/wx/content_properties_dialog.cc3
-rw-r--r--src/wx/image_sequence_dialog.cc4
-rw-r--r--src/wx/playhead_to_frame_dialog.cc4
-rw-r--r--src/wx/time_picker.cc3
-rw-r--r--src/wx/timing_panel.cc3
-rw-r--r--src/wx/video_waveform_plot.cc3
9 files changed, 20 insertions, 10 deletions
diff --git a/src/wx/audio_mapping_view.cc b/src/wx/audio_mapping_view.cc
index 53169ad3e..1ec9dd5b2 100644
--- a/src/wx/audio_mapping_view.cc
+++ b/src/wx/audio_mapping_view.cc
@@ -24,10 +24,10 @@
#include "lib/audio_mapping.h"
#include "lib/util.h"
-#include "lib/raw_convert.h"
#include "audio_mapping_view.h"
#include "wx_util.h"
#include "audio_gain_dialog.h"
+#include <dcp/raw_convert.h>
#include <dcp/types.h>
#include <wx/wx.h>
#include <wx/renderer.h>
@@ -45,6 +45,7 @@ using std::vector;
using std::pair;
using std::make_pair;
using boost::shared_ptr;
+using dcp::raw_convert;
#define INDICATOR_SIZE 16
#define LEFT_WIDTH 48
diff --git a/src/wx/colour_conversion_editor.cc b/src/wx/colour_conversion_editor.cc
index 3d4363cb9..0a775b489 100644
--- a/src/wx/colour_conversion_editor.cc
+++ b/src/wx/colour_conversion_editor.cc
@@ -19,9 +19,9 @@
*/
#include "lib/colour_conversion.h"
-#include "lib/raw_convert.h"
#include "wx_util.h"
#include "colour_conversion_editor.h"
+#include <dcp/raw_convert.h>
#include <dcp/gamma_transfer_function.h>
#include <dcp/modified_gamma_transfer_function.h>
#include <wx/spinctrl.h>
@@ -32,6 +32,7 @@ using std::string;
using std::cout;
using boost::shared_ptr;
using boost::dynamic_pointer_cast;
+using dcp::raw_convert;
ColourConversionEditor::ColourConversionEditor (wxWindow* parent, bool yuv)
: wxPanel (parent, wxID_ANY)
diff --git a/src/wx/config_dialog.cc b/src/wx/config_dialog.cc
index 3aaba1793..0098ecb2b 100644
--- a/src/wx/config_dialog.cc
+++ b/src/wx/config_dialog.cc
@@ -39,12 +39,11 @@
#include "lib/dcp_content_type.h"
#include "lib/log.h"
#include "lib/util.h"
-#include "lib/raw_convert.h"
#include "lib/cross.h"
#include "lib/exceptions.h"
+#include <dcp/raw_convert.h>
#include <dcp/exceptions.h>
#include <dcp/certificate_chain.h>
-#include <dcp/raw_convert.h>
#include <wx/stdpaths.h>
#include <wx/preferences.h>
#include <wx/spinctrl.h>
@@ -64,6 +63,7 @@ using boost::bind;
using boost::shared_ptr;
using boost::function;
using boost::optional;
+using dcp::raw_convert;
class Page
{
diff --git a/src/wx/content_properties_dialog.cc b/src/wx/content_properties_dialog.cc
index 04abefc14..acc232df4 100644
--- a/src/wx/content_properties_dialog.cc
+++ b/src/wx/content_properties_dialog.cc
@@ -20,10 +20,10 @@
#include "content_properties_dialog.h"
#include "wx_util.h"
-#include "lib/raw_convert.h"
#include "lib/content.h"
#include "lib/video_content.h"
#include "lib/audio_content.h"
+#include <dcp/raw_convert.h>
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>
@@ -33,6 +33,7 @@ using std::pair;
using std::map;
using boost::shared_ptr;
using boost::dynamic_pointer_cast;
+using dcp::raw_convert;
ContentPropertiesDialog::ContentPropertiesDialog (wxWindow* parent, shared_ptr<Content> content)
: TableDialog (parent, _("Content Properties"), 2, 1, false)
diff --git a/src/wx/image_sequence_dialog.cc b/src/wx/image_sequence_dialog.cc
index 3af48bda6..6200018d1 100644
--- a/src/wx/image_sequence_dialog.cc
+++ b/src/wx/image_sequence_dialog.cc
@@ -20,7 +20,9 @@
#include "wx_util.h"
#include "image_sequence_dialog.h"
-#include "lib/raw_convert.h"
+#include <dcp/raw_convert.h>
+
+using dcp::raw_convert;
ImageSequenceDialog::ImageSequenceDialog (wxWindow* parent)
: TableDialog (parent, _("Add image sequence"), 2, 1, true)
diff --git a/src/wx/playhead_to_frame_dialog.cc b/src/wx/playhead_to_frame_dialog.cc
index 462e3d5e1..af20c1592 100644
--- a/src/wx/playhead_to_frame_dialog.cc
+++ b/src/wx/playhead_to_frame_dialog.cc
@@ -19,7 +19,9 @@
*/
#include "playhead_to_frame_dialog.h"
-#include "lib/raw_convert.h"
+#include <dcp/raw_convert.h>
+
+using dcp::raw_convert;
PlayheadToFrameDialog::PlayheadToFrameDialog (wxWindow* parent, int fps)
: TableDialog (parent, _("Go to frame"), 2, 1, true)
diff --git a/src/wx/time_picker.cc b/src/wx/time_picker.cc
index 4706c896b..1378af967 100644
--- a/src/wx/time_picker.cc
+++ b/src/wx/time_picker.cc
@@ -20,7 +20,7 @@
#include "time_picker.h"
#include "wx_util.h"
-#include "lib/raw_convert.h"
+#include <dcp/raw_convert.h>
#include <wx/spinctrl.h>
#include <boost/bind.hpp>
#include <iomanip>
@@ -32,6 +32,7 @@ using std::max;
using std::string;
using std::cout;
using boost::bind;
+using dcp::raw_convert;
TimePicker::TimePicker (wxWindow* parent, wxDateTime time)
: wxPanel (parent)
diff --git a/src/wx/timing_panel.cc b/src/wx/timing_panel.cc
index 01494f17b..f4de55028 100644
--- a/src/wx/timing_panel.cc
+++ b/src/wx/timing_panel.cc
@@ -26,12 +26,12 @@
#include "move_to_dialog.h"
#include "lib/content.h"
#include "lib/image_content.h"
-#include "lib/raw_convert.h"
#include "lib/subtitle_content.h"
#include "lib/dcp_subtitle_content.h"
#include "lib/audio_content.h"
#include "lib/text_subtitle_content.h"
#include "lib/video_content.h"
+#include <dcp/raw_convert.h>
#include <boost/foreach.hpp>
#include <set>
#include <iostream>
@@ -42,6 +42,7 @@ using std::set;
using boost::shared_ptr;
using boost::dynamic_pointer_cast;
using boost::optional;
+using dcp::raw_convert;
TimingPanel::TimingPanel (ContentPanel* p, FilmViewer* viewer)
/* horrid hack for apparent lack of context support with wxWidgets i18n code */
diff --git a/src/wx/video_waveform_plot.cc b/src/wx/video_waveform_plot.cc
index 5afe9ee4b..efaf76e28 100644
--- a/src/wx/video_waveform_plot.cc
+++ b/src/wx/video_waveform_plot.cc
@@ -22,9 +22,9 @@
#include "film_viewer.h"
#include "wx_util.h"
#include "lib/image.h"
-#include "lib/raw_convert.h"
#include "lib/dcp_video.h"
#include <dcp/openjpeg_image.h>
+#include <dcp/raw_convert.h>
#include <wx/rawbmp.h>
#include <wx/graphics.h>
#include <boost/bind.hpp>
@@ -35,6 +35,7 @@ using std::min;
using std::string;
using boost::weak_ptr;
using boost::shared_ptr;
+using dcp::raw_convert;
int const VideoWaveformPlot::_vertical_margin = 8;