• Home
  • Raw
  • Download

Lines Matching refs:mjpeg_decoder

127   MJpegDecoder mjpeg_decoder;  in MJPGSize()  local
128 LIBYUV_BOOL ret = mjpeg_decoder.LoadFrame(sample, sample_size); in MJPGSize()
130 *width = mjpeg_decoder.GetWidth(); in MJPGSize()
131 *height = mjpeg_decoder.GetHeight(); in MJPGSize()
133 mjpeg_decoder.UnloadFrame(); in MJPGSize()
153 MJpegDecoder mjpeg_decoder; in MJPGToI420() local
154 LIBYUV_BOOL ret = mjpeg_decoder.LoadFrame(sample, sample_size); in MJPGToI420()
155 if (ret && (mjpeg_decoder.GetWidth() != w || in MJPGToI420()
156 mjpeg_decoder.GetHeight() != h)) { in MJPGToI420()
158 mjpeg_decoder.UnloadFrame(); in MJPGToI420()
164 if (mjpeg_decoder.GetColorSpace() == in MJPGToI420()
166 mjpeg_decoder.GetNumComponents() == 3 && in MJPGToI420()
167 mjpeg_decoder.GetVertSampFactor(0) == 2 && in MJPGToI420()
168 mjpeg_decoder.GetHorizSampFactor(0) == 2 && in MJPGToI420()
169 mjpeg_decoder.GetVertSampFactor(1) == 1 && in MJPGToI420()
170 mjpeg_decoder.GetHorizSampFactor(1) == 1 && in MJPGToI420()
171 mjpeg_decoder.GetVertSampFactor(2) == 1 && in MJPGToI420()
172 mjpeg_decoder.GetHorizSampFactor(2) == 1) { in MJPGToI420()
173 ret = mjpeg_decoder.DecodeToCallback(&JpegCopyI420, &bufs, dw, dh); in MJPGToI420()
175 } else if (mjpeg_decoder.GetColorSpace() == in MJPGToI420()
177 mjpeg_decoder.GetNumComponents() == 3 && in MJPGToI420()
178 mjpeg_decoder.GetVertSampFactor(0) == 1 && in MJPGToI420()
179 mjpeg_decoder.GetHorizSampFactor(0) == 2 && in MJPGToI420()
180 mjpeg_decoder.GetVertSampFactor(1) == 1 && in MJPGToI420()
181 mjpeg_decoder.GetHorizSampFactor(1) == 1 && in MJPGToI420()
182 mjpeg_decoder.GetVertSampFactor(2) == 1 && in MJPGToI420()
183 mjpeg_decoder.GetHorizSampFactor(2) == 1) { in MJPGToI420()
184 ret = mjpeg_decoder.DecodeToCallback(&JpegI422ToI420, &bufs, dw, dh); in MJPGToI420()
186 } else if (mjpeg_decoder.GetColorSpace() == in MJPGToI420()
188 mjpeg_decoder.GetNumComponents() == 3 && in MJPGToI420()
189 mjpeg_decoder.GetVertSampFactor(0) == 1 && in MJPGToI420()
190 mjpeg_decoder.GetHorizSampFactor(0) == 1 && in MJPGToI420()
191 mjpeg_decoder.GetVertSampFactor(1) == 1 && in MJPGToI420()
192 mjpeg_decoder.GetHorizSampFactor(1) == 1 && in MJPGToI420()
193 mjpeg_decoder.GetVertSampFactor(2) == 1 && in MJPGToI420()
194 mjpeg_decoder.GetHorizSampFactor(2) == 1) { in MJPGToI420()
195 ret = mjpeg_decoder.DecodeToCallback(&JpegI444ToI420, &bufs, dw, dh); in MJPGToI420()
197 } else if (mjpeg_decoder.GetColorSpace() == in MJPGToI420()
199 mjpeg_decoder.GetNumComponents() == 3 && in MJPGToI420()
200 mjpeg_decoder.GetVertSampFactor(0) == 1 && in MJPGToI420()
201 mjpeg_decoder.GetHorizSampFactor(0) == 4 && in MJPGToI420()
202 mjpeg_decoder.GetVertSampFactor(1) == 1 && in MJPGToI420()
203 mjpeg_decoder.GetHorizSampFactor(1) == 1 && in MJPGToI420()
204 mjpeg_decoder.GetVertSampFactor(2) == 1 && in MJPGToI420()
205 mjpeg_decoder.GetHorizSampFactor(2) == 1) { in MJPGToI420()
206 ret = mjpeg_decoder.DecodeToCallback(&JpegI411ToI420, &bufs, dw, dh); in MJPGToI420()
208 } else if (mjpeg_decoder.GetColorSpace() == in MJPGToI420()
210 mjpeg_decoder.GetNumComponents() == 1 && in MJPGToI420()
211 mjpeg_decoder.GetVertSampFactor(0) == 1 && in MJPGToI420()
212 mjpeg_decoder.GetHorizSampFactor(0) == 1) { in MJPGToI420()
213 ret = mjpeg_decoder.DecodeToCallback(&JpegI400ToI420, &bufs, dw, dh); in MJPGToI420()
218 mjpeg_decoder.UnloadFrame(); in MJPGToI420()
315 MJpegDecoder mjpeg_decoder; in MJPGToARGB() local
316 LIBYUV_BOOL ret = mjpeg_decoder.LoadFrame(sample, sample_size); in MJPGToARGB()
317 if (ret && (mjpeg_decoder.GetWidth() != w || in MJPGToARGB()
318 mjpeg_decoder.GetHeight() != h)) { in MJPGToARGB()
320 mjpeg_decoder.UnloadFrame(); in MJPGToARGB()
326 if (mjpeg_decoder.GetColorSpace() == in MJPGToARGB()
328 mjpeg_decoder.GetNumComponents() == 3 && in MJPGToARGB()
329 mjpeg_decoder.GetVertSampFactor(0) == 2 && in MJPGToARGB()
330 mjpeg_decoder.GetHorizSampFactor(0) == 2 && in MJPGToARGB()
331 mjpeg_decoder.GetVertSampFactor(1) == 1 && in MJPGToARGB()
332 mjpeg_decoder.GetHorizSampFactor(1) == 1 && in MJPGToARGB()
333 mjpeg_decoder.GetVertSampFactor(2) == 1 && in MJPGToARGB()
334 mjpeg_decoder.GetHorizSampFactor(2) == 1) { in MJPGToARGB()
335 ret = mjpeg_decoder.DecodeToCallback(&JpegI420ToARGB, &bufs, dw, dh); in MJPGToARGB()
337 } else if (mjpeg_decoder.GetColorSpace() == in MJPGToARGB()
339 mjpeg_decoder.GetNumComponents() == 3 && in MJPGToARGB()
340 mjpeg_decoder.GetVertSampFactor(0) == 1 && in MJPGToARGB()
341 mjpeg_decoder.GetHorizSampFactor(0) == 2 && in MJPGToARGB()
342 mjpeg_decoder.GetVertSampFactor(1) == 1 && in MJPGToARGB()
343 mjpeg_decoder.GetHorizSampFactor(1) == 1 && in MJPGToARGB()
344 mjpeg_decoder.GetVertSampFactor(2) == 1 && in MJPGToARGB()
345 mjpeg_decoder.GetHorizSampFactor(2) == 1) { in MJPGToARGB()
346 ret = mjpeg_decoder.DecodeToCallback(&JpegI422ToARGB, &bufs, dw, dh); in MJPGToARGB()
348 } else if (mjpeg_decoder.GetColorSpace() == in MJPGToARGB()
350 mjpeg_decoder.GetNumComponents() == 3 && in MJPGToARGB()
351 mjpeg_decoder.GetVertSampFactor(0) == 1 && in MJPGToARGB()
352 mjpeg_decoder.GetHorizSampFactor(0) == 1 && in MJPGToARGB()
353 mjpeg_decoder.GetVertSampFactor(1) == 1 && in MJPGToARGB()
354 mjpeg_decoder.GetHorizSampFactor(1) == 1 && in MJPGToARGB()
355 mjpeg_decoder.GetVertSampFactor(2) == 1 && in MJPGToARGB()
356 mjpeg_decoder.GetHorizSampFactor(2) == 1) { in MJPGToARGB()
357 ret = mjpeg_decoder.DecodeToCallback(&JpegI444ToARGB, &bufs, dw, dh); in MJPGToARGB()
359 } else if (mjpeg_decoder.GetColorSpace() == in MJPGToARGB()
361 mjpeg_decoder.GetNumComponents() == 3 && in MJPGToARGB()
362 mjpeg_decoder.GetVertSampFactor(0) == 1 && in MJPGToARGB()
363 mjpeg_decoder.GetHorizSampFactor(0) == 4 && in MJPGToARGB()
364 mjpeg_decoder.GetVertSampFactor(1) == 1 && in MJPGToARGB()
365 mjpeg_decoder.GetHorizSampFactor(1) == 1 && in MJPGToARGB()
366 mjpeg_decoder.GetVertSampFactor(2) == 1 && in MJPGToARGB()
367 mjpeg_decoder.GetHorizSampFactor(2) == 1) { in MJPGToARGB()
368 ret = mjpeg_decoder.DecodeToCallback(&JpegI411ToARGB, &bufs, dw, dh); in MJPGToARGB()
370 } else if (mjpeg_decoder.GetColorSpace() == in MJPGToARGB()
372 mjpeg_decoder.GetNumComponents() == 1 && in MJPGToARGB()
373 mjpeg_decoder.GetVertSampFactor(0) == 1 && in MJPGToARGB()
374 mjpeg_decoder.GetHorizSampFactor(0) == 1) { in MJPGToARGB()
375 ret = mjpeg_decoder.DecodeToCallback(&JpegI400ToARGB, &bufs, dw, dh); in MJPGToARGB()
380 mjpeg_decoder.UnloadFrame(); in MJPGToARGB()