[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
src
/
kernels
/
4.18.0-553.64.1.el8_10.x86_64
/
include
/
media
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 davinci
SET
[ DEL ]
📁 drv-intf
SET
[ DEL ]
📁 i2c
SET
[ DEL ]
📁 tpg
SET
[ DEL ]
📄 cec-notifier.h
6,678 B
SET
[ EDIT ]
|
[ DEL ]
📄 cec-pin.h
2,947 B
SET
[ EDIT ]
|
[ DEL ]
📄 cec.h
18,397 B
SET
[ EDIT ]
|
[ DEL ]
📄 demux.h
23,237 B
SET
[ EDIT ]
|
[ DEL ]
📄 dmxdev.h
6,034 B
SET
[ EDIT ]
|
[ DEL ]
📄 dvb-usb-ids.h
18,204 B
SET
[ EDIT ]
|
[ DEL ]
📄 dvb_ca_en50221.h
4,455 B
SET
[ EDIT ]
|
[ DEL ]
📄 dvb_demux.h
11,033 B
SET
[ EDIT ]
|
[ DEL ]
📄 dvb_frontend.h
29,701 B
SET
[ EDIT ]
|
[ DEL ]
📄 dvb_math.h
1,811 B
SET
[ EDIT ]
|
[ DEL ]
📄 dvb_net.h
2,583 B
SET
[ EDIT ]
|
[ DEL ]
📄 dvb_ringbuffer.h
8,524 B
SET
[ EDIT ]
|
[ DEL ]
📄 dvb_vb2.h
7,838 B
SET
[ EDIT ]
|
[ DEL ]
📄 dvbdev.h
15,089 B
SET
[ EDIT ]
|
[ DEL ]
📄 frame_vector.h
1,447 B
SET
[ EDIT ]
|
[ DEL ]
📄 imx.h
396 B
SET
[ EDIT ]
|
[ DEL ]
📄 media-device.h
16,113 B
SET
[ EDIT ]
|
[ DEL ]
📄 media-devnode.h
5,814 B
SET
[ EDIT ]
|
[ DEL ]
📄 media-entity.h
35,421 B
SET
[ EDIT ]
|
[ DEL ]
📄 rc-core.h
13,211 B
SET
[ EDIT ]
|
[ DEL ]
📄 rc-map.h
12,806 B
SET
[ EDIT ]
|
[ DEL ]
📄 rcar-fcp.h
1,342 B
SET
[ EDIT ]
|
[ DEL ]
📄 soc_camera.h
13,300 B
SET
[ EDIT ]
|
[ DEL ]
📄 tuner-types.h
7,723 B
SET
[ EDIT ]
|
[ DEL ]
📄 tuner.h
9,059 B
SET
[ EDIT ]
|
[ DEL ]
📄 tveeprom.h
3,370 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-async.h
7,649 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-clk.h
2,144 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-common.h
16,538 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-ctrls.h
39,942 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-dev.h
16,109 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-device.h
18,127 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-dv-timings.h
8,887 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-event.h
6,277 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-fh.h
4,759 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-flash-led-class.h
6,034 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-fwnode.h
14,184 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-image-sizes.h
864 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-ioctl.h
32,669 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-mc.h
8,213 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-mediabus.h
6,234 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-mem2mem.h
20,186 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-rect.h
4,650 B
SET
[ EDIT ]
|
[ DEL ]
📄 v4l2-subdev.h
41,579 B
SET
[ EDIT ]
|
[ DEL ]
📄 videobuf-core.h
7,148 B
SET
[ EDIT ]
|
[ DEL ]
📄 videobuf-dma-contig.h
1,062 B
SET
[ EDIT ]
|
[ DEL ]
📄 videobuf-dma-sg.h
3,009 B
SET
[ EDIT ]
|
[ DEL ]
📄 videobuf-vmalloc.h
1,319 B
SET
[ EDIT ]
|
[ DEL ]
📄 videobuf2-core.h
45,110 B
SET
[ EDIT ]
|
[ DEL ]
📄 videobuf2-dma-contig.h
866 B
SET
[ EDIT ]
|
[ DEL ]
📄 videobuf2-dma-sg.h
696 B
SET
[ EDIT ]
|
[ DEL ]
📄 videobuf2-dvb.h
1,863 B
SET
[ EDIT ]
|
[ DEL ]
📄 videobuf2-memops.h
1,101 B
SET
[ EDIT ]
|
[ DEL ]
📄 videobuf2-v4l2.h
10,719 B
SET
[ EDIT ]
|
[ DEL ]
📄 videobuf2-vmalloc.h
509 B
SET
[ EDIT ]
|
[ DEL ]
📄 vsp1.h
3,288 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: v4l2-rect.h
/* SPDX-License-Identifier: GPL-2.0-only */ /* * v4l2-rect.h - v4l2_rect helper functions * * Copyright 2014 Cisco Systems, Inc. and/or its affiliates. All rights reserved. */ #ifndef _V4L2_RECT_H_ #define _V4L2_RECT_H_ #include <linux/videodev2.h> /** * v4l2_rect_set_size_to() - copy the width/height values. * @r: rect whose width and height fields will be set * @size: rect containing the width and height fields you need. */ static inline void v4l2_rect_set_size_to(struct v4l2_rect *r, const struct v4l2_rect *size) { r->width = size->width; r->height = size->height; } /** * v4l2_rect_set_min_size() - width and height of r should be >= min_size. * @r: rect whose width and height will be modified * @min_size: rect containing the minimal width and height */ static inline void v4l2_rect_set_min_size(struct v4l2_rect *r, const struct v4l2_rect *min_size) { if (r->width < min_size->width) r->width = min_size->width; if (r->height < min_size->height) r->height = min_size->height; } /** * v4l2_rect_set_max_size() - width and height of r should be <= max_size * @r: rect whose width and height will be modified * @max_size: rect containing the maximum width and height */ static inline void v4l2_rect_set_max_size(struct v4l2_rect *r, const struct v4l2_rect *max_size) { if (r->width > max_size->width) r->width = max_size->width; if (r->height > max_size->height) r->height = max_size->height; } /** * v4l2_rect_map_inside()- r should be inside boundary. * @r: rect that will be modified * @boundary: rect containing the boundary for @r */ static inline void v4l2_rect_map_inside(struct v4l2_rect *r, const struct v4l2_rect *boundary) { v4l2_rect_set_max_size(r, boundary); if (r->left < boundary->left) r->left = boundary->left; if (r->top < boundary->top) r->top = boundary->top; if (r->left + r->width > boundary->width) r->left = boundary->width - r->width; if (r->top + r->height > boundary->height) r->top = boundary->height - r->height; } /** * v4l2_rect_same_size() - return true if r1 has the same size as r2 * @r1: rectangle. * @r2: rectangle. * * Return true if both rectangles have the same size. */ static inline bool v4l2_rect_same_size(const struct v4l2_rect *r1, const struct v4l2_rect *r2) { return r1->width == r2->width && r1->height == r2->height; } /** * v4l2_rect_intersect() - calculate the intersection of two rects. * @r: intersection of @r1 and @r2. * @r1: rectangle. * @r2: rectangle. */ static inline void v4l2_rect_intersect(struct v4l2_rect *r, const struct v4l2_rect *r1, const struct v4l2_rect *r2) { int right, bottom; r->top = max(r1->top, r2->top); r->left = max(r1->left, r2->left); bottom = min(r1->top + r1->height, r2->top + r2->height); right = min(r1->left + r1->width, r2->left + r2->width); r->height = max(0, bottom - r->top); r->width = max(0, right - r->left); } /** * v4l2_rect_scale() - scale rect r by to/from * @r: rect to be scaled. * @from: from rectangle. * @to: to rectangle. * * This scales rectangle @r horizontally by @to->width / @from->width and * vertically by @to->height / @from->height. * * Typically @r is a rectangle inside @from and you want the rectangle as * it would appear after scaling @from to @to. So the resulting @r will * be the scaled rectangle inside @to. */ static inline void v4l2_rect_scale(struct v4l2_rect *r, const struct v4l2_rect *from, const struct v4l2_rect *to) { if (from->width == 0 || from->height == 0) { r->left = r->top = r->width = r->height = 0; return; } r->left = (((r->left - from->left) * to->width) / from->width) & ~1; r->width = ((r->width * to->width) / from->width) & ~1; r->top = ((r->top - from->top) * to->height) / from->height; r->height = (r->height * to->height) / from->height; } /** * v4l2_rect_overlap() - do r1 and r2 overlap? * @r1: rectangle. * @r2: rectangle. * * Returns true if @r1 and @r2 overlap. */ static inline bool v4l2_rect_overlap(const struct v4l2_rect *r1, const struct v4l2_rect *r2) { /* * IF the left side of r1 is to the right of the right side of r2 OR * the left side of r2 is to the right of the right side of r1 THEN * they do not overlap. */ if (r1->left >= r2->left + r2->width || r2->left >= r1->left + r1->width) return false; /* * IF the top side of r1 is below the bottom of r2 OR * the top side of r2 is below the bottom of r1 THEN * they do not overlap. */ if (r1->top >= r2->top + r2->height || r2->top >= r1->top + r1->height) return false; return true; } #endif