mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
media: v4l2-mem2mem: Rename v4l2_m2m_buf_copy_data to v4l2_m2m_buf_copy_metadata
The v4l2_m2m_buf_copy_data helper is used to copy the buffer metadata, such as its timestamp and its flags. Therefore, the v4l2_m2m_buf_copy_metadata name is more clear and avoids confusion with a payload data copy. Signed-off-by: Ezequiel Garcia <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> [[email protected]: also fix cedrus_dec.c] Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
c2d88e7d66
commit
a4d3d61254
5 changed files with 15 additions and 15 deletions
|
|
@ -623,11 +623,11 @@ v4l2_m2m_dst_buf_remove_by_idx(struct v4l2_m2m_ctx *m2m_ctx, unsigned int idx)
|
|||
}
|
||||
|
||||
/**
|
||||
* v4l2_m2m_buf_copy_data() - copy buffer data from the output buffer to the
|
||||
* capture buffer
|
||||
* v4l2_m2m_buf_copy_metadata() - copy buffer metadata from
|
||||
* the output buffer to the capture buffer
|
||||
*
|
||||
* @out_vb: the output buffer that is the source of the data.
|
||||
* @cap_vb: the capture buffer that will receive the data.
|
||||
* @out_vb: the output buffer that is the source of the metadata.
|
||||
* @cap_vb: the capture buffer that will receive the metadata.
|
||||
* @copy_frame_flags: copy the KEY/B/PFRAME flags as well.
|
||||
*
|
||||
* This helper function copies the timestamp, timecode (if the TIMECODE
|
||||
|
|
@ -638,9 +638,9 @@ v4l2_m2m_dst_buf_remove_by_idx(struct v4l2_m2m_ctx *m2m_ctx, unsigned int idx)
|
|||
* flags are not copied. This is typically needed for encoders that
|
||||
* set this bits explicitly.
|
||||
*/
|
||||
void v4l2_m2m_buf_copy_data(const struct vb2_v4l2_buffer *out_vb,
|
||||
struct vb2_v4l2_buffer *cap_vb,
|
||||
bool copy_frame_flags);
|
||||
void v4l2_m2m_buf_copy_metadata(const struct vb2_v4l2_buffer *out_vb,
|
||||
struct vb2_v4l2_buffer *cap_vb,
|
||||
bool copy_frame_flags);
|
||||
|
||||
/* v4l2 request helper */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue