Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
e6f43fd0
Commit
e6f43fd0
authored
Aug 23, 2009
by
Hugo Beauzee-Luyssen
Browse files
Removed useless file
parent
14e61af2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Image.h
deleted
100644 → 0
View file @
14e61af2
/*****************************************************************************
* Image.h: Image (light) managment class. (Handle the pixel buffer of a QImage)
*****************************************************************************
* Copyright (C) 2008-2009 the VLMC team
*
* Authors: Hugo Beauzee-Luyssen <hugo@vlmc.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef IMAGE_HPP
#define IMAGE_HPP
#include <QImage>
class
Image
{
public:
Image
(
int
width
,
int
height
)
{
m_pixelsData
=
new
uchar
[
width
*
height
*
4
];
m_image
=
new
QImage
(
m_pixelsData
,
width
,
height
,
width
*
4
,
QImage
::
Format_ARGB32
);
}
~
Image
()
{
delete
m_image
;
delete
m_pixelsData
;
}
uchar
*
getBuffer
()
{
return
m_pixelsData
;
}
QImage
&
getImage
()
{
return
*
(
m_image
);
}
private:
QImage
*
m_image
;
uchar
*
m_pixelsData
;
};
#endif // IMAGE_HPP
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment