- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thereis an example to show usage of ippiDeinterlaceFilterCAVT_8u_C1R.
Download IPP sample code and refer to folder : -\ipp-samples\audio-video-codecs\codec\color_space_converter
Regards,
Naveen Gv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
This is the comment from the owner on the function: In ippiDeinterlaceFilterCAVT function, for the even line, it copys data from source to the destination, For odd line, it use the filter defined as bellow:
line 0: copy src to dst
line 1: filter...
line 2: copy src to dst
line 3: the line 3 value is computed by:
int edge2 = EDGE(s1, s3, s5);
int value = INTERP(s0, s2, s4, s6);
if (ABS(edge2) < thresh) {
value = IPP_MIN(value, IPP_MAX(s2, s4));
value = IPP_MAX(value, IPP_MIN(s2, s4));
}
dst= value;
,where:
s0 is a pointer to the line 0 of src, S1 is line 1 of src, s2 line 2 of src, etc.
#define ABS(x) ((x) < 0 ? -(x) : (x))
#define EDGE(a, b, c) (int)(- 4*a + 8*b - 4*c);
#define INTERP(a, b, c, d) (int)((a + 7*b + 7*c + d + edge2 + 8) >> 4)
line 4: copy src to dst
line 5: filter like line 3.
Thanks,
Chao
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your sampled resolution of 820x566 seems uncommon to me - where does it stem from?
Chao:
I can only echo the sentiment that the deinterlacing functionality needs update of the documentation. This thread only highlights the issue.
What is the "filter" applied for line 1? I assume that the same will apply to the last (odd) line being filtered?
- Jay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page