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

Unified Diff: media/base/yuv_convert.h

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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: media/base/yuv_convert.h
diff --git a/media/base/yuv_convert.h b/media/base/yuv_convert.h
index 1d35d30c691b7a0c43f68c371784b108eb189acc..68b2463b60e1a27154c0fd5755e50a13fa95f04f 100644
--- a/media/base/yuv_convert.h
+++ b/media/base/yuv_convert.h
@@ -5,7 +5,8 @@
#ifndef MEDIA_BASE_YUV_CONVERT_H_
#define MEDIA_BASE_YUV_CONVERT_H_
-#include "base/basictypes.h"
+#include <stdint.h>
+
#include "media/base/media_export.h"
// Visual Studio 2010 does not support MMX intrinsics on x64.
@@ -33,7 +34,7 @@ enum YUVType {
MEDIA_EXPORT int GetVerticalShift(YUVType type);
// Get the appropriate lookup table for a given YUV format.
-MEDIA_EXPORT const int16* GetLookupTable(YUVType type);
+MEDIA_EXPORT const int16_t* GetLookupTable(YUVType type);
// Mirror means flip the image horizontally, as in looking in a mirror.
// Rotate happens after mirroring.
@@ -60,10 +61,10 @@ MEDIA_EXPORT void InitializeCPUSpecificYUVConversions();
// Convert a frame of YUV to 32 bit ARGB.
// Pass in YV16/YV12 depending on source format
-MEDIA_EXPORT void ConvertYUVToRGB32(const uint8* yplane,
- const uint8* uplane,
- const uint8* vplane,
- uint8* rgbframe,
+MEDIA_EXPORT void ConvertYUVToRGB32(const uint8_t* yplane,
+ const uint8_t* uplane,
+ const uint8_t* vplane,
+ uint8_t* rgbframe,
int width,
int height,
int ystride,
@@ -73,11 +74,11 @@ MEDIA_EXPORT void ConvertYUVToRGB32(const uint8* yplane,
// Convert a frame of YUVA to 32 bit ARGB.
// Pass in YV12A
-MEDIA_EXPORT void ConvertYUVAToARGB(const uint8* yplane,
- const uint8* uplane,
- const uint8* vplane,
- const uint8* aplane,
- uint8* rgbframe,
+MEDIA_EXPORT void ConvertYUVAToARGB(const uint8_t* yplane,
+ const uint8_t* uplane,
+ const uint8_t* vplane,
+ const uint8_t* aplane,
+ uint8_t* rgbframe,
int width,
int height,
int ystride,
@@ -88,10 +89,10 @@ MEDIA_EXPORT void ConvertYUVAToARGB(const uint8* yplane,
// Scale a frame of YUV to 32 bit ARGB.
// Supports rotation and mirroring.
-MEDIA_EXPORT void ScaleYUVToRGB32(const uint8* yplane,
- const uint8* uplane,
- const uint8* vplane,
- uint8* rgbframe,
+MEDIA_EXPORT void ScaleYUVToRGB32(const uint8_t* yplane,
+ const uint8_t* uplane,
+ const uint8_t* vplane,
+ uint8_t* rgbframe,
int source_width,
int source_height,
int width,
@@ -106,10 +107,10 @@ MEDIA_EXPORT void ScaleYUVToRGB32(const uint8* yplane,
// Biliner Scale a frame of YV12 to 32 bits ARGB on a specified rectangle.
// |yplane|, etc and |rgbframe| should point to the top-left pixels of the
// source and destination buffers.
-MEDIA_EXPORT void ScaleYUVToRGB32WithRect(const uint8* yplane,
- const uint8* uplane,
- const uint8* vplane,
- uint8* rgbframe,
+MEDIA_EXPORT void ScaleYUVToRGB32WithRect(const uint8_t* yplane,
+ const uint8_t* uplane,
+ const uint8_t* vplane,
+ uint8_t* rgbframe,
int source_width,
int source_height,
int dest_width,
@@ -122,20 +123,20 @@ MEDIA_EXPORT void ScaleYUVToRGB32WithRect(const uint8* yplane,
int uvstride,
int rgbstride);
-MEDIA_EXPORT void ConvertRGB32ToYUV(const uint8* rgbframe,
- uint8* yplane,
- uint8* uplane,
- uint8* vplane,
+MEDIA_EXPORT void ConvertRGB32ToYUV(const uint8_t* rgbframe,
+ uint8_t* yplane,
+ uint8_t* uplane,
+ uint8_t* vplane,
int width,
int height,
int rgbstride,
int ystride,
int uvstride);
-MEDIA_EXPORT void ConvertRGB24ToYUV(const uint8* rgbframe,
- uint8* yplane,
- uint8* uplane,
- uint8* vplane,
+MEDIA_EXPORT void ConvertRGB24ToYUV(const uint8_t* rgbframe,
+ uint8_t* yplane,
+ uint8_t* uplane,
+ uint8_t* vplane,
int width,
int height,
int rgbstride,

Powered by Google App Engine
This is Rietveld 408576698