10e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org/* 20e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * libjingle 30e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * Copyright 2004 Google Inc. 40e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * 50e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * Redistribution and use in source and binary forms, with or without 60e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * modification, are permitted provided that the following conditions are met: 70e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * 80e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * 1. Redistributions of source code must retain the above copyright notice, 90e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * this list of conditions and the following disclaimer. 100e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * 2. Redistributions in binary form must reproduce the above copyright notice, 110e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * this list of conditions and the following disclaimer in the documentation 120e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * and/or other materials provided with the distribution. 130e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * 3. The name of the author may not be used to endorse or promote products 140e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * derived from this software without specific prior written permission. 150e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * 160e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED 170e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 180e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO 190e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 200e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 210e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 220e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 230e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 240e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 250e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 260e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org */ 270e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 280e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org#ifndef TALK_MEDIA_BASE_VIDEOFRAME_H_ 290e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org#define TALK_MEDIA_BASE_VIDEOFRAME_H_ 300e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 312a86ce22ccc387dfa6f8a98ce3eba5c1e6f9e538buildbot@webrtc.org#include "webrtc/base/basictypes.h" 322a86ce22ccc387dfa6f8a98ce3eba5c1e6f9e538buildbot@webrtc.org#include "webrtc/base/stream.h" 330e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 340e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.orgnamespace cricket { 350e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 360e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org// Simple rotation constants. 370e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.orgenum { 380e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org ROTATION_0 = 0, 390e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org ROTATION_90 = 90, 400e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org ROTATION_180 = 180, 410e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org ROTATION_270 = 270 420e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org}; 430e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 440e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org// Represents a YUV420 (a.k.a. I420) video frame. 450e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.orgclass VideoFrame { 460e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org public: 470e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org VideoFrame() {} 480e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual ~VideoFrame() {} 490e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 500e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual bool InitToBlack(int w, int h, size_t pixel_width, 510e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org size_t pixel_height, int64 elapsed_time, 520e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org int64 time_stamp) = 0; 530e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Creates a frame from a raw sample with FourCC |format| and size |w| x |h|. 540e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // |h| can be negative indicating a vertically flipped image. 550e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // |dw| is destination width; can be less than |w| if cropping is desired. 560e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // |dh| is destination height, like |dw|, but must be a positive number. 570e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Returns whether the function succeeded or failed. 580e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual bool Reset(uint32 fourcc, int w, int h, int dw, int dh, uint8 *sample, 590e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org size_t sample_size, size_t pixel_width, 600e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org size_t pixel_height, int64 elapsed_time, int64 time_stamp, 610e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org int rotation) = 0; 620e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 630e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Basic accessors. 640e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual size_t GetWidth() const = 0; 650e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual size_t GetHeight() const = 0; 660e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org size_t GetChromaWidth() const { return (GetWidth() + 1) / 2; } 670e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org size_t GetChromaHeight() const { return (GetHeight() + 1) / 2; } 680e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org size_t GetChromaSize() const { return GetUPitch() * GetChromaHeight(); } 69f99f1011aa4cd22bd86ba2e4f7d239ea1b766ec8wu@webrtc.org // These can return NULL if the object is not backed by a buffer. 700e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual const uint8 *GetYPlane() const = 0; 710e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual const uint8 *GetUPlane() const = 0; 720e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual const uint8 *GetVPlane() const = 0; 730e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual uint8 *GetYPlane() = 0; 740e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual uint8 *GetUPlane() = 0; 750e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual uint8 *GetVPlane() = 0; 76f99f1011aa4cd22bd86ba2e4f7d239ea1b766ec8wu@webrtc.org 770e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual int32 GetYPitch() const = 0; 780e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual int32 GetUPitch() const = 0; 790e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual int32 GetVPitch() const = 0; 800e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 81f99f1011aa4cd22bd86ba2e4f7d239ea1b766ec8wu@webrtc.org // Returns the handle of the underlying video frame. This is used when the 82f99f1011aa4cd22bd86ba2e4f7d239ea1b766ec8wu@webrtc.org // frame is backed by a texture. The object should be destroyed when it is no 83f99f1011aa4cd22bd86ba2e4f7d239ea1b766ec8wu@webrtc.org // longer in use, so the underlying resource can be freed. 84f99f1011aa4cd22bd86ba2e4f7d239ea1b766ec8wu@webrtc.org virtual void* GetNativeHandle() const = 0; 85f99f1011aa4cd22bd86ba2e4f7d239ea1b766ec8wu@webrtc.org 860e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // For retrieving the aspect ratio of each pixel. Usually this is 1x1, but 870e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // the aspect_ratio_idc parameter of H.264 can specify non-square pixels. 880e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual size_t GetPixelWidth() const = 0; 890e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual size_t GetPixelHeight() const = 0; 900e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 910e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual int64 GetElapsedTime() const = 0; 920e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual int64 GetTimeStamp() const = 0; 930e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual void SetElapsedTime(int64 elapsed_time) = 0; 940e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual void SetTimeStamp(int64 time_stamp) = 0; 950e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 960e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Indicates the rotation angle in degrees. 970e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual int GetRotation() const = 0; 980e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 990e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Make a shallow copy of the frame. The frame buffer itself is not copied. 1000e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Both the current and new VideoFrame will share a single reference-counted 1010e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // frame buffer. 1020e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual VideoFrame *Copy() const = 0; 1030e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 1040e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Since VideoFrame supports shallow copy and the internal frame buffer might 1050e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // be shared, in case VideoFrame needs exclusive access of the frame buffer, 1060e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // user can call MakeExclusive() to make sure the frame buffer is exclusive 1070e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // accessable to the current object. This might mean a deep copy of the frame 1080e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // buffer if it is currently shared by other objects. 1090e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual bool MakeExclusive() = 0; 1100e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 1110e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Writes the frame into the given frame buffer, provided that it is of 1120e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // sufficient size. Returns the frame's actual size, regardless of whether 1130e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // it was written or not (like snprintf). If there is insufficient space, 1140e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // nothing is written. 1150e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual size_t CopyToBuffer(uint8 *buffer, size_t size) const = 0; 1160e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 1170e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Writes the frame into the given planes, stretched to the given width and 1180e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // height. The parameter "interpolate" controls whether to interpolate or just 1190e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // take the nearest-point. The parameter "crop" controls whether to crop this 1200e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // frame to the aspect ratio of the given dimensions before stretching. 1210e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual bool CopyToPlanes( 1220e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org uint8* dst_y, uint8* dst_u, uint8* dst_v, 1230e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org int32 dst_pitch_y, int32 dst_pitch_u, int32 dst_pitch_v) const; 1240e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 1250e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Writes the frame into the target VideoFrame. 1260e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual void CopyToFrame(VideoFrame* target) const; 1270e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 1280e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Writes the frame into the given stream and returns the StreamResult. 1292a86ce22ccc387dfa6f8a98ce3eba5c1e6f9e538buildbot@webrtc.org // See webrtc/base/stream.h for a description of StreamResult and error. 1300e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Error may be NULL. If a non-success value is returned from 1310e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // StreamInterface::Write(), we immediately return with that value. 1322a86ce22ccc387dfa6f8a98ce3eba5c1e6f9e538buildbot@webrtc.org virtual rtc::StreamResult Write(rtc::StreamInterface *stream, 1330e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org int *error); 1340e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 1350e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Converts the I420 data to RGB of a certain type such as ARGB and ABGR. 1360e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Returns the frame's actual size, regardless of whether it was written or 1370e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // not (like snprintf). Parameters size and stride_rgb are in units of bytes. 1380e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // If there is insufficient space, nothing is written. 1390e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual size_t ConvertToRgbBuffer(uint32 to_fourcc, uint8 *buffer, 1400e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org size_t size, int stride_rgb) const = 0; 1410e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 1420e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Writes the frame into the given planes, stretched to the given width and 1430e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // height. The parameter "interpolate" controls whether to interpolate or just 1440e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // take the nearest-point. The parameter "crop" controls whether to crop this 1450e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // frame to the aspect ratio of the given dimensions before stretching. 1460e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual void StretchToPlanes( 1470e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org uint8 *y, uint8 *u, uint8 *v, int32 pitchY, int32 pitchU, int32 pitchV, 1480e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org size_t width, size_t height, bool interpolate, bool crop) const; 1490e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 1500e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Writes the frame into the given frame buffer, stretched to the given width 1510e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // and height, provided that it is of sufficient size. Returns the frame's 1520e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // actual size, regardless of whether it was written or not (like snprintf). 1530e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // If there is insufficient space, nothing is written. The parameter 1540e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // "interpolate" controls whether to interpolate or just take the 1550e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // nearest-point. The parameter "crop" controls whether to crop this frame to 1560e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // the aspect ratio of the given dimensions before stretching. 1570e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual size_t StretchToBuffer(size_t w, size_t h, uint8 *buffer, size_t size, 1580e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org bool interpolate, bool crop) const; 1590e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 1600e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Writes the frame into the target VideoFrame, stretched to the size of that 1610e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // frame. The parameter "interpolate" controls whether to interpolate or just 1620e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // take the nearest-point. The parameter "crop" controls whether to crop this 1630e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // frame to the aspect ratio of the target frame before stretching. 1640e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual void StretchToFrame(VideoFrame *target, bool interpolate, 1650e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org bool crop) const; 1660e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 1670e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Stretches the frame to the given size, creating a new VideoFrame object to 1680e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // hold it. The parameter "interpolate" controls whether to interpolate or 1690e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // just take the nearest-point. The parameter "crop" controls whether to crop 1700e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // this frame to the aspect ratio of the given dimensions before stretching. 1710e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual VideoFrame *Stretch(size_t w, size_t h, bool interpolate, 1720e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org bool crop) const; 1730e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 1740e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Sets the video frame to black. 175f99f1011aa4cd22bd86ba2e4f7d239ea1b766ec8wu@webrtc.org virtual bool SetToBlack(); 1760e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 1770e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Tests if sample is valid. Returns true if valid. 1780e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org static bool Validate(uint32 fourcc, int w, int h, const uint8 *sample, 1790e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org size_t sample_size); 1800e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 1810e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Size of an I420 image of given dimensions when stored as a frame buffer. 1820e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org static size_t SizeOf(size_t w, size_t h) { 1830e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org return w * h + ((w + 1) / 2) * ((h + 1) / 2) * 2; 1840e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org } 1850e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 1860e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org protected: 1870e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org // Creates an empty frame. 1880e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org virtual VideoFrame *CreateEmptyFrame(int w, int h, size_t pixel_width, 1890e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org size_t pixel_height, int64 elapsed_time, 1900e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org int64 time_stamp) const = 0; 1910e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org}; 1920e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 1930e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org} // namespace cricket 1940e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org 1950e118e7129884fbea117e78d6f2068139a414dbhenrike@webrtc.org#endif // TALK_MEDIA_BASE_VIDEOFRAME_H_ 196