Skip to content

Commit

Permalink
rem/vidconv: add vidconv_center and x and y source offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Dec 25, 2024
1 parent 6983845 commit b4f400b
Show file tree
Hide file tree
Showing 4 changed files with 229 additions and 150 deletions.
2 changes: 2 additions & 0 deletions include/rem_vid.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ struct vidframe {
uint16_t linesize[4]; /**< Array of line-sizes */
struct vidsz size; /**< Frame resolution */
enum vidfmt fmt; /**< Video pixel format */
unsigned xoffs; /**< x offset */
unsigned yoffs; /**< y offset */
};

/** Video point */
Expand Down
2 changes: 2 additions & 0 deletions include/rem_vidconv.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ void vidconv(struct vidframe *dst, const struct vidframe *src,
struct vidrect *r);
void vidconv_aspect(struct vidframe *dst, const struct vidframe *src,
struct vidrect *r);
void vidconv_center(struct vidframe *dst, const struct vidframe *src,
struct vidrect *r);
Loading

0 comments on commit b4f400b

Please sign in to comment.