Home
last modified time | relevance | path

Searched refs:DNG_ASSERT (Results 1 – 25 of 26) sorted by relevance

12

/external/dng_sdk/source/
Ddng_assertions.h44 #ifndef DNG_ASSERT
53 #define DNG_ASSERT(x,y) { if (!(x)) dng_show_message (y); } macro
62 #define DNG_ASSERT(x,y) macro
85 DNG_ASSERT(condition, msg); \
125 #define DNG_REPORT(x) DNG_ASSERT (false, x)
Ddng_mutex.cpp45 DNG_ASSERT (result == 0, "pthread_key_create failed."); in InnermostMutexHolder()
66 DNG_ASSERT (result == 0, "pthread_setspecific failed."); in SetInnermostMutex()
192DNG_ASSERT (gInnermostMutexHolder.GetInnermostMutex () == this, "Mutexes unlocked out of order!!!"… in Unlock()
291 DNG_ASSERT (result == 0, "pthread_cond_init failed."); in dng_condition()
318 DNG_ASSERT (innermostMutex == &mutex, "Attempt to wait on non-innermost mutex."); in Wait()
367 DNG_ASSERT (result == 0, "pthread_cond_signal failed."); in Signal()
383 DNG_ASSERT (result == 0, "pthread_cond_broadcast failed."); in Broadcast()
Ddng_image.h324 DNG_ASSERT (fPixelType == ttByte, "Mismatched pixel type"); in SetConstant_uint8()
339 DNG_ASSERT (fPixelType == ttShort, "Mismatched pixel type"); in SetConstant_uint16()
354 DNG_ASSERT (fPixelType == ttSShort, "Mismatched pixel type"); in SetConstant_int16()
369 DNG_ASSERT (fPixelType == ttLong, "Mismatched pixel type"); in SetConstant_uint32()
384 DNG_ASSERT (fPixelType == ttFloat, "Mismatched pixel type"); in SetConstant_real32()
Ddng_pixel_buffer.h76 #define ASSERT_PIXEL_TYPE(typeVal) DNG_ASSERT (fPixelType == typeVal, "Pixel type access mismatch")
253 DNG_ASSERT (fDirty, "Dirty access to const pixel buffer");
520 DNG_ASSERT (fPixelType == ttByte, "Mismatched pixel type"); in SetConstant_uint8()
538 DNG_ASSERT (fPixelType == ttShort, "Mismatched pixel type"); in SetConstant_uint16()
556 DNG_ASSERT (fPixelType == ttSShort, "Mismatched pixel type"); in SetConstant_int16()
574 DNG_ASSERT (fPixelType == ttLong, "Mismatched pixel type"); in SetConstant_uint32()
592 DNG_ASSERT (fPixelType == ttFloat, "Mismatched pixel type"); in SetConstant_real32()
Ddng_resample.h152 DNG_ASSERT (fWeights32->Buffer (), "Weights32 is NULL"); in Weights32()
168 DNG_ASSERT (fWeights16->Buffer (), "Weights16 is NULL"); in Weights16()
241 DNG_ASSERT (fWeights32->Buffer (), "Weights32 is NULL"); in Weights32()
261 DNG_ASSERT (fWeights16->Buffer (), "Weights16 is NULL"); in Weights16()
Ddng_color_spec.cpp478 DNG_ASSERT (fWhiteXY.IsValid (), "Using invalid WhiteXY"); in WhiteXY()
489 DNG_ASSERT (fCameraWhite.NotEmpty (), "Using invalid CameraWhite"); in CameraWhite()
500 DNG_ASSERT (fCameraToPCS.NotEmpty (), "Using invalid CameraToPCS"); in CameraToPCS()
511 DNG_ASSERT (fPCStoCamera.NotEmpty (), "Using invalid PCStoCamera"); in PCStoCamera()
Ddng_utils.cpp438 DNG_ASSERT (image.PixelType () == ttShort, "Unsupported pixel type"); in HistogramArea()
472 DNG_ASSERT (count0 == 1, "OptimizeOrder logic error"); in HistogramArea()
745 DNG_ASSERT (srcImage.PixelType () == ttFloat, "Floating point image expected"); in LimitFloatBitDepth()
746 DNG_ASSERT (dstImage.PixelType () == ttFloat, "Floating point image expected"); in LimitFloatBitDepth()
Ddng_spline.cpp73 DNG_ASSERT (count >= 2, "Too few points"); in Solve()
209 DNG_ASSERT (upper == lower, "Binary search error in point list"); in Evaluate()
Ddng_hue_sat_map.cpp105 DNG_ASSERT (hueDivisions >= 1, "Must have at least 1 hue division."); in SetDivisions()
106 DNG_ASSERT (satDivisions >= 2, "Must have at least 2 sat divisions."); in SetDivisions()
Ddng_preview.cpp410 DNG_ASSERT (fCompressedData.Get (), in SpoolAdobeThumbnail()
413 DNG_ASSERT (fPhotometricInterpretation == piYCbCr, in SpoolAdobeThumbnail()
696 DNG_ASSERT (fCount < kMaxDNGPreviews, "DNG preview list overflow"); in Append()
Ddng_lens_correction.cpp55 DNG_ASSERT (planes >= 1, "Too few planes." ); in dng_warp_params()
56 DNG_ASSERT (planes <= kMaxColorPlanes, "Too many planes."); in dng_warp_params()
58 DNG_ASSERT (fCenter.h >= 0.0 && fCenter.h <= 1.0, in dng_warp_params()
61 DNG_ASSERT (fCenter.v >= 0.0 && fCenter.v <= 1.0, in dng_warp_params()
348 DNG_ASSERT (plane < fPlanes, "plane out of range."); in IsRadNOP()
364 DNG_ASSERT (plane < fPlanes, "plane out of range."); in IsTanNOP()
1036 DNG_ASSERT (negPlanes >= 1, "Too few planes." ); in dng_filter_warp()
1037 DNG_ASSERT (negPlanes <= kMaxColorPlanes, "Too many planes."); in dng_filter_warp()
2188 DNG_ASSERT (imagePlanes >= 1 && imagePlanes <= kMaxColorPlanes, in Prepare()
Ddng_1d_table.h87 DNG_ASSERT (index >= 0 && index <= kTableSize, in Interpolate()
Ddng_camera_profile.h112 DNG_ASSERT (!fFingerprint.IsValid () || fName.NotEmpty (), in dng_camera_profile_id()
127 DNG_ASSERT (!fFingerprint.IsValid () || fName.NotEmpty (), in dng_camera_profile_id()
Ddng_pthread.cpp343 DNG_ASSERT(insertion.second, "pthread emulation logic error"); in dng_pthread_create()
643 DNG_ASSERT (result == WAIT_OBJECT_0, "pthread emulation logic error"); in cond_wait_internal()
898DNG_ASSERT (!real_rwlock.writer_active || real_rwlock.readers_active == 0, "dng_pthread_rwlock_t l…
Ddng_iptc.cpp818 DNG_ASSERT (dateString.Length () == 8, "Wrong length IPTC date"); in Spool()
853 DNG_ASSERT (dateString.Length () == 8, "Wrong length IPTC date"); in Spool()
Ddng_negative.cpp894 DNG_ASSERT (channel < ColorChannels (), "Channel out of bounds"); in AnalogBalance()
987 DNG_ASSERT (HasCameraWhiteXY (), "Using undefined CameraWhiteXY"); in CameraWhiteXY()
1248 DNG_ASSERT (index < ProfileCount (), in ProfileByIndex()
1701 DNG_ASSERT (tile.l == fImage.Bounds ().l + colIndex * fUnitCell.h && in Process()
2307 DNG_ASSERT (count <= kMaxMaskedAreas, "Too many masked areas"); in SetMaskedAreas()
3527 DNG_ASSERT (fStage3Image.Get (), in RawImage()
4315 DNG_ASSERT (Abs_real64 (x - (y / 16.0 + y * y * y * 15.0 / 16.0)) < 0.0000001, in Evaluate()
4325 DNG_ASSERT (Abs_real64 (x - (y / 16.0 + y * y * (15.0 / 16.0))) < 0.0000001, in Evaluate()
Ddng_jpeg_image.cpp175 DNG_ASSERT (image.PixelType () == ttByte, "Cannot JPEG encode non-byte image"); in Encode()
Ddng_lossless_jpeg.cpp2768 DNG_ASSERT (size != 0, "Bad Huffman table entry"); in EmitBits()
2969 DNG_ASSERT ((int32)fSrcRows >= 0, "dng_lossless_encoder::FreqCountSet: fSrcRpws too large."); in FreqCountSet()
3075 DNG_ASSERT ((int32)fSrcRows >= 0, "dng_lossless_encoder::HuffEncode: fSrcRows too large."); in HuffEncode()
3730 DNG_ASSERT (fSrcChannels <= 4, "Too many components in scan"); in Encode()
Ddng_string.cpp354 DNG_ASSERT (sizeof (WCHAR) == 2, "WCHAR must be 2 bytes"); in Assign_Multibyte()
409 DNG_ASSERT (sizeof (WCHAR) == 2, "WCHAR must be 2 bytes"); in Extract_Multibyte()
Ddng_fingerprint.cpp261 DNG_ASSERT (!final, "Fingerprint already finalized!"); in Process()
Ddng_read_image.cpp496 DNG_ASSERT ((w >= 0) && (w <= kTableSize), in AddTable()
505 DNG_ASSERT ((nextCode >= 0) && (nextCode <= kTableSize), in AddTable()
631 DNG_ASSERT (code <= fNextCode, in Expand()
Ddng_camera_profile.cpp400 DNG_ASSERT (!fWasStubbed, "CalculateFingerprint on stubbed profile"); in CalculateFingerprint()
Ddng_image_writer.cpp3302 DNG_ASSERT ((w >= 0) && (w <= kTableSize), in SearchTable()
3384 DNG_ASSERT ((w >= 0) && (w <= kTableSize), in AddTable()
3391 DNG_ASSERT ((nextCode >= 0) && (nextCode <= kTableSize), in AddTable()
6121 DNG_ASSERT (rawPixelType == ttByte, in WriteDNG()
6124 DNG_ASSERT (info.fImageWidth == (uint32) rawJPEGImage->fImageSize.h && in WriteDNG()
Ddng_reference.cpp1753 DNG_ASSERT (r >= g && g >= b && r > b, "Logic Error RGBTone");\ in RefBaselineRGBTone()
1797 DNG_ASSERT (r >= g && g == b, "Logic Error 2"); in RefBaselineRGBTone()
Ddng_mosaic_info.cpp107 DNG_ASSERT (fCount < kMaxCount, "Too many kernel entries") in Add()

12