Benign repos download unavailable

gif_io.cc

imports tensorflow/core/platform/gif.himports tensorflow/core/platform/logging.h
SHA-2564f53d82359359493498635cdb9966bc375621b53f3d6e770e81f7b821806a2f4

Evidence

apache web server name lines 1–10
1/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is …
English function-word token "and" lines 11–14
11:42… IND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14================================================================ …
imports tensorflow/core/platform/gif.h lines 14–38
14:78… =*/
15
16// Functions to read images in GIF format.
17
18#include "tensorflow/core/lib/gif/gif_io.h"
19
20#include <algorithm>
21
22#include "absl/strings/str_cat.h"
23#include "gif_lib.h" // from @gif
24#include "tensorflow/core/lib/gtl/cleanup.h"
25#include "tensorflow/core/platform/gif.h"
26#include "tensorflow/core/platform/logging.h"
27#include "tensorflow/core/platform/mem.h"
28#include "tensorflow/core/platform/types.h"
29
30namespace tensorflow {
⋯8 lines
Copies bytes with native memcpy lines 41–51
41:24… {
42 if (size > info->bytes_left) size = info->bytes_left;
43 memcpy(buf, info->buf, size);
44 info->buf += size;
45 info->bytes_left -= size;
⋯6 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.