Home
last modified time | relevance | path

Searched refs:webp_data (Results 1 – 25 of 32) sorted by relevance

12

/third_party/skia/third_party/externals/libwebp/src/webp/
Dmux_types.h65 static WEBP_INLINE void WebPDataInit(WebPData* webp_data) { in WebPDataInit() argument
66 if (webp_data != NULL) { in WebPDataInit()
67 memset(webp_data, 0, sizeof(*webp_data)); in WebPDataInit()
73 static WEBP_INLINE void WebPDataClear(WebPData* webp_data) { in WebPDataClear() argument
74 if (webp_data != NULL) { in WebPDataClear()
75 WebPFree((void*)webp_data->bytes); in WebPDataClear()
76 WebPDataInit(webp_data); in WebPDataClear()
Ddemux.h288 const WebPData* webp_data, const WebPAnimDecoderOptions* dec_options) { in WebPAnimDecoderNew() argument
289 return WebPAnimDecoderNewInternal(webp_data, dec_options, in WebPAnimDecoderNew()
/third_party/flutter/skia/third_party/externals/libwebp/src/webp/
Dmux_types.h65 static WEBP_INLINE void WebPDataInit(WebPData* webp_data) { in WebPDataInit() argument
66 if (webp_data != NULL) { in WebPDataInit()
67 memset(webp_data, 0, sizeof(*webp_data)); in WebPDataInit()
73 static WEBP_INLINE void WebPDataClear(WebPData* webp_data) { in WebPDataClear() argument
74 if (webp_data != NULL) { in WebPDataClear()
75 free((void*)webp_data->bytes); in WebPDataClear()
76 WebPDataInit(webp_data); in WebPDataClear()
Ddemux.h288 const WebPData* webp_data, const WebPAnimDecoderOptions* dec_options) { in WebPAnimDecoderNew() argument
289 return WebPAnimDecoderNewInternal(webp_data, dec_options, in WebPAnimDecoderNew()
/third_party/skia/third_party/externals/libwebp/tests/fuzzer/
Dmux_demux_api_fuzzer.c22 WebPData webp_data; in LLVMFuzzerTestOneInput() local
23 WebPDataInit(&webp_data); in LLVMFuzzerTestOneInput()
24 webp_data.size = size; in LLVMFuzzerTestOneInput()
25 webp_data.bytes = data; in LLVMFuzzerTestOneInput()
32 WebPMux* mux = WebPMuxCreate(&webp_data, size & 2); in LLVMFuzzerTestOneInput()
63 demux = WebPDemuxPartial(&webp_data, &state); in LLVMFuzzerTestOneInput()
69 demux = WebPDemux(&webp_data); in LLVMFuzzerTestOneInput()
Danimation_api_fuzzer.c23 WebPData webp_data; in LLVMFuzzerTestOneInput() local
24 WebPDataInit(&webp_data); in LLVMFuzzerTestOneInput()
25 webp_data.size = size; in LLVMFuzzerTestOneInput()
26 webp_data.bytes = data; in LLVMFuzzerTestOneInput()
29 WebPDemuxer* const demux = WebPDemux(&webp_data); in LLVMFuzzerTestOneInput()
67 WebPAnimDecoder* dec = WebPAnimDecoderNew(&webp_data, &dec_options); in LLVMFuzzerTestOneInput()
Danimencoder_fuzzer.cc164 WebPData webp_data; in LLVMFuzzerTestOneInput() local
165 WebPDataInit(&webp_data); in LLVMFuzzerTestOneInput()
166 if (!WebPAnimEncoderAssemble(enc, &webp_data)) { in LLVMFuzzerTestOneInput()
170 WebPDataClear(&webp_data); in LLVMFuzzerTestOneInput()
175 WebPDataClear(&webp_data); in LLVMFuzzerTestOneInput()
Danimdecoder_fuzzer.cc33 WebPData webp_data = { data, size }; in LLVMFuzzerTestOneInput() local
34 WebPAnimDecoder* const dec = WebPAnimDecoderNew(&webp_data, NULL); in LLVMFuzzerTestOneInput()
/third_party/flutter/skia/third_party/externals/libwebp/examples/
Dimg2webp.c91 static int SetLoopCount(int loop_count, WebPData* const webp_data) { in SetLoopCount() argument
96 WebPMux* const mux = WebPMuxCreate(webp_data, 1); in SetLoopCount()
111 WebPDataClear(webp_data); in SetLoopCount()
112 err = WebPMuxAssemble(mux, webp_data); in SetLoopCount()
138 WebPData webp_data; in main() local
152 WebPDataInit(&webp_data); in main()
295 ok = ok && WebPAnimEncoderAssemble(enc, &webp_data); in main()
305 ok = SetLoopCount(loop_count, &webp_data); in main()
310 ok = ImgIoUtilWriteFile(output, webp_data.bytes, webp_data.size); in main()
319 pic_num, (unsigned int)webp_data.size); in main()
[all …]
Dgif2webp.c122 WebPData webp_data; in main() local
147 WebPDataInit(&webp_data); in main()
464 if (!WebPAnimEncoderAssemble(enc, &webp_data)) { in main()
488 mux = WebPMuxCreate(&webp_data, 1); in main()
493 WebPDataClear(&webp_data); in main()
536 err = WebPMuxAssemble(mux, &webp_data); in main()
545 if (!ImgIoUtilWriteFile((const char*)out_file, webp_data.bytes, in main()
546 webp_data.size)) { in main()
553 (int)webp_data.size); in main()
556 (int)webp_data.size, out_file); in main()
[all …]
Dexample_util.c127 WebPData* const webp_data) { in ExUtilReadFileToWebPData() argument
130 if (webp_data == NULL) return 0; in ExUtilReadFileToWebPData()
132 webp_data->bytes = data; in ExUtilReadFileToWebPData()
133 webp_data->size = size; in ExUtilReadFileToWebPData()
Danim_util.c208 static int IsWebP(const WebPData* const webp_data) { in IsWebP() argument
209 return (WebPGetInfo(webp_data->bytes, webp_data->size, NULL, NULL) != 0); in IsWebP()
214 const WebPData* const webp_data, in ReadAnimatedWebP() argument
226 dec = WebPAnimDecoderNew(webp_data, NULL); in ReadAnimatedWebP()
704 WebPData webp_data; in ReadAnimatedImage() local
706 WebPDataInit(&webp_data); in ReadAnimatedImage()
709 if (!ImgIoUtilReadFile(filename, &webp_data.bytes, &webp_data.size)) { in ReadAnimatedImage()
714 if (IsWebP(&webp_data)) { in ReadAnimatedImage()
715 ok = ReadAnimatedWebP(filename, &webp_data, image, dump_frames, in ReadAnimatedImage()
717 } else if (IsGIF(&webp_data)) { in ReadAnimatedImage()
[all …]
Dwebpinfo.c172 WebPData* const webp_data) { in ReadFileToWebPData() argument
176 webp_data->bytes = data; in ReadFileToWebPData()
177 webp_data->size = size; in ReadFileToWebPData()
184 static void InitMemBuffer(MemBuffer* const mem, const WebPData* webp_data) { in InitMemBuffer() argument
185 mem->buf_ = webp_data->bytes; in InitMemBuffer()
187 mem->end_ = webp_data->size; in InitMemBuffer()
1068 const WebPData* webp_data) { in AnalyzeWebP() argument
1073 InitMemBuffer(&mem_buffer, webp_data); in AnalyzeWebP()
1163 WebPData webp_data; in main() local
1172 !ReadFileToWebPData((const char*)in_file, &webp_data)) { in main()
[all …]
Dexample_util.h42 WebPData* const webp_data);
/third_party/skia/third_party/externals/libwebp/examples/
Dimg2webp.c91 static int SetLoopCount(int loop_count, WebPData* const webp_data) { in SetLoopCount() argument
96 WebPMux* const mux = WebPMuxCreate(webp_data, 1); in SetLoopCount()
111 WebPDataClear(webp_data); in SetLoopCount()
112 err = WebPMuxAssemble(mux, webp_data); in SetLoopCount()
138 WebPData webp_data; in main() local
152 WebPDataInit(&webp_data); in main()
295 ok = ok && WebPAnimEncoderAssemble(enc, &webp_data); in main()
305 ok = SetLoopCount(loop_count, &webp_data); in main()
310 ok = ImgIoUtilWriteFile(output, webp_data.bytes, webp_data.size); in main()
319 pic_num, (unsigned int)webp_data.size); in main()
[all …]
Dgif2webp.c122 WebPData webp_data; in main() local
147 WebPDataInit(&webp_data); in main()
464 if (!WebPAnimEncoderAssemble(enc, &webp_data)) { in main()
490 mux = WebPMuxCreate(&webp_data, 1); in main()
495 WebPDataClear(&webp_data); in main()
538 err = WebPMuxAssemble(mux, &webp_data); in main()
547 if (!ImgIoUtilWriteFile((const char*)out_file, webp_data.bytes, in main()
548 webp_data.size)) { in main()
555 (int)webp_data.size); in main()
558 (int)webp_data.size, out_file); in main()
[all …]
Dexample_util.c127 WebPData* const webp_data) { in ExUtilReadFileToWebPData() argument
130 if (webp_data == NULL) return 0; in ExUtilReadFileToWebPData()
132 webp_data->bytes = data; in ExUtilReadFileToWebPData()
133 webp_data->size = size; in ExUtilReadFileToWebPData()
Danim_util.c208 static int IsWebP(const WebPData* const webp_data) { in IsWebP() argument
209 return (WebPGetInfo(webp_data->bytes, webp_data->size, NULL, NULL) != 0); in IsWebP()
214 const WebPData* const webp_data, in ReadAnimatedWebP() argument
226 dec = WebPAnimDecoderNew(webp_data, NULL); in ReadAnimatedWebP()
704 WebPData webp_data; in ReadAnimatedImage() local
706 WebPDataInit(&webp_data); in ReadAnimatedImage()
709 if (!ImgIoUtilReadFile(filename, &webp_data.bytes, &webp_data.size)) { in ReadAnimatedImage()
714 if (IsWebP(&webp_data)) { in ReadAnimatedImage()
715 ok = ReadAnimatedWebP(filename, &webp_data, image, dump_frames, in ReadAnimatedImage()
717 } else if (IsGIF(&webp_data)) { in ReadAnimatedImage()
[all …]
Dwebpinfo.c172 WebPData* const webp_data) { in ReadFileToWebPData() argument
176 webp_data->bytes = data; in ReadFileToWebPData()
177 webp_data->size = size; in ReadFileToWebPData()
184 static void InitMemBuffer(MemBuffer* const mem, const WebPData* webp_data) { in InitMemBuffer() argument
185 mem->buf_ = webp_data->bytes; in InitMemBuffer()
187 mem->end_ = webp_data->size; in InitMemBuffer()
1068 const WebPData* webp_data) { in AnalyzeWebP() argument
1073 InitMemBuffer(&mem_buffer, webp_data); in AnalyzeWebP()
1163 WebPData webp_data; in main() local
1172 !ReadFileToWebPData((const char*)in_file, &webp_data)) { in main()
[all …]
Dexample_util.h42 WebPData* const webp_data);
/third_party/skia/third_party/externals/libwebp/src/demux/
Danim_decode.c86 const WebPData* webp_data, const WebPAnimDecoderOptions* dec_options, in WebPAnimDecoderNewInternal() argument
91 if (webp_data == NULL || in WebPAnimDecoderNewInternal()
98 if (WebPGetFeatures(webp_data->bytes, webp_data->size, &features) != in WebPAnimDecoderNewInternal()
114 dec->demux_ = WebPDemux(webp_data); in WebPAnimDecoderNewInternal()
/third_party/skia/third_party/externals/libwebp/
DREADME.mux157 WebPDemuxer* demux = WebPDemux(&webp_data);
207 WebPAnimEncoderAssemble(enc, webp_data);
209 // ... (Write the 'webp_data' to a file, or re-mux it further).
224 WebPAnimDecoder* dec = WebPAnimDecoderNew(webp_data, &dec_options);
/third_party/flutter/skia/third_party/externals/libwebp/
DREADME.mux156 WebPDemuxer* demux = WebPDemux(&webp_data);
206 WebPAnimEncoderAssemble(enc, webp_data);
208 // ... (Write the 'webp_data' to a file, or re-mux it further).
223 WebPAnimDecoder* dec = WebPAnimDecoderNew(webp_data, &dec_options);
/third_party/skia/third_party/externals/libwebp/imageio/
Dwebpdec.c113 WebPData webp_data = { data, data_size }; in ExtractMetadata() local
114 WebPDemuxer* const demux = WebPDemux(&webp_data); in ExtractMetadata()
/third_party/flutter/skia/third_party/externals/libwebp/imageio/
Dwebpdec.c113 WebPData webp_data = { data, data_size }; in ExtractMetadata() local
114 WebPDemuxer* const demux = WebPDemux(&webp_data); in ExtractMetadata()

12