Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3345)

Unified Diff: core/include/fxcodec/fx_codec_provider.h

Issue 453133004: clang-format all code (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: core/include/fxcodec/fx_codec_provider.h
diff --git a/core/include/fxcodec/fx_codec_provider.h b/core/include/fxcodec/fx_codec_provider.h
index a3ef396a27b8989ff73c76cf8073781d3c66c4fd..0683dc35ba3bbc6331ee93fa6a181c0e326e628c 100644
--- a/core/include/fxcodec/fx_codec_provider.h
+++ b/core/include/fxcodec/fx_codec_provider.h
@@ -1,53 +1,65 @@
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-
+
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef _FX_CODEC_PROVIDER_H_
#define _FX_CODEC_PROVIDER_H_
-class IFX_JpegProvider
-{
-public:
-
- virtual void Release() = 0;
-
- virtual void* CreateDecoder(FX_LPCBYTE src_buf, FX_DWORD src_size, int width, int height, int nComps, FX_BOOL ColorTransform) = 0;
-
-
- virtual void DestroyDecoder(void* pDecoder) = 0;
-
- virtual void DownScale(void* pDecoder, int dest_width, int dest_height) = 0;
-
- virtual FX_BOOL Rewind(void* pDecoder) = 0;
+class IFX_JpegProvider {
+ public:
+ virtual void Release() = 0;
- virtual FX_LPBYTE GetNextLine(void* pDecoder) = 0;
+ virtual void* CreateDecoder(FX_LPCBYTE src_buf,
+ FX_DWORD src_size,
+ int width,
+ int height,
+ int nComps,
+ FX_BOOL ColorTransform) = 0;
- virtual FX_DWORD GetSrcOffset(void* pDecoder) = 0;
+ virtual void DestroyDecoder(void* pDecoder) = 0;
+ virtual void DownScale(void* pDecoder, int dest_width, int dest_height) = 0;
- virtual FX_BOOL LoadInfo(FX_LPCBYTE src_buf, FX_DWORD src_size, int& width, int& height,
- int& num_components, int& bits_per_components, FX_BOOL& color_transform,
- FX_LPBYTE* icc_buf_ptr = NULL, FX_DWORD* icc_length = NULL) = 0;
+ virtual FX_BOOL Rewind(void* pDecoder) = 0;
- virtual FX_BOOL Encode(const class CFX_DIBSource* pSource, FX_LPBYTE& dest_buf, FX_STRSIZE& dest_size, int quality = 75,
- FX_LPCBYTE icc_buf = NULL, FX_DWORD icc_length = 0) = 0;
+ virtual FX_LPBYTE GetNextLine(void* pDecoder) = 0;
- virtual void* Start() = 0;
+ virtual FX_DWORD GetSrcOffset(void* pDecoder) = 0;
- virtual void Finish(void* pContext) = 0;
+ virtual FX_BOOL LoadInfo(FX_LPCBYTE src_buf,
+ FX_DWORD src_size,
+ int& width,
+ int& height,
+ int& num_components,
+ int& bits_per_components,
+ FX_BOOL& color_transform,
+ FX_LPBYTE* icc_buf_ptr = NULL,
+ FX_DWORD* icc_length = NULL) = 0;
- virtual void Input(void* pContext, FX_LPCBYTE src_buf, FX_DWORD src_size) = 0;
+ virtual FX_BOOL Encode(const class CFX_DIBSource* pSource,
+ FX_LPBYTE& dest_buf,
+ FX_STRSIZE& dest_size,
+ int quality = 75,
+ FX_LPCBYTE icc_buf = NULL,
+ FX_DWORD icc_length = 0) = 0;
- virtual int ReadHeader(void* pContext, int* width, int* height, int* nComps) = 0;
+ virtual void* Start() = 0;
+ virtual void Finish(void* pContext) = 0;
- virtual int StartScanline(void* pContext, int down_scale) = 0;
+ virtual void Input(void* pContext, FX_LPCBYTE src_buf, FX_DWORD src_size) = 0;
+ virtual int ReadHeader(void* pContext,
+ int* width,
+ int* height,
+ int* nComps) = 0;
- virtual FX_BOOL ReadScanline(void* pContext, FX_LPBYTE dest_buf) = 0;
+ virtual int StartScanline(void* pContext, int down_scale) = 0;
+ virtual FX_BOOL ReadScanline(void* pContext, FX_LPBYTE dest_buf) = 0;
- virtual FX_DWORD GetAvailInput(void* pContext, FX_LPBYTE* avail_buf_ptr = NULL) = 0;
+ virtual FX_DWORD GetAvailInput(void* pContext,
+ FX_LPBYTE* avail_buf_ptr = NULL) = 0;
};
#endif

Powered by Google App Engine
This is Rietveld 408576698