mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1153049: Part2. Fix const-ness. r=cpearce
This commit is contained in:
parent
8b2fbf974b
commit
0fd59cc474
@ -152,7 +152,7 @@ VideoData::SizeOfIncludingThis(MallocSizeOf aMallocSizeOf) const
|
||||
|
||||
/* static */
|
||||
already_AddRefed<VideoData>
|
||||
VideoData::ShallowCopyUpdateDuration(VideoData* aOther,
|
||||
VideoData::ShallowCopyUpdateDuration(const VideoData* aOther,
|
||||
int64_t aDuration)
|
||||
{
|
||||
nsRefPtr<VideoData> v = new VideoData(aOther->mOffset,
|
||||
@ -168,7 +168,7 @@ VideoData::ShallowCopyUpdateDuration(VideoData* aOther,
|
||||
|
||||
/* static */
|
||||
already_AddRefed<VideoData>
|
||||
VideoData::ShallowCopyUpdateTimestamp(VideoData* aOther,
|
||||
VideoData::ShallowCopyUpdateTimestamp(const VideoData* aOther,
|
||||
int64_t aTimestamp)
|
||||
{
|
||||
NS_ENSURE_TRUE(aOther, nullptr);
|
||||
@ -185,7 +185,7 @@ VideoData::ShallowCopyUpdateTimestamp(VideoData* aOther,
|
||||
|
||||
/* static */
|
||||
already_AddRefed<VideoData>
|
||||
VideoData::ShallowCopyUpdateTimestampAndDuration(VideoData* aOther,
|
||||
VideoData::ShallowCopyUpdateTimestampAndDuration(const VideoData* aOther,
|
||||
int64_t aTimestamp,
|
||||
int64_t aDuration)
|
||||
{
|
||||
@ -203,7 +203,7 @@ VideoData::ShallowCopyUpdateTimestampAndDuration(VideoData* aOther,
|
||||
|
||||
/* static */
|
||||
void VideoData::SetVideoDataToImage(PlanarYCbCrImage* aVideoImage,
|
||||
VideoInfo& aInfo,
|
||||
const VideoInfo& aInfo,
|
||||
const YCbCrBuffer &aBuffer,
|
||||
const IntRect& aPicture,
|
||||
bool aCopyData)
|
||||
@ -241,7 +241,7 @@ void VideoData::SetVideoDataToImage(PlanarYCbCrImage* aVideoImage,
|
||||
|
||||
/* static */
|
||||
already_AddRefed<VideoData>
|
||||
VideoData::Create(VideoInfo& aInfo,
|
||||
VideoData::Create(const VideoInfo& aInfo,
|
||||
ImageContainer* aContainer,
|
||||
Image* aImage,
|
||||
int64_t aOffset,
|
||||
@ -357,7 +357,7 @@ VideoData::Create(VideoInfo& aInfo,
|
||||
|
||||
/* static */
|
||||
already_AddRefed<VideoData>
|
||||
VideoData::Create(VideoInfo& aInfo,
|
||||
VideoData::Create(const VideoInfo& aInfo,
|
||||
ImageContainer* aContainer,
|
||||
int64_t aOffset,
|
||||
int64_t aTime,
|
||||
@ -373,7 +373,7 @@ VideoData::Create(VideoInfo& aInfo,
|
||||
|
||||
/* static */
|
||||
already_AddRefed<VideoData>
|
||||
VideoData::Create(VideoInfo& aInfo,
|
||||
VideoData::Create(const VideoInfo& aInfo,
|
||||
Image* aImage,
|
||||
int64_t aOffset,
|
||||
int64_t aTime,
|
||||
@ -389,7 +389,7 @@ VideoData::Create(VideoInfo& aInfo,
|
||||
|
||||
/* static */
|
||||
already_AddRefed<VideoData>
|
||||
VideoData::CreateFromImage(VideoInfo& aInfo,
|
||||
VideoData::CreateFromImage(const VideoInfo& aInfo,
|
||||
ImageContainer* aContainer,
|
||||
int64_t aOffset,
|
||||
int64_t aTime,
|
||||
@ -412,7 +412,7 @@ VideoData::CreateFromImage(VideoInfo& aInfo,
|
||||
#ifdef MOZ_OMX_DECODER
|
||||
/* static */
|
||||
already_AddRefed<VideoData>
|
||||
VideoData::Create(VideoInfo& aInfo,
|
||||
VideoData::Create(const VideoInfo& aInfo,
|
||||
ImageContainer* aContainer,
|
||||
int64_t aOffset,
|
||||
int64_t aTime,
|
||||
|
@ -174,7 +174,7 @@ public:
|
||||
// Returns nsnull if an error occurs. This may indicate that memory couldn't
|
||||
// be allocated to create the VideoData object, or it may indicate some
|
||||
// problem with the input data (e.g. negative stride).
|
||||
static already_AddRefed<VideoData> Create(VideoInfo& aInfo,
|
||||
static already_AddRefed<VideoData> Create(const VideoInfo& aInfo,
|
||||
ImageContainer* aContainer,
|
||||
Image* aImage,
|
||||
int64_t aOffset,
|
||||
@ -186,7 +186,7 @@ public:
|
||||
const IntRect& aPicture);
|
||||
|
||||
// Variant that always makes a copy of aBuffer
|
||||
static already_AddRefed<VideoData> Create(VideoInfo& aInfo,
|
||||
static already_AddRefed<VideoData> Create(const VideoInfo& aInfo,
|
||||
ImageContainer* aContainer,
|
||||
int64_t aOffset,
|
||||
int64_t aTime,
|
||||
@ -197,7 +197,7 @@ public:
|
||||
const IntRect& aPicture);
|
||||
|
||||
// Variant to create a VideoData instance given an existing aImage
|
||||
static already_AddRefed<VideoData> Create(VideoInfo& aInfo,
|
||||
static already_AddRefed<VideoData> Create(const VideoInfo& aInfo,
|
||||
Image* aImage,
|
||||
int64_t aOffset,
|
||||
int64_t aTime,
|
||||
@ -207,17 +207,17 @@ public:
|
||||
int64_t aTimecode,
|
||||
const IntRect& aPicture);
|
||||
|
||||
static already_AddRefed<VideoData> Create(VideoInfo& aInfo,
|
||||
ImageContainer* aContainer,
|
||||
int64_t aOffset,
|
||||
int64_t aTime,
|
||||
int64_t aDuration,
|
||||
layers::TextureClient* aBuffer,
|
||||
bool aKeyframe,
|
||||
int64_t aTimecode,
|
||||
const IntRect& aPicture);
|
||||
static already_AddRefed<VideoData> Create(const VideoInfo& aInfo,
|
||||
ImageContainer* aContainer,
|
||||
int64_t aOffset,
|
||||
int64_t aTime,
|
||||
int64_t aDuration,
|
||||
layers::TextureClient* aBuffer,
|
||||
bool aKeyframe,
|
||||
int64_t aTimecode,
|
||||
const IntRect& aPicture);
|
||||
|
||||
static already_AddRefed<VideoData> CreateFromImage(VideoInfo& aInfo,
|
||||
static already_AddRefed<VideoData> CreateFromImage(const VideoInfo& aInfo,
|
||||
ImageContainer* aContainer,
|
||||
int64_t aOffset,
|
||||
int64_t aTime,
|
||||
@ -234,26 +234,26 @@ public:
|
||||
// in reader backends that can't determine the duration of a VideoData
|
||||
// until the next frame is decoded, i.e. it's a way to change the const
|
||||
// duration field on a VideoData.
|
||||
static already_AddRefed<VideoData> ShallowCopyUpdateDuration(VideoData* aOther,
|
||||
static already_AddRefed<VideoData> ShallowCopyUpdateDuration(const VideoData* aOther,
|
||||
int64_t aDuration);
|
||||
|
||||
// Creates a new VideoData identical to aOther, but with a different
|
||||
// specified timestamp. All data from aOther is copied into the new
|
||||
// VideoData, as ShallowCopyUpdateDuration() does.
|
||||
static already_AddRefed<VideoData> ShallowCopyUpdateTimestamp(VideoData* aOther,
|
||||
static already_AddRefed<VideoData> ShallowCopyUpdateTimestamp(const VideoData* aOther,
|
||||
int64_t aTimestamp);
|
||||
|
||||
// Creates a new VideoData identical to aOther, but with a different
|
||||
// specified timestamp and duration. All data from aOther is copied
|
||||
// into the new VideoData, as ShallowCopyUpdateDuration() does.
|
||||
static already_AddRefed<VideoData>
|
||||
ShallowCopyUpdateTimestampAndDuration(VideoData* aOther, int64_t aTimestamp,
|
||||
ShallowCopyUpdateTimestampAndDuration(const VideoData* aOther, int64_t aTimestamp,
|
||||
int64_t aDuration);
|
||||
|
||||
// Initialize PlanarYCbCrImage. Only When aCopyData is true,
|
||||
// video data is copied to PlanarYCbCrImage.
|
||||
static void SetVideoDataToImage(PlanarYCbCrImage* aVideoImage,
|
||||
VideoInfo& aInfo,
|
||||
const VideoInfo& aInfo,
|
||||
const YCbCrBuffer &aBuffer,
|
||||
const IntRect& aPicture,
|
||||
bool aCopyData);
|
||||
|
Loading…
Reference in New Issue
Block a user