Dali 3D User Interface Engine
Classes | Namespaces | Enumerations | Functions | Variables
loader-bmp.cpp File Reference
#include "loader-bmp.h"
#include <dali/public-api/common/vector-wrapper.h>
#include <dali/integration-api/debug.h>
#include <dali/integration-api/bitmap.h>
#include <cstdlib>
Include dependency graph for loader-bmp.cpp:

Go to the source code of this file.

Classes

struct  Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BmpFileHeader
 
struct  Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BmpInfoHeader
 

Namespaces

namespace  Dali
 The top level DALi namespace.
 
namespace  Dali::TizenPlatform
 
namespace  Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}
 

Enumerations

enum  Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BmpFormat {
  Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_RGB1 = 14, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_RGB4, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_RGB8, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_RGB555,
  Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_BITFIELDS555, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_BITFIELDS32, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_RLE8, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_RLE4,
  Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_BITFIELDS32V4, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_RGB24V5, Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BMP_NOTEXIST
}
 

Functions

struct
Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BmpFileHeader 
Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::__attribute__ ((__packed__))
 
template<typename T >
bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::ReadHeader (FILE *fp, T &header)
 Template function to read from the file directly into our structure. More...
 
bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::LoadBmpHeader (FILE *fp, unsigned int &width, unsigned int &height, BmpFileHeader &fileHeader, BmpInfoHeader &infoHeader)
 
bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB24V5 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown, unsigned int rowStride, unsigned int padding)
 function to decode format BI_RGB & bpp = 24 & bmp version5. More...
 
bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeBF32V4 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown, unsigned int rowStride, unsigned int padding)
 function to decode format BI_BITFIELDS & bpp = 32 & bmp version4. More...
 
bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeBF32 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown, unsigned int rowStride, unsigned int padding)
 function to decode format BI_BITFIELDS & bpp = 32 More...
 
bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeBF565 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown)
 function to decode format BI_BITFIELDS & bpp = 16 & R:G:B = 5:6:5 More...
 
bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeBF555 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown)
 function to decode format BI_BITFIELDS & bpp = 16 & R:G:B = 5:5:5 More...
 
bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB555 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown)
 function to decode format BI_RGB & bpp = 16 & R:G:B = 5:5:5 More...
 
bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB1 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown)
 function to decode format BI_RGB & bpp = 1 More...
 
bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB4 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown)
 function to decode format BI_RGB & bpp = 4 More...
 
bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB8 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown)
 function to decode format BI_RGB & bpp = 8 More...
 
bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRLE4 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown)
 function to decode format BI_RLE4 & bpp = 4 More...
 
bool Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRLE8 (FILE *fp, PixelBuffer *pixels, unsigned int width, unsigned int height, unsigned int offset, bool topDown)
 function to decode format BI_RLE8 & bpp = 8 More...
 
bool Dali::TizenPlatform::LoadBmpHeader (const ImageLoader::Input &input, unsigned int &width, unsigned int &height)
 Loads the header of a BMP file and fills in the width and height appropriately. More...
 
bool Dali::TizenPlatform::LoadBitmapFromBmp (const ResourceLoadingClient &client, const ImageLoader::Input &input, Integration::Bitmap &bitmap)
 Loads the bitmap from an BMP file. More...
 

Variables

const unsigned int Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::FileHeaderOffsetOfBF32V4 = 0x7A
 
const unsigned int Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::MaskForBFRGB565 = 0x80
 
const unsigned int Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::FileHeaderOffsetOfRGB24V5 = 0x8A
 
enum
Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::BmpFormat 
Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::__attribute__
 
unsigned short signature
 
unsigned int fileSize
 
unsigned short reserved1
 
unsigned short reserved2
 
unsigned int offset
 
unsigned int infoHeaderSize
 
unsigned int width
 
int height
 
unsigned short planes
 
unsigned short bitsPerPixel
 
unsigned int compression
 
unsigned int imageSize
 
unsigned int xPixelsPerMeter
 
unsigned int yPixelsPerMeter
 
unsigned int numberOfColors
 
unsigned int importantColors
 

Variable Documentation

unsigned short bitsPerPixel

Definition at line 81 of file loader-bmp.cpp.

unsigned int compression

Definition at line 82 of file loader-bmp.cpp.

unsigned int fileSize
int height

Definition at line 79 of file loader-bmp.cpp.

Referenced by Dali::Toolkit::Internal::AtlasManager::Add(), Dali::Internal::Atlas::Atlas(), CompareLoadedImageData(), Dali::Toolkit::Internal::AtlasManager::CreateAtlas(), Dali::Toolkit::Internal::CreatePageTurnEffect(), Dali::Scripting::CreatePropertyMap(), anonymous_namespace{utc-Dali-Button.cpp}::CreateSolidColorImage(), anonymous_namespace{utc-Dali-PushButton.cpp}::CreateSolidColorImage(), anonymous_namespace{utc-Dali-SuperBlurView.cpp}::CreateSolidColorImage(), anonymous_namespace{utc-Dali-BubbleEmitter.cpp}::CreateSolidColorImage(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeBF32(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeBF32V4(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeBF555(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeBF565(), Dali::TizenPlatform::anonymous_namespace{loader-gif.cpp}::DecodeImage(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB1(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB24V5(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB4(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB555(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB8(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRLE4(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRLE8(), Dali::anonymous_namespace{distance-field.cpp}::DistanceTransform(), Dali::Internal::FrameBufferImage::FrameBufferImage(), Dali::Toolkit::Internal::AtlasManager::GenerateMeshData(), Dali::TizenPlatform::anonymous_namespace{image-loader.cpp}::GetBitmapLoaderFunctions(), Dali::TizenPlatform::ImageLoader::GetClosestImageSize(), Dali::Internal::CompressedBitmapTexture::GetHeight(), Dali::Internal::BitmapTexture::GetHeight(), Dali::Internal::Actor::GetHeightForWidthBase(), Dali::Internal::SceneGraph::RenderTask::GetViewportEnabled(), Dali::Internal::Actor::GetWidthForHeightBase(), Dali::Toolkit::Internal::ImageAtlas::ImageAtlas(), Dali::Integration::Bitmap::Initialize(), Dali::Rect< T >::IsEmpty(), Dali::TizenPlatform::JpegRotate180(), Dali::TizenPlatform::JpegRotate270(), Dali::TizenPlatform::JpegRotate90(), Dali::TizenPlatform::LoadBitmapFromAstc(), Dali::TizenPlatform::LoadBitmapFromBmp(), Dali::TizenPlatform::LoadBitmapFromGif(), Dali::TizenPlatform::LoadBitmapFromKtx(), Dali::TizenPlatform::LoadBitmapFromPng(), anonymous_namespace{utc-Dali-ImageOperations.cpp}::MakeCheckerboardImageRGBA8888(), anonymous_namespace{utc-Dali-ImageOperations.cpp}::MakeSingleColorImageRGBA8888(), Dali::Scripting::NewImage(), anonymous_namespace{scroll-bar-impl.cpp}::IndicatorSizeConstraint::operator()(), Internal::ImageAttributes::ImageAttributesImpl::operator=(), Dali::Internal::NinePatchImage::ParseBorders(), Dali::Internal::Actor::RaySphereTest(), Dali::Toolkit::Text::Controller::Impl::RepositionSelectionHandles(), KtxTestFixture::RunTest(), Dali::anonymous_namespace{distance-field.cpp}::ScaleField(), Dali::TestGlAbstraction::Scissor(), Dali::Toolkit::Internal::TableView::SetFixedHeight(), Dali::Uint16Pair::SetHeight(), Dali::Internal::Actor::SetHeight(), Dali::Toolkit::Internal::ScrollBar::SetIndicatorFixedHeight(), Dali::Toolkit::Internal::AtlasGlyphManager::SetNewAtlasSize(), Dali::Internal::CameraActor::SetPerspectiveProjection(), Dali::Toolkit::Text::Decorator::SetPosition(), Dali::Toolkit::Internal::TextLabel::SetProperty(), Dali::Internal::Stage::SetSize(), Dali::Internal::ImageAttributes::SetSize(), Dali::Internal::RelayoutController::SetStageSize(), Dali::TestApplication::SetSurfaceWidth(), Dali::Toolkit::Text::VisualModel::SetUnderlineHeight(), Dali::Internal::BufferImage::SetupBuffer(), anonymous_namespace{utc-Dali-ImageView.cpp}::TestImage(), TestImageLoading(), Dali::TestGlAbstraction::TexImage2D(), Dali::TestGlAbstraction::TexSubImage2D(), Dali::Internal::BitmapTexture::Update(), Dali::Toolkit::Internal::AtlasManager::UploadImage(), UtcDaliControlTestParameters(), UtcDaliCustomActorImplGetWidthForHeightBase(), UtcDaliImageViewHeightForWidthBackgroundAndImage(), UtcDaliImageViewSetImageBufferImage(), UtcDaliImageViewSetImageBufferImageToNativeImage(), UtcDaliImageViewSetImageBufferImageWithCustomShaderToNativeImage(), UtcDaliImageViewSetImageNativeImage(), UtcDaliImageViewSetImageNativeImageToBufferImage(), UtcDaliImageViewSetImageNativeImageWithCustomShader(), UtcDaliImageViewSetImageOffstageP(), UtcDaliImageViewSetImageOnstageP(), UtcDaliImageViewSizeWithBackground(), UtcDaliImageViewSizeWithBackgroundAndImage(), UtcDaliPixelData01(), and UtcDaliPixelData02().

unsigned int imageSize

Definition at line 83 of file loader-bmp.cpp.

unsigned int importantColors

Definition at line 87 of file loader-bmp.cpp.

unsigned int infoHeaderSize

Definition at line 77 of file loader-bmp.cpp.

unsigned int numberOfColors

Definition at line 86 of file loader-bmp.cpp.

unsigned int offset

Definition at line 66 of file loader-bmp.cpp.

Referenced by Dali::Toolkit::Internal::ImageFilter::CreateKernel(), Dali::Internal::PropertyBuffer::FormatChanged(), Dali::GenerateDistanceFieldMap(), Dali::Toolkit::Internal::GridLayout::GetClosestOnScreenLayoutPosition(), Dali::Toolkit::Internal::GradientRenderer::GetStopOffsets(), Dali::Toolkit::Internal::CubeTransitionEffect::Initialize(), Dali::VectorAlgorithms< TypeTraits< Dali::Toolkit::AtlasManager::AtlasMetricsEntry >::IS_TRIVIAL_TYPE==true >::Insert(), Dali::Toolkit::Text::Controller::InsertText(), Dali::TizenPlatform::LoadBitmapFromWbmp(), Dali::Toolkit::Internal::BubbleActor::MakeRenderable(), Dali::Toolkit::Internal::PageTurnPortraitView::OnPossibleOutwardsFlick(), Dali::Toolkit::Internal::anonymous_namespace{scroll-view-impl.cpp}::InternalFinalConstraint::operator()(), anonymous_namespace{page-turn-view-impl.cpp}::OriginalCenterConstraint::OriginalCenterConstraint(), Dali::Toolkit::Internal::PageTurnView::PanContinuing(), Dali::Toolkit::Text::Controller::Relayout(), Dali::Toolkit::Internal::TextEditor::RenderText(), Dali::Toolkit::Internal::TextField::RenderText(), Dali::Toolkit::Text::Controller::Impl::RepositionSelectionHandles(), Dali::Toolkit::Text::Controller::Impl::ScrollToMakePositionVisible(), Dali::Toolkit::Internal::BubbleActor::SetMovementArea(), Dali::Toolkit::Internal::ControlRenderer::SetOffset(), Dali::Toolkit::Text::Controller::Impl::UpdateCursorPosition(), Dali::Toolkit::Text::Controller::Impl::UpdateSelectionHandle(), UtcDaliMathUtilsLerpP(), UtcDaliRenderTaskSetScreenToFrameBufferMappingActor(), UtcFrustumBottomCullN(), UtcFrustumBottomCullP(), UtcFrustumFarCullN(), UtcFrustumFarCullP(), UtcFrustumLeftCullN(), UtcFrustumLeftCullP(), UtcFrustumNearCullN(), UtcFrustumNearCullP(), UtcFrustumRightCullN(), UtcFrustumRightCullP(), UtcFrustumTopCullN(), and UtcFrustumTopCullP().

unsigned short planes
unsigned short reserved1

Definition at line 64 of file loader-bmp.cpp.

unsigned short reserved2

Definition at line 65 of file loader-bmp.cpp.

unsigned short signature

Definition at line 62 of file loader-bmp.cpp.

unsigned int width

Definition at line 78 of file loader-bmp.cpp.

Referenced by Dali::Toolkit::Internal::AtlasManager::Add(), Dali::Toolkit::Internal::ScrollBar::ApplyConstraints(), Dali::Internal::Atlas::Atlas(), Dali::Internal::Platform::AverageScanlines1(), Dali::Internal::Platform::AverageScanlinesRGB565(), Dali::Internal::Platform::AverageScanlinesRGBA8888(), CompareLoadedImageData(), Dali::Toolkit::Internal::AtlasManager::CreateAtlas(), Dali::Scripting::CreatePropertyMap(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeBF555(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB555(), Dali::TizenPlatform::anonymous_namespace{loader-bmp.cpp}::DecodeRGB8(), Dali::anonymous_namespace{distance-field.cpp}::DistanceTransform(), Dali::Internal::FrameBufferImage::FrameBufferImage(), Dali::Toolkit::Internal::AtlasManager::GenerateMeshData(), Dali::Internal::Actor::GetHeightForWidthBase(), Dali::Internal::SceneGraph::RenderTask::GetViewportEnabled(), Dali::Internal::CompressedBitmapTexture::GetWidth(), Dali::Internal::BitmapTexture::GetWidth(), Dali::Internal::Actor::GetWidthForHeightBase(), Dali::Toolkit::Internal::ImageAtlas::ImageAtlas(), Dali::Integration::Bitmap::Initialize(), Dali::Rect< T >::IsEmpty(), Dali::TizenPlatform::JpegRotate180(), Dali::TizenPlatform::JpegRotate270(), Dali::TizenPlatform::JpegRotate90(), Dali::Toolkit::Text::LayoutEngine::Impl::LayoutText(), Dali::TizenPlatform::LoadBitmapFromAstc(), Dali::TizenPlatform::LoadBitmapFromBmp(), Dali::TizenPlatform::LoadBitmapFromGif(), Dali::TizenPlatform::LoadBitmapFromKtx(), Dali::TizenPlatform::LoadBitmapFromPng(), anonymous_namespace{utc-Dali-ImageOperations.cpp}::MakeCheckerboardImageRGBA8888(), Dali::Scripting::NewImage(), Dali::Toolkit::Internal::CheckBoxButton::OnDisabled(), Dali::Toolkit::Internal::CheckBoxButton::OnLabelSet(), Dali::Toolkit::Internal::RadioButton::OnLabelSet(), Dali::Toolkit::Internal::TextSelectionToolbar::OnRelayout(), Internal::ImageAttributes::ImageAttributesImpl::operator=(), Dali::Toolkit::Internal::PageTurnView::PanFinished(), Dali::Internal::NinePatchImage::ParseBorders(), Dali::Internal::NinePatchImage::ParseRange(), Dali::Internal::Actor::RaySphereTest(), KtxTestFixture::RunTest(), Dali::anonymous_namespace{distance-field.cpp}::ScaleField(), Dali::TestGlAbstraction::Scissor(), Dali::Toolkit::Text::LayoutEngine::SetCursorWidth(), Dali::Toolkit::Text::Decorator::SetCursorWidth(), Dali::Toolkit::Text::Controller::SetDefaultFontWidth(), Dali::Toolkit::Internal::TableView::SetFixedWidth(), Dali::Toolkit::Text::SetFontStyleProperty(), Dali::Toolkit::Internal::ScrollBar::SetIndicatorFixedHeight(), Dali::Toolkit::Text::Controller::SetInputFontWidth(), Dali::Toolkit::Internal::AtlasGlyphManager::SetNewAtlasSize(), Dali::Internal::CameraActor::SetPerspectiveProjection(), Dali::Toolkit::Internal::TextField::SetProperty(), Dali::Toolkit::Internal::TextEditor::SetProperty(), Dali::Internal::Stage::SetSize(), Dali::Internal::ImageAttributes::SetSize(), Dali::Internal::RelayoutController::SetStageSize(), Dali::TestApplication::SetSurfaceWidth(), Dali::Internal::BufferImage::SetupBuffer(), Dali::Uint16Pair::SetWidth(), Dali::Internal::Actor::SetWidth(), Dali::Toolkit::Text::StringToWidth(), anonymous_namespace{utc-Dali-ImageView.cpp}::TestImage(), TestImageLoading(), Dali::Internal::BufferImage::UpdateBufferArea(), Dali::Toolkit::Internal::AtlasManager::UploadImage(), UtcDaliControlTestParameters(), UtcDaliCustomActorImplGetHeightForWidthBase(), UtcDaliImageViewHeightForWidthBackgroundAndImage(), UtcDaliImageViewSetImageBufferImage(), UtcDaliImageViewSetImageBufferImageToNativeImage(), UtcDaliImageViewSetImageBufferImageWithCustomShaderToNativeImage(), UtcDaliImageViewSetImageNativeImage(), UtcDaliImageViewSetImageNativeImageToBufferImage(), UtcDaliImageViewSetImageNativeImageWithCustomShader(), UtcDaliImageViewSetImageOffstageP(), UtcDaliImageViewSetImageOnstageP(), UtcDaliImageViewSizeWithBackground(), UtcDaliImageViewSizeWithBackgroundAndImage(), UtcDaliNativeImageSourceNewN(), UtcDaliPixelData01(), and UtcDaliPixelData02().

unsigned int xPixelsPerMeter

Definition at line 84 of file loader-bmp.cpp.

unsigned int yPixelsPerMeter

Definition at line 85 of file loader-bmp.cpp.

Dali Docs Home
Read more about Dali