/usr/include/movit/resize_effect.h is in libmovit-dev 1.3.1-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 | #ifndef _MOVIT_RESIZE_EFFECT_H
#define _MOVIT_RESIZE_EFFECT_H 1
// An effect that simply resizes the picture to a given output size
// (set by the two integer parameters "width" and "height").
// Mostly useful as part of other algorithms.
#include <string>
#include "effect.h"
namespace movit {
class ResizeEffect : public Effect {
public:
ResizeEffect();
virtual std::string effect_type_id() const { return "ResizeEffect"; }
std::string output_fragment_shader();
// We want processing done pre-filtering and mipmapped,
// in case we need to scale down a lot.
virtual bool need_texture_bounce() const { return true; }
virtual bool needs_mipmaps() const { return true; }
virtual AlphaHandling alpha_handling() const { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; }
virtual bool changes_output_size() const { return true; }
virtual bool sets_virtual_output_size() const { return false; }
virtual void get_output_size(unsigned *width, unsigned *height, unsigned *virtual_width, unsigned *virtual_height) const;
private:
int width, height;
};
} // namespace movit
#endif // !defined(_MOVIT_RESIZE_EFFECT_H)
|