16 bit truncation to 10 bit

Support forum for DGDecNV
Post Reply
User avatar
tormento
DG Approved/Moose Approved
Posts: 428
Joined: Mon Sep 20, 2010 2:18 pm

16 bit truncation to 10 bit

Post by tormento »

From DGSource: "If the source video has 10-bit depth, the decoded video is delivered as 16-bit and is reported to Avisynth+ as pixel format P016. If the source video has 8-bit depth, the decoded video is delivered as 8-bit and is reported to Avisynth+ as pixel format YV12. If you need a reduced color depth (less than 16 bits) for your high-bit-depth processing, you can use ConvertBits() as needed after your DGSource() call."

If I decode a 10 bit source and DGSource outputs 16 bit, is the ConvertBits(10) lossless? I.e. are the discarded bits useless?
User avatar
Curly
Moose Approved
Posts: 127
Joined: Sun Mar 15, 2020 11:05 am

16 bit truncation to 10 bit

Post by Curly »

Soitenly, they are all zeros.

Rocky is off whizzing around doing who knows what, so I am in charge right now.
User avatar
gonca
DG Approved/Curly Approved/Moose Approved
Posts: 1084
Joined: Sun Apr 08, 2012 6:12 pm

16 bit truncation to 10 bit

Post by gonca »

Hey Curly
Nice to know that you are in charge while Rocky is having a whiz.
@tormento
DGDecodeNV just pads the last six bit positions with zeroes
and ConvertBits(10) just removes the padding

EDIT
Needed a reason to make the first part of the post
User avatar
Bullwinkle
Moose Approved
Posts: 210
Joined: Thu Sep 05, 2019 6:37 pm

16 bit truncation to 10 bit

Post by Bullwinkle »

You are a funny guy. That's why you are Curly Approved!
gonca wrote:
Sat Jan 30, 2021 11:20 am
DGDecodeNV just pads the last six bit positions with zeroes
To be precise, NVDec does that padding.

I am currently in charge. There is no crisis at DG Tools. Rocky's recovery from the accident will be swift.
User avatar
Britney
Curly Approved
Posts: 44
Joined: Sun Aug 09, 2020 3:24 pm

16 bit truncation to 10 bit

Post by Britney »

Get better soon, Rocky. We are praying for you.

Kisses, Brit
User avatar
Sherman
Moose Approved
Posts: 211
Joined: Mon Jan 06, 2020 10:19 pm

16 bit truncation to 10 bit

Post by Sherman »

Guys, I had nothing to do with it, I promise! Boris was seen lurking in the vicinity.
User avatar
Boris
Posts: 42
Joined: Sun Nov 10, 2019 2:55 pm

16 bit truncation to 10 bit

Post by Boris »

Special Rocky memorial Gold Coins now available. Extra thick coating, 10 microns. Can't go wrong. Send PM.

Image
User avatar
Natasha
Mosquito
Posts: 78
Joined: Wed Nov 20, 2019 11:11 am

16 bit truncation to 10 bit

Post by Natasha »

Nice work, Boris dahlink. Mr Big will be very happy. We get big raise, maybe dacha. Moose next.
User avatar
new_guy
Posts: 6
Joined: Fri Jan 15, 2021 11:12 am

16 bit truncation to 10 bit

Post by new_guy »

Where to get information on Rocky's reported death?
User avatar
Bullwinkle
Moose Approved
Posts: 210
Joined: Thu Sep 05, 2019 6:37 pm

16 bit truncation to 10 bit

Post by Bullwinkle »

DG will issue a statement at the right time.
User avatar
gonca
DG Approved/Curly Approved/Moose Approved
Posts: 1084
Joined: Sun Apr 08, 2012 6:12 pm

16 bit truncation to 10 bit

Post by gonca »

Sherman wrote:
Sat Jan 30, 2021 11:42 am
Guys, I had nothing to do with it, I promise! Boris was seen lurking in the vicinity.
Guilty conscience Sherm?
First DG disappears by accident, and you bring up Sherman Tools,
then you bring up being a moderator and Rocky crash lands.
User avatar
Sherman
Moose Approved
Posts: 211
Joined: Mon Jan 06, 2020 10:19 pm

16 bit truncation to 10 bit

Post by Sherman »

Do I need a lawyer?
User avatar
Mr. Peabody
Posts: 28
Joined: Tue Dec 24, 2019 9:20 am

16 bit truncation to 10 bit

Post by Mr. Peabody »

Stay quiet Sherman! Don't talk to anyone. Don't answer any questions.
User avatar
gonca
DG Approved/Curly Approved/Moose Approved
Posts: 1084
Joined: Sun Apr 08, 2012 6:12 pm

16 bit truncation to 10 bit

Post by gonca »

You're looking in the wrong direction Mr. Peabody
User avatar
Mr. Peabody
Posts: 28
Joined: Tue Dec 24, 2019 9:20 am

16 bit truncation to 10 bit

Post by Mr. Peabody »

Quite right. Thank you.

Sherman is speaking to investigators and is providing valuable information. Though he was in the vicinity he was tracking Boris and he feels terrible that he wasn't able to intervene in time to prevent the attack. Sherman passed a lie detector test and no charges are expected to be filed against him.
User avatar
Natasha
Mosquito
Posts: 78
Joined: Wed Nov 20, 2019 11:11 am

16 bit truncation to 10 bit

Post by Natasha »

Spare the rod, spoil the child.
Post Reply