Home
last modified time | relevance | path

Searched refs:src_mjpg (Results 1 – 2 of 2) sorted by relevance

/external/libyuv/files/source/
Dmjpeg_validate.cc21 static LIBYUV_BOOL ScanEOI(const uint8_t* src_mjpg, size_t src_size_mjpg) { in ScanEOI() argument
23 const uint8_t* end = src_mjpg + src_size_mjpg - 1; in ScanEOI()
24 const uint8_t* it = src_mjpg; in ScanEOI()
42 LIBYUV_BOOL ValidateJpeg(const uint8_t* src_mjpg, size_t src_size_mjpg) { in ValidateJpeg() argument
46 if (src_size_mjpg < 64 || src_size_mjpg > kMaxJpegSize || !src_mjpg) { in ValidateJpeg()
51 if (src_mjpg[0] != 0xff || src_mjpg[1] != 0xd8 || src_mjpg[2] != 0xff) { in ValidateJpeg()
58 if (ScanEOI(src_mjpg + src_size_mjpg - kBackSearchSize, kBackSearchSize)) { in ValidateJpeg()
65 return ScanEOI(src_mjpg + 2, src_size_mjpg - 2); in ValidateJpeg()
Dconvert_jpeg.cc92 int MJPGSize(const uint8_t* src_mjpg, in MJPGSize() argument
97 LIBYUV_BOOL ret = mjpeg_decoder.LoadFrame(src_mjpg, src_size_mjpg); in MJPGSize()
110 int MJPGToI420(const uint8_t* src_mjpg, in MJPGToI420() argument
129 LIBYUV_BOOL ret = mjpeg_decoder.LoadFrame(src_mjpg, src_size_mjpg); in MJPGToI420()
252 int MJPGToNV21(const uint8_t* src_mjpg, in MJPGToNV21() argument
269 LIBYUV_BOOL ret = mjpeg_decoder.LoadFrame(src_mjpg, src_size_mjpg); in MJPGToNV21()
385 int MJPGToARGB(const uint8_t* src_mjpg, in MJPGToARGB() argument
400 LIBYUV_BOOL ret = mjpeg_decoder.LoadFrame(src_mjpg, src_size_mjpg); in MJPGToARGB()