Home
last modified time | relevance | path

Searched refs:canvas_width (Results 1 – 25 of 26) sorted by relevance

12

/third_party/skia/third_party/externals/libwebp/examples/
Danim_util.c42 int canvas_width, int canvas_height) { in IsFullFrame() argument
43 return (width == canvas_width && height == canvas_height); in IsFullFrame()
56 (uint64_t)image->canvas_width * kNumChannels * image->canvas_height; in AllocateFrames()
96 uint32_t canvas_width, uint32_t canvas_height) { in ZeroFillCanvas() argument
97 memset(rgba, 0, canvas_width * kNumChannels * canvas_height); in ZeroFillCanvas()
153 int canvas_width, int canvas_height) { in DumpFrame() argument
185 canvas_width, canvas_height) < 0) { in DumpFrame()
191 if (fwrite(row, canvas_width * kNumChannels, 1, f) != 1) { in DumpFrame()
195 row += canvas_width * kNumChannels; in DumpFrame()
238 image->canvas_width = anim_info.canvas_width; in ReadAnimatedWebP()
[all …]
Dvwebp.c62 int canvas_width, canvas_height; member
96 prev->width = kParams.canvas_width; in ClearPreviousFrame()
342 window_x = window_x * kParams.viewport_width / kParams.canvas_width; in DrawBackgroundScissored()
344 frame_w = frame_w * kParams.viewport_width / kParams.canvas_width; in DrawBackgroundScissored()
363 glPixelZoom((GLfloat)(+1. / kParams.canvas_width * kParams.viewport_width), in HandleDisplay()
365 xoff = (GLfloat)(2. * curr->x_offset / kParams.canvas_width); in HandleDisplay()
421 int width = kParams.canvas_width; in StartDisplay()
568 kParams.canvas_width = WebPDemuxGetI(kParams.dmux, WEBP_FF_CANVAS_WIDTH); in main()
571 printf("Canvas: %d x %d\n", kParams.canvas_width, kParams.canvas_height); in main()
Danim_diff.c89 should_merge_frames = FramesAreSimilar(rgba1, rgba2, img->canvas_width, in MinimizeAnimationFrames()
93 FramesAreEqual(rgba1, rgba2, img->canvas_width, img->canvas_height); in MinimizeAnimationFrames()
139 ok = CompareValues(img1->canvas_width, img2->canvas_width, in CompareAnimatedImagePair()
177 GetDiffAndPSNR(rgba1, rgba2, img1->canvas_width, img1->canvas_height, in CompareAnimatedImagePair()
Danim_util.h38 uint32_t canvas_width; member
Danim_dump.c104 buffer.width = image.canvas_width; in main()
/third_party/flutter/skia/third_party/externals/libwebp/examples/
Danim_util.c42 int canvas_width, int canvas_height) { in IsFullFrame() argument
43 return (width == canvas_width && height == canvas_height); in IsFullFrame()
56 (uint64_t)image->canvas_width * kNumChannels * image->canvas_height; in AllocateFrames()
96 uint32_t canvas_width, uint32_t canvas_height) { in ZeroFillCanvas() argument
97 memset(rgba, 0, canvas_width * kNumChannels * canvas_height); in ZeroFillCanvas()
153 int canvas_width, int canvas_height) { in DumpFrame() argument
185 canvas_width, canvas_height) < 0) { in DumpFrame()
191 if (fwrite(row, canvas_width * kNumChannels, 1, f) != 1) { in DumpFrame()
195 row += canvas_width * kNumChannels; in DumpFrame()
238 image->canvas_width = anim_info.canvas_width; in ReadAnimatedWebP()
[all …]
Dvwebp.c62 int canvas_width, canvas_height; member
96 prev->width = kParams.canvas_width; in ClearPreviousFrame()
342 window_x = window_x * kParams.viewport_width / kParams.canvas_width; in DrawBackgroundScissored()
344 frame_w = frame_w * kParams.viewport_width / kParams.canvas_width; in DrawBackgroundScissored()
363 glPixelZoom((GLfloat)(+1. / kParams.canvas_width * kParams.viewport_width), in HandleDisplay()
365 xoff = (GLfloat)(2. * curr->x_offset / kParams.canvas_width); in HandleDisplay()
421 int width = kParams.canvas_width; in StartDisplay()
568 kParams.canvas_width = WebPDemuxGetI(kParams.dmux, WEBP_FF_CANVAS_WIDTH); in main()
571 printf("Canvas: %d x %d\n", kParams.canvas_width, kParams.canvas_height); in main()
Danim_diff.c89 should_merge_frames = FramesAreSimilar(rgba1, rgba2, img->canvas_width, in MinimizeAnimationFrames()
93 FramesAreEqual(rgba1, rgba2, img->canvas_width, img->canvas_height); in MinimizeAnimationFrames()
139 ok = CompareValues(img1->canvas_width, img2->canvas_width, in CompareAnimatedImagePair()
177 GetDiffAndPSNR(rgba1, rgba2, img1->canvas_width, img1->canvas_height, in CompareAnimatedImagePair()
Danim_util.h38 uint32_t canvas_width; member
Danim_dump.c104 buffer.width = image.canvas_width; in main()
/third_party/flutter/skia/third_party/externals/libwebp/src/demux/
Danim_decode.c109 dec->info_.canvas_width = WebPDemuxGetI(dec->demux_, WEBP_FF_CANVAS_WIDTH); in WebPAnimDecoderNewInternal()
117 dec->info_.canvas_width * NUM_CHANNELS, dec->info_.canvas_height); in WebPAnimDecoderNewInternal()
120 dec->info_.canvas_width * NUM_CHANNELS, dec->info_.canvas_height); in WebPAnimDecoderNewInternal()
138 static int IsFullFrame(int width, int height, int canvas_width, in IsFullFrame() argument
140 return (width == canvas_width && height == canvas_height); in IsFullFrame()
144 static int ZeroFillCanvas(uint8_t* buf, uint32_t canvas_width, in ZeroFillCanvas() argument
147 (uint64_t)canvas_width * canvas_height * NUM_CHANNELS * sizeof(*buf); in ZeroFillCanvas()
179 int canvas_width, int canvas_height) { in IsKeyFrame() argument
184 canvas_width, canvas_height)) { in IsKeyFrame()
188 (IsFullFrame(prev->width, prev->height, canvas_width, in IsKeyFrame()
[all …]
Ddemux.c577 int canvas_width, int canvas_height) { in CheckFrameBounds() argument
582 if (frame->width_ != canvas_width || frame->height_ != canvas_height) { in CheckFrameBounds()
587 if (frame->width_ + frame->x_offset_ > canvas_width) return 0; in CheckFrameBounds()
/third_party/skia/third_party/externals/libwebp/src/demux/
Danim_decode.c117 dec->info_.canvas_width = WebPDemuxGetI(dec->demux_, WEBP_FF_CANVAS_WIDTH); in WebPAnimDecoderNewInternal()
125 dec->info_.canvas_width * NUM_CHANNELS, dec->info_.canvas_height); in WebPAnimDecoderNewInternal()
128 dec->info_.canvas_width * NUM_CHANNELS, dec->info_.canvas_height); in WebPAnimDecoderNewInternal()
146 static int IsFullFrame(int width, int height, int canvas_width, in IsFullFrame() argument
148 return (width == canvas_width && height == canvas_height); in IsFullFrame()
152 static int ZeroFillCanvas(uint8_t* buf, uint32_t canvas_width, in ZeroFillCanvas() argument
155 (uint64_t)canvas_width * canvas_height * NUM_CHANNELS * sizeof(*buf); in ZeroFillCanvas()
187 int canvas_width, int canvas_height) { in IsKeyFrame() argument
192 canvas_width, canvas_height)) { in IsKeyFrame()
196 (IsFullFrame(prev->width, prev->height, canvas_width, in IsKeyFrame()
[all …]
Ddemux.c588 int canvas_width, int canvas_height) { in CheckFrameBounds() argument
593 if (frame->width_ != canvas_width || frame->height_ != canvas_height) { in CheckFrameBounds()
598 if (frame->width_ + frame->x_offset_ > canvas_width) return 0; in CheckFrameBounds()
/third_party/gstreamer/gstplugins_good/ext/libcaca/
Dgstcacatv.c181 caca_set_canvas_size (cacatv->canvas, cacatv->canvas_width, in gst_cacatv_setcaps()
218 cacatv->canvas_width * caca_get_font_width (cacatv->font); in gst_cacatv_transform_caps()
314 cacatv->canvas_width = GST_CACA_DEFAULT_SCREEN_WIDTH; in gst_cacatv_init()
317 caca_create_canvas (cacatv->canvas_width, cacatv->canvas_height); in gst_cacatv_init()
348 cacatv->canvas_width = g_value_get_int (value); in gst_cacatv_set_property()
381 g_value_set_int (value, cacatv->canvas_width); in gst_cacatv_get_property()
Dgstcacatv.h43 gint canvas_height, canvas_width; member
/third_party/skia/third_party/externals/libwebp/tests/fuzzer/
Danimdecoder_fuzzer.cc39 if (!ImgIoUtilCheckSizeArgumentsOverflow(info.canvas_width * 4, in LLVMFuzzerTestOneInput()
/third_party/flutter/skia/third_party/externals/libwebp/src/dec/
Dwebp_dec.c285 int canvas_width = 0; in ParseHeadersInternal() local
315 &canvas_width, &canvas_height, &flags); in ParseHeadersInternal()
329 image_width = canvas_width; in ParseHeadersInternal()
388 if (canvas_width != image_width || canvas_height != image_height) { in ParseHeadersInternal()
/third_party/skia/third_party/externals/libwebp/src/dec/
Dwebp_dec.c285 int canvas_width = 0; in ParseHeadersInternal() local
315 &canvas_width, &canvas_height, &flags); in ParseHeadersInternal()
329 image_width = canvas_width; in ParseHeadersInternal()
388 if (canvas_width != image_width || canvas_height != image_height) { in ParseHeadersInternal()
/third_party/skia/third_party/externals/libwebp/src/webp/
Ddemux.h295 uint32_t canvas_width; member
/third_party/flutter/skia/third_party/externals/libwebp/src/webp/
Ddemux.h295 uint32_t canvas_width; member
/third_party/flutter/skia/third_party/externals/libwebp/src/mux/
Danim_encode.c1479 int canvas_width, canvas_height; in OptimizeSingleFrame() local
1493 err = WebPMuxGetCanvasSize(mux, &canvas_width, &canvas_height); in OptimizeSingleFrame()
/third_party/skia/third_party/externals/libwebp/src/mux/
Danim_encode.c1483 int canvas_width, canvas_height; in OptimizeSingleFrame() local
1497 err = WebPMuxGetCanvasSize(mux, &canvas_width, &canvas_height); in OptimizeSingleFrame()
/third_party/skia/third_party/externals/imgui/
Dimgui_demo.cpp6070 const float canvas_width = IM_MAX(min_widget_width, rad * 2.0f); local
6071 const float offset_x = floorf(canvas_width * 0.5f);
6076 ImGui::Dummy(ImVec2(canvas_width, RAD_MAX * 2));
/third_party/skia/third_party/externals/libwebp/
DChangeLog867 3c49178f prevent 32b overflow for very large canvas_width / height
974 cfdda7c6 Merge "prevent 32b overflow for very large canvas_width / height"
981 1c364400 prevent 32b overflow for very large canvas_width / height

12