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