Style cleanup (thanks Korli!)
No functional changes, except for the two traces removed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39511 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -10,10 +10,10 @@
|
||||
#include "ConfigView.h"
|
||||
#include "WebPTranslator.h"
|
||||
|
||||
#include <StringView.h>
|
||||
#include <CheckBox.h>
|
||||
#include <GroupLayout.h>
|
||||
#include <GroupLayoutBuilder.h>
|
||||
#include <StringView.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -18,4 +18,5 @@ class ConfigView : public BView {
|
||||
virtual ~ConfigView();
|
||||
};
|
||||
|
||||
|
||||
#endif /* CONFIG_VIEW_H */
|
||||
|
||||
@@ -83,8 +83,7 @@ WebPTranslator::WebPTranslator()
|
||||
WEBP_TRANSLATOR_VERSION,
|
||||
sInputFormats, kNumInputFormats,
|
||||
sOutputFormats, kNumOutputFormats,
|
||||
"WebPTranslator_Settings",
|
||||
sDefaultSettings, kNumDefaultSettings,
|
||||
"WebPTranslator_Settings", sDefaultSettings, kNumDefaultSettings,
|
||||
B_TRANSLATOR_BITMAP, WEBP_IMAGE_FORMAT)
|
||||
{
|
||||
}
|
||||
@@ -159,11 +158,8 @@ WebPTranslator::DerivedTranslate(BPositionIO *stream,
|
||||
free(streamData);
|
||||
|
||||
if (out == NULL) {
|
||||
printf("WebPDecodeRGB(%p, %lld) failed.\n", streamData, streamSize);
|
||||
return B_ILLEGAL_DATA;
|
||||
}
|
||||
printf("WebPDecodeRGB(%p, %lld) succeed: %d x %d WebP image decoded.\n",
|
||||
streamData, streamSize, width, height);
|
||||
|
||||
FreeAllocation _(out);
|
||||
|
||||
@@ -192,6 +188,7 @@ WebPTranslator::DerivedTranslate(BPositionIO *stream,
|
||||
|
||||
if (headerOnly)
|
||||
return B_OK;
|
||||
|
||||
uint32 dataLeft = dataSize;
|
||||
uint8* p = out;
|
||||
uint8 rgb[3];
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#ifndef WEBP_TRANSLATOR_H
|
||||
#define WEBP_TRANSLATOR_H
|
||||
|
||||
|
||||
#include <ByteOrder.h>
|
||||
#include <DataIO.h>
|
||||
#include <File.h>
|
||||
@@ -29,17 +30,20 @@
|
||||
#define BITS_OUT_QUALITY 1
|
||||
#define BITS_OUT_CAPABILITY 0.9
|
||||
|
||||
|
||||
class WebPTranslator : public BaseTranslator {
|
||||
public:
|
||||
WebPTranslator();
|
||||
|
||||
virtual status_t DerivedIdentify(BPositionIO *inSource,
|
||||
const translation_format *inFormat, BMessage *ioExtension,
|
||||
translator_info *outInfo, uint32 outType);
|
||||
virtual status_t DerivedIdentify(BPositionIO* stream,
|
||||
const translation_format* format,
|
||||
BMessage* settings, translator_info* info,
|
||||
uint32 outType);
|
||||
|
||||
virtual status_t DerivedTranslate(BPositionIO *inSource,
|
||||
const translator_info *inInfo, BMessage *ioExtension,
|
||||
uint32 outType, BPositionIO *outDestination, int32 baseType);
|
||||
virtual status_t DerivedTranslate(BPositionIO* stream,
|
||||
const translator_info* info,
|
||||
BMessage* settings, uint32 outType,
|
||||
BPositionIO* target, int32 baseType);
|
||||
|
||||
virtual BView* NewConfigView(TranslatorSettings* settings);
|
||||
|
||||
@@ -50,4 +54,5 @@ protected:
|
||||
// the user
|
||||
};
|
||||
|
||||
|
||||
#endif // #ifndef WEBP_TRANSLATOR_H
|
||||
|
||||
Reference in New Issue
Block a user