Skip to content

Commit 43b7f08

Browse files
committed
Nikon
Signed-off-by: Peter Kovář <peter.kovar@reflexion.tv>
1 parent ac3950c commit 43b7f08

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/iv/imageviewer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ IsSpecSrgb(const ImageSpec& spec)
6464
static const char *s_file_filters = ""
6565
"Image Files (*.bmp *.cin *.dcm *.dds *.dpx *.fits *.gif *.hdr *.ico *.iff "
6666
"*.jpg *.jpe *.jpeg *.jif *.jfif *.jfi *.jp2 *.j2k *.jxl *.exr *.png *.pbm *.pgm "
67-
"*.ppm *.psd *.ptex *.R3D *.r3d *.rla *.sgi *.rgb *.rgba *.bw *.int *.inta *.pic *.tga "
67+
"*.ppm *.psd *.ptex *.R3D *.r3d *.NEV *.nev *.rla *.sgi *.rgb *.rgba *.bw *.int *.inta *.pic *.tga "
6868
"*.tpic *.tif *.tiff *.tx *.env *.sm *.vsm *.vdb *.webp *.zfile);;"
6969
"BMP (*.bmp);;"
7070
"Cineon (*.cin);;"
@@ -79,6 +79,7 @@ static const char *s_file_filters = ""
7979
"JPEG (*.jpg *.jpe *.jpeg *.jif *.jfif *.jfi);;"
8080
"JPEG-2000 (*.jp2 *.j2k);;"
8181
"JPEG XL (*.jxl);;"
82+
"Nikon (*.NEV *.nev);;"
8283
"OpenEXR (*.exr);;"
8384
"OpenVDB (*.vdb);;"
8485
"PhotoShop (*.psd);;"

src/r3d.imageio/r3dinput.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ OIIO_EXPORT const char*
165165
r3d_imageio_library_version()
166166
{
167167
// Note: SDK version can differ from the actual library loaded
168-
return "R3D 8.5.1";
168+
return "R3D 9.0.0 Beta 1";
169169
}
170170

171171
OIIO_EXPORT ImageInput*
@@ -174,7 +174,7 @@ r3d_input_imageio_create()
174174
return new R3dInput;
175175
}
176176

177-
OIIO_EXPORT const char* r3d_input_extensions[] = { "r3d", nullptr };
177+
OIIO_EXPORT const char* r3d_input_extensions[] = { "r3d", "nev", nullptr };
178178

179179
OIIO_PLUGIN_EXPORTS_END
180180

@@ -838,8 +838,6 @@ R3dInput::open(const std::string& name, ImageSpec& newspec,
838838
// Interleaved RGB decoding in 16-bits per pixel
839839
// m_async_decompress_job.PixelType
840840
// = R3DSDK::PixelType_16Bit_RGB_Interleaved;
841-
// m_async_decompress_job.BytesPerRow = m_channels * width
842-
// * sizeof(uint16_t);
843841

844842
// m_async_decompress_job.ImageProcessing = NULL;
845843
// m_async_decompress_job.HdrProcessing = NULL;
@@ -857,7 +855,6 @@ R3dInput::open(const std::string& name, ImageSpec& newspec,
857855

858856
// Interleaved RGB decoding in 16-bits per pixel
859857
m_job.PixelType = R3DSDK::PixelType_16Bit_RGB_Interleaved;
860-
m_job.BytesPerRow = m_channels * width * sizeof(uint16_t);
861858

862859
m_job.ImageProcessing = NULL;
863860
m_job.HdrProcessing = NULL;

0 commit comments

Comments
 (0)