This file is indexed.

/usr/include/movit/slice_effect.h is in libmovit-dev 1.4.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef _MOVIT_SLICE_EFFECT_H
#define _MOVIT_SLICE_EFFECT_H 1

// SliceEffect takes an image, cuts it into (potentially overlapping) slices,
// and puts those slices back together again consecutively. It is primarily
// useful in an overlap-discard setting, where it can do both the overlap and
// discard roles, where one does convolutions by means of many small FFTs, but
// could also work as a (relatively boring) video effect on its own.
//
// Note that vertical slices happen from the top, consistent with the rest of
// Movit.

#include <epoxy/gl.h>
#include <string>

#include "effect.h"

namespace movit {

class SliceEffect : public Effect {
public:
	SliceEffect();
	virtual std::string effect_type_id() const { return "SliceEffect"; }
	std::string output_fragment_shader();
	virtual bool needs_texture_bounce() const { return true; }
	virtual bool changes_output_size() const { return true; }
	virtual bool sets_virtual_output_size() const { return false; }
	virtual void inform_input_size(unsigned input_num, unsigned width, unsigned height);
	virtual void get_output_size(unsigned *width, unsigned *height,
	                             unsigned *virtual_width, unsigned *virtual_height) const;

	void set_gl_state(GLuint glsl_program_num, const std::string &prefix, unsigned *sampler_num);
	virtual void inform_added(EffectChain *chain) { this->chain = chain; }
	
	enum Direction { HORIZONTAL = 0, VERTICAL = 1 };

private:
	EffectChain *chain;
	int input_width, input_height;
	int input_slice_size, output_slice_size;
	int offset;
	Direction direction;

	float uniform_output_coord_to_slice_num, uniform_slice_num_to_input_coord;
	float uniform_slice_offset_to_input_coord, uniform_offset;
};

}  // namespace movit

#endif // !defined(_MOVIT_SLICE_EFFECT_H)