Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply RFC 7741 for VP8 #178

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Apply RFC 7741 for VP8 #178

wants to merge 3 commits into from

Conversation

lem21h
Copy link

@lem21h lem21h commented Jan 8, 2020

L: TL0PICIDX present. When set to 1, the TL0PICIDX MUST be present
and specified as below, and the T bit MUST be set to 1.
Otherwise, TL0PICIDX MUST NOT be present.

Add Y bit and KEYIDX value to be obtain
Add Vp8 Key Frame validation
Get Width and Height and their scaling values from Vp8 Payload Header

L: TL0PICIDX present. When set to 1, the TL0PICIDX MUST be present
and specified as below, and the T bit MUST be set to 1.
Otherwise, TL0PICIDX MUST NOT be present.

Add Y bit and KEYIDX value to be obtain
Add Vp8 Key Frame validation
Get Width and Height and their scaling values from Vp8 Payload Header
@jitsi-jenkins
Copy link

Hi, thanks for your contribution!
If you haven't already done so, could you please make sure you sign our CLA (https://jitsi.org/icla for individuals and https://jitsi.org/ccla for corporations)? We would unfortunately be unable to merge your patch unless we have that piece :(.

@@ -146,7 +162,54 @@ public static int getTemporalLayerIndex(byte[] buf, int off, int len)
return -1;
}

return (buf[off + sz - 1] & 0xc0) >> 6;
return (byte) (buf[off + sz - 1] & 0xFF);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does the & 0xFF do here? This is a byte.

Copy link
Author

@lem21h lem21h Jan 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sure that if regular value of the byte is greater than 127, then it won't change to negative values when converting to integer and back to byte

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But doesn't it convert to negative anyway when you cast to byte?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, fixed

@JonathanLennox
Copy link
Member

@lem21h : have you signed the Jitsi CLA? (Sorry if you already have, it's not obvious to me how to associate your github username with a name on a signed form.)

@lem21h
Copy link
Author

lem21h commented Jan 10, 2020

Hi @JonathanLennox , I have signed. Please tell me how can I help you identify myself on that list ?

@JonathanLennox
Copy link
Member

@lem21h : just let me know the name you used when you signed? (If you don't want it publicly on GitHub, you can also e-mail it to me.)

@JonathanLennox
Copy link
Member

Jenkins, test this please.

@JonathanLennox
Copy link
Member

It would be great to have unit tests for these accessors (e.g. running on a VP8 packet captured from a pcap file or whatever). How hard would this be to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants