(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:
jp9000
2014-08-02 01:04:45 -07:00
parent 7b402245dc
commit 4122a5b9b5
10 changed files with 72 additions and 66 deletions

View File

@@ -71,7 +71,7 @@ struct av_capture {
obs_source_t source;
struct source_frame frame;
struct obs_source_frame frame;
};
static inline enum video_format format_from_subtype(FourCharCode subtype)
@@ -124,7 +124,7 @@ static inline enum video_colorspace get_colorspace(CMFormatDescriptionRef desc)
}
static inline bool update_colorspace(struct av_capture *capture,
struct source_frame *frame, CMFormatDescriptionRef desc,
struct obs_source_frame *frame, CMFormatDescriptionRef desc,
bool full_range)
{
enum video_colorspace colorspace = get_colorspace(desc);
@@ -151,7 +151,7 @@ static inline bool update_colorspace(struct av_capture *capture,
}
static inline bool update_frame(struct av_capture *capture,
struct source_frame *frame, CMSampleBufferRef sample_buffer)
struct obs_source_frame *frame, CMSampleBufferRef sample_buffer)
{
CMFormatDescriptionRef desc =
CMSampleBufferGetFormatDescription(sample_buffer);
@@ -225,7 +225,7 @@ static inline bool update_frame(struct av_capture *capture,
if (count < 1 || !capture)
return;
struct source_frame *frame = &capture->frame;
struct obs_source_frame *frame = &capture->frame;
CMTime target_pts =
CMSampleBufferGetOutputPresentationTimeStamp(sampleBuffer);