Lines Matching refs:src

72 typedef int (*ConverterFunction)(const BufferSpec& src, const BufferSpec& dst, bool v_flip);
73 int DoCopy(const BufferSpec& src, const BufferSpec& dst, bool vFlip);
74 int ConvertFromRGB565(const BufferSpec& src, const BufferSpec& dst, bool vFlip);
75 int ConvertFromYV12(const BufferSpec& src, const BufferSpec& dst, bool vFlip);
183 int ConvertFromRGB565(const BufferSpec& src, const BufferSpec& dst, bool vFlip) { in ConvertFromRGB565() argument
187 uint8_t* srcBuffer = src.buffer + src.cropY * src.strideBytes + src.cropX * src.sampleBytes; in ConvertFromRGB565()
188 const int srcStrideBytes = static_cast<int>(src.strideBytes); in ConvertFromRGB565()
192 int width = static_cast<int>(src.cropWidth); in ConvertFromRGB565()
193 int height = static_cast<int>(src.cropHeight); in ConvertFromRGB565()
203 int ConvertFromYV12(const BufferSpec& src, const BufferSpec& dst, bool vFlip) { in ConvertFromYV12() argument
210 auto& srcBufferYCbCrOpt = src.buffer_ycbcr; in ConvertFromYV12()
231 srcY += src.cropY * srcBufferYCbCr.ystride + src.cropX; in ConvertFromYV12()
232 srcV += (src.cropY / 2) * srcBufferYCbCr.cstride + (src.cropX / 2); in ConvertFromYV12()
233 srcU += (src.cropY / 2) * srcBufferYCbCr.cstride + (src.cropX / 2); in ConvertFromYV12()
251 int DoConversion(const BufferSpec& src, const BufferSpec& dst, bool v_flip) { in DoConversion() argument
252 ConverterFunction func = GetConverterForDrmFormat(src.drmFormat); in DoConversion()
257 return func(src, dst, v_flip); in DoConversion()
260 int DoCopy(const BufferSpec& src, const BufferSpec& dst, bool v_flip) { in DoCopy() argument
264 uint8_t* srcBuffer = src.buffer + src.cropY * src.strideBytes + src.cropX * src.sampleBytes; in DoCopy()
265 const int srcStrideBytes = static_cast<int>(src.strideBytes); in DoCopy()
268 int width = static_cast<int>(src.cropWidth); in DoCopy()
269 int height = static_cast<int>(src.cropHeight); in DoCopy()
285 int DoRotation(const BufferSpec& src, const BufferSpec& dst, libyuv::RotationMode rotation, in DoRotation() argument
290 uint8_t* srcBuffer = src.buffer + src.cropY * src.strideBytes + src.cropX * src.sampleBytes; in DoRotation()
291 const int srcStrideBytes = static_cast<int>(src.strideBytes); in DoRotation()
294 int width = static_cast<int>(src.cropWidth); in DoRotation()
295 int height = static_cast<int>(src.cropHeight); in DoRotation()
306 int DoScaling(const BufferSpec& src, const BufferSpec& dst, bool v_flip) { in DoScaling() argument
310 uint8_t* srcBuffer = src.buffer + src.cropY * src.strideBytes + src.cropX * src.sampleBytes; in DoScaling()
312 const int srcStrideBytes = static_cast<int>(src.strideBytes); in DoScaling()
314 const int srcWidth = static_cast<int>(src.cropWidth); in DoScaling()
315 int srcHeight = static_cast<int>(src.cropHeight); in DoScaling()
327 int DoAttenuation(const BufferSpec& src, const BufferSpec& dst, bool v_flip) { in DoAttenuation() argument
331 uint8_t* srcBuffer = src.buffer + src.cropY * src.strideBytes + src.cropX * src.sampleBytes; in DoAttenuation()
333 const int srcStrideBytes = static_cast<int>(src.strideBytes); in DoAttenuation()
346 int DoBlending(const BufferSpec& src, const BufferSpec& dst, bool v_flip) { in DoBlending() argument
350 uint8_t* srcBuffer = src.buffer + src.cropY * src.strideBytes + src.cropX * src.sampleBytes; in DoBlending()
352 const int srcStrideBytes = static_cast<int>(src.strideBytes); in DoBlending()