Searched defs:BAIL_ON_FAIL (Results 1 - 2 of 2) sorted by relevance

/frameworks/av/media/img_utils/include/img_utils/
H A DTiffEntryImpl.h126 BAIL_ON_FAIL(out->write(&mTag, 0, 1), ret);
127 BAIL_ON_FAIL(out->write(&mType, 0, 1), ret);
128 BAIL_ON_FAIL(out->write(&mCount, 0, 1), ret);
132 BAIL_ON_FAIL(out->write(&offset, 0, 1), ret);
143 BAIL_ON_FAIL(out->write(mData.array(), 0, count), ret);
170 BAIL_ON_FAIL(out->write(mData.array(), 0, count), ret);
186 BAIL_ON_FAIL(out->write(&mTag, 0, 1), ret);
187 BAIL_ON_FAIL(out->write(&mType, 0, 1), ret);
188 BAIL_ON_FAIL(out->write(&mCount, 0, 1), ret);
190 BAIL_ON_FAIL(ou
69 LOG_ALWAYS_FATAL_IF(index < 0, �, __FUNCTION__); } template<typename T> TiffEntryImpl<T>::~TiffEntryImpl() {} template<typename T> uint32_t TiffEntryImpl<T>::getCount() const { return mCount; } template<typename T> uint16_t TiffEntryImpl<T>::getTag() const { return mTag; } template<typename T> TagType TiffEntryImpl<T>::getType() const { return static_cast<TagType>(mType); } template<typename T> const void* TiffEntryImpl<T>::getDataHelper() const { return reinterpret_cast<const void*>(mData.array()); } template<typename T> size_t TiffEntryImpl<T>::getSize() const { uint32_t total = getActualSize(); WORD_ALIGN(total) return (total <= OFFSET_SIZE) ? 0 : total; } template<typename T> uint32_t TiffEntryImpl<T>::getActualSize() const { uint32_t total = sizeof(T) * mCount; if (getType() == RATIONAL || getType() == SRATIONAL) { total <<= 1; } return total; } template<typename T> Endianness TiffEntryImpl<T>::getEndianness() const { return mEnd; } template<typename T> uint32_t TiffEntryImpl<T>::getComparableValue() const { return mTag; } template<typename T> status_t TiffEntryImpl<T>::writeTagInfo(uint32_t offset, EndianOutput* out) const { assert((offset % TIFF_WORD_SIZE) == 0); status_t ret = OK; BAIL_ON_FAIL(out->write(&mTag, 0, 1), ret); BAIL_ON_FAIL(out->write(&mType, 0, 1), ret); BAIL_ON_FAIL(out->write(&mCount, 0, 1), ret); uint32_t dataSize = getActualSize(); if (dataSize > OFFSET_SIZE) argument
[all...]
H A DTiffHelpers.h27 #define BAIL_ON_FAIL(x, flag) \ macro
40 BAIL_ON_FAIL((output)->write(ZERO_WORD, 0, remaining), ret); \

Completed in 42 milliseconds