Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th October 2017, 00:37   #1  |  Link
SamK
Registered User
 
Join Date: Apr 2017
Posts: 1
What do the functions iClip3 and iClip1 do in the JM reference software?

I am trying to understand the H.264/AVC JM reference software for research purpose.
Many of the functions in it contain the functions iClip1 and iClip3. However, I am not able to find their definitions anywhere in the reference software. As far as I know they are not even standard C library functions.
How can I find the actual role of these functions and where?
SamK is offline   Reply With Quote
Old 18th October 2017, 02:26   #2  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,371
Did you look in the headers?
Code:
..JM\lcommon\inc\ifunctions.h

static inline int iClip1(int high, int x)
{
  x = imax(x, 0);
  x = imin(x, high);

  return x;
}

static inline int iClip3(int low, int high, int x)
{
  x = imax(x, low);
  x = imin(x, high);

  return x;
}
raffriff42 is offline   Reply With Quote
Reply

Tags
h.264/avc, jm reference software

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 18:11.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.