(API Change) Rename 'source_frame' + related
For the sake of naming consistency with the rest of obs.h, prefix this structure and associated functions with obs_. Renamed structures: - struct source_frame (now obs_source_frame) Renamed functions: - source_frame_init (now obs_source_frame_init) - source_frame_free (now obs_source_frame_free) - source_frame_create (now obs_source_frame_create) - source_frame_destroy (now obs_source_frame_destroy) Affected functions: - obs_source_output_video - obs_source_get_frame - obs_source_release_frame
This commit is contained in:
@@ -305,7 +305,8 @@ static inline uint32_t make_aligned_linesize_offset(uint32_t offset,
|
||||
static void fix_gpu_converted_alignment(struct obs_core_video *video,
|
||||
struct video_data *frame, int cur_texture)
|
||||
{
|
||||
struct source_frame *new_frame = &video->convert_frames[cur_texture];
|
||||
struct obs_source_frame *new_frame =
|
||||
&video->convert_frames[cur_texture];
|
||||
uint32_t src_linesize = frame->linesize[0];
|
||||
uint32_t dst_linesize = video->output_width * 4;
|
||||
uint32_t src_pos = 0;
|
||||
@@ -353,7 +354,8 @@ static bool convert_frame(struct obs_core_video *video,
|
||||
struct video_data *frame,
|
||||
const struct video_output_info *info, int cur_texture)
|
||||
{
|
||||
struct source_frame *new_frame = &video->convert_frames[cur_texture];
|
||||
struct obs_source_frame *new_frame =
|
||||
&video->convert_frames[cur_texture];
|
||||
|
||||
if (info->format == VIDEO_FORMAT_I420) {
|
||||
compress_uyvx_to_i420(
|
||||
|
Reference in New Issue
Block a user