Home
last modified time | relevance | path

Searched refs:io (Results 1 – 25 of 83) sorted by relevance

1234

/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dec/
A Dio_dec.c51 WebPSamplerProcessPlane(io->y, io->y_stride, in EmitSampledRGB()
52 io->u, io->v, io->uv_stride, in EmitSampledRGB()
73 const int y_end = io->mb_y + io->mb_h; in EmitFancyRGB()
100 if (io->crop_top + y_end < io->crop_bottom) { in EmitFancyRGB()
171 if (io->crop_top + io->mb_y + io->mb_h == io->crop_bottom) { in GetAlphaSourceRow()
268 io->a, io->width, io->mb_w, mb_h, 0); in EmitRescaledYUV()
282 const int num_lines_out = Rescale(io->a, io->width, io->mb_h, p->scaler_a); in EmitRescaledAlphaYUV()
386 io->y + j * io->y_stride, io->y_stride); in EmitRescaledRGB()
391 io->u + uv_j * io->uv_stride, io->uv_stride); in EmitRescaledRGB()
394 io->v + uv_j * io->uv_stride, io->uv_stride); in EmitRescaledRGB()
[all …]
A Dalpha_dec.c55 VP8Io* const io = &dec->io_; in ALPHInit() local
82 VP8InitIo(io); in ALPHInit()
83 WebPInitCustomIo(NULL, io); in ALPHInit()
84 io->opaque = dec; in ALPHInit()
85 io->width = src_io->width; in ALPHInit()
86 io->height = src_io->height; in ALPHInit()
91 io->crop_top = src_io->crop_top; in ALPHInit()
151 const int stride = io->width; in AllocateAlphaPlane()
180 const int width = io->width; in VP8DecompressAlphaRows()
217 io->crop_right - io->crop_left, in VP8DecompressAlphaRows()
[all …]
A Dframe_dec.c469 io->a += io->width * delta_y; in FinishRow()
473 io->y += io->crop_left; in FinishRow()
474 io->u += io->crop_left >> 1; in FinishRow()
475 io->v += io->crop_left >> 1; in FinishRow()
477 io->a += io->crop_left; in FinishRow()
479 io->mb_y = y_start - io->crop_top; in FinishRow()
480 io->mb_w = io->crop_right - io->crop_left; in FinishRow()
482 ok = io->put(io); in FinishRow()
552 if (io->setup != NULL && !io->setup(io)) { in VP8EnterCritical()
608 io->teardown(io); in VP8ExitCritical()
[all …]
A Dvp8_dec.c51 if (io != NULL) { in VP8InitIoInternal()
52 memset(io, 0, sizeof(*io)); in VP8InitIoInternal()
268 if (io == NULL) { in VP8GetHeaders()
272 buf = io->data; in VP8GetHeaders()
329 io->crop_right = io->width; in VP8GetHeaders()
330 io->crop_bottom = io->height; in VP8GetHeaders()
332 io->scaled_width = io->width; in VP8GetHeaders()
333 io->scaled_height = io->height; in VP8GetHeaders()
335 io->mb_w = io->width; // sanity check in VP8GetHeaders()
336 io->mb_h = io->height; // ditto in VP8GetHeaders()
[all …]
A Dvp8_dec.h43 typedef int (*VP8IoPutHook)(const VP8Io* io);
44 typedef int (*VP8IoSetupHook)(VP8Io* io);
45 typedef void (*VP8IoTeardownHook)(const VP8Io* io);
131 static WEBP_INLINE int VP8InitIo(VP8Io* const io) { in VP8InitIo() argument
132 return VP8InitIoInternal(io, WEBP_DECODER_ABI_VERSION); in VP8InitIo()
137 int VP8GetHeaders(VP8Decoder* const dec, VP8Io* const io);
141 int VP8Decode(VP8Decoder* const dec, VP8Io* const io);
A Dwebp_dec.c450 VP8Io io; in DecodeInto() local
462 VP8InitIo(&io); in DecodeInto()
480 status = WebPAllocateDecBuffer(io.width, io.height, params->options, in DecodeInto()
485 io.width, io.height); in DecodeInto()
502 status = WebPAllocateDecBuffer(io.width, io.height, params->options, in DecodeInto()
809 io->crop_left = x; in WebPIoInitFromOptions()
810 io->crop_top = y; in WebPIoInitFromOptions()
813 io->mb_w = w; in WebPIoInitFromOptions()
814 io->mb_h = h; in WebPIoInitFromOptions()
818 if (io->use_scaling) { in WebPIoInitFromOptions()
[all …]
A Dwebpi_dec.h28 typedef int (*OutputFunc)(const VP8Io* const io, WebPDecParams* const p);
29 typedef int (*OutputAlphaFunc)(const VP8Io* const io, WebPDecParams* const p,
82 void WebPInitCustomIo(WebPDecParams* const params, VP8Io* const io);
87 VP8Io* const io, WEBP_CSP_MODE src_colorspace);
A Dvp8l_dec.c720 assert(io->crop_left < io->crop_right); in SetCropWindow()
733 io->mb_y = y_start - io->crop_top; in SetCropWindow()
734 io->mb_w = io->crop_right - io->crop_left; in SetCropWindow()
811 io->mb_w, io->mb_h, rgba, buf->stride); in ProcessRows()
817 EmitRowsYUVA(dec, rows_data, in_stride, io->mb_w, io->mb_h); in ProcessRows()
1644 if (io == NULL) { in VP8LDecodeHeader()
1649 dec->io_ = io; in VP8LDecodeHeader()
1651 VP8LInitBitReader(&dec->br_, io->data, io->data_size); in VP8LDecodeHeader()
1657 io->width = width; in VP8LDecodeHeader()
1670 VP8Io* io = NULL; in VP8LDecodeImage() local
[all …]
/AliOS-Things-master/components/SDL2/test/
A Dtestresample.c27 SDL_RWops *io = NULL; in main() local
78 io = SDL_RWFromFile(argv[2], "wb"); in main()
79 if (io == NULL) { in main()
91 SDL_WriteLE32(io, 0x46464952); /* RIFF */ in main()
92 SDL_WriteLE32(io, cvt.len_cvt + 36); in main()
94 SDL_WriteLE32(io, 0x20746D66); /* fmt */ in main()
95 SDL_WriteLE32(io, 16); /* chunk size */ in main()
97 SDL_WriteLE16(io, cvtchans); /* channels */ in main()
98 SDL_WriteLE32(io, cvtfreq); /* sample rate */ in main()
104 SDL_RWwrite(io, cvt.buf, cvt.len_cvt, 1); in main()
[all …]
/AliOS-Things-master/components/py_engine/tests/basics/
A Dio_stringio1.py2 import uio as io namespace
4 import io
6 a = io.StringIO()
11 a = io.StringIO("foobar")
16 a = io.StringIO()
20 a = io.StringIO("foo")
24 a = io.StringIO("foo")
28 a = io.StringIO("foo")
32 a = io.StringIO()
36 a = io.StringIO()
[all …]
A Dio_buffered_writer.py1 import uio as io namespace
4 io.BytesIO
5 io.BufferedWriter
10 bts = io.BytesIO()
11 buf = io.BufferedWriter(bts, 8)
24 bts = io.BytesIO()
25 buf = io.BufferedWriter(bts, 1)
A Dio_iobase.py2 import uio as io namespace
4 import io
7 io.IOBase
13 class MyIO(io.IOBase):
A Dio_bytesio_cow.py4 import uio as io namespace
6 import io
10 a = io.BytesIO(b)
17 a = io.BytesIO(b)
A Dio_bytesio_ext.py3 import uio as io namespace
5 import io
7 a = io.BytesIO(b"foobar")
11 a = io.BytesIO()
A Dio_stringio_with.py2 import uio as io namespace
4 import io
7 with io.StringIO() as b:
A Dio_bytesio_ext2.py2 import uio as io namespace
4 import io
6 a = io.BytesIO(b"foobar")
/AliOS-Things-master/components/py_engine/tests/extmod/
A Duzlib_decompio_gz.py3 import uio as io namespace
10 buf = io.BytesIO(
25 buf = io.BytesIO(
32 buf = io.BytesIO(
39 buf = io.BytesIO(
48 buf = io.BytesIO(
A Dujson_dump_iobase.py4 import uio as io namespace
8 import io, json
13 if not hasattr(io, "IOBase"):
19 class S(io.IOBase):
A Dussl_keycert.py4 import uio as io namespace
14 ssl.wrap_socket(io.BytesIO(), key=b"!")
20 ssl.wrap_socket(io.BytesIO(), key=key)
26 ssl.wrap_socket(io.BytesIO(), key=key, cert=b"!")
A Duzlib_decompio.py3 import uio as io namespace
10 buf = io.BytesIO(b"\xcbH\xcd\xc9\xc9\x07\x00")
24 inp = zlib.DecompIO(io.BytesIO(b"x\x9c30\xa0=\x00\x00\xb3q\x12\xc1"))
29 inp = zlib.DecompIO(io.BytesIO(b"x\x9c30\xa0=\x00\x00\xb3q\x12\xc0"))
A Dussl_basic.py4 import uio as io namespace
12 ss = ssl.wrap_socket(io.BytesIO(), server_hostname="test.example.com")
17 socket = io.BytesIO()
/AliOS-Things-master/components/SDL2/src/audio/disk/
A DSDL_diskaudio.c55 const size_t written = SDL_RWwrite(this->hidden->io, in DISKAUDIO_PlayDevice()
82 if (h->io) { in DISKAUDIO_CaptureFromDevice()
83 const size_t br = SDL_RWread(h->io, buffer, 1, buflen); in DISKAUDIO_CaptureFromDevice()
87 SDL_RWclose(h->io); in DISKAUDIO_CaptureFromDevice()
88 h->io = NULL; in DISKAUDIO_CaptureFromDevice()
108 if (this->hidden->io != NULL) { in DISKAUDIO_CloseDevice()
109 SDL_RWclose(this->hidden->io); in DISKAUDIO_CloseDevice()
149 this->hidden->io = SDL_RWFromFile(fname, iscapture ? "rb" : "wb"); in DISKAUDIO_OpenDevice()
150 if (this->hidden->io == NULL) { in DISKAUDIO_OpenDevice()
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/
A Dlabel_wav.py45 with tf.io.gfile.GFile(filename, 'rb') as f:
53 return [line.rstrip() for line in tf.io.gfile.GFile(filename)]
79 if not wav or not tf.io.gfile.exists(wav):
81 if not labels or not tf.io.gfile.exists(labels):
84 if not graph or not tf.io.gfile.exists(graph):
A Dlabel_wav_dir.py46 with tf.io.gfile.GFile(filename, 'rb') as f:
54 return [line.rstrip() for line in tf.io.gfile.GFile(filename)]
66 if not wav_path or not tf.io.gfile.exists(wav_path):
87 if not labels or not tf.io.gfile.exists(labels):
90 if not graph or not tf.io.gfile.exists(graph):
/AliOS-Things-master/components/py_engine/tests/misc/
A Dprint_exception.py3 import uio as io namespace
6 import io
21 buf = io.StringIO()

Completed in 44 milliseconds

1234