1 #include <VLIB/video_packetizer.h>
3 #include "p263_codec.h"
4 #include "p263_layers.h"
5 #include "p263_huffman.h"
7 C_RESULT p263_read_gob_layer( video_controller_t* controller, video_stream_t* stream )
9 p263_codec_t* p263_codec = (p263_codec_t*) controller->video_codec;
10 p263_picture_layer_t* picture_layer = &p263_codec->picture_layer;
11 p263_gob_layer_t* gob = &picture_layer->gobs[controller->blockline];
12 uint32_t gn = 0, gfid = 0, gsbi = 0;
14 // Read Group Number (GN) (5 bits)
15 video_read_data( stream, &gn, 5 );
17 // Read GOB Sub-Bitstream Indicator (GSBI) (2 bits)
18 video_read_data( stream, &gsbi, 2 );
20 // Read GOB Frame ID (GFID) (2 bits)
21 video_read_data( stream, &gfid, 2 );
23 // Read Quantizer Information (GQUANT) (5 bits)
24 video_read_data( stream, &gob->gquant, 5 );
25 controller->Qp = gob->gquant;